Repository navigation
fix(app): show quotes instead of attachment counts in the prompt queue - #67544
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
The fix looks sound. Quotes and notes are now counted separately from files in queuedPromptRows. A row with no typed text shows the first quote, or else the first note, as a preview. Edits in progress keep counting only the files and images in the composer, which matches the earlier behaviour. I checked the row model with the composer and i18n unit tests (142 pass) and tsc -b (passes). I did not render the panel myself; your Lab before/after images cover the visual side.
Public API is unchanged: this only touches app code and adds English i18n keys.
No blocking concerns.
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.
Issue for this PR
Closes #
Type of change
What does this PR do?
A queued prompt made only of a quote showed as "1 attachment" in the queue panel, because quotes and browser notes were counted together with files.
Queue rows now count quotes (browser notes count as quotes) separately from attachments (files and images):
queuedPromptRowsreturns the shown quote or note aspreviewand the counts asquotesandattachments. The counts are joined withIntl.ListFormat. New strings:session.queue.quotesandsession.queue.moreQuotes, English only for now, so other locales fall back to English. The gap between a row's text and its counts goes from 16px to 8px so the counts sit next to the quote.No feature flag: this is a display fix in the queue panel.
How did you verify your code works?
bun typecheckinpackages/app: passesbun testforsrc/session/composerandsrc/runtime/i18n: 142 pass, 0 failbun run checkfrom the root: 37/37 tasks passbun run lint:changed origin/dev: 0 problemsSessionQueuePanelin the Lab, fed throughqueuedPromptRowswith the same eight inbox items (dark theme, same viewport). The before image is fromorigin/dev.Screenshots / recordings
Rows, top to bottom: quote only, quote with a comment, quote with another quote and a note, quote with 2 files, text with a quote, text with 2 quotes and a file, note only, text with 2 files.
Before:
After:
Checklist