zulip icon indicating copy to clipboard operation
zulip copied to clipboard

message_feed: Add Button `quote and reply` to the message bar.

Open palashb01 opened this issue 2 years ago • 17 comments

Changes:

1. Add a `Quote and reply or forward` button in the message_header_bar.

2. Whenever the screen size goes below (1080px), hide the button present in the message_container.

3. Increased the grid column width to avoid overlap of icons with message content.

4. if the screen size goes below (1080px), revert the grid column width to 55px(current value) and hide `Quote and reply or forward` button.

Fixes: #23100

CZO: Thread Demo Video and Screenshots:

  • Functionality:

https://user-images.githubusercontent.com/66828942/211964623-c05e19d4-ba99-463e-9e4b-7217f55ae3e1.mp4

  • View Port Changes:

23100

  • Message container:

Screenshot from 2023-01-19 21-06-09

  • Message container of smaller view port: Screenshot from 2023-01-12 08-18-56

  • Icons with long messages:

Screenshot from 2023-01-19 21-07-11

Self-review checklist
  • [x] Self-reviewed the changes for clarity and maintainability (variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

  • [x] Explains differences from previous plans (e.g., issue description).
  • [x] Highlights technical choices and bugs encountered.
  • [x] Calls out remaining decisions and concerns.
  • [x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

  • [x] Each commit is a coherent idea.
  • [x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

  • [x] Visual appearance of the changes.
  • [x] Responsiveness and internationalization.
  • [x] Strings and tooltips.
  • [x] End-to-end functionality of buttons, interactions and flows.
  • [x] Corner cases, error conditions, and easily imagined bugs.
  • This is the new PR with latest changes and suggestions, because of some issues I had to close the last PR: #23143

palashb01 avatar Jan 12 '23 03:01 palashb01

Hello @zulip/design members, this pull request was labeled with the "UI experiment" label, so you may want to check it out!

zulipbot avatar Jan 12 '23 03:01 zulipbot

Hey @alya @sahil839 @amanagr , Could you please review the PR and suggest if any changes are required, Thanks.

palashb01 avatar Jan 12 '23 03:01 palashb01

Overlapping message_content with icons:

Hm, when do you get overlap like that? I don't think we want buttons and content to overlap.

alya avatar Jan 18 '23 07:01 alya

@amanagr Would you be up for doing the first round of review on this one?

alya avatar Jan 18 '23 07:01 alya

Overlapping message_content with icons:

Hm, when do you get overlap like that? I don't think we want buttons and content to overlap.

I have attached the screenshot of the situation to describe the intention of my changes, which I encountered while working on this issue, and made a couple of changes to fix it.

palashb01 avatar Jan 18 '23 07:01 palashb01

@palashb01 we don't want message controls to go outside their grid-column width. To avoid overlay, you can increase the column width from 55px so that all the four icons just it in with equal spacing between them.

amanagr avatar Jan 18 '23 10:01 amanagr

@palashb01 we don't want message controls to go outside their grid-column width. To avoid overlay, you can increase the column width from 55px so that all the four icons just it in with equal spacing between them.

Sure will change the code accordingly.

palashb01 avatar Jan 18 '23 10:01 palashb01

Hey @amanagr , I have made the suggested changes and updated the PR accordingly, could you please have a look at it and suggest if any more changes are required, Thanks.

palashb01 avatar Jan 19 '23 15:01 palashb01

@palashb01 thanks! Next step is posting screenshots of how the decreased width of the message content looks like compared to main on CZO and get approval there.

amanagr avatar Jan 21 '23 09:01 amanagr

@palashb01 thanks! Next step is posting screenshots of how the decreased width of the message content looks like compared to main on CZO and get approval there.

Sure, I will post all the screenshots and will start a CZO thread for the same, Thanks.

palashb01 avatar Jan 21 '23 09:01 palashb01

Hey, @alya @amanagr, could you please review the PR and suggest if any changes are required, I have updated the PR description with the most recent screenshots and changes.

palashb01 avatar Jan 24 '23 17:01 palashb01

Thanks! The vertical alignment (and maybe the sizing?) of the icons looks off to me. In this PR:

Screen Shot 2023-01-24 at 9 42 30 AM

Without this PR:

Screen Shot 2023-01-24 at 9 46 05 AM

alya avatar Jan 24 '23 17:01 alya

Thanks! The vertical alignment (and maybe the sizing?) of the icons looks off to me. In this PR:

Screen Shot 2023-01-24 at 9 42 30 AM

Without this PR:

Screen Shot 2023-01-24 at 9 46 05 AM

Okay looking into it, Thanks.

palashb01 avatar Jan 24 '23 17:01 palashb01

Hey @alya , I have made the changes suggested by you, could you please review the PR, Thanks.

New Changes:

Screenshot from 2023-01-25 18-57-37 Screenshot from 2023-01-25 18-57-47

palashb01 avatar Jan 25 '23 13:01 palashb01

Thanks!

@amanagr Any more feedback from your side? If it looks good to you, please add the "chat.zulip.org review" label.

alya avatar Jan 26 '23 08:01 alya

LGTM, added the label.

amanagr avatar Jan 27 '23 07:01 amanagr

Hey @alya , could you please review this PR once again? A lot has changed recently, and I have made new changes to include a modern tooltip for the button. Thank you.

palashb01 avatar Mar 10 '23 22:03 palashb01

Thanks! Looks like this part of the issue got left off:

Remove "Quote and reply or forward" from the three-dot message menu.

(just for wide windows where the button is shown, of course)

alya avatar Mar 12 '23 07:03 alya

Looks good to me otherwise.

alya avatar Mar 12 '23 07:03 alya

  • [x] Remove "Quote and reply or forward" from the three-dot message menu.

@alya , I have made all the suggested changes and updated the PR description with all the latest changes, could you please review the PR and suggest if any changes are required, Thanks.

palashb01 avatar Mar 13 '23 05:03 palashb01

Cool, thanks, that looks good to me!

@timabbott ready for CZO testing from my perspective, whenever you get a chance.

alya avatar Mar 13 '23 06:03 alya

@alya , it's been some time, and a lot of changes have been made in the codebase area. I have updated the approach and the PR with the latest changes. Could you please review the PR? Thanks :)

palashb01 avatar Sep 08 '23 06:09 palashb01

Heads up @palashb01, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

zulipbot avatar Sep 20 '23 22:09 zulipbot