-
-
Notifications
You must be signed in to change notification settings - Fork 218
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.
Haarolean
left a comment
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
ebb9188 to
b168638
Compare
Haarolean
left a comment
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked the other icon more but it's a matter of opinions now. Let's get this merged! :)
Haarolean
left a comment
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.
The icon
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, will do it during one of the upcoming days
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.
@yeikel done
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| function padCurrentDateTimeString(): string { | |
| function padCurrentDateTimeString() { |
Typescript will infer the value correctly don't need return type
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.
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?



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)
