-
-
Notifications
You must be signed in to change notification settings - Fork 155
FE: Messages: Implement messages export #740
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?
Conversation
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.
Hi alexanderlz! 👋
Welcome, and thank you for opening your first PR in the repo!
Please wait for triaging by our maintainers.
Please take a look at our contributing guide.
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.
Hi, thanks for the PR! Could you please take a look at the linter errors? And could we get some tests for the new functionality?
definitely (both of your questions). Happy New Year! |
likewise, happy new year 😊 |
frontend/src/components/Topics/Topic/Messages/MessagesTable.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/Topics/Topic/Messages/MessagesTable.tsx
Outdated
Show resolved
Hide resolved
The one comment I have is that in the screenshot, the icon for "export" looks more like "Import/Upload" to me In most UI, I've seen "arrow up" means upload while "arrow down" means download The design also mentioned "functionality for uploading," but that's a different functionality |
@Haarolean will do @yeikel - arrow down it is. |
@yeikel have you got some examples? |
An example of what? An UI that implements this? Just searching for upload/download icons online yields the kind of results I refer to. For example: https://www.flaticon.com/free-icons/upload https://www.flaticon.com/search?word=Download In terms of the reference design, this is the contradiction I refer to: |
@Haarolean @yeikel done. |
It looks great! Thank you for the awesome work! |
I am not sure how we'll document this, but we need to make sure we document somehow that this will only download the current page and not all the data If it can be in our documentation to avoid making the UI too cluttered, I think that would work We just need to make sure it's communicated to avoid future bug reports about it |
@alexanderlz Could you please resolve the conflicts? |
@yeikel done |
@Haarolean Could you please do another round of reviews? |
content -> value
Indeed, but if you'd look up 'export icon' it'd yield the opposite one. @snoorge's point:
I have to agree with @snoorge here, however it's kinda counter intuitive. |
tl;dr - we change the icon or leave it as is? |
Based on the comments above, it seems that @Haarolean is looking to implement it as the original design intended and not what I suggested. But @Haarolean can confirm Apologies for the back and forth @alexanderlz , it was my opinion and not final. I appreciate your efforts :) |
What changes did you make? (Give an overview)
Added an option to download all messages that are displayed on page(as csv or json)
as per #688
useDataSaver method is reused here.
Is there anything you'd like reviewers to focus on?
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)
Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)
Check out Contributing and Code of Conduct
A picture of a cute animal (not mandatory but encouraged)
