Skip to content

Fix bugs, UI tweaks, and update DB reset script#34

Merged
eteitelbaum merged 1 commit intomainfrom
fix/bugs-and-quick-wins
Feb 13, 2026
Merged

Fix bugs, UI tweaks, and update DB reset script#34
eteitelbaum merged 1 commit intomainfrom
fix/bugs-and-quick-wins

Conversation

@eteitelbaum
Copy link
Member

Summary

  • Fix multi-position job visibility: Jobs with multiple positions no longer disappear from "Posted Jobs" after the first contract deploys. Backend now checks positions_available before transitioning status; frontend also shows in_progress jobs with open positions as a safety net.
  • Fix idle timeout logout: Warning modal appeared but logout never fired. Root causes: async onTimeout wasn't awaited (unmount race), and onTimeout in useCallback deps caused React StrictMode to restart timers. Fixed with onTimeoutRef + async/await.
  • Update DB reset script: Added 7 missing tables (deployed_contracts, payment_transactions, oracle_verifications, dispute_history, mediators, contract_templates, job_postings) to resetDb.js and DATABASE_RESET.md.
  • UI tweaks: Fix positions helper text, scrollable admin employer review, reorder oracle display on employer landing page.
  • Notes: Add master plan and mark resolved todos.

Test plan

  • Employer landing page: oracles display as Manual, Time Clock, Image, Weight, GPS, Custom
  • Admin employers page: company description scrolls instead of truncating
  • Job creation wizard: positions helper text reads "Enter the number of workers you need for this role"
  • Idle timeout: warning appears after inactivity, auto-logout fires when countdown expires
  • Multi-position jobs: job stays visible in Posted Jobs after first contract deploys (requires multi-position test data)

🤖 Generated with Claude Code

- Fix multi-position job visibility: jobs stay active until all positions
  have deployed contracts, preventing premature disappearance from Posted Jobs
- Fix idle timeout logout: use ref for onTimeout callback and async/await
  to prevent unmount race and StrictMode timer restarts
- Update DB reset script with all 12 tables (was only 5)
- Update DATABASE_RESET.md to match current table list
- Fix positions helper text (remove misleading "1 or 50+" language)
- Replace line-clamp with scrollable container on admin employer review
- Reorder oracle display on employer landing page to dev priority order
- Add master plan and resolved status to todo notes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@eteitelbaum eteitelbaum merged commit 68f5bc1 into main Feb 13, 2026
3 checks passed
@eteitelbaum eteitelbaum deleted the fix/bugs-and-quick-wins branch February 13, 2026 22:38
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.

1 participant