Repository navigation
Sit pull request lists on the section edge - #1162
Conversation
Changelog
|
PR Summary by QodoShow Hidden Resolved Thread Count in Threads Toggle
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Only the unresolved view reports the count, so the label keeps it from there once the toggle is on.
5d2e742 to
c8d3fcb
Compare
Code Review by Qodo
1.
|
| </TabStrip> | ||
| <StackPanel Grid.Column="1" Orientation="Horizontal" Spacing="8" VerticalAlignment="Center" IsVisible="{Binding IsThreads}"> | ||
| <TextBlock Text="Show resolved" FontSize="12.5" Foreground="{StaticResource KcapMutedBrush}" VerticalAlignment="Center" /> | ||
| <TextBlock Text="{Binding ShowResolvedLabel}" FontSize="12.5" Foreground="{StaticResource KcapMutedBrush}" VerticalAlignment="Center" /> |
There was a problem hiding this comment.
3. Screen readers miss hidden count 🐞 Bug ≡ Correctness
The bound TextBlock now displays ShowResolvedLabel, while ShowResolvedToggle still overrides its automation name with the fixed text “Show resolved threads.” When a hidden count is available, keyboard and screen-reader focus on the toggle therefore exposes none of the new numerical information.
Agent Prompt
## Issue description
The visible toggle label includes the hidden resolved-thread count, but the toggle's explicit accessibility name remains static and omits that count.
## Fix Focus Areas
- src/Capacitor.App/Views/PullRequestReader.axaml[73-75]
## Recommended Fix
Bind `AutomationProperties.Name` to an accessible label derived from `ShowResolvedLabel`, preserving the word “threads” if needed, so the visible and announced labels both include the count.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
There was a problem hiding this comment.
The count is the text beside the switch. The switch's accessible name stays "Show resolved threads", so focusing the switch does not announce the number. I can bind that name to the same label if the switch should say it.
The review row already separates that section, so the scroll area adds a top inset on overview only. The loading notice sizes to its text.
The switch adds resolved threads to the unresolved list, so a count on the label reads as a resolved-only result.
The row had 10px above and 8px below, so the pills sat low between the section rule and the list.
#1157 — AI-3216
#1157 is already closed by #1158, so this line has no closing keyword.
What & why
Continuation of #1158, which merged before the reader spacing was finished. Lists sit on the section edge. Only Overview, which has no row padding, keeps a small top inset. The Reviewers, Submitted, and Threads row keeps a little space under the pills, and the loading notice sizes to its text.
Where to look
The review row's bottom margin is the gap under the pills. The scroll area has no top inset except the overview block.
Visuals