Merged
Conversation
Added usage stats endpoint. Fixed metric plots.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements version v0.10.4 and updates several UI components and backend endpoints. Key changes include refactoring the cart data structure from an array to an object across multiple components, adding new endpoints and usage statistics routes in the API, and updating various UI elements for improved consistency and user feedback.
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ui/src/pages/metrics.tsx | Updated formatting and prop destructuring in metric modal setup and layout adjustments. |
| ui/src/pages/bedset-splash.tsx | Adjusted conditional rendering to include additional bed file data. |
| ui/src/pages/bed-cart.tsx | Refactored cart-related logic to use object keys and updated table layout. |
| ui/src/custom.scss | Added styling for a transparent button. |
| ui/src/contexts/bedcart-context.tsx | Converted cart data structure from an array to a record and updated associated functions. |
| ui/src/components/search/**/*.tsx | Updated cart checks and add-to-cart logic to align with cart record changes. |
| ui/src/components/nav/nav-desktop.tsx | Updated cart count checks using object key length. |
| ui/src/components/modals/*.tsx | Adjusted cart processing for download and create-bedset modals. |
| ui/src/components/metrics/metric-plot.tsx | Added an optional aspect ratio prop and updated sorting comment. |
| ui/src/components/bedset-splash-components/*.tsx | Updated cart integration and UI formatting in header and table components. |
| bedhost/routers/base_api.py, bedhost/main.py, and others | Updated API routes and usage scheduling constants and version bump. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Deploying bedhost-ui with
|
| Latest commit: |
123cabd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fc6afea8.bedhost.pages.dev |
| Branch Preview URL: | https://dev.bedhost.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes:
TODO:
__version__.pyfile