feat: add votes CSV download and date-prefix option to download modal#36
Merged
feat: add votes CSV download and date-prefix option to download modal#36
Conversation
- Add `conversationId` field to H5adData (read from uns['conversation_id']) - Add getAllVotes() to duckdb.ts for querying the full vote table - Rename DownloadObsCsvDialog → DownloadDialog with second "Download Votes CSV" button - Add Switch toggle to prefix filenames with today's date (YYYY-MM-DD-) - Use conversationId as filename prefix when available - Wire conversationId through showcase-lander → convo-explorer App Closes #35 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Move action buttons into dialog body and leave only Cancel in footer, so buttons don't overflow the modal on smaller widths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Swap AlertDialogAction for Button so clicks don't auto-close the dialog, allowing both CSVs to be downloaded in one session. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
YYYY-MM-DD-)conversation_idfrom the h5ad file as a filename prefix when available (e.g.my-convo-vote-matrix.csv)uns['conversation_id']from h5ad files and threads it through to the download modalVote matrix format
Rows = participants, columns = statement IDs, values =
1/-1/0or empty (no vote).Test plan
.h5adfile in Perspective Explorervote-matrix.csvand verify row/column structure and vote valuesparticipants.csvstill worksnpm run buildpasses with no TypeScript errorsCloses #35
🤖 Generated with Claude Code (~350 words of LLM output from ~600 words of human prompt)