[Quality audit] Reduce frontend, store, and shared-lib duplication
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- electron, react, typescript
調査の方向性
Start with the local audit report CODE_QUALITY_FINDINGS.md and the listed evidence files, then review the affected component, store, keybinding, and custom-theme tests. Run the acceptance checks, including npm run typecheck and focused UI smoke checks. Done means addressing the scoped findings while preserving the stated behaviors and passing the relevant checks.
索引モデルが issue の本文から書いたものです。
説明
Derived from the local audit report CODE_QUALITY_FINDINGS.md created on 2026-05-30.
Scope
This issue groups renderer, store, and shared-library simplification opportunities.
Findings
- Finding 6: shortcut matching is duplicated and semantically inconsistent.
- Evidence:
src/lib/shortcuts.ts,src/lib/keybindings/match.ts,src/lib/keybindings/resolve.ts. - Fix direction: store app shortcuts as
KeyBinding-shaped records and share modifier normalization/matching.
- Evidence:
- Finding 20: prompt detection is duplicated between main and renderer.
- Evidence:
electron/mcp/prompt-detect.ts,src/store/taskStatus.ts. - Fix direction: move shared prompt detection to an importable pure helper.
- Evidence:
- Finding 21: diff review duplicates
ReviewProviderstate and flow.- Evidence:
src/components/ReviewProvider.tsx,src/components/ScrollingDiffView.tsx. - Fix direction: route diff selection through a shared provider/hook path.
- Evidence:
- Finding 22:
ScrollingDiffViewhas two hidden-context implementations.- Evidence:
GapViewandTrailingGapduplicate content fetching, context construction, highlighting, rendering, and expansion. - Fix direction: extract a shared context-line loader/expander.
- Evidence:
- Finding 23:
SettingsDialogtheme grids are duplicated.- Fix direction: extract
ThemeGrid(slot),PresetThemeCard, andCustomThemeCard.
- Fix direction: extract
- Finding 24:
SettingsDialogrepeats checkbox/card setting rows.- Fix direction: extract
SettingsCheckboxRowand a smallSettingsSectionwrapper.
- Fix direction: extract
- Finding 25:
Sidebarrepeats task row chrome.- Fix direction: extract
TaskRowShell,DirectBranchBadge, and shared attention/focus style helpers.
- Fix direction: extract
- Finding 26:
NewTaskDialogcarries reusable option UI inline.- Fix direction: extract
CheckboxOption,InlineBanner,DockerTaskOptions, andCoordinatorTaskOptions.
- Fix direction: extract
- Finding 27: task/agent record construction is duplicated in store.
- Fix direction: extract
createAgentRecord(...)and base task builders.
- Fix direction: extract
- Finding 28: task deletion and active-neighbor selection are duplicated.
- Fix direction: extract pure draft cleanup primitives and neighbor-selection helpers while preserving lifecycle differences.
- Finding 29: base64 terminal decoding is duplicated.
- Fix direction: move decoder to a shared utility used by desktop and remote terminal views.
- Finding 31: keybinding override resolution is duplicated.
- Fix direction: extract
resolveOneBinding; keep exports focused on inclusion of unbound rows.
- Fix direction: extract
- Finding 32: light terminal theme palette is copied twice.
- Fix direction: extract
LIGHT_TERMINAL_THEME.
- Fix direction: extract
- Finding 33: custom theme parsing/validation repeats primitives.
- Fix direction: extract
isHexTerminalBackground,collectAllowedVars, andformatVarLineswhile preserving current validation behavior unless intentionally changed.
- Fix direction: extract
- Finding 34: Electron window wrapper retains no-op compatibility methods.
- Fix direction: remove no-op methods and call-site awaits/catches if no supported platform behavior remains.
Acceptance checks
- affected component tests
- store tests
- keybinding and custom-theme tests
npm run typecheck- focused browser/UI smoke checks for touched flows
- 主要言語
- TypeScript
- スター
- 1k
- フォーク
- 144
- 平均マージ
- 4日 19時間
- マージ済み PR(30日)
- 28
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
johannesjo/parallel-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
johannesjo/parallel-code#385 ·
メンテナーはふだん 4 日以内に返信
-
Option to show usage as used instead of left, and potential further customization ideas対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
johannesjo/parallel-code#353 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
johannesjo/parallel-code#163 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
johannesjo/parallel-code#375 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
Package as a Platpakオープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
johannesjo/parallel-code#374 ·
メンテナーはふだん 4 日以内に返信
johannesjo/parallel-code の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ci
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-js#1248 ·
メンテナーはふだん 1 日以内に返信
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltオープンtechnik
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AhmedNAgy25/analysor#25 ·
メンテナーはふだん 1 日以内に返信