Repository navigation
feat(platform): complete W7 API client, errors, PWA, and i18n - #157
afeezorobsco-cyber merged 4 commits into
Conversation
ade5ad5 to
aeffdb2
Compare
|
@SantanFeli 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! 🚀 |
|
@SantanFeli Thanks for the PR. It can't be merged yet. To unblock it: Merge conflicts: this branch conflicts with Push to this same branch and CI will re-run. Once it's green and conflict-free, it'll be reviewed for merge. |
Malware scan: passed, with notes for the reviewerNothing malicious was detected in
|
- Merge upstream/main (f2f9b57) into feat/w7-platform-api-client-errors-pwa-i18n - Keep typed @docforum/api-client with error envelope, timeouts, GET dedupe, abort wiring - Keep i18n (useT, react-intl, lazy locale bundles), PWA, error boundaries, useErrorMessage - Resolve component/page conflicts: prefer upstream feature structure, re-apply i18n ids - Update ARCHITECTURE_ESSENTIALS.md: take upstream hard rule 1 + API client behaviour; keep Generated contract + Privacy sections - Update ROADMAP.md: merge both changelogs - Fix typecheck, test, check:i18n, build, check:dist, check:stellar-boundary
- Move UpdatePromptContainer inside I18nProvider to fix React Intl crash - Wrap DeleteAccountSection policy items in <li> for axe compliance - Update journey test to expect localized recoverable error message - Add mobile header responsive wrap (≤639px) to prevent horizontal overflow - Regenerate all visual snapshots for desktop and mobile All 79 Playwright tests pass; unit tests, typecheck, i18n check green.
…search-with-autocomplete Resolve conflicts with upstream's W7 i18n work (DocForum#157, DocForum#151): keep the PR's Find-a-doctor nav item and dashboard link, adopt upstream's t()/messageId convention for both, and register nav.findADoctor and patient.nav.findDoctor in the en and es catalogues so check:i18n stays green.
What changed
Closes #83
Closes #84
Closes #86
Closes #87
This completes the W7 platform quality work:
@docforum/api-clientworkspace package from the OpenAPI fixture. Every service now routes through the typed client,src/types/models.tsre-exports generated schemas, and payment BigInt values remain strings.src/services/api-client.tsas the single transport boundary for base URL, credentials, auth headers, response parsing, and typed error envelopes. Added a warn-only client-versus-backend spec version check to CI.ROADMAP.mdandARCHITECTURE_ESSENTIALS.md; stale assumed endpoint contracts are replaced by the generated contract record.The changed screens continue the existing PRD §4 core flows for patient care continuity, doctor consultation/queue work, facility fulfillment, and custodial payment administration. The new platform UI is limited to the language switcher, error fallback, and PWA update prompt.
Validation
npm ci --ignore-scripts --offlinenpm run check:api-client— warn-only because the configured Render spec endpoint was unavailable in this environmentnpm run check:i18nnpm run typechecknpm test— 29 files, 134 testsnpm run build— production build anddist/sw.jsgeneratedgit diff --checkUI screenshots were not captured because this workspace has no browser or screenshot runtime available; the changed UI paths are covered by component tests and the production build.