Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

New SQL tab: focus the editor (Ctrl+T, palette) and label completion kinds

Đang mở
#39 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, tauri, typescript
Lĩnh vực
database, desktop, frontend

Hướng nghiên cứu

Start in src/features/sql/SqlEditor.tsx and reproduce focus after opening a tab, including after the password prompt closes; write a test for the focus call and check the null viewRef case described in the issue. Read src/features/sql/completion.ts and src/lib/strings.ts for completion detail labels, then inspect src/features/workspace/WorkspaceView.tsx for disconnected workspace handling. Done when the listed acceptance criteria pass, including the specified test and lint commands.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:frontend good first issue size:S status:ready type:bug

Context

Marked FIX-BEFORE-MERGE by the plan 4 review but left open: Ctrl+T and the palette's "New SQL tab" do not focus the new editor, so typing goes nowhere until a click. The smoke run saw it again with Ctrl+T right after a password prompt closed (not re-checked in isolation). The SQL completion detail also shows the raw kind enum (table, view).

To do

  • Focus the CodeMirror editor of a newly opened SQL tab, including after a password prompt closes; re-check in isolation first and write a test for the focus call (the editor focus command returns true even when viewRef is null, so the fallback is skipped).
  • Show a strings.ts label instead of the raw kind in the completion detail (completion.ts).
  • Also: Mod+T / new tab on a disconnected workspace should go through requestConnect (re-check).

Acceptance criteria

  • Ctrl+T and palette "New SQL tab": typing immediately goes into the editor, also right after a connect password prompt.
  • Completion popup shows localized labels for table and view.
  • pnpm test && pnpm lint green (plus cargo clippy --all-targets -- -D warnings and pnpm test:rust when Rust changes)

Likely files touched

  • src/features/sql/SqlEditor.tsx, src/features/sql/completion.ts
  • src/features/workspace/WorkspaceView.tsx
  • src/lib/strings.ts

Linked docs

  • docs/notes/plan-04-followups.md (M1, Manual #4, Task 6)
  • docs/notes/integration-v1-smoke.md ("Seen, not fixed")
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
1 giờ 19 phút
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Cemoche/tablemax

Tất cả issue của Cemoche/tablemax

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.