2.3 KiB
2.3 KiB
Broker Accounts Page — Tasks
Tasks Checklist
-
Task 1: BrokerAllocationBar
- Replace
p.broker-allocation-bar__emptywith<Text tone="muted"> - Replace
div.broker-allocation-barwith<Box>container - Replace track and segment divs/spans with
<Box>components with MUIsxstyling - Replace legend and swatch elements with
<Box>and<Text>components - Verify BrokerAllocationBar compile state
- Replace
-
Task 2: BrokerAccountCard
- Replace
<SkeletonBlock>with<Skeleton>from@moex-vibe/design-system - Replace eyebrow with
<Text variant="label" tone="secondary"> - Replace title
h2with<Heading level={2}> - Replace error alert block with
<Alert severity="error">and a<Button> - Replace layout grids, stats, and card component with
<Box>withsx - Set component on
<Box>toLinkfromreact-router-domfor card wrapper - Ensure stat elements use proper Text styles and spacing
- Replace
-
Task 3: BrokerAccountsSummary
- Replace skeleton placeholders with
<Skeleton>from DS - Replace headers and subheaders with proper typography
- Convert layout container to
<Box>component withsxpositioning - Replace metrics detail grid with Box layout using custom margins and spacing
- Keep custom hero layout styles and replace text styling inside the hero with
<Box>and custom variables to ensure colors map correctly
- Replace skeleton placeholders with
-
Task 4: BrokerAccountsPage
- Replace layout containers and headers with
<Box>withsxflex/grid - Replace main title with
<Heading level={1}>and subtitle with<Text> - Replace empty state section with
<EmptyState>component - Replace error styling with
<Text tone="negative">
- Replace layout containers and headers with
-
Task 5: Clean up orphaned CSS
- Find and delete unused CSS selectors in
apps/frontend/src/styles.css - Verify reduced motion and max-width 720px responsive rules are cleanly updated without leaving dead rules
- Ensure we only leave rules for pages and components that have not yet been migrated
- Find and delete unused CSS selectors in
-
Task 6: Verification
- Run
npm run test:frontendand ensure all 111 tests pass - Run
npm run lint -w apps/frontendto verify ESLint compatibility - Run
npm run build:frontendto compile production assets and verify type safety
- Run