fix(app): dismiss the composer track panel when a row is chosen
Track pills became menu surfaces when the trackers moved out of stacked cards, but ComposerTrackRow kept the raw Pressable it had as an inline card row. Nothing in that path reaches selectItem, so the popover or sheet stayed parked over the transcript after opening a subagent, and on iOS the action fired while UIKit was still tearing the sheet down. Rows now hand the press to the engine and take closeOnSelect, as MenuItem does; bulk archive opts out because its progress lands in the panel. The running mark is the shared StatusRing rather than a still dot the pill drew for itself, and the remaining dots read their colour from the one bucket-to-colour map. The slot is sized for the ring in every state so the label does not step sideways when the last child finishes. Mounting the real menu engine in a test needed harness work: stubs for two packages that ship untranspiled Flow, reanimated left out of Vite's prebundle so its .web files win, and the gaps filled in the unistyles test theme.
This commit is contained in:
@@ -155,6 +155,9 @@ function ArchiveFinishedRow({
|
||||
accessibilityLabel={t("subagents.archiveFinishedAction")}
|
||||
testID="subagents-track-archive-finished"
|
||||
disabled={disabled}
|
||||
// Progress and the retry count land on this row, so the panel is where the result of
|
||||
// pressing it shows up. Dismissing would hide the thing the press produces.
|
||||
closeOnSelect={false}
|
||||
onPress={onPress}
|
||||
>
|
||||
{renderRow}
|
||||
|
||||
Reference in New Issue
Block a user