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.
14 lines
625 B
TypeScript
14 lines
625 B
TypeScript
// The package ships untranspiled Flow, which the unit project cannot parse. The sheet is a native
|
|
// presentation; tests that reach a menu do so through the popover, so rendering nothing is enough
|
|
// to keep the module graph importable.
|
|
const Stub = () => null;
|
|
const PassThrough = ({ children }: { children?: unknown }) => children;
|
|
|
|
export default Stub;
|
|
export const BottomSheetModal = Stub;
|
|
export const BottomSheetModalProvider = PassThrough;
|
|
export const BottomSheetBackdrop = Stub;
|
|
export const BottomSheetScrollView = PassThrough;
|
|
export const BottomSheetView = PassThrough;
|
|
export const BottomSheetTextInput = Stub;
|