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

Showing Bot Markers.

Open plugyawn opened this issue 2 years ago • 8 comments

What does this PR do? Adds bot markers to bots.

Partial fix for #1155.

Tested?

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

Commit flow

  • first commit adds BOT_MARKER to symbols.py. Currently set to robot face, U+1F916 (🤖).
  • second commit adds necessary changes in ui_mappings.py to associate BOT_MARKER with the "bot" status, as compared to the "inactive" status they were assigned earlier.
  • third commit checks if it is indeed a bot and associates the marker to it.

Notes & Questions

  • unsure about how to fix the black background against the robot emoji. I'm guessing it's because it's not a traditional character? I couldn't really choose a better character.

Visual changes

Screenshot 2022-04-06 at 12 00 38 AM

plugyawn avatar Apr 05 '22 18:04 plugyawn

@plugyawn I mentioned about the symbol in the stream. Otherwise please use the standard commit text style for zulip-terminal as indicated in the README (and see gitlint), and adjust the commit flow ready for merging.

This looks straightforward; I'm not sure if we explicitly need tests for this.

In a bot-related way, you might consider how the user popup can be improved for the case of bots, as a follow-up.

neiljp avatar Apr 06 '22 18:04 neiljp

On it! I'll update the commit text and let you know asap.

plugyawn avatar Apr 07 '22 22:04 plugyawn

@plugyawn I'm mainly waiting for a commit reflow here, which may be simple, but just checked functionality again as it stands as this seems a quick PR. However, it seems that the symbol you're using is styled to be black on a white background somehow, and that is bleeding into the user search box names too. That doesn't seem to be intentional, so I wonder if it's part of the symbol itself somehow?

neiljp avatar Apr 21 '22 21:04 neiljp

@neiljp updated the commit flow.

plugyawn avatar May 06 '22 13:05 plugyawn

Also note that the formatting being in the wrong commit would be picked up if you ran tools/check-branch.

neiljp avatar May 06 '22 21:05 neiljp

See other feedback in the stream. I resolved my issue with it not working at all on one of my computers.

neiljp avatar Jun 09 '22 17:06 neiljp

I have reviewed the PR and have posted some questions in the stream.

srdeotarse avatar Jun 10 '22 00:06 srdeotarse

@plugyawn This PR would be good to close out, now you've got feedback too?

neiljp avatar Jun 24 '22 01:06 neiljp

@plugyawn Thanks for working on this :+1: I reworked this slightly after a preliminary refactor and a few adjustments, and this work is effectively merged as #1377 :tada:

neiljp avatar Apr 12 '23 21:04 neiljp