summaryrefslogtreecommitdiff
path: root/src/client
AgeCommit message (Collapse)Author
2026-10-04chore(deps): upgrade digiid-ts to 4.0.0 and update deps to latest stablePawel Zelawski
- digiid-ts 3.0.3 -> 4.0.0 (public API unchanged; requires Node >=22.12.0) - Raise engines.node and .nvmrc to Node 22; update README prerequisite - Bump vitest/@vitest/coverage-v8 to 5, jsdom to 30, dotenv to 18, vite to 8.3, eslint to 10.12, react to 19.3, and other dev tooling - Hold TypeScript at 6.0.3 (typescript-eslint caps at <6.1.0) - Refresh overrides with patched transitive deps, dropping stale pins - Reformat utils.ts to satisfy prettier 3.9 Remaining audit finding (braces via nodemon/chokidar) has no upstream fix.
2026-05-23feat: harden demo security and add full test suitePawel Zelawski
2026-05-23chore: upgrade digiid-ts to v3 and stabilize dev/build scriptsPawel Zelawski
2025-04-10refactor: improve layout and spacing across all viewsPawel Zelawski
- Remove extra space at the top of the page by adjusting body and root styles - Add consistent 20px top padding to all views through app-container - Simplify layout structure by removing unnecessary flex containers - Adjust spacing between elements for better visual hierarchy: - Reduce gaps between elements from 1.5rem to 1rem - Reduce bottom margin of h1 from 1.5rem to 1rem - Remove negative margins and extra padding - Maintain consistent box dimensions (390px width, 560px height) for all views - Ensure proper spacing for QR code and other content within views
2025-04-10feat(client): implement react frontend applicationPawel Zelawski
- Created main entry point `src/client/main.tsx`. - Created main `App` component `src/client/App.tsx`. - Implemented state management (`initial`, `waiting`, `success`, `failed`) using `useState`. - Implemented `handleStart` to call backend `/api/digiid/start` and transition to `waiting` state. - Implemented `useEffect` hook for polling backend `/api/digiid/status/:sessionId` in `waiting` state. - Updates UI state based on polling response (`success`/`failed`). - Handles polling errors and cleanup. - Implemented `handleReset` to return to `initial` state. - Implemented views for each state: - `initial`: Welcome message, Start button. - `waiting`: QR code display, status message, Cancel button. - `success`: Success message, verified address, address type, Start Over button. - `failed`: Failure message, error details, Try Again button. - Added client-side address type helper `getDigiByteAddressType` in `src/client/utils.ts`. - Added basic CSS styling in `src/client/index.css` with light/dark mode support. - Added frontend-related scripts (`dev:frontend`, `dev`, `build`, `lint`, `preview`) to `package.json`. - Fixed linter type issue with `setInterval` return value.