Repository navigation
fix(items): show the Needs you tag on the comment an item waits on again - #52234
Merged
Merged
Conversation
#49587 removed the tag from the asking comment's header. Restore it for both --ask questions and prose questions the item waits on.
[Low impact] This PR appears safe to merge. SummaryRestores the “Needs you” tag beside the author of the comment an item waits on.
Reviews (2) · Last reviewed commit: "fix(items): show the Needs you tag on th..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On an item that needs you, the comment it waits on no longer carries the "Needs you" tag in its header; only the page header pill says it.
Root cause
#49587 (keyed reply rows) removed
NeedsYouTagfromBotItemCommentCard, reasoning that the item's status already says Needs you. Not a data issue: the tag keys off the entry'swaitingflag, which is set both for--askquestions and for prose questions written with--commentwhile the item is Needs you, so both lost it.Fix
Restore the tag next to the author name while the comment is waiting. Answered/folded and plain comments are unchanged.
Checks
pnpm check:changedpasses.Performance
None, because it adds one conditional span to a comment card's header, rendered only on the comment an item waits on; no new state, effects, reads or subscriptions.
Risk
Level: Low. Renderer-only; worst case the tag shows on a comment it should not. Back out with a plain revert.
Screenshots
--askquestion--comment)Dark, narrow and answered (no tag):

Review
Official review (Team Eng Reviewer): PASS on 4bddf14.