[Feat]: Table view: auto-refresh data on an interval
Maintainers usually reply within 1 day
A pull request for this has already been merged.
- #915 by @Detoy — merged
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- database
Research direction
Start by reading src/components/ui/TableToolbar.tsx, src/pages/Editor.tsx and src/types/editor.ts to trace how refresh, tab state and query status are handled. Check src/hooks/ and the existing hook tests for patterns, then add fake-timer tests for the new hook. Done means the interval options and active state work, refreshes respect the listed skip conditions without overlap, and the timer stops for inactive or closed tabs.
Written by the indexing model from the issue text.
Description
🚀 Feature Proposal
Add an auto-refresh option to table tabs: re-run the current table query every 5 / 10 / 30 / 60 seconds.
Motivation
Watching a queue, a log table or a job table fill up currently means pressing refresh over and over.
Where to start
src/components/ui/TableToolbar.tsx: a small dropdown next to the refresh action, with a visible "active" state.src/hooks/: auseAutoRefresh(intervalMs, enabled, callback)hook that calls the existinghandleRefreshinsrc/pages/Editor.tsx.- Keep the interval per tab (
src/types/editor.ts) or local to the toolbar.
Acceptance criteria
- Options: Off / 5s / 10s / 30s / 60s; the active interval is visible in the toolbar.
- Refresh is skipped while there are pending edits, inserts or deletes, while a cell is being edited, or while a query is still running; requests never overlap.
- The timer stops when the tab is closed or not active.
- Current page, sort, filter and scroll position are preserved.
- Unit tests for the hook (fake timers).
Contributor notes
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 335
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 246
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]: Postgresql connections when set to access all databases do to state as such in the connection cardPossibly taken @itsmunzir claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
TabularisDB/tabularis#1281 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 25/100
TabularisDB/tabularis#1276 ·
Maintainers usually reply within 1 day
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 42/100
TabularisDB/tabularis#1275 ·
Maintainers usually reply within 1 day
-
[Feat]: Web API for provisioning and maintaining managed connectionsPossibly taken @Asymtode712 claimed this 3 days ago. Openfeature request
TabularisDB/tabularis#1274 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
[Feat]: Web managed mode for administrator-controlled connectionsPossibly taken @Asymtode712 claimed this 3 days ago. Openfeature request
TabularisDB/tabularis#1273 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in TabularisDB/tabularis
Similar issues
-
Add: ON Phim Viet SDOpencheck:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
area:agents area:cost bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
anthropics/claude-code#105375 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
galaxyproject/loom#616 ·
Maintainers usually reply within 1 day
-
e2e-failure ready-to-code
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
redhat-developer/rhdh-plugin-export-overlays#4580 · 1 comment ·
Maintainers usually reply within 1 day