perf(syntax-lookup): optimize catalog search and detail routes
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cypress, react
調査の方向性
Start with the /syntax-lookup and representative detail routes, using the production-artifact baseline from #1371 after the homepage stack lands on master. Profile catalog and detail assets, loader data, DOM/media counts, and query costs separately, then run the named ReScript compilation, production build, focused Vitest/Cypress coverage, and #1371 route report. Done means the listed navigation, highlighting, media, payload, and console-error acceptance criteria pass without visual snapshot updates.
索引モデルが issue の本文から書いたものです。
説明
Context
The syntax lookup is both a large catalog search surface and a collection of MDX detail pages under the docs layout. Its catalog loader serializes the complete item set, builds a local Fuse index, and can render many tags; detail routes instead render compiled MDX. Optimize these two shapes together only where they share real behavior, while keeping their individual profiles visible.
The homepage work already moved syntax grammar registration to the content boundary (#1365). Retain that boundary; this ticket concerns catalog data, interactive rendering, and detail-page payloads.
Representative profiles
/syntax-lookup- A typical detail route such as
/syntax-lookup/decorator_as - A detail route reached after a catalog query
Use the production-artifact baseline from #1371 after the homepage stack lands on master.
Suggested PR stack
- Add catalog and detail profiles plus browser coverage for direct loads, query changes, category filtering, result-to-detail navigation, back/forward behavior, code-copy/highlighting, and docs sidebar/TOC navigation.
- Measure catalog loader serialization, local index construction, unfiltered DOM size, and query-response work independently. Make index creation and filtering stable across renders, and defer or partition expensive client work only if the initial catalog remains useful and accessible.
- Profile the detail loader/MDX payload and prerender static code presentation where it removes client work without compromising anchors, code tabs, copy controls, or content-boundary highlighting.
- Audit catalog/detail media for intrinsic dimensions and priority; use responsive sources only for actual large raster placements.
- Split optional syntax-lookup interaction code at activation boundaries and apply existing React Compiler annotations only to stable leaf components with artifact and browser coverage.
Acceptance criteria
- Catalog and detail pages report separate, reproducible initial assets, loader-data sizes, DOM/media counts, and post-query costs; every stack layer records its delta against the immediate target.
- Querying, category filters, result ordering, direct detail URLs, client navigation, back/forward, docs navigation, syntax highlighting, and code interaction work without hydration or console errors.
- Initial routes do not regain homepage, playground/compiler, or eager DocSearch implementation payloads; DocSearch remains activation-loaded.
- Every rendered image/video has numeric intrinsic dimensions and below-fold media is not needlessly preloaded.
- ReScript compilation, production build, focused Vitest/Cypress coverage, and the #1371 route report pass. Do not update visual snapshots without approval.
Relates to #1354 and depends on #1371 for the common measurement contract.
- 主要言語
- MDX
- スター
- 1.9k
- フォーク
- 261
- 平均マージ
- 3日 13時間
- マージ済み PR(30日)
- 37
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rescript-lang/rescript-lang.org のほかの issue
-
Semantic drift analysis: results対応中かも @fhammerschmidt が 13 日前に担当しました。 オープン
rescript-lang/rescript-lang.org#1421 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Duplicated playground logic between guide and playground, two copies diverged対応中かも @fhammerschmidt が 12 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
rescript-lang/rescript-lang.org#1407 ·
メンテナーはふだん 2 日以内に返信
-
Guide compiler is unpinned and lessons are never validated対応中かも @fhammerschmidt が 12 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
rescript-lang/rescript-lang.org#1405 ·
メンテナーはふだん 2 日以内に返信
-
enhancement playground react
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rescript-lang/rescript-lang.org#1377 ·
メンテナーはふだん 2 日以内に返信
-
enhancement react
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rescript-lang/rescript-lang.org#1375 ·
メンテナーはふだん 2 日以内に返信
rescript-lang/rescript-lang.org の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
phivk/rubiks-lab#33 ·
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
[oblt-aw][autodoc] Fix malformed headings in new Buildkite docs pages対応中かも @github-actions が今日担当しました。 オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
Перевод устарел
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100