zulip-terminal icon indicating copy to clipboard operation
zulip-terminal copied to clipboard

Display 'Message sent outside current narrow' when narrowing from all_messages and all_PMs.

Open srdeotarse opened this issue 2 years ago • 4 comments

Follow up PR #1194

What does this PR do? This PR displays Message sent outside current narrow even if narrowing from all_messages or all_PMs

Tested?

  • [x] Manually
  • [x] Existing tests (adapted, if necessary)
  • [ ] New tests added (for any new behavior)
  • [x] Passed linting & tests (each commit)

Commit flow

Notes & Questions

Interactions

CZO - https://chat.zulip.org/#narrow/stream/206-zulip-terminal/topic/.E2.9C.94.20Support.20'Narrow.20to.20current.20compose.20box.20recipient'.20.23T1194

Cases for showing success message - https://github.com/zulip/zulip-terminal/pull/1194#discussion_r851485357

Visual changes

srdeotarse avatar Apr 17 '22 04:04 srdeotarse

@zulipbot add "PR needs review".

srdeotarse avatar Apr 17 '22 05:04 srdeotarse

From #1194:

However, my remaining query here is whether we want to customize this logic/message a little further: - in all-messages narrow, we never see this, but may still want to go to the conversation - in stream (or all-PM) narrows which hold the message, we may also still want to go to the conversation - if a message is outside the narrow, we always want to show this

I may not have been clear in this comment, but what I meant is that the two messages are not necessarily correlated since the conditions vary:

  • we still want the 'outside of narrow' behavior to stay the same
  • we want to also show the hint if not fully narrowed, ie. what the shortcut would do (though this could become too much, we'll see)

neiljp avatar Apr 17 '22 05:04 neiljp

@zulipbot add "PR needs review".

srdeotarse avatar Apr 21 '22 13:04 srdeotarse

@srdeotarse Left messages in stream for discussion. Also please address comments in a PR via changes or comments, or discuss in stream and reach a conclusion, before requesting review again :)

neiljp avatar Apr 21 '22 21:04 neiljp

Heads up @srdeotarse, 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 Feb 24 '23 21:02 zulipbot