Skip to content

Jaden: fix dark mode implementation for PR Dashboard (DONE Jaden) - #5467

Open
Jaden300 wants to merge 1 commit into
developmentfrom
Jaden_Task1333_PRDashboard_DarkModeFix
Open

Jaden: fix dark mode implementation for PR Dashboard (DONE Jaden)#5467
Jaden300 wants to merge 1 commit into
developmentfrom
Jaden_Task1333_PRDashboard_DarkModeFix

Conversation

@Jaden300

@Jaden300 Jaden300 commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Jaden: fix dark mode implementation for PR Dashboard (DONE Jaden)- #5467

Description

Follow-up fixes for PR #5120 - Task #1333 (Priority High)

Fixes incorrect dark mode implementation across the PR Dashboard pages introduced in #5120.

Related PRs

Main changes

PRReviewTeamAnalytics.jsx

  • Fixed mapStateToProps: was passing entire Redux state as a prop (state => ({ state })); now correctly extracts only darkMode: state.theme.darkMode
  • Replaced all inline style dark mode overrides with CSS module .dark class toggling (consistent with the rest of the codebase)
  • Recharts SVG fill/stroke remain as JS values - CSS cannot target SVG attributes rendered by Recharts

PRReviewTeamAnalytics.module.css

  • Added .dark variant classes for container, title, labels, tooltip, insights panel, loading/error/empty states, and spinner

DurationFilter.jsx

  • Removed all inline style props (color, backgroundColor, borderColor)
  • Now uses styles.dark CSS module class toggled by the darkMode prop

DurationFilter.module.css

  • Added .dark variant classes for label, select input, and dropdown icon

Header.jsx

How to test

  1. Check out branch Jaden_Task1333_PRDashboard_DarkModeFix
  2. npm install && npm run start:local
  3. Log in as admin, enable dark mode
  4. Navigate to each PR Dashboard page via the PR Dashboard dropdown
  5. Verify dark mode applies correctly on all pages - no white/light flashes, correct background and text colors
  6. Toggle dark mode off and verify light mode is correct
  7. Verify the DurationFilter dropdown in PR Analytics respects dark mode
vod.mov

- Fix PRReviewTeamAnalytics mapStateToProps to extract only darkMode
  instead of passing entire Redux state as prop
- Replace all inline style dark mode overrides in PRReviewTeamAnalytics
  and DurationFilter with CSS module .dark class toggles
- Add .dark variant classes to PRReviewTeamAnalytics.module.css and
  DurationFilter.module.css for all hardcoded light-mode colors
- Keep Recharts SVG fill/stroke as JS values - CSS cannot target SVG
  attributes rendered by Recharts
- Remove leftover debug console.log statements from Header.jsx resize
  handler that were not cleaned up in PR #5120
@netlify

netlify Bot commented Aug 23, 2026

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 031d458
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6a8a8857acb79200081bdd10
😎 Deploy Preview https://deploy-preview-5467--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud

Copy link
Copy Markdown

@Jaden300 Jaden300 changed the title Jaden: fix dark mode implementation for PR Dashboard - Task #1333 (follow-up to PR #5120) Jaden: fix dark mode implementation for PR Dashboard - Task #1333 (DONE Jaden) Aug 28, 2026
@Jaden300 Jaden300 changed the title Jaden: fix dark mode implementation for PR Dashboard - Task #1333 (DONE Jaden) Jaden: fix dark mode implementation for PR Dashboard (DONE Jaden) Aug 28, 2026
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.

1 participant