Results data grid uses pre-design-system palette (blue/slate) — doesn't match app chrome

オープン 初心者向け
#187 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
react, typescript
領域
design, frontend

調査の方向性

src/components/ui/GridView.tsxを読み、src/styles/globals.cssの対応するトークンとそのパレットを比較し、両方のisDarkテーマを確認します。ハードコードされたグリッドの色を、名前付きトークンを反映したリテラル値に置き換え、各値とトークンを結び付けるコメントを追加します。両方のテーマでグリッドのパレットがデザインシステムと一致すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug enhancement

Summary

The query results table (Glide Data Grid in src/components/ui/GridView.tsx) renders with the old pre-design-system palette while the surrounding results toolbar/buttons use the new Radix Cyan tokens. The grid therefore looks visibly "bluer" and off-theme next to the rest of the app.

Hardcoded values that didn't match src/styles/globals.css:

  • accentColor: "#06b6d4" (old cyan) — selection ring/highlight; brand accent is --accent-9 #00a2c7.
  • Cell/header backgrounds used Tailwind slate (#0f172a, #1e293b, #334155, #2d3748) — bluer than the Radix Slate neutrals (#111113, #18191b, #212225, #272a2d).
  • Date cells #38bdf8 / #0284c7 (sky blue) and binary-cell labels #818cf8 / #4f46e5 (indigo) — off-brand.
  • New/modified row tints used emerald/amber (#10b981, #f59e0b) instead of the --success-9 / --warning-9 tokens.

Light theme had the equivalent mismatch.

Why hardcoded at all

Glide renders to a <canvas>, so the theme can't use CSS var() — it needs literal color strings. The fix mirrors the token hex values from globals.css, keyed on isDark, with comments mapping each back to its token so the two stay in sync.

Fix

Replace the grid palette with token-mirrored values: neutral scale for cell/header/border/text, --accent-9/--accent-11 for accent + date/binary text, --success-11/--danger-11 for numeric +/- coloring, --success-9/--warning-9 tints for new/modified rows.

Related to the design-system migration (#152).

主要言語
TypeScript
スター
6
フォーク
1
平均マージ
17分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openidle-dev/queryden のほかの issue

openidle-dev/queryden の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。