Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: health check card #62

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

feat: health check card #62

wants to merge 6 commits into from

Conversation

alex-mcgovern
Copy link
Collaborator

@alex-mcgovern alex-mcgovern commented Jan 14, 2025

Adds a "CodeGate status" card to the UI which displays the status of the backend.

It has 3 states:

  • "checking"
  • "healthy"
  • "unhealthy"

And also has a fallback error UI pointing to Discord & Github issues.

For both states, it will poll the backend on a configurable second interval, and on window focus and re-connect — so it should appear quite "live".

I have used a table component with the view to adding more rows in the future — e.g. the CA certificate trust status.

Screen.Recording.2025-01-14.at.3.57.50.PM.mov

Copy link

stacklok-cloud-staging bot commented Jan 14, 2025

Minder Vulnerability Report ✅

Minder analyzed this PR and found it does not add any new vulnerable dependencies.

Vulnerability scan of 2991c276:

  • 🐞 vulnerable packages: 0
  • 🛠 fixes available for: 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 12771691290

Details

  • 25 of 28 (89.29%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.9%) to 69.196%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/features/dashboard/components/card-codegate-status.tsx 18 21 85.71%
Totals Coverage Status
Change from base Build 12763149920: 0.9%
Covered Lines: 416
Relevant Lines: 521

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants