Skip to content

fix: accurate query time display and system table preview#43

Closed
abdullah094 wants to merge 3 commits intomainfrom
fix/accurate-query-time-display
Closed

fix: accurate query time display and system table preview#43
abdullah094 wants to merge 3 commits intomainfrom
fix/accurate-query-time-display

Conversation

@abdullah094
Copy link
Copy Markdown

@abdullah094 abdullah094 commented Apr 8, 2026

Summary

Query Notifications & Timing Fix

  • Added toast notifications after query execution showing duration, row count, and success/failure status
  • New exasol.showQueryNotifications setting to toggle notifications on/off
  • Switched timing from Date.now() to performance.now() across queryExecutor.ts, objectActions.ts, and extension.ts for sub-millisecond precision (fixes "0.0s" display)
  • Added formatDuration() utility that adapts units (ms/s/m) based on magnitude
  • Success notifications auto-dismiss after 2s; failures persist with "Show Details" button

System Table Double-Click Preview

  • Double-clicking system tables (SYS, EXA_STATISTICS) now opens a SELECT * LIMIT 100 data preview
  • Regular tables and views continue showing column metadata (describeTable) unchanged
  • Wired system-table case in ObjectTreeItem constructor and branched exasol.openObject handler

Test Coverage

All new code paths have test coverage (14/14 paths, 100%).
Tests: 29 files, 233 tests passing.

New test files:

  • formatDuration.test.ts — 5 tests covering all duration ranges
  • queryNotifications.test.ts — 12 tests covering success, failure, batch, suppression

Pre-Landing Review

Pre-Landing Review: No issues found.

Specialist review: 1 informational finding (DRY: config check repeated 4x). No critical issues.
PR Quality Score: 9.5/10

Adversarial Review

Claude adversarial: informational UX observations only (notification overlap, fixed timeout). No correctness bugs.
Codex: unable to complete (sandbox read-only policy blocked file access).

Scope Drift

Scope Check: DRIFT DETECTED
Intent: Fix query time display showing 0.0s
Delivered: Query time fix + system table double-click preview (bundled)
Note: System table preview was implemented during this session and shipped together.

Test plan

  • TypeScript compiles cleanly (npm run compile)
  • All 233 unit tests pass
  • Build verified after all commits

🤖 Generated with Claude Code

Replace Date.now() with performance.now() for sub-millisecond precision
and introduce adaptive formatDuration() utility that shows "45ms" for
fast queries, "1.2s" for multi-second, and "1m 15s" for long-running.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@abdullah094 abdullah094 requested a review from mkcorneli April 8, 2026 16:42
abdullah094 and others added 2 commits April 9, 2026 11:34
System tables (SYS, EXA_STATISTICS) now open a SELECT * LIMIT 100 data
preview on double-click instead of column metadata. Regular tables and
views continue showing column metadata unchanged.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abdullah094 abdullah094 changed the title toast notifications for failure and successful queries fix: accurate query time display and system table preview Apr 9, 2026
@abdullah094 abdullah094 closed this Apr 9, 2026
@abdullah094 abdullah094 deleted the fix/accurate-query-time-display branch April 9, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant