briefercloud / briefercloud/briefer

Download as CSV button not working as expected

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
4.3k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

Currently, I have two problems related to this feature:

First, when using the example "Welcome to Briefer," I clicked on the "Download as CSV" button for the first query. The loading took a while and then returned the message "Something went wrong."
This is because I hadn’t run the query. The button should be disabled in this scenario and display a message like "Please run the query."

Second, when using a personal database in an SQL block, my "Download as CSV" button didn’t appear, as you can see in the screenshot below.
![photo_2024-10-31_11-10-52](https://github.com/user-attachments/assets/a3f553d8-790e-407f-9bd2-778962a70157)

In the "Welcome to Briefer" example, the div containing the button looks like this:
![Captura de tela 2024-10-31 112443](https://github.com/user-attachments/assets/b1a73f46-834b-4582-b095-3d8edcdc4ef1)

But when I use my personal database, it appears as follows:
![photo_2024-10-31_11-25-05](https://github.com/user-attachments/assets/adf5ca52-4a7d-45ac-a978-416b94c21965)

Current workaround: Change "relative hidden" to just "relative," and the button appears. It works as expected, and the CSV downloads correctly.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce both cases in the “Welcome to Briefer” example and in a personal database SQL block, then inspect where the “Download as CSV” button is rendered and how its visibility and query state are handled. Done means an unrun query disables the button with a helpful message, while a personal-database SQL block displays a working CSV download button.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.