Skip to content

refactor(web): split oversized web modules and components - #52

Merged
nixuuu merged 6 commits into
devfrom
refactor/split-area-d
Nov 4, 2026
Merged

nixuuu merged 6 commits into
devfrom
refactor/split-area-d

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Code-quality phase 3, area D (docs/code-quality.md): apps/web/**. All 9 size findings → 0, no suppressions, no visual or behaviour change.

  • features/providers/instances.ts → instance-models.ts (model rows, favorite/hidden/shown/custom helpers).
  • features/threads/dev/tool-fixtures.ts → fixture kit + harness and bus fixture families (gallery output identical).
  • features/commands/app-commands.ts → appearance-commands.ts + local command builders.
  • features/bots/behaviour.ts: tick → measure() + animate().
  • shared/ui/virtual/VirtualFeed.svelte → feed-entrances, feed-anchor, feed-range, feed-measure, feed-keys (all runes stay in the component; reactive read order unchanged).
  • routes/threads/[threadId]/+page.svelte → features/threads/thread-commands.ts (state passed through getters).

Verified: install, gen:check, typecheck, format:check, web build, oxlint apps/web 0; full check:tmp green (830 pass / 0 fail). Side-by-side with origin/dev on a private stack with live turns (light/dark, desktop/phone): 60/62 screenshot pairs pixel-identical, the other 2 differ only in a relative time.

@nixuuu
nixuuu merged commit 2d28b0a into dev Nov 4, 2026
2 checks passed
@nixuuu
nixuuu deleted the refactor/split-area-d branch November 4, 2026 12:08
nixuuu added a commit that referenced this pull request Nov 4, 2026
Phase 4 of the code-quality refactor (docs/code-quality.md); phases 1–3
are merged (#29, #39–#43, #46, #47–#52) and the whole repo passes `bun
run lint` and `bun run format:check`.

- CI: "Lint" (`bun run lint`: oxlint + anti-slop + size limits) and
"Formatting" (`bun run format:check`: oxfmt) right after the typecheck.
- Root `check` script runs them too.
- AGENTS.md: lint + format in the hand-over checklist and a short "Code
quality" section (boundary parsing over casts, `// SAFETY:` for
remaining assertions, 400/120 size limits never disabled, no repo-wide
`oxlint --fix`).
- docs/code-quality.md: status — all phases done.
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