Expose a CLI tools management UI (Settings → CLI Tools)

オープン
#39 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
54/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
react, rust, tauri, typescript

調査の方向性

Start with src/components/ui/SettingsDialog and inspect src/components/ui/CliDownloadDialog.tsx and src/store/cliStore.ts to understand the existing download flow and available commands. Build a Settings → CLI Tools management surface for supported database tools, covering cached and PATH versions, downloads, and removal while retaining the inline fallback. Done when users can manage those tools from Settings and the download flow can be exercised there.

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

説明

Problem

CLI tool downloads (psql, mysql, etc.) currently fire inline during the first query in a psql console session: the user clicks Run, gets a "Download psql 16 (~80MB)?" confirm dialog, waits for the download, and only then sees their query execute. This is jarring UX — particularly because the download is large and connection-blocking.

Proposal

Add a Settings → CLI Tools section (or top-level Tools entrypoint) that lets users:

  • See which CLI tools are cached, with version + install path + size
  • See which versions are detected on the system PATH
  • Pre-download any version of any supported tool kind on demand
  • Remove a cached tool to free disk space

The inline download confirm during query execution stays as a fallback for users who skip the management UI.

What's already in place

Most of the infrastructure exists:

  • `src-tauri/src/cli.rs` already exposes `cli_check_tools`, `cli_list_cached`, `cli_check_tool`, `cli_check_system_tool`, `cli_download_version` Tauri commands.
  • `src/store/cliStore.ts` wraps them as a Zustand store.
  • `src/components/ui/CliDownloadDialog.tsx` is a fully-functional download dialog — but it isn't imported or rendered anywhere. Grep confirms zero call sites.

So the work is roughly: design the management surface, render it inside SettingsDialog (or a new modal), and either reuse `CliDownloadDialog` or fold its logic into the new view.

Additional benefit (testing)

This UI would let contributors force a download in QA scenarios — currently the only way to exercise `reqwest`'s HTTPS path is through the psql console flow, which silently skips the download when a matching system install is on PATH. See PR #37 smoke notes.

Out of scope

  • Choosing a default tool version per connection (existing connection settings already handle this).
  • Managing non-DB tools (psql/mysql/etc. only — same scope as the current `ToolKind` enum in `cli.rs`).
主要言語
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 を短くまとめたダイジェスト。