Skip to content

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

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

alexanderlz
Copy link

  • Breaking change? (if so, please describe the impact and migration path for existing application instances)

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.

screenshot

Is there anything you'd like reviewers to focus on?

How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)

  • No need to
  • Manually (please, describe, if necessary)
  • Unit checks
  • Integration checks
  • Covered by existing automation

Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (e.g. ENVIRONMENT VARIABLES)
  • My changes generate no new warnings (e.g. Sonar is happy)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

Check out Contributing and Code of Conduct

A picture of a cute animal (not mandatory but encouraged)

@alexanderlz alexanderlz requested a review from a team as a code owner December 30, 2024 19:53
@kapybro kapybro bot added status/triage Issues pending maintainers triage status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Dec 30, 2024
Copy link

@github-actions github-actions bot left a 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.

Copy link
Member

@Haarolean Haarolean left a 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?

@Haarolean Haarolean changed the title Closes #688 FE: Messages: Implement messages export Jan 1, 2025
@Haarolean Haarolean added type/enhancement En enhancement/improvement to an already existing feature scope/frontend Related to frontend changes area/messages and removed status/triage/manual Manual triage in progress labels Jan 1, 2025
@alexanderlz
Copy link
Author

definitely (both of your questions).

Happy New Year!

@Haarolean
Copy link
Member

definitely (both of your questions).

Happy New Year!

likewise, happy new year 😊

@germanosin germanosin added the status/pending-design Pending UI design solution label Jan 6, 2025
@alexanderlz alexanderlz requested a review from Haarolean January 7, 2025 11:41
@Haarolean Haarolean moved this from Design Pending to Dev Approved in UI/UX Design Solutions Jul 5, 2025
@Haarolean Haarolean removed the status/pending-design Pending UI design solution label Jul 5, 2025
@yeikel
Copy link
Collaborator

yeikel commented Jul 5, 2025

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

@alexanderlz
Copy link
Author

@Haarolean will do

@yeikel - arrow down it is.

@Haarolean
Copy link
Member

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

@yeikel have you got some examples?

@yeikel
Copy link
Collaborator

yeikel commented Jul 9, 2025

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

@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: Screenshot_20250709_075351_Chrome.jpg

@alexanderlz
Copy link
Author

@Haarolean @yeikel done.

LMK if anything else needed.
image1
image2

@yeikel
Copy link
Collaborator

yeikel commented Jul 14, 2025

@Haarolean @yeikel done.

LMK if anything else needed.
image1
image2

It looks great! Thank you for the awesome work!

@yeikel
Copy link
Collaborator

yeikel commented Jul 14, 2025

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

@yeikel
Copy link
Collaborator

yeikel commented Jul 18, 2025

@alexanderlz Could you please resolve the conflicts?

@alexanderlz
Copy link
Author

@yeikel done

@yeikel
Copy link
Collaborator

yeikel commented Jul 18, 2025

@Haarolean Could you please do another round of reviews?

@Haarolean Haarolean added this to the 1.4 milestone Jul 23, 2025
@Haarolean Haarolean moved this from Dev Approved to Dev Implementation in UI/UX Design Solutions Jul 23, 2025
@Haarolean
Copy link
Member

@yeikel

searching for upload/download icons online yields the kind of results I refer tosearching for upload/download icons online yields the kind of results I refer to

Indeed, but if you'd look up 'export icon' it'd yield the opposite one.

@snoorge's point:

it's important to understand the difference here, i think.
uploading into the kafka system → down arrow, since you're loading stuff into it (like into a box).
downloading from the kafka system → up arrow, since you're pulling it out into the outside world (like taking something out of a box).

I have to agree with @snoorge here, however it's kinda counter intuitive.

@yeikel
Copy link
Collaborator

yeikel commented Jul 23, 2025

@yeikel

Indeed, but if you'd look up 'export icon' it'd yield the opposite one.

Fair enough. I have also seen it like this to differentiate it from a upload

image

I think that at some point in the future, we may want to add "upload" or "import" into Kafka which would be a very similar icon and maybe even more confusing

In this case, we have text along with the icon, and I think that the icon is not as important here. Both points can be made

@alexanderlz
Copy link
Author

tl;dr - we change the icon or leave it as is?
@yeikel

@yeikel
Copy link
Collaborator

yeikel commented Jul 23, 2025

tl;dr - we change the icon or leave it as is? @yeikel

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 :)

@Haarolean Haarolean moved this to Todo in Release 1.4 Jul 24, 2025
@Haarolean Haarolean moved this from Todo to In Development in Release 1.4 Jul 24, 2025
@Haarolean
Copy link
Member

tl;dr - we change the icon or leave it as is? @yeikel

I'd stick to @snoorge implementation (arrow up).
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/messages scope/frontend Related to frontend changes status/triage/completed Automatic triage completed type/enhancement En enhancement/improvement to an already existing feature
Projects
Status: In Development
Status: Dev Implementation
Development

Successfully merging this pull request may close these issues.

5 participants