FE: Messages: Implement messages export#740
FE: Messages: Implement messages export#740alexanderlz wants to merge 32 commits intokafbat:mainfrom
Conversation
There was a problem hiding this comment.
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.
Haarolean
left a comment
There was a problem hiding this comment.
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
Haarolean
left a comment
There was a problem hiding this comment.
Can we use the export icon provided with the design reference?
88579f2 to
08f0967
Compare
@Haarolean replaced. |
yeikel
left a comment
There was a problem hiding this comment.
I liked the other icon more but it's a matter of opinions now. Let's get this merged! :)
| viewBox="0 0 18 18" | ||
| fill="currentColor" | ||
| > | ||
| <path d="M4.24 5.8a.75.75 0 001.06-.04l1.95-2.1v6.59a.75.75 0 001.5 0V3.66l1.95 2.1a.75.75 0 101.1-1.02l-3.25-3.5a.75.75 0 00-1.101.001L4.2 4.74a.75.75 0 00.04 1.06z" /> |
There was a problem hiding this comment.
Can we please extract this icon like others into a separate file/class in src/components/common/Icons?
| }} | ||
| > | ||
| <svg | ||
| width="24" |
There was a problem hiding this comment.
@alexanderlz Any chance you can resume this work?
I am looking forward to using this feature
Thanks again! 🎖️
There was a problem hiding this comment.
yes, will do it during one of the upcoming days
There was a problem hiding this comment.
Awesome, thank you for your hard work @alexanderlz
@Haarolean Any chance you can take a look again?
Thanks in advance 🫡
|
Hi team What is the latest status on this one? What's blocking merging it? Thanks! |
|
|
||
| type DownloadFormat = 'json' | 'csv'; | ||
|
|
||
| function padCurrentDateTimeString(): string { |
There was a problem hiding this comment.
| function padCurrentDateTimeString(): string { | |
| function padCurrentDateTimeString() { |
Typescript will infer the value correctly don't need return type
There was a problem hiding this comment.
I am not a TS expert, but even if this is the case, isn't adding the type explicitly a good pattern for self-documentation?
|
Any update for this pr? We are waiting excitedly this feature |




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)
