Skip to content

fix(ui): polish console surfaces#2204

Open
riderx wants to merge 4 commits into
mainfrom
codex/ui-polish-tweaks
Open

fix(ui): polish console surfaces#2204
riderx wants to merge 4 commits into
mainfrom
codex/ui-polish-tweaks

Conversation

@riderx
Copy link
Copy Markdown
Member

@riderx riderx commented May 11, 2026

Summary (AI generated)

  • Tightened shared console UI surfaces: nav buttons, tab bars, table toolbars, table action buttons, chart cards, and organization settings spacing.
  • Added accessible labels/current-state metadata for tab and table icon controls.
  • Added headless before/after screenshots for the changed page families under docs/pr-screenshots/ui-polish-tweaks/.

Motivation (AI generated)

Small shared polish changes improve the feel of the Capgo console without redesigning the product: larger touch targets, clearer focus states, less cramped tables, more consistent chart cards, and better settings page density.

Business Impact (AI generated)

The console should feel more stable and easier to operate across dashboard, app, table, and settings workflows. This reduces small UX friction for developers managing releases while keeping the existing Capgo visual language intact.

Screenshots (AI generated)

Page Before After
Login Login before Login after
Dashboard Dashboard before Dashboard after
Apps Apps before Apps after
App detail App detail before App detail after
Organization settings Organization settings before Organization settings after

Test Plan (AI generated)

  • bun lint
  • bun typecheck
  • bun run build
  • Captured headless before/after screenshots against local seeded data.
  • Wait for GitHub CI to finish while PR is draft, then mark ready when green.

Summary by CodeRabbit

  • Accessibility

    • Added ARIA labels and attributes to action buttons and navigation elements for improved assistive technology support.
  • Style

    • Updated button sizing and padding across action buttons and navigation components.
    • Refined theme colors and typography settings.
    • Adjusted layout spacing in the settings interface and dashboard components.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 11, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 03dc56ab-4135-4d67-97ba-5f410ce910e8

📥 Commits

Reviewing files that changed from the base of the PR and between 02661e2 and dd6be4d.

📒 Files selected for processing (1)
  • src/components/Sidebar.vue

📝 Walkthrough

Walkthrough

This PR refines the design system by updating DaisyUI theming, Tailwind tokens (including letter-spacing to 0), and applying those changes across navigation, tabs, tables, and settings. It simultaneously enhances accessibility by adding ARIA labels to action buttons and current-state indicators to tabs.

Changes

Accessibility & Design System Updates

Layer / File(s) Summary
Design Tokens & DaisyUI Theming
src/styles/style.css
DaisyUI theme declarations reformatted to multi-line; theme color hex casing updated for capgolight and capgodark; serif font added, mono normalized, primary/accent/neutral tokens updated, and letter-spacing values changed to 0.
Accessibility: ARIA Labels & Current State
src/components/DataTable.vue, src/components/Tabs.vue, src/components/TabSidebar.vue
DataTable action buttons sanitize text and compute ARIA labels via new helpers; Tabs and TabSidebar buttons enhanced with type="button", aria-current, aria-label, and title for screen reader support.
Component Button & Layout Styling
src/components/Navbar.vue, src/components/Sidebar.vue, src/components/dashboard/ChartCard.vue, src/layouts/settings.vue
Navbar header/mobile buttons restyled with border/sizing/dark-mode classes; Sidebar tab buttons updated with group/touch-manipulation; ChartCard container responsive height and padding adjusted; Settings layout top padding reduced.
Organization Settings Button Sizing
src/pages/settings/organization/index.vue
Change-org-pic, copy-id, delete-org, and save-changes buttons increased to larger min-height and padding variants.
DataTable Pagination & Toolbar Layout
src/components/DataTable.vue
Pagination container styling adjusted for mobile-fixed mode; toolbar reload/filter, select-all/mass-delete, and search wrapper classes updated for new responsive layout.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Cap-go/capgo#2035: Updates to ChartCard.vue height and sizing strategy (responsive min-height adjustments).

Poem

🐰 With tokens refined and spacing set to naught,
Accessibility labels freshly wrought,
Tabs now whisper "I am here," aria-wise,
Buttons bloom in new attire—behold the prize!
A gentler grid, responsive and bright,
Styling polished from dawn to night. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix(ui): polish console surfaces' directly and clearly summarizes the main change—UI polish/refinements across console components—matching the actual changeset of styling updates to navigation, tabs, tables, charts, and settings.
Description check ✅ Passed The description includes a comprehensive Summary, Motivation, Business Impact, detailed Screenshots with before/after comparisons, and a Test Plan section with completed verification steps (lint, typecheck, build, screenshots). All required template sections are present and substantively filled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/ui-polish-tweaks

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

@codspeed-hq
Copy link
Copy Markdown
Contributor

codspeed-hq Bot commented May 11, 2026

Merging this PR will not alter performance

✅ 43 untouched benchmarks
⏩ 2 skipped benchmarks1


Comparing codex/ui-polish-tweaks (dd6be4d) with main (b0f3ab9)

Open in CodSpeed

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@riderx riderx force-pushed the codex/ui-polish-tweaks branch from d45be3c to 533b4a5 Compare May 11, 2026 11:42
Comment thread src/components/DataTable.vue Fixed
@riderx riderx force-pushed the codex/ui-polish-tweaks branch 2 times, most recently from 43a61ca to fe49277 Compare May 11, 2026 12:00
@riderx riderx force-pushed the codex/ui-polish-tweaks branch from fe49277 to 349425d Compare May 11, 2026 12:16
@riderx riderx marked this pull request as ready for review May 11, 2026 12:52
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/pages/admin/dashboard/replication.vue (1)

177-179: ⚡ Quick win

Hardcoded English strings should use i18n translation keys.

Lines 178, 196, and several table headers/labels use hardcoded English text instead of t('key') calls. As per coding guidelines, use translation keys only and add missing keys to messages/en.json.

Examples:

  • Line 178: "Logical replication slot lag monitoring"t('replication-slot-lag-monitoring')
  • Line 196: 'Refreshing...' / 'Refresh't('refreshing') / t('refresh')

Also applies to: 196-196

🤖 Prompt for 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.

In `@src/pages/admin/dashboard/replication.vue` around lines 177 - 179, Replace
hardcoded UI strings in the replication Vue template with i18n calls: change
"Logical replication slot lag monitoring" to
t('replication-slot-lag-monitoring'), change "Refreshing..." and "Refresh" to
t('refreshing') / t('refresh') and similarly convert any table headers/labels to
t(...) using descriptive keys; update messages/en.json with the new keys and
English values, and ensure the component imports/uses the i18n composable (t)
used elsewhere in this project so the template calls resolve correctly.
🤖 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 `@src/pages/admin/dashboard/replication.vue`:
- Around line 111-112: The thrown Error message is misleading because this path
now requires a Supabase session; update the error thrown when checking
session?.access_token so it no longer mentions the "replication secret" and
instead clearly states that a valid Supabase session/access token is required
(e.g., "No Supabase session available; replication requires a valid access
token"). Locate the check using session?.access_token in replication.vue and
replace the error text accordingly.

---

Nitpick comments:
In `@src/pages/admin/dashboard/replication.vue`:
- Around line 177-179: Replace hardcoded UI strings in the replication Vue
template with i18n calls: change "Logical replication slot lag monitoring" to
t('replication-slot-lag-monitoring'), change "Refreshing..." and "Refresh" to
t('refreshing') / t('refresh') and similarly convert any table headers/labels to
t(...) using descriptive keys; update messages/en.json with the new keys and
English values, and ensure the component imports/uses the i18n composable (t)
used elsewhere in this project so the template calls resolve correctly.
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: bc629d6c-6b3f-49fe-b77a-570a2806528c

📥 Commits

Reviewing files that changed from the base of the PR and between b0f3ab9 and 349425d.

⛔ Files ignored due to path filters (10)
  • docs/pr-screenshots/ui-polish-tweaks/app-detail-after.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/app-detail-before.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/apps-after.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/apps-before.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/dashboard-after.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/dashboard-before.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/login-after.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/login-before.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/settings-organization-after.png is excluded by !**/*.png
  • docs/pr-screenshots/ui-polish-tweaks/settings-organization-before.png is excluded by !**/*.png
📒 Files selected for processing (10)
  • src/components/DataTable.vue
  • src/components/Navbar.vue
  • src/components/Sidebar.vue
  • src/components/TabSidebar.vue
  • src/components/Tabs.vue
  • src/components/dashboard/ChartCard.vue
  • src/layouts/settings.vue
  • src/pages/admin/dashboard/replication.vue
  • src/pages/settings/organization/index.vue
  • src/styles/style.css

Comment thread src/pages/admin/dashboard/replication.vue Outdated
riderx added 2 commits May 11, 2026 14:59
# Conflicts:
#	src/components/Sidebar.vue
#	src/pages/admin/dashboard/replication.vue
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@KCDaemon KCDaemon left a comment

Choose a reason for hiding this comment

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

Reviewed the UI-polish diff with focus on behavior risk rather than the screenshot assets. The changes are limited to touch-target sizing, focus/ARIA metadata, table overflow handling, ChartCard spacing, and settings-page button sizing; I did not find a new functional blocker in the touched components.\n\nVerification performed here:\n- passes.\n- Reviewed the code-only diff for DataTable, Navbar, Sidebar, TabSidebar, Tabs, ChartCard, settings layout, organization settings page, and style.css.\n\nThe one i18n cleanup around replication labels is already covered by the existing CodeRabbit comment, so I am not duplicating that thread.

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.

3 participants