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.
13 lines
618 B
TypeScript
13 lines
618 B
TypeScript
// The package ships untranspiled Flow, which the unit project cannot parse. Insets are a device
|
|
// fact no test asserts on, so they are zero.
|
|
const ZERO_INSETS = { top: 0, right: 0, bottom: 0, left: 0 } as const;
|
|
|
|
export const useSafeAreaInsets = () => ZERO_INSETS;
|
|
export const useSafeAreaFrame = () => ({ x: 0, y: 0, width: 0, height: 0 });
|
|
export const SafeAreaProvider = ({ children }: { children?: unknown }) => children;
|
|
export const SafeAreaView = ({ children }: { children?: unknown }) => children;
|
|
export const initialWindowMetrics = {
|
|
insets: ZERO_INSETS,
|
|
frame: { x: 0, y: 0, width: 0, height: 0 },
|
|
};
|