Skip to content

feat: add token balance display for employer#1

Open
Julianemeka wants to merge 16 commits into
mainfrom
feat/token-balance-display-237
Open

feat: add token balance display for employer#1
Julianemeka wants to merge 16 commits into
mainfrom
feat/token-balance-display-237

Conversation

@Julianemeka
Copy link
Copy Markdown
Owner

Closes Vera3289#237

Changes

  • New useTokenBalance hook fetches employer's token balance from the token contract
  • Balance displayed next to the deposit input in StreamCreationForm
  • Shows 'Insufficient balance' warning when deposit amount exceeds available balance
  • Balance refreshes automatically after a successful transaction

Julianemeka and others added 16 commits June 1, 2026 19:43
- Add useTokenBalance hook to fetch balance from token contract
- Display balance next to deposit input in StreamCreationForm
- Show 'Insufficient balance' warning when deposit exceeds balance
- Refresh balance after successful transaction
- Add OnboardingWizard component with 4-step flow:
  connect wallet → fund → configure → confirm
- Progress indicator with step icons
- Back navigation between steps
- Skippable; completion persisted in localStorage
- Wizard shown on first visit, hidden after first stream created
- Add inline script to index.html to apply theme before first paint,
  preventing flash of unstyled content on load
- useDarkMode hook (App.tsx) already handles:
  - prefers-color-scheme media query detection
  - Manual toggle persisted in localStorage
  - OS-level change listener (when no manual override set)
  - data-theme attribute applied to <html> for CSS variable switching
- CSS already has full [data-theme='dark'] variable overrides for all components
)

- docs/security/pentest-plan.md: full pentest plan covering OWASP Top 10,
  SQL injection, XSS, CSRF, auth bypass, and smart contract specific tests;
  includes findings log template and pre-launch severity gate
- docs/security/zap-automation.yml: OWASP ZAP Automation Framework config
  for spider + active scan + HTML/SARIF report generation
- .github/workflows/pentest.yml: CI workflow running cargo-audit, npm audit,
  Semgrep OWASP rules, and ZAP baseline scan on schedule and on demand
…-analytics-243

feat: employer analytics dashboard
…ctivity-feed-242

feat: stream activity feed
…port-241

feat: internationalization (i18n) support
…-wrapper-244

feat: REST API wrapper for stream contract
…t-332

feat: add security penetration testing
…rd-232

feat: build onboarding wizard for new employers
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.

Add token balance display for employer

3 participants