refactor: extract Monaco setup and completion providers from QueryEditor
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- react, typescript
調査の方向性
Start with src/components/editor/QueryEditor.tsx and locate the Monaco setup, JOIN and schema completion providers, intention actions, and live-template expansion. Read the existing editor lifecycle and useLiveTemplates usage before deciding how their dependencies are registered and disposed. The requested files are monacoSetup.ts, sqlCompletionProvider.ts, intentionActions.ts, and liveTemplateProvider.ts alongside the component. Done means the component is under roughly 600 lines, the listed features still work, checks pass, and a Vitest test covers pure live-template expansion.
索引モデルが issue の本文から書いたものです。
説明
src/components/editor/QueryEditor.tsx is 1,179 lines. The component itself is fine; the noise is Monaco configuration, language definitions, JOIN suggestion providers, and intention actions inlined alongside the React lifecycle.
What to extract
monacoSetup.ts— theme registration, language token registration, editor option defaults.sqlCompletionProvider.ts— the JOIN-via-foreign-key autocomplete and the schema-aware identifier suggestions.intentionActions.ts— the Alt+Enter "intention actions" (quick fixes / refactors offered in the editor).liveTemplateProvider.ts— the snippet expansion that consumesuseLiveTemplates.
Suggested approach
- Files live in
src/components/editor/next to QueryEditor.tsx. - Each provider is a pure function that takes its dependencies (current schema, FK map, templates) and returns a Monaco-registered disposable.
- QueryEditor.tsx orchestrates the disposables in a single
useEffect.
Done criteria
QueryEditor.tsxdrops below ~600 lines.- All editor features still work: JOIN suggestions, table/column autocomplete, Alt+Enter actions, live templates.
- TypeScript / tests / build green.
- One Vitest test for the live-template expander (pure-string logic).
Out of scope
- Switching to a different editor (CodeMirror, etc.).
- Adding language servers / LSP.
Audit reference
K5 in the pre-launch audit.
- 主要言語
- TypeScript
- スター
- 6
- フォーク
- 1
- 平均マージ
- 17分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openidle-dev/queryden のほかの issue
-
Multi Query Clusterオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
openidle-dev/queryden#240 ·
-
bug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openidle-dev/queryden#187 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
openidle-dev/queryden#237 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
openidle-dev/queryden#192 ·
-
dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
openidle-dev/queryden#186 ·
openidle-dev/queryden の issue をすべて見る
似ている issue
-
Mend: dependency security vulnerability
難易度 1/5 1〜3時間 初心者へのやさしさ 65/100
fdm-monster/fdm-monster#5563 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
be-BOP-io-SA/be-BOP#2849 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
1️⃣ phase/under-investigation flaky/confirmed flaky/needs-decision type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
growilabs/growi#12246 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
🐛 The Rulekeeper - An index run that gives up on the lock ends Succeeded対応中かも @github-actions が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SSWConsulting/SSW.Rules#2809 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信