Repository navigation
feat(ui): establish component boundary with accessible tabs - #540
Conversation
|
@FenjuFu please resolve conflicts |
Define the component, CVA, theme and browser-test migration contracts. Ratchet existing Ionic imports and migrate shared entity datatable tabs to an app-owned CDK-backed primitive with keyboard and ARIA contract tests. Refs apache#530 Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
Make the initial UI import instructions agree with the new boundary: feature/shared code uses app-owned primitives, existing imports follow the migration baseline, and direct vendor imports belong to UI implementations. Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
Complete the mocked business-date endpoint and attach desktop/narrow screenshots after the tab panel stops loading. Product source remains unchanged. Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
Keep Ionic's imperative controllers behind OVERLAY inside src/app/ui and assert it in the boundary test. Use the themed --text-muted and a new --primary-text token so both tab states meet WCAG AA in light and dark. Only the selected tab names the shared panel in aria-controls, disabled tabs use aria-disabled so the strip always keeps one tab stop, and the datatables consumer selects the first named table. Record the guided-tour selector debt in ADR 0005 and in guidance.service. Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
c233ae5 to
11197fa
Compare
|
@Aman-Mittal Conflicts are resolved. The branch is rebased onto current There were two conflicts:
Checks I ran locally on the new head My earlier question about the tours is still open: should they move to the |
E2E — mocked backend🎭 E2E Tests✅ All green — 363 passed · 0 failed · 1 skipped · 1 known-failing, across 30 spec files in 7m 26s. 🔒 Known failuresMarked
By spec file
All 365 tests — click to expand
Slowest 10 — what the shard counts should be tuned against
📼 Download the HTML report, videos and traces — see the Generated by run 35418463022 from |
E2E — real Fineract🎭 E2E Tests✅ All green — 78 passed · 0 failed · 0 skipped, across 24 spec files in 6m 7s. By spec file
All 78 tests — click to expand
Slowest 10 — what the shard counts should be tuned against
📼 Download the HTML report, videos and traces — see the Generated by run 35418463022 from |
What and why
Shared custom-field tabs now use an app-owned component and test contract. Arrow keys move focus without fetching a table; Enter/Space activates the selected table. Native buttons and CDK handle keyboard navigation, disabled items and RTL, while the feature receives a table-name string and owns loading the panel.
This also establishes the first migration increment from #530: ADR 0005 specifies the complete component/CVA value, keyboard/ARIA, browser-helper, theming and rollout contracts; the Ionic import ratchet records existing use while rejecting new unsuppressed dependencies outside UI implementations. Existing Material/i18n restrictions and other-rule allowances are preserved. AGENTS.md and STYLE.md direct new feature/shared code through app/ui.
Refs #530. Remaining tab strips, popup controls, form CVAs, cosmetic primitives, deployment-token expansion and legacy browser helpers remain under the overall migration issue. This PR delivers the boundary and one independently verifiable behavioural primitive; it does not close that issue.
Verification
Final head:
e992e9b88315455bcd310dc6941946e3804f7e49.Local: 17 rendered Angular unit/integration tests and 3 ESLint boundary tests passed. App/E2E TypeScript checks, changed-source ESLint, formatting and git diff checks passed. Other lint-rule allowances were compared with the base and preserved.
Full fork CI passed on this head, including full unit suites, full lint/suppression pruning, production/container builds, API drift, translations, security, GA and license/RAT checks.
Full fork E2E passed on the same head: all mocked and real-Fineract shards, mobile and two-factor authentication. The new custom-field cases exercise the app-owned keyboard/panel contract at 1280px and 390px; they use mocked group data and attach screenshots after loading completes.
All three PR commits have matching FenjuFu noreply sign-offs and valid GitHub signatures. No generated API files were hand-edited. The upstream signed-commit check passed.
Upstream CI, E2E and CodeQL still require maintainer approval. The fork results above are independent evidence.
Screenshots
Unmodified image attachments from the passing new CI browser cases, showing the custom-field region after the panel finishes loading. Screenshots are stored on a separate review branch.
Desktop, 1280px viewport
Narrow, 390px viewport
AI assistance (optional)
Tool: Codex.
Harness / workflow: assisted implementation and review, targeted local checks, and full fork GitHub Actions validation.
Checklist
I did not hand-edit generated files under src/app/api/.
Feature translation uses the core adapter; DOM/focus behaviour is confined to the app/ui primitive.
User-facing static strings use translation keys; registered table names remain user data.
Added rendered unit, import-boundary and browser contract tests.
UI changes have browser coverage; full mocked and real-backend suites passed.
Commits are signed and contain matching sign-offs.
Followed the AI-assisted contributions guidance.