Skip to content

Feature/mock service layer#483

Merged
robertocarlous merged 4 commits into
Neurowealth:mainfrom
johnsmccain:feature/mock-service-layer
Jun 23, 2026
Merged

Feature/mock service layer#483
robertocarlous merged 4 commits into
Neurowealth:mainfrom
johnsmccain:feature/mock-service-layer

Conversation

@johnsmccain

Copy link
Copy Markdown
Contributor

Close #474

Summary:

Created shared error model with standardized error codes (NETWORK_ERROR, TIMEOUT, UNAUTHORIZED, etc.)
Implemented base service adapter with:
Retry logic with exponential backoff
Configurable simulated latency (200-800ms default)
Configurable failure simulation
Centralized error handling
Implemented mock services:
AuthService: login, signup, logout, token refresh, email verification, password reset
PortfolioService: portfolio management, history tracking, asset add/remove
StrategyService: strategy listing, allocations, performance tracking
TransactionService: transaction creation, filtering, stats, cancellation

- Create demo page at /demo/notifications with mock triggers
- Add toast queue with success, info, warning, error variants
- Add inline banner examples with all variants
- Include mock flows for save, failure, and timeout scenarios
- Display accessibility features and stacking limit controls

Closes Neurowealth#477
- Fix Switch component to meet 44px minimum touch target requirement
- Update demo page to include notification center with preferences
- Notification center already implements pagination and read/unread states
- Preference updates persist in localStorage via useNotificationPreferences hook
- Notification items show title, timestamp, status icon, and action buttons
- Unread items have clear visual distinction with left border accent

Closes Neurowealth#476
- Create release checklist data structure and types
- Build checklist page with functional and visual checks sections
- Add known issues section with severity levels
- Implement sign-off fields for product, design, and engineering
- Add export summary functionality for release notes (markdown download)
- Ensure responsive design for desktop and mobile views
- Checklist rows with status chips and assignee fields
- Progress tracking with visual progress bar

Closes Neurowealth#475
- Create shared error model and types for consistent error handling
- Implement base service adapter with retry logic and failure simulation
- Add auth mock service with login, signup, logout, and token refresh
- Add portfolio mock service with asset management and history
- Add strategy mock service with allocations and performance tracking
- Add transaction mock service with creation, filtering, and stats
- Document adapter contract for future backend integration
- Support configurable latency simulation and failure rates
- Provide clear migration path from mock to real API services

Closes Neurowealth#474
@drips-wave

drips-wave Bot commented Jun 23, 2026

Copy link
Copy Markdown

@johnsmccain Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@robertocarlous robertocarlous merged commit a8f4cc6 into Neurowealth:main Jun 23, 2026
1 check failed
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.

Implement frontend mock data layer and service adapters

2 participants