-
-
Notifications
You must be signed in to change notification settings - Fork 6k
add button to export issues to Excel #35313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add button to export issues to Excel #35313
Conversation
@tpokorra I noticed you've updated the locales for non-English languages. These will be overwritten during the sync from our translation tool Crowdin. If you'd like to contribute your translations, please visit https://crowdin.com/project/gitea. Please revert the changes done on these files. 🍵 |
a46cb8f
to
d38901f
Compare
d38901f
to
1d87056
Compare
The button is far too prominent and there should only ever be one primary button on a page indicating the most likely action the user will take. I recommend making a right-aligned "..." button on the right side of "Sort" and putting it in there. Check repo frontpage on how to implement this "..." menu using tippy.js. |
headers := []string{"ID", "Title", "Status", "Assignee(s)", "Label(s)", "Created At"} | ||
for col, h := range headers { | ||
cell, _ := excelize.CoordinatesToCellName(col+1, 1) | ||
f.SetCellValue(sheet, cell, h) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ref: https://xuri.me/excelize/en/stream.html
Streaming write should be used here, as ordinary write will occupy a lot of memory when the data volume is slightly larger.
This PR adds a button to the issues list, and when you click on it, the currently displayed issues will be downloaded as an Excel file.
fixes #29906
Screenshot after adding the button "Export to Excel":