- Notifications
You must be signed in to change notification settings - Fork8
feat: Modernize dashboard with MUI X charts and activity timeline#706
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
nicolai-rhesis wants to merge7 commits intomainChoose a base branch fromfeat/revised-dashboard
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
- Replace old dashboard grids with modern components using MUI X Charts- Add DashboardKPIs with sparklines, trend indicators, and colored gauge- Add DashboardCharts using MUI X PieCharts for test run status/results- Add ActivityTimeline showing tests, test runs, test sets, and tasks- Add TestRunPerformance component with compact card layout- Apply brand color palette to all charts and sparklines- Optimize API queries (reduced from 4→3 calls in timeline)- Add task tracking in activity feed (created and completed)- Add interactive features: click to navigate, hover effects- Remove legacy grid components- Update task interface with created_at/updated_at timestamps
- Resolved conflicts in dashboard page by combining imports from both branches- Removed root-level package.json and package-lock.json as they were deleted in main- Successfully merged all changes from main branch
- Reorder KPI cards: Overall Pass Rate, Test Executions, Test Sets, Tests- Add timestamp fallbacks for tasks and test sets (use updated_at or current time)- Simplify task activity chips to show only status and assignee- Fix SparkLineChart valueFormatter type signature- Implement unified loading spinner for better UX- Use tilde (~) for relative time displays- Rename 'Total Tests' to 'Tests' for consistency
- Remove translateY/translateX transform on hover for all dashboard cards- Keep subtle box-shadow and background-color hover effects- Delete unused DashboardCharts.tsx component- Improve visual stability of dashboard interface
…ling- Fix viewport height timing issue causing only 6 items to load- Split viewport initialization and data fetching into separate effects- Use fallback date (2000-01-01) for tasks/test sets without timestamps- Prevent refetch on window resize (only on initial mount)- Tasks without timestamps now visible but sorted to bottom- Log warnings for missing timestamps to aid backend debugging
Resolved conflicts:- Kept new dashboard implementation with DashboardKPIs, TestRunPerformance, and ActivityTimeline- Removed old RecentTestsGrid and RecentTestSetsGrid components- Integrated onboarding context from main branch
Sign up for freeto 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.
Uh oh!
There was an error while loading.Please reload this page.
📊 Dashboard Modernization
This PR completely redesigns the dashboard with a modern, interactive interface using MUI X Charts.
✨ What's New
🎨 Modern UI Components
DashboardKPIs: Hero section with 4 KPI cards featuring:
TestRunPerformance: Recent test runs in compact cards:
ActivityTimeline: Comprehensive activity feed showing:
started_attimestamp)📈 Technical Improvements
getComprehensiveTestResultsStatscreated_atandupdated_atto Task interface🗑️ Removed
📊 Dashboard Layout
🎯 User Benefits
🔴 Critical: Missing Timestamps on Tasks & Test Sets
The
/api/tasksand/api/test-setsendpoints arenot consistently returningcreated_atandupdated_attimestamps. This causes issues in the Activity Timeline where items without timestamps are sorted to the bottom with a fallback date of2000-01-01.Workaround implemented (temporary):
2000-01-01T00:00:00ZTask missing timestamp (will be sorted to bottom)Required fix (choose one):
Option A: Fix existing endpoints
/api/tasksalways returnscreated_atandupdated_at/api/test-setsalways returnscreated_atandupdated_atOption B: Create dedicated timeline endpoint (recommended)
/api/timelineor/api/activity-feed🧪 Testing
📦 Dependencies
@mui/x-charts(already in package.json)🔄 Migration Notes