Skip to content

Agentic coding improvements#61

Merged
danbim merged 26 commits intomainfrom
agentic-coding-improvements
Jan 31, 2026
Merged

Agentic coding improvements#61
danbim merged 26 commits intomainfrom
agentic-coding-improvements

Conversation

@danbim
Copy link
Owner

@danbim danbim commented Jan 31, 2026

No description provided.

danbim and others added 26 commits January 30, 2026 11:06
Instead of passing isOnline through every component and disabling
individual buttons, a single OfflineGuard component renders a
semi-transparent overlay that blocks all pointer interaction when
offline. Components no longer need to know about connectivity status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
  Add scripts and configuration for automatic worktree setup:
  - worktree-init.sh detects worktrees and assigns unique ports via hash
  - post-checkout hook triggers init on branch checkout
  - Make Vite/API ports configurable via VITE_DEV_PORT and VITE_API_PORT
  - Fix hardcoded ports in websocket.ts and viewerUrl.ts
  - Update .envrc to load .env.local for secrets
  - Add husky prepare script, set core.hooksPath to .husky

  Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…move deprecated completeHeat

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
All repository factory functions now require a DbConnection parameter.
Updated test files to pass the test database instance to factories:
- Added getTestDb() helper to test-db.ts
- Moved module-level repo creation into beforeAll/beforeEach
- Rewrote auth tests to use PGlite instead of spying on removed exports
- Removed obsolete { useTransaction: false } option from bracket tests
- Removed non-existent completeHeat from mock HeatRepository

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…actor

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove redundant `const db = this.conn` intermediary in all repository
implementations — use `this.conn` directly. Add module boundary
enforcement design and implementation plan documents.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…TP status codes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ware maps domain errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The helper was redundant because HeatService.updateWaveScore(),
updateJumpScore(), and deleteScore() already validate that the heat is
not completed — they throw HeatCompletedError which the domain error
mapper middleware maps to 400 BAD_REQUEST.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Use CommonORPCErrorCode from @orpc/client instead of string for
  DOMAIN_ERROR_MAP, so typos in error codes are caught at compile time
- Extract formatDomainScore() for domain-Score-to-response mapping in
  getHeadJudge handler, eliminating the last inline .map() transformation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Enforce automated quality gates so agents cannot commit or merge bad
code. Pre-commit hook runs biome auto-fix, typecheck, boundary checks,
and all tests. CI now runs on pull requests targeting main with
architecture boundary checks. Docker build and deploy only run on push
to main.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@danbim danbim merged commit fec4e4c into main Jan 31, 2026
3 checks passed
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