Skip to content

ComposeBox: Don't set topic by default in stream narrows.#4769

Closed
WesleyAC wants to merge 4 commits intozulip:masterfrom
WesleyAC:composebox-remove-lastmessagetopic
Closed

ComposeBox: Don't set topic by default in stream narrows.#4769
WesleyAC wants to merge 4 commits intozulip:masterfrom
WesleyAC:composebox-remove-lastmessagetopic

Conversation

@WesleyAC
Copy link
Copy Markdown
Contributor

This is typically confusing to users, so just remove it and force people
to specify the topic they want.

We should follow up by having the "Topic" input be the default thing
that's focused, rather than the "Message" input.

Fixes: #4764

@WesleyAC WesleyAC requested review from chrisbobbe and gnprice May 29, 2021 00:37
@WesleyAC WesleyAC force-pushed the composebox-remove-lastmessagetopic branch from 69a388a to 91cae0b Compare May 29, 2021 00:38
This is typically confusing to users, so just remove it and force people
to specify the topic they want.

We should follow up by having the "Topic" input be the default thing
that's focused, rather than the "Message" input.

Fixes: zulip#4764
@WesleyAC WesleyAC force-pushed the composebox-remove-lastmessagetopic branch from 91cae0b to 6b3b33f Compare May 29, 2021 00:43
This will allow us to use getCanSelectTopic when we're constructing the
initial state.
@WesleyAC
Copy link
Copy Markdown
Contributor Author

WesleyAC commented Jun 1, 2021

Added two commits to this PR that do some cleanup on ComposeBox (making the types reflect reality more).

Previously, the state.topic variable was an empty string in narrows with
no topic, which made it annoying to distinguish that state from being in
a stream or topic narrow with the topic box empty.
@WesleyAC WesleyAC force-pushed the composebox-remove-lastmessagetopic branch from d18e9f1 to 30ab947 Compare June 1, 2021 17:57
Since we've stopped autofilling the topic textbox, we want to show the
autocomplete when the user first selects the topic textbox.
@WesleyAC
Copy link
Copy Markdown
Contributor Author

WesleyAC commented Jun 1, 2021

Hmmm, the last commit in this stack seems pretty buggy, I'm not sure if RN offers a nice way to do what I'm trying to do.

The other commits should still be good for review, though.

@WesleyAC WesleyAC force-pushed the composebox-remove-lastmessagetopic branch from ba148d3 to 822d2ff Compare June 1, 2021 20:53
@WesleyAC WesleyAC marked this pull request as draft June 2, 2021 05:02
@WesleyAC
Copy link
Copy Markdown
Contributor Author

WesleyAC commented Jun 2, 2021

Superseded by #4773.

@WesleyAC WesleyAC closed this Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make compose box topic empty when starting from interleaved stream view

1 participant