Skip to content

Conversation

@AnthonyCvn
Copy link
Member

@AnthonyCvn AnthonyCvn commented Jan 21, 2026

Closes #159

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • CHANGELOG.md has been updated (for bug fixes / features / docs)

What kind of change does this PR introduce?

Bug fix

What was changed?

Include full query options when generating download/share/preview links

Related issues

No

Does this PR introduce a breaking change?

No

Other information:

Copilot AI review requested due to automatic review settings January 21, 2026 10:23
@AnthonyCvn AnthonyCvn linked an issue Jan 21, 2026 that may be closed by this pull request
1 task
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a bug where download and share preview functionality didn't pass the full query context to the backend. Previously, these operations would only use the individual record's timestamp, but now they correctly include the full query range and options (including the when condition) that were used to fetch the records.

Changes:

  • Added query context tracking to maintain the range and options used for fetching records
  • Updated download, share, and preview functionality to pass full query parameters to createQueryLink
  • Improved type safety by adding proper interfaces for table rows and indexed records
  • Enhanced ShareLinkModal with better state management and clipboard detection
  • Improved RecordPreview with better size handling and auto-preview logic

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Views/BucketPanel/types.ts New type definition for records with table index
src/Views/BucketPanel/EntryDetail.tsx Core fix: tracks query context and passes it to download/share/preview operations
src/Views/BucketPanel/EntryDetail.test.tsx Updated test expectations to verify full query context is passed
src/Views/BucketPanel/EntryDetail.css Removed obsolete CSS rule for CodeMirror height
src/Components/ShareLinkModal.tsx Added proper typing and improved state management for record handling
src/Components/ShareLinkModal.test.tsx Updated test to use proper types
src/Components/RecordPreview/RecordPreview.tsx Added query context parameters to support the backend fix
src/Components/RecordPreview/RecordPreview.test.tsx Updated test expectation for improved error message
src/Components/JsonEditor/JsonQueryEditor.tsx Improved validation status display logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AnthonyCvn AnthonyCvn requested a review from atimin January 21, 2026 11:00
Copy link
Member

@atimin atimin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, but I found few new bugs. I'll create new issues.

@atimin atimin merged commit 273eedd into main Jan 22, 2026
5 checks passed
@atimin atimin deleted the 159-bug-downloadshare-preview-functionality-doesnt-pass-full-query-to-backend branch January 22, 2026 07:10
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.

Bug: download/share /preview functionality doesn't pass full query to backend

3 participants