Replace Streamlit UI with Material 3 web dashboard - #27
Draft
DavidSeyserGit wants to merge 8 commits into
Draft
Conversation
- Serve a Material Web Components SPA via FastAPI (twfarmbot_ui/server.py) - Proxy /api and /resireg to upstream services; persist sessions and garden YAML edits through /ui endpoints - Add shared layout primitives (page, section, card, metric grid) and an 8px spacing system for consistent typography and padding across tabs - Fix FARMBOT_REQUIRED=0 so the API boots without a live FarmBot - Update docs, systemd unit, and tests (including test_ui_server.py) Co-authored-by: David Seyser <DavidSeyserGit@users.noreply.github.com>
…e-effect' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
- Reduce sidebar nav padding; use rounded rects instead of full-width pills - Shrink page header/title gaps; move Camera actions into title row - Add compact top-aligned empty-panel variant (replaces centered void) - Normalize MWC button height and card body padding - Cache-bust static assets so CSS/JS updates load reliably Co-authored-by: David Seyser <DavidSeyserGit@users.noreply.github.com>
Co-authored-by: David Seyser <DavidSeyserGit@users.noreply.github.com>
Vendors Material Web components, Chart.js, Marked, and DOMPurify to local storage to enable offline functionality and improve reliability. - Updates importmap in `index.html` to point to local `/vendor/` paths. - Configures FastAPI server to cache `/vendor/` assets. - Adds new test cases to verify importmap integrity, SHA256 pinning, and local asset availability. - Adds `vendor/` directory containing pinned assets. Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Add functionality to toggle the navigation rail visibility, allowing users to collapse the sidebar. This includes: - A new toggle button in the top app bar. - CSS styles for the collapsed state to adjust layout and sidebar positioning. - JavaScript logic to manage the toggle state and persist the user's preference in localStorage. Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
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.
Performance and simplification update
@material/web/all.jswith imports for only the components usedVerification