Skip to content

docs: extend frontend pages and components UX specification#18

Open
ReinaMaze wants to merge 1 commit into
Pi-Defi-world:mainfrom
ReinaMaze:docs/frontend-pages-extended
Open

docs: extend frontend pages and components UX specification#18
ReinaMaze wants to merge 1 commit into
Pi-Defi-world:mainfrom
ReinaMaze:docs/frontend-pages-extended

Conversation

@ReinaMaze

@ReinaMaze ReinaMaze commented Jun 18, 2026

Copy link
Copy Markdown

close #10

Summary by CodeRabbit

  • Documentation
    • Expanded frontend implementation guidelines with comprehensive coverage of dashboard design, component library, form patterns, navigation structure, state management, API integration, accessibility requirements, testing strategy, deployment procedures, and maintenance policies.

- Add dashboard and home page structure with components
- Define component library and design tokens standards
- Document forms, validation, modals, and overlay patterns
- Specify notification and feedback system
- Complete navigation routing tree with protected routes
- Define state management approach
- Add API integration guidelines
- Include security and best practices section
- Document WCAG 2.1 AA accessibility requirements
- Add performance optimization techniques
- Define testing strategy and coverage targets
- Cover error scenarios and edge cases
- Add onboarding flow specifications
- Include mobile-first design considerations
- Document internationalization (i18n) approach
- Define analytics and monitoring strategy
- Specify deployment and environment setup
- List known gaps and next priorities
- Add maintenance and versioning guidelines
- Include FAQ and common patterns
- Add resource links to related documentation
@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md is expanded by 514 lines, adding sections 23–44 as an implementation framework. New content covers the Dashboard page, component/design-token conventions, forms, modals, notifications, navigation/routing with route guards, state management, API integration, security, accessibility, performance, testing strategy, error handling, onboarding, mobile, i18n, analytics, deployment environments, known gaps, maintenance policy, FAQ, and a resources section.

Changes

Frontend UX Implementation Framework

Layer / File(s) Summary
UI foundations: dashboard, component library, forms, modals, notifications
USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md
Adds Dashboard & Home page widget list and user flow, Component library & design tokens conventions, Forms & validation patterns (multi-step wizard, OTP, file upload), Modals & overlays behaviors, and Notifications & feedback conventions with durations.
Navigation/routing, state management, and API integration
USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md
Adds a React Router-style route map with auth/segment/validator route-guard rules, State management recommendations (auth context, React Query, React Hook Form with code samples), and API integration documentation covering base URL, headers, response handling by status class, and rate-limit header behavior.
Security, accessibility, performance, testing, and error handling
USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md
Adds Security & best practices table, Accessibility (WCAG 2.1 AA) requirements, Performance & optimization recommendations with Core Web Vitals targets, Testing strategy table, and Error scenarios & edge cases table mapping failure conditions to UI handling expectations.
Onboarding, mobile, i18n, analytics, deployment, gaps, maintenance, FAQ, and resources
USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md
Adds Onboarding flow guidance, Mobile-first considerations, i18n approach with locale structure and useTranslation snippet, Analytics event list, Deployment environments table with checklist and rollback plan, Known gaps checklist, Maintenance & versioning policy, FAQ Q&A entries, Resources & links, and updated footer metadata.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 Hop, hop, I've filled the page with care,
From dashboards to i18n, a framework's there!
Route guards and toasts and WCAG AA,
Performance metrics lined up in a row.
The docs grew long, the rabbit grew proud —
Now future devs need never wonder aloud! 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately describes the main change: extending the frontend pages and components UX specification document with comprehensive new content.
Linked Issues check ✅ Passed The PR successfully addresses issue #10 by completing the backend endpoints mapped to frontend pages documentation with comprehensive frontend architecture and UX specifications.
Out of Scope Changes check ✅ Passed All changes are within scope: the PR extends the UX specification document to fulfill issue #10's requirement for comprehensive frontend pages and components documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ 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 and usage tips.

Warning

⚠️ This pull request shows signs of AI-generated slop (description_diff_mismatch). It has been flagged by CodeRabbit slop detection and should be reviewed carefully.

@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: 1

🧹 Nitpick comments (3)
USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md (3)

714-714: 💤 Low value

Standardize "sign-in" and "sign-out" terminology.

Line 714 uses "signin" and "signout" (no space/hyphen), but earlier sections use "Sign in" (two words, line 14), "sign in" (line 305), and "sign out" (line 16). Standardize throughout the document to one convention: either "sign-in" / "sign-out" (hyphenated) or "sign in" / "sign out" (two words). Hyphenated is preferred for consistency with technical terminology elsewhere (e.g., "2FA" in line 15).

🤖 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 `@USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md` at line 714, The document
uses inconsistent terminology for authentication actions: line 714 contains
"signin" and "signout" (without spaces or hyphens), while other sections use
"Sign in", "sign in", and "sign out" (two words or with capitals). Standardize
the entire document by replacing all instances of "signin" with "sign-in" and
"signout" with "sign-out" (hyphenated format), as this is the preferred
convention and aligns with technical terminology like "2FA" used elsewhere in
the document. Search and replace all variations of these terms globally to
ensure consistency.

Source: Linters/SAST tools


796-796: 💤 Low value

Add comma after year in date format.

Line 796 should follow the month-day-year format convention by adding a comma after the year: June 18, 2026, (per Chicago Manual of Style and similar guides). This applies when the date is followed by additional text on the next clause.

🤖 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 `@USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md` at line 796, The date "June
18, 2026" in the "Last updated:" line needs proper punctuation formatting
according to the Chicago Manual of Style. Add a comma after the year to change
it from "June 18, 2026" to "June 18, 2026," when the date is followed by
additional text on the next clause. Update the Last updated line to include the
comma after the year.

Source: Linters/SAST tools


385-452: 💤 Low value

Add language specification to fenced code blocks.

Lines 385–452 and 643–649 contain file/directory tree structures without a language identifier. Per markdownlint MD040, add a language spec for consistency and tooling compatibility.

-\`\`\`
+\`\`\`plaintext
 /
 ├── /auth

Apply the same fix to line 643.

Also applies to: 643-649

🤖 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 `@USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md` around lines 385 - 452, The
fenced code blocks containing the directory tree structures are missing language
identifiers, which violates markdownlint rule MD040. Add a language
specification immediately after the opening triple backticks for both code
blocks: the one at lines 385-452 (containing the main routing structure starting
with / and auth, dashboard sections) and the second one at lines 643-649. Use an
appropriate language identifier such as text or plaintext by changing the
opening fence from ``` to ```text to indicate the code block type and ensure
consistency with markdown linting standards.
🤖 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 `@USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md`:
- Line 491: The documentation at line 491 mentions a vague "test endpoint for
dev" without specifying the actual API base URL, and the environment table at
lines 688–691 lists frontend URLs but lacks corresponding API backend URLs and
configuration guidance. Replace the vague reference with explicit API base URLs
for each environment (development, staging, production), and add a clear section
documenting how to configure the NEXT_PUBLIC_API_BASE_URL environment variable
for each deployment target (e.g., localhost:3001/v1 for development,
api-staging.acbu.app/v1 for staging, api.acbu.app/v1 for production). Ensure the
environment table and configuration section work together to provide complete,
actionable guidance.

---

Nitpick comments:
In `@USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md`:
- Line 714: The document uses inconsistent terminology for authentication
actions: line 714 contains "signin" and "signout" (without spaces or hyphens),
while other sections use "Sign in", "sign in", and "sign out" (two words or with
capitals). Standardize the entire document by replacing all instances of
"signin" with "sign-in" and "signout" with "sign-out" (hyphenated format), as
this is the preferred convention and aligns with technical terminology like
"2FA" used elsewhere in the document. Search and replace all variations of these
terms globally to ensure consistency.
- Line 796: The date "June 18, 2026" in the "Last updated:" line needs proper
punctuation formatting according to the Chicago Manual of Style. Add a comma
after the year to change it from "June 18, 2026" to "June 18, 2026," when the
date is followed by additional text on the next clause. Update the Last updated
line to include the comma after the year.
- Around line 385-452: The fenced code blocks containing the directory tree
structures are missing language identifiers, which violates markdownlint rule
MD040. Add a language specification immediately after the opening triple
backticks for both code blocks: the one at lines 385-452 (containing the main
routing structure starting with / and auth, dashboard sections) and the second
one at lines 643-649. Use an appropriate language identifier such as text or
plaintext by changing the opening fence from ``` to ```text to indicate the code
block type and ensure consistency with markdown linting standards.
🪄 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: 3d06308c-72cb-499b-a843-ec6d8a7068e9

📥 Commits

Reviewing files that changed from the base of the PR and between e5686e1 and 198a141.

📒 Files selected for processing (1)
  • USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md


## 30. API integration

**Base URL:** `https://api.acbu.app/v1` (or test endpoint for dev).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Search for environment configuration examples or docs
fd -type f '(\.env|config|environment|setup)' -e md -e js -e ts | head -20
rg -i 'api\.acbu\.app|staging|production' --type=md --type=js --type=ts -C2 | head -40

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 3925


🏁 Script executed:

# First, find and read the specific file
fd -type f 'FRONTEND_PAGES_COMPONENTS_UX.md' 2>/dev/null | head -5

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 58


🏁 Script executed:

# Search for environment configuration and API endpoint documentation
fd -type f \( -name '.env*' -o -name 'config*' -o -name '*setup*' \) -e md -e txt -e js -e ts 2>/dev/null | head -20

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 58


🏁 Script executed:

# Search for references to these specific API URLs across the repo
rg 'api\.acbu\.app|staging\.acbu\.app|app\.acbu\.app' -C 3 2>/dev/null | head -60

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 1237


🏁 Script executed:

# Search for backend/API documentation or configuration references
fd -type f -e md | xargs grep -l -i 'backend.*url\|api.*endpoint\|env.*config\|.env' 2>/dev/null | head -10

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 247


🏁 Script executed:

# Check for any deployment or configuration docs
fd -type f -e md | xargs grep -l -i 'deploy\|environment\|staging\|production' 2>/dev/null | grep -v 'FRONTEND'

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 247


🏁 Script executed:

# Look for any backend or infra documentation
fd -type f -e md | head -20

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 247


🏁 Script executed:

# List all markdown files to understand repo structure
find . -type f -name '*.md' | head -20

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 644


🏁 Script executed:

# Search for API backend documentation or configuration
grep -r 'api.*acbu\.app\|backend.*url\|api.*endpoint' --include='*.md' 2>/dev/null | head -30

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 192


🏁 Script executed:

# Check if there's a deployment or backend setup guide
grep -r 'staging\|production\|environment' --include='*.md' 2>/dev/null | grep -i 'api\|backend\|url' | head -20

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 1876


🏁 Script executed:

# Read ENV_VARS.md to see API endpoint configuration
cat ENV_VARS.md

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 11392


🏁 Script executed:

# Check for API endpoint configuration in backend setup docs
grep -r 'API.*URL\|api.*endpoint\|REACT_APP' --include='*.md' 2>/dev/null | grep -i 'staging\|production\|dev' | head -20

Repository: Pi-Defi-world/ACBU-DOCUMENTATION

Length of output: 436


Document API backend URLs for each environment and frontend configuration.

Line 491 specifies https://api.acbu.app/v1 but omits the vague "(or test endpoint for dev)." The environment table at lines 688–691 lists frontend URLs (localhost:3000, staging.acbu.app, app.acbu.app) but provides no corresponding API backend URLs or instructions for configuring the NEXT_PUBLIC_API_BASE_URL environment variable.

Add:

  • API base URL for staging (e.g., https://api-staging.acbu.app/v1)
  • API base URL for development (e.g., http://localhost:3001/v1 or similar)
  • Explicit environment configuration guidance (e.g., how to set NEXT_PUBLIC_API_BASE_URL per deployment)
🤖 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 `@USER_EXPERIENCE/FRONTEND_PAGES_COMPONENTS_UX.md` at line 491, The
documentation at line 491 mentions a vague "test endpoint for dev" without
specifying the actual API base URL, and the environment table at lines 688–691
lists frontend URLs but lacks corresponding API backend URLs and configuration
guidance. Replace the vague reference with explicit API base URLs for each
environment (development, staging, production), and add a clear section
documenting how to configure the NEXT_PUBLIC_API_BASE_URL environment variable
for each deployment target (e.g., localhost:3001/v1 for development,
api-staging.acbu.app/v1 for staging, api.acbu.app/v1 for production). Ensure the
environment table and configuration section work together to provide complete,
actionable guidance.

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.

FRONTEND_PAGES_COMPONENTS_UX.MD

2 participants