Skip to content

feat(polls): export polls as images or spreadsheets #17671

Open
miaulalala wants to merge 8 commits intomainfrom
feat/13435/poll-result-download
Open

feat(polls): export polls as images or spreadsheets #17671
miaulalala wants to merge 8 commits intomainfrom
feat/13435/poll-result-download

Conversation

@miaulalala
Copy link
Copy Markdown
Contributor

@miaulalala miaulalala commented Apr 9, 2026

โ˜‘๏ธ Resolves

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

๐Ÿ–Œ๏ธ UI Checklist

๐Ÿ–ผ๏ธ Screenshots / Screencasts

Screenshot from 2026-04-13 21-54-49 Screenshot from 2026-04-13 21-54-57

๐Ÿšง Tasks

  • Fix image bg when switching themes

๐Ÿ Checklist

  • ๐ŸŒ Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Integrations with Files sidebar and other apps
    • Not risky to browser differences / client
  • ๐Ÿ–Œ๏ธ Design was reviewed, approved or inspired by the design team
  • โ›‘๏ธ Tests are included or not possible
  • ๐Ÿ“— User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

๐Ÿ› ๏ธ API Checklist

๐Ÿšง Tasks

  • ...

๐Ÿ Checklist

  • โ›‘๏ธ Tests (unit and/or integration) are included or not possible
  • ๐Ÿ“˜ API documentation in docs/ has been updated or is not required
  • ๐Ÿ”– Capability is added or not needed

@miaulalala miaulalala requested a review from Antreesy April 9, 2026 14:25
@miaulalala miaulalala self-assigned this Apr 9, 2026
@miaulalala miaulalala added enhancement feature: api ๐Ÿ› ๏ธ OCS API for conversations, chats and participants feature: polls ๐Ÿ“Š labels Apr 9, 2026
@miaulalala miaulalala changed the title Feat/13435/poll result download feat(polls): export polls as images or spreadsheets Apr 9, 2026
@nimishavijay
Copy link
Copy Markdown
Member

Looks good! Since there are already 4 filetypes here I think we could move this into a submenu, and have only "Download" as a main menu option. That gives us space to add more things to this menu in the future and support more filetypes in the future too.
@miaulalala agreed with your comments about text and icons :) we could do

Image (.img)
Image (.png)
Spreadsheet (.xlsx)
Spreadsheet (.ods)

For image: image
For spreadsheet: table

@nickvergessen
Copy link
Copy Markdown
Member

Since there are already 4 filetypes here

We are going to remove the images and then I would deduplicate the spreadsheets to only ods?

@nimishavijay
Copy link
Copy Markdown
Member

I would if possible also add csv, it is common enough filetype for polls, but not a blocker

@miaulalala
Copy link
Copy Markdown
Contributor Author

@nimishavijay new screenshots ๐Ÿ‘€

@Antreesy
Copy link
Copy Markdown
Contributor

It has a common icon with drafts, not sure it's not blending for the user. Maybe "Export as a draft" and "Export results"?

Comment thread lib/Controller/PollController.php Outdated
Comment thread lib/Service/PollExportService.php Outdated
Comment thread src/components/PollViewer/PollViewer.vue Outdated
@miaulalala
Copy link
Copy Markdown
Contributor Author

image

@nimishavijay if you have any icon suggestions, let me know. I would also add back a separator "Results" to give some context to the download options without the button test being overly long. Since it's only two items now, I don't think a submenu is needed. Wdyt?

@miaulalala miaulalala force-pushed the feat/13435/poll-result-download branch from 37054c5 to 18a086a Compare April 14, 2026 20:15
@miaulalala miaulalala marked this pull request as ready for review April 14, 2026 20:40
@nickvergessen
Copy link
Copy Markdown
Member

I would also add back a separator "Results" to give some context to the download options without the button test being overly long. Since it's only two items now, I don't think a submenu is needed.

Could add a separator + header inside the menu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement feature: api ๐Ÿ› ๏ธ OCS API for conversations, chats and participants feature: polls ๐Ÿ“Š

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to download poll results as image (png or svg) and raw (xlsx, ods)

4 participants