refactor(workbench): extract types, constants, utils, sub-components from WorkbenchPage #1

Merged
stringadmin merged 1 commits from feature/workbench-refactor into master 2026-06-02 06:20:32 +00:00
Owner

WorkbenchPage.tsx: 4146 → 3047 lines (-27%)

Extracted to 6 sibling modules:

  • workbenchConstants.ts (403L): types, MODE_META, option arrays, shared helpers
  • workbenchStorage.ts (172L): localStorage read/write/persist functions
  • workbenchReferenceUtils.ts (210L): image compression, fingerprint, file helpers
  • workbenchMentionUtils.tsx (79L): prompt mention parsing and token rendering
  • WorkbenchPromptPreview.tsx (87L): ReferencePreview, PromptPreviewLayer components
  • WorkbenchSelectChips.tsx (263L): SelectChip, CompoundSelectChip, InlineOptionChip

All extracted code is imported back via ES module imports — no logic changes.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

WorkbenchPage.tsx: 4146 → 3047 lines (-27%) Extracted to 6 sibling modules: - workbenchConstants.ts (403L): types, MODE_META, option arrays, shared helpers - workbenchStorage.ts (172L): localStorage read/write/persist functions - workbenchReferenceUtils.ts (210L): image compression, fingerprint, file helpers - workbenchMentionUtils.tsx (79L): prompt mention parsing and token rendering - WorkbenchPromptPreview.tsx (87L): ReferencePreview, PromptPreviewLayer components - WorkbenchSelectChips.tsx (263L): SelectChip, CompoundSelectChip, InlineOptionChip All extracted code is imported back via ES module imports — no logic changes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
stringadmin added 1 commit 2026-06-02 06:20:21 +00:00
WorkbenchPage.tsx: 4146 → 3047 lines (-27%)

Extracted to 6 sibling modules:
- workbenchConstants.ts (403L): types, MODE_META, option arrays, shared helpers
- workbenchStorage.ts (172L): localStorage read/write/persist functions
- workbenchReferenceUtils.ts (210L): image compression, fingerprint, file helpers
- workbenchMentionUtils.tsx (79L): prompt mention parsing and token rendering
- WorkbenchPromptPreview.tsx (87L): ReferencePreview, PromptPreviewLayer components
- WorkbenchSelectChips.tsx (263L): SelectChip, CompoundSelectChip, InlineOptionChip

All extracted code is imported back via ES module imports — no logic changes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
stringadmin merged commit 4b6f864aa9 into master 2026-06-02 06:20:32 +00:00
stringadmin deleted branch feature/workbench-refactor 2026-06-02 06:21:40 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OmniAI/omniai-web#1