Skip to content

Improved merchant dashboard UI/UX - #75

Open
DeveloperAmrit wants to merge 4 commits into
DjedAlliance:mainfrom
DeveloperAmrit:ui-ux-1
Open

Improved merchant dashboard UI/UX#75
DeveloperAmrit wants to merge 4 commits into
DjedAlliance:mainfrom
DeveloperAmrit:ui-ux-1

Conversation

@DeveloperAmrit

@DeveloperAmrit DeveloperAmrit commented Jul 19, 2026

Copy link
Copy Markdown
Member

Addressed Issues:

Fixes #(TODO:issue number)

Screenshots/Recordings:

My.Movie.mp4

Additional Notes:

Refreshes the StablePay merchant dashboard into a cleaner, more professional fintech look while keeping the StablePay brand. Focuses on the dashboard's core purpose — letting merchants read payments received through StablePay.

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions
  • If applicable, I have made corresponding changes or additions to the documentation
  • If applicable, I have made corresponding changes or additions to tests
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contribution Guidelines
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.

AI Usage Disclosure

Check one of the checkboxes below:

  • [] This PR does not contain AI-generated code at all.
  • This PR contains AI-generated code. I have read the AI Usage Policy and this PR complies with this policy. I have tested the code locally and I am responsible for it.

I have used the following AI models and tools: Claude

⚠️ AI Notice - Important!

We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact. AI slop is strongly discouraged and may lead to banning and blocking. Do not spam our repos with AI slop.

Summary by CodeRabbit

  • New Features

    • Added text-size controls with four adjustable display scales, preserved between sessions.
    • Added text-size controls to the mobile header and sidebar.
    • Updated default theme behavior to follow the system setting.
  • UI Improvements

    • Refreshed dashboard colors, typography, spacing, shadows, cards, and responsive layout.
    • Improved transaction page styling and responsive filter-panel behavior.
    • Simplified transaction stat indicators with clearer directional icons.
    • Refined wallet and navigation header presentation.
  • Bug Fixes

    • Removed unnecessary theme-switching console output.
    • Reduced visible text-size changes during initial page loading.

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@DeveloperAmrit, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 41 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: b8e8e3e4-874f-4e0b-ba57-33967399ca15

📥 Commits

Reviewing files that changed from the base of the PR and between 5ec269a and 3a995cf.

📒 Files selected for processing (2)
  • dashboard/components/dashboard/stat/index.tsx
  • dashboard/hooks/use-font-scale.tsx

Walkthrough

The dashboard adds persisted font-size controls, defaults theme selection to the system setting, introduces Geist Sans, and updates global design tokens, responsive sizing, shared dashboard chrome, transaction surfaces, statistics, and filter-panel styling.

Changes

Dashboard UI and accessibility controls

Layer / File(s) Summary
Font scaling and theme wiring
dashboard/hooks/use-font-scale.tsx, dashboard/providers.tsx, dashboard/app/layout.tsx, dashboard/components/text-size-control.tsx, dashboard/components/dashboard/mobile-header/index.tsx, dashboard/components/dashboard/sidebar/index.tsx, dashboard/hooks/use-theme-permissions.ts
Font scale options are persisted and applied through --font-scale, initialized before paint, exposed in mobile and sidebar controls, and paired with system theme defaults.
Global tokens and responsive sizing
dashboard/app/globals.css, dashboard/components/ui/card.tsx, .gitignore
Global fonts, palettes, shadows, responsive sizing, and card borders are updated; .claude/ is ignored.
Shared dashboard shell and controls
dashboard/components/dashboard/layout/index.tsx, dashboard/components/dashboard/stat/index.tsx, dashboard/components/theme-toggle-simple-click.tsx, dashboard/components/dashboard/sidebar/index.tsx
Shared headers, wallet labels, statistics indicators, and theme cycling receive updated layout, typography, and rendering styles.
Transactions and filter surfaces
dashboard/app/transactions/page.tsx, dashboard/components/transactions/filter-panel.tsx
Transaction headings, summary cards, dialog titles, and filter-panel sizing and footer layout are restyled.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Operator
  participant TextSizeControl
  participant FontScaleProvider
  participant localStorage
  participant DocumentRoot
  Operator->>TextSizeControl: Select font scale
  TextSizeControl->>FontScaleProvider: setFontScale(value)
  FontScaleProvider->>DocumentRoot: Set --font-scale
  FontScaleProvider->>localStorage: Persist value
  FontScaleProvider-->>TextSizeControl: Mark selected option
Loading

Possibly related PRs

Suggested labels: Typescript Lang

Poem

I’m a rabbit with fonts that can grow,
With light and dark themes in tow.
Cards shimmer bright,
Headers sit right,
And transactions hop in a row.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: a broad UI/UX refresh of the merchant dashboard.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@dashboard/components/dashboard/stat/index.tsx`:
- Around line 69-74: Update the direction pill className in the stat component
to include a default background and text color when intent is absent or
unrecognized, while preserving the existing positive, negative, and neutral
styles.
- Around line 76-80: Add an accessible trend-direction name around the icon-only
conditional in the stat component, exposing “up” or “down” text through an
aria-label or screen-reader-only content while hiding the decorative SVG from
assistive technology. Preserve the existing ArrowUpRight and ArrowDownRight
visual rendering.

In `@dashboard/hooks/use-font-scale.tsx`:
- Line 85: Update the FONT_SCALE_SCRIPT construction to derive its inline scale
map from the existing FONT_SCALES constant instead of hardcoding sm, base, lg,
and xl values. Preserve the current localStorage lookup and pre-paint
--font-scale behavior while ensuring future FONT_SCALES changes are reflected
automatically.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: ee72c04a-036f-4dfa-bc4a-5047e252994c

📥 Commits

Reviewing files that changed from the base of the PR and between b5b7e8b and 5ec269a.

📒 Files selected for processing (15)
  • .gitignore
  • dashboard/app/globals.css
  • dashboard/app/layout.tsx
  • dashboard/app/transactions/page.tsx
  • dashboard/components/dashboard/layout/index.tsx
  • dashboard/components/dashboard/mobile-header/index.tsx
  • dashboard/components/dashboard/sidebar/index.tsx
  • dashboard/components/dashboard/stat/index.tsx
  • dashboard/components/text-size-control.tsx
  • dashboard/components/theme-toggle-simple-click.tsx
  • dashboard/components/transactions/filter-panel.tsx
  • dashboard/components/ui/card.tsx
  • dashboard/hooks/use-font-scale.tsx
  • dashboard/hooks/use-theme-permissions.ts
  • dashboard/providers.tsx
💤 Files with no reviewable changes (1)
  • dashboard/components/theme-toggle-simple-click.tsx

Comment thread dashboard/components/dashboard/stat/index.tsx
Comment thread dashboard/components/dashboard/stat/index.tsx
Comment thread dashboard/hooks/use-font-scale.tsx Outdated

@Atharva0506 Atharva0506 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

2 participants