mirror of
https://github.com/block/buzz.git
synced 2026-11-02 15:31:27 +00:00
Mobile New chat now opens directly with the synced Bestie selected. The first send creates and names the chat; leaving an empty draft creates nothing. New and existing Solo chats can select or clear a workspace from the header popover, with a checkmark for the active choice and a No Workspace option. Workspace and agent controls have separate iOS glass surfaces, Bestie stays at the far right, and Back uses a chevron. The agent sheet fits its list, with scrolling for long lists. Workspace creation stays in the Home New menu. The New menu groups Solo above Team. Android expands across the full control row; iOS keeps its native menu while Search and Bestie merge into New through Liquid Glass, with synchronized icon motion and the residual glass fading away. Empty workspaces use a compact, muted message. Validation: 4,055 mobile tests passed (34 skipped), static analysis passed, and native menu checks passed. Earlier physical-device previews and the iPhone New-menu animation were visually approved before this consolidation. This PR consolidates the controls previously developed in #8891 into the existing draft/first-send implementation. The New menu animations, attachment handling, and durable retries remain in this PR. The combined controls have widget interaction coverage; the combined build has not yet had a new physical-device walkthrough. Current combined controls below are Android Flutter widget renders with fixture data, not device screenshots. Images are GitHub attachments only. | New conversation | Workspace popover | Compact agent sheet | | --- | --- | --- | |  |  |  | Empty workspace widget preview (unchanged):  --------- Signed-off-by: kenny lopez <klopez4212@gmail.com> Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz>
24 lines
1.3 KiB
Bash
Executable File
24 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Exercise the production UIKit settings menu on a booted iOS simulator.
|
|
set -euo pipefail
|
|
repo_root=$(cd "$(dirname "$0")/.." && pwd)
|
|
device=${1:?Pass a booted iOS simulator UDID}
|
|
flutter_root=$(sed -n 's/^FLUTTER_ROOT=//p' "$repo_root/mobile/ios/Flutter/Generated.xcconfig")
|
|
frameworks="$flutter_root/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_x86_64-simulator"
|
|
fixture=$(mktemp -d)
|
|
trap 'rm -r "$fixture"' EXIT
|
|
mkdir -p "$fixture/Frameworks/App.framework/flutter_assets/assets/fonts"
|
|
cp "$repo_root/mobile/assets/fonts/TablerIcons.ttf" "$fixture/Frameworks/App.framework/flutter_assets/assets/fonts/TablerIcons.ttf"
|
|
# Compile the production menu and invoke its actual UIKit UIActions.
|
|
cat "$repo_root/mobile/ios/Runner/NativeTabler.swift" \
|
|
"$repo_root/mobile/ios/Runner/JumpToLatestGlassButton.swift" \
|
|
"$repo_root/mobile/ios/NativeControlTests/SettingMenuSelectionTests.swift" > "$fixture/test.swift"
|
|
xcrun --sdk iphonesimulator swiftc -parse-as-library \
|
|
-sdk "$(xcrun --sdk iphonesimulator --show-sdk-path)" \
|
|
-target "$(uname -m)-apple-ios16.0-simulator" \
|
|
-F "$frameworks" -framework Flutter \
|
|
-Xlinker -rpath -Xlinker "$frameworks" \
|
|
"$fixture/test.swift" \
|
|
-o "$fixture/setting-menu-tests"
|
|
xcrun simctl spawn "$device" "$fixture/setting-menu-tests"
|