feat: Add prominent "Download sample" button to CSV import upload step#16193
Conversation
Greptile OverviewGreptile SummaryImproves the discoverability of the "Download sample" feature by converting it from an underlined text link to a prominent secondary button. The change addresses customer feedback that users were unable to find the download sample option mentioned in documentation. The implementation:
The changes are minimal, focused, and follow the codebase conventions for styled components and theming. No custom instructions were violated. Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant DropZone
participant MainButton
participant useDropzone
participant useDownloadFakeRecords
User->>DropZone: Views CSV upload interface
DropZone->>MainButton: Renders "Select file" button
DropZone->>MainButton: Renders "Download sample" button (new)
alt User clicks "Select file"
User->>MainButton: Click "Select file"
MainButton->>useDropzone: Trigger open()
useDropzone->>User: Opens file picker dialog
User->>useDropzone: Selects CSV/Excel file
useDropzone->>DropZone: onDropAccepted callback
DropZone->>DropZone: Process file and continue
else User clicks "Download sample" (new flow)
User->>MainButton: Click "Download sample"
MainButton->>useDownloadFakeRecords: Trigger downloadSample()
useDownloadFakeRecords->>User: Downloads sample CSV file
else User drags and drops file
User->>DropZone: Drag file over drop zone
DropZone->>DropZone: Show overlay (isDragActive)
User->>DropZone: Drop file
DropZone->>useDropzone: onDropAccepted callback
useDropzone->>DropZone: Process file and continue
end
|
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:11840 This environment will automatically shut down when the PR is closed or after 5 hours. |
|
@FelixMalfait Can i get a review on this one ? |
|
The team will review your PR shortly, @Anshgrover23. Thanks for your contribution; this will be a great improvement! |
|
Thanks @Anshgrover23 for your contribution! |
twentyhq#16193) ## Description Improves discoverability of the "Download sample" feature in the CSV import flow by replacing the text link with a prominent button, addressing customer feedback that the option was hard to find. Closes twentyhq#16028 ## Screenshots ### Before <img width="2504" height="1716" alt="image" src="https://github.com/user-attachments/assets/7b134634-45e6-4e10-9c49-810b529d6fb0" /> ### After <img width="2504" height="1716" alt="image" src="https://github.com/user-attachments/assets/b0d7b28e-7a3b-4895-81b4-b04297d6ef64" />

Description
Improves discoverability of the "Download sample" feature in the CSV import flow by replacing the text link with a prominent button, addressing customer feedback that the option was hard to find.
Closes #16028
Screenshots
Before
After