[Bug]: Table created by Import from Clipboard doesn't appear in the explorer tree until a manual refresh
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- mysql, postgresql, typescript
Research direction
Start in src/components/layout/ExplorerSidebar.tsx and compare the clipboard import onSuccess with the Create Table flow using refreshAfterCreateTable and getCreateTableRefreshPlan. Check how the target schema is passed to refresh the PostgreSQL schema or MySQL database tree. Done means a newly imported table appears in the explorer without a manual refresh; verify by importing a table and checking the tree.
Written by the indexing model from the issue text.
Description
Describe the bug
After a successful Import from Clipboard into a new table, the dialog closes but the new table is missing from the explorer. It only appears after clicking the schema's (or database's) refresh button.
Cause (from the source at 780ed880): in src/components/layout/ExplorerSidebar.tsx the ClipboardImportModal onSuccess only calls refreshTables(), which refreshes the flat table list, and then bumps schemaVersion. The Create Table flow instead uses refreshAfterCreateTable → getCreateTableRefreshPlan, which calls refreshSchemaData / refreshDatabaseData for the per-schema (PostgreSQL) and per-database (MySQL) trees. Using the same refresh plan for the clipboard import, with the schema the import targeted, would fix it.
Two more effects of the current onSuccess:
- The modal closes immediately, so its own success state ("… rows imported into …") is never visible.
- Nothing hints at where the new table went, so it looks as if the import did nothing.
To Reproduce
- Connect to PostgreSQL with the schema tree (e.g.
public). - Copy a small TSV with a header row to the clipboard.
- Right-click a table → Import from Clipboard... → Create new table → name
new_arrivals→ Import N rows. - The dialog closes and Tables (10) still shows 10 tables. The rows are in the database (
SELECT count(*) FROM new_arrivalsreturns 6). - Click the refresh icon on the
publicrow: Tables (11) now listsnew_arrivals.
OS Version
Ubuntu 24.04 (X11), PostgreSQL 16.15
Tabularis Version
v0.26.0 (main @ 780ed880, pnpm tauri dev)
Relevant Log Output
None (no error is raised).
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 335
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 75
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TabularisDB/tabularis
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TabularisDB/tabularis#903 ·
Maintainers usually reply within 1 day
-
[Bug]: Plugin UI slots data-grid.toolbar.actions and sidebar.footer.actions receive an empty contextOpenbug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
TabularisDB/tabularis#892 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
TabularisDB/tabularis#919 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
TabularisDB/tabularis#916 ·
Maintainers usually reply within 1 day
-
[Bug]: "Export Logs" says "Logs exported to clipboard" but writes a filePossibly taken @tosinxt claimed this today. Openbug
TabularisDB/tabularis#907 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in TabularisDB/tabularis
Similar issues
-
bug priority:low ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/data-liberation-agent#685 ·
Maintainers usually reply within 1 day
-
Business
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
txn2/mcp-data-platform#2063 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Crosstalk-Solutions/project-nomad#1427 ·
Maintainers usually reply within 2 days