Skip to content
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

Auto-close compose box after auto-opening #30104

Open
alya opened this issue May 15, 2024 · 0 comments · May be fixed by #30210
Open

Auto-close compose box after auto-opening #30104

alya opened this issue May 15, 2024 · 0 comments · May be fixed by #30210
Labels
area: compose (misc) priority: high UX UX improvements to an existing workflow.

Comments

@alya
Copy link
Contributor

alya commented May 15, 2024

As reported on CZO, a UX issue appeared when we started auto-restoring drafts:

  1. Go to a DM thread with a saved draft. The compose box is automatically opened (because it's a DM thread), and the draft is populated.
  2. Go to another DM thread.

Previously, the compose box would automatically switch to the new conversation, which was good. Now, because there is content in the compose box, it doesn't do so. So you end up in a state where your conversation is faded, and you're looking at a draft for another conversation you might have had no intention to engage with.

To address this, we should treat the compose box as having been closed, not open, when the user navigates to a new view if:

  • The compose box auto-opened, and
  • The user hasn't made any changes to the message content or addressee.

The result will be that in the situation described above, the compose box will switch to a new message in the conversation the user navigated to, same as before the auto-restore feature. This will also make it possible to experiment with auto-opening the compose box in more situations.

CZO thread

@alya alya added area: compose (misc) priority: high UX UX improvements to an existing workflow. labels May 15, 2024
evykassirer added a commit to evykassirer/zulip that referenced this issue May 25, 2024
evykassirer added a commit to evykassirer/zulip that referenced this issue May 25, 2024
evykassirer added a commit to evykassirer/zulip that referenced this issue May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: compose (misc) priority: high UX UX improvements to an existing workflow.
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant