Repository navigation
Feature/unified device data structure and UI ux improvements - #26
Merged
dcbert merged 6 commits intoAug 10, 2026
Merged
Conversation
- Refactor device management to use a single state for all devices. - Update API calls to fetch devices from a unified endpoint. - Modify dialogs to handle device make selection and update forms accordingly. - Enhance DeviceTable to display device make and adjust layout. - Update tests to reflect changes in device structure and API responses. docs: improve Umbrel app documentation - Clarify app structure and prerequisites for publishing. - Update architecture section to reflect service roles and data handling. - Enhance initial setup instructions for clarity and completeness. - Revise app description to highlight features and self-sovereignty.
…sets and custom options - Implemented GlobalTimeRange component with UI for selecting time ranges. - Added context provider (TimeRangeContext) to manage time range state. - Created utility functions for handling time range logic and storage. - Developed tests for GlobalTimeRange component and time range utilities. - Included support for relative presets and custom absolute time ranges.
- Refactor MiningDashboard to support multiple device makes and improve data fetching logic. - Update API endpoints to remove 'bitaxe' prefix for consistency. - Introduce a new NotificationsSettings component in SettingsPage for managing notification preferences. - Enhance settings handling to avoid sending empty secrets during updates. - Add upgrade smoke script for verifying device unification post-migration. - Update tests to reflect changes in API endpoints and default time ranges.
- Added adaptive time-axis helpers for chart labels in formatters.js. - Updated index.css with a new Amber Minimal theme using oklch color values. - Implemented new time range parsing and configuration functions in timeRange.js. - Enhanced various dashboard components (Analytics, Mining, BitAxeDeviceDetails) to utilize adaptive time-axis configurations. - Updated chart components to support dynamic tick formatting based on selected time range. - Refactored CSS styles to use CSS variables for colors and fonts. - Introduced jsconfig.json for improved module resolution in the frontend.
…board - Added new status and surface color configurations in Tailwind CSS. - Updated Vite configuration to include AnalyticsDashboard tests. - Removed obsolete upgrade smoke script. - Improved Umbrel README with updated service descriptions and installation instructions. - Updated Umbrel app YAML for better clarity on MinerSentinel's capabilities. - Introduced new ChartFrame component for consistent chart layouts. - Created MakeBadge component for device manufacturer representation. - Added EmptyState and ErrorState components for better user feedback. - Implemented SectionHeader for improved layout consistency. - Developed DataFreshness and HealthBar components for real-time metrics. - Created MetricCard for unified KPI display across dashboards. - Added StatusIndicator for operational status representation. - Implemented formatters for consistent metric formatting and testing. - Added unit tests for formatters to ensure reliability.
This was
linked to
issues
Aug 10, 2026
dcbert
deleted the
feature/unified-device-data-structure-and-ui-ux-improvements
branch
August 10, 2026 20:17
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.
This pull request implements a major unification of device and pool models in the backend, simplifying the Django admin interface and removing legacy model support. It also adds a management command for verifying the migration to unified tables, updates environment documentation for clarity, and includes a test result artifact. The most important changes are grouped below:
Backend Model/Admin Unification:
backend/api/admin.pyto register unified models (Device,DeviceMiningStats,DeviceHardwareStats,DeviceSystemInfo,PoolStats) instead of legacy-specific models (such asBitAxeDevice,AvalonDevice, etc.), updating admin views, filters, and fields to match the new unified schema. The admin interface is now streamlined and less redundant.backend/api/avalon_serializers.pyfile, eliminating Avalon-specific serializers in favor of a unified approach.Migration Verification Tooling:
verify_device_unification.pyto verify that data in unified device/pool tables matches legacy tables (if present), supporting strict mode and registry-only reporting. This aids in post-migration validation and troubleshooting.Configuration and Documentation Improvements:
.env.examplewith clearer comments, production hints, and improved documentation for environment variables, including frontend/backend port mappings and CORS origins.Testing:
.vite/vitest/results.json, indicating a failed test forMiningDashboard.test.jsx.