feat: add token balance display for employer#1
Open
Julianemeka wants to merge 16 commits into
Open
Conversation
- 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
feat: implement dark mode support
…rd-232 feat: build onboarding wizard for new employers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes Vera3289#237
Changes
useTokenBalancehook fetches employer's token balance from the token contractStreamCreationForm