Skip to content

Use ZulipIcons.check icon for resolved topics in the UI (except topic autocomplete)#2264

Open
chrisbobbe wants to merge 7 commits into
zulip:mainfrom
chrisbobbe:pr-checkmark-in-resolved-topics
Open

Use ZulipIcons.check icon for resolved topics in the UI (except topic autocomplete)#2264
chrisbobbe wants to merge 7 commits into
zulip:mainfrom
chrisbobbe:pr-checkmark-in-resolved-topics

Conversation

@chrisbobbe
Copy link
Copy Markdown
Collaborator

@chrisbobbe chrisbobbe commented Apr 1, 2026

This is stacked atop #2262, which has a lot of commits. There are just 5 for review here:

af5a8d9 action_sheet: Use ZulipIcons.check for resolved topic in action sheet header
b9f1009 text [nfc]: Extract topicLabelSpan from channelTopicLabelSpan
03e2ed5 message_list: Use ZulipIcons.check for resolved topic in app bar title
840a867 message_list: Use ZulipIcons.check for resolved topic in recipient header
2487cb3 message_list [nfc]: Remove unused fontStyle param from recipientHeaderTextStyle

This PR leaves one site in the list at #2263 unhandled for now: topic autocomplete, just because #2225 is still in flight and I didn't want to complicate this PR further by cherry-picking that. Done; see screenshots in a separate comment below.

Fixes-partly: #2263

Screenshots
Before After
image image
image image
image image
image image

cc @alya

@chrisbobbe chrisbobbe added the maintainer review PR ready for review by Zulip maintainers label Apr 1, 2026
@chrisbobbe chrisbobbe requested a review from alya April 1, 2026 04:00
@chrisbobbe chrisbobbe added the product review Added by maintainers when a PR needs product review label Apr 1, 2026
@chrisbobbe chrisbobbe force-pushed the pr-checkmark-in-resolved-topics branch from 2487cb3 to c47e87d Compare April 1, 2026 18:19
@chrisbobbe
Copy link
Copy Markdown
Collaborator Author

…And updated to include topic autocomplete too, now that #2225 was merged! 🎉 (This includes a text-color fixup too, which belonged in #2225, oops.)

Before After
image image
image image

@chrisbobbe chrisbobbe force-pushed the pr-checkmark-in-resolved-topics branch from c47e87d to c820287 Compare April 14, 2026 01:01
@rajveermalviya
Copy link
Copy Markdown
Member

Thanks @chrisbobbe! Looks like #2262 has been merged, and this has gotten some conflicts. Could you please rebase this PR to latest main?

Pull out the topic-rendering part (check icon for resolved topics,
topic display name, italic empty-topic placeholder) into its own
topicLabelSpan function, so it can be reused at other sites that
show topics.
Oops, I left this out of 8ac33a6; we should be using this color,
specified by the Figma, instead of a Material-theme default, which
Claude claims resolved to the following:

  - Light theme: Colors.black87 (#DD000000)
  - Dark theme: Colors.white

This color is:

- Light: Color(0xff242631)
- Dark: Color(0xffdfe1e8)
@chrisbobbe chrisbobbe force-pushed the pr-checkmark-in-resolved-topics branch from c820287 to 180947a Compare April 27, 2026 20:03
@chrisbobbe
Copy link
Copy Markdown
Collaborator Author

Done, thanks for the nudge!

Copy link
Copy Markdown
Member

@rajveermalviya rajveermalviya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @chrisbobbe! All LGTM, couple of nits below.

Comment thread lib/widgets/text.dart
///
/// Pass this to [Text.rich], which can be styled arbitrarily.
/// Pass the [fontSize] and [color] of surrounding text
/// so that the icons are sized and colored appropriately.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This helper adds only one icon.

Suggested change
/// so that the icons are sized and colored appropriately.
/// so that the icon is sized and colored appropriately.

Comment thread lib/widgets/text.dart
Comment on lines +859 to +860
if (topic.unresolve().displayName != null)
TextSpan(text: topic.unresolve().displayName)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can compute this topic.unresolve() once by assigning to a variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers product review Added by maintainers when a PR needs product review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants