GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(mobile): experiment with v5 stacks and native iPad columns by juliusmarminge · Pull Request #12646 · pingdotgg/t3code

feat(mobile): experiment with v5 stacks and native iPad columns #12646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
juliusmarminge wants to merge 22 commits into main from mobile/rns-v5-migration
+1,525 −2,330
Closed

feat(mobile): experiment with v5 stacks and native iPad columns #12646

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
da34e8e
feat(mobile): spike v5 stacks and native iPad columns
juliusmarminge Sep 19, 2026
081a88e
fix(mobile): resize markdown during native column layout
juliusmarminge Sep 19, 2026
aa42c89
fix(mobile): retain real v5 screen descriptors through pops
juliusmarminge Sep 19, 2026
90e070d
refactor(mobile): retain v5 screen state as one snapshot
juliusmarminge Sep 19, 2026
ef1b6a7
fix(mobile): retain selection in native primary columns
juliusmarminge Sep 19, 2026
c8a37f7
fix(mobile): stabilize primary column selection context
juliusmarminge Sep 19, 2026
60763c1
fix(mobile): retain native iPhone toolbar search on v5
juliusmarminge Sep 19, 2026
66d0ddc
fix(mobile): narrow the iOS platform check for toolbar search
juliusmarminge Sep 19, 2026
404d10d
fix(mobile): restore iPad sidebar controls and drawer colors
juliusmarminge Sep 20, 2026
f3ac5b7
fix(mobile): match v5 headers to their column backgrounds
juliusmarminge Sep 20, 2026
7280d26
fix(mobile): remove duplicate loading and back controls
juliusmarminge Sep 20, 2026
2f3f4fa
fix(mobile): restore native thread list header blur
juliusmarminge Sep 20, 2026
3b3b790
fix(mobile): keep native scroll registration scoped to iOS
juliusmarminge Sep 20, 2026
41a87ef
fix(mobile): restore full-width native header blur on iOS 27
juliusmarminge Sep 20, 2026
e44622c
fix(mobile): restore automatic scroll edges for v5 custom titles
juliusmarminge Sep 20, 2026
3278b45
fix(mobile): sync v5 integration with upstream Screens proposals
juliusmarminge Sep 30, 2026
287f3e4
fix(mobile): package self-contained split conversion templates
juliusmarminge Sep 30, 2026
88e3412
fix(mobile): finish native snapshot and sync formatting
juliusmarminge Sep 30, 2026
2e01d2a
build(mobile): consume a versioned Screens fork package
juliusmarminge Sep 30, 2026
ec840f1
fix(mobile): keep trackpad scrolling out of horizontal row pans
juliusmarminge Oct 1, 2026
c2acbde
fix(mobile): keep workspace flows beside the iPad sidebar
juliusmarminge Oct 1, 2026
4328f94
fix(mobile): inset rows in the native sidebar list
juliusmarminge Oct 1, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(mobile): retain selection in native primary columns
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge committed Oct 1, 2026
commit ef1b6a7005d2c4be4be715f12038af8816a7f69e

There are no files selected for viewing

21 changes: 18 additions & 3 deletions 21 apps/mobile/src/features/home/HomeScreen.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "@t3tools/contracts";
import { useAtomValue } from "@effect/atom-react";
import { useFocusEffect } from "@react-navigation/native";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { use, useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
ActivityIndicator,
Platform,
Expand All @@ -34,7 +34,9 @@ import { EmptyState } from "../../components/EmptyState";
import { MaterialFloatingActionButton } from "../../components/MaterialFloatingActionButton";
import type { WorkspaceEnvironment, WorkspaceState } from "../../state/workspaceModel";
import type { SavedRemoteConnection } from "../../lib/connection";
import { scopedProjectKey } from "../../lib/scopedEntities";
import { scopedProjectKey, scopedThreadKey } from "../../lib/scopedEntities";
import { NativePrimaryColumnContext } from "../../native/v5-workspace-context";
import { useNativeColumnLayoutMetrics } from "../layout/native-layout-metrics";
import { NATIVE_LIQUID_GLASS_SUPPORTED } from "../../native/native-glass";
import { useThreadSearch } from "../../state/queries";
import { useThreadJumpShortcuts } from "../keyboard/threadKeyboardShortcuts";
Expand Down Expand Up @@ -224,6 +226,10 @@ function HomeTopContentSpacer() {
/* ─── Main screen ────────────────────────────────────────────────────── */

export function HomeScreen(props: HomeScreenProps) {
const primaryColumn = use(NativePrimaryColumnContext);
const columnMetrics = useNativeColumnLayoutMetrics();
const selectedThreadKey = primaryColumn?.selectedThreadKey ?? null;
const fullSwipeWidth = primaryColumn && columnMetrics ? columnMetrics.width - 20 : undefined;
const queuedThreadKeys = useQueuedThreadKeys();
const openSwipeableRef = useRef<SwipeableMethods | null>(null);
const insets = useSafeAreaInsets();
Expand Down Expand Up @@ -623,10 +629,11 @@ export function HomeScreen(props: HomeScreenProps) {
now: new Date().toISOString(),
snoozedShelfExpanded,
settledShelfExpanded,
selectedThreadKey: null,
selectedThreadKey,
});
}, [
pendingOrder,
selectedThreadKey,
queuedThreadKeys,
nowMinute,
snoozeWakeTick,
Expand Down Expand Up @@ -759,6 +766,9 @@ export function HomeScreen(props: HomeScreenProps) {
const thread = item.item.thread;
return (
<ThreadListV2Row
pane={primaryColumn ? "sidebar" : "screen"}
selected={scopedThreadKey(thread.environmentId, thread.id) === selectedThreadKey}
fullSwipeWidth={fullSwipeWidth}
onNewThreadOnBranch={props.onNewThreadOnBranch}
thread={thread}
variant={item.item.variant}
Expand Down Expand Up @@ -844,6 +854,9 @@ export function HomeScreen(props: HomeScreenProps) {
props.onDeletePendingTask,
props.onSelectPendingTask,
props.onSelectThread,
primaryColumn,
selectedThreadKey,
fullSwipeWidth,
props.onNewThreadOnBranch,
props.savedConnectionsById,
resolveProviderInstance,
Expand All @@ -870,11 +883,13 @@ export function HomeScreen(props: HomeScreenProps) {
serverConfigs,
savedConnectionsById: props.savedConnectionsById,
searchQuery: props.searchQuery,
selectedThreadKey,
threadSearchMatchByKey,
}),
[
projectByKey,
props.searchQuery,
selectedThreadKey,
props.savedConnectionsById,
serverConfigs,
threadSearchMatchByKey,
Expand Down
20 changes: 19 additions & 1 deletion 20 apps/mobile/src/native/createWorkspaceStackNavigator.ios.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import {
import { use, useCallback, useEffect, useRef, type ComponentProps } from "react";
import { View } from "react-native";
import { Split, type SplitHostCommands } from "react-native-screens";
import { EnvironmentId, ThreadId } from "@t3tools/contracts";
import { scopedThreadKey } from "../lib/scopedEntities";

import { useAdaptiveWorkspaceLayout } from "../features/layout/AdaptiveWorkspaceLayout";
import { WorkspaceEmptyDetail } from "../features/layout/WorkspaceEmptyDetail";
Expand Down Expand Up @@ -51,6 +53,7 @@ const MODAL_FLOWS = new Set(["SettingsSheet", "NewTaskSheet"]);
function ColumnScreen(props: {
readonly descriptor: Descriptor;
readonly primary?: boolean;
readonly selectedThreadKey?: string | null;
readonly onDismiss: (routeKey: string) => void;
readonly navigation: ViewProps["navigation"];
}) {
Expand Down Expand Up @@ -83,7 +86,9 @@ function ColumnScreen(props: {
primary={props.primary}
/>
<ColumnContent>
<NativePrimaryColumnContext value={props.primary ?? false}>
<NativePrimaryColumnContext
value={props.primary ? { selectedThreadKey: props.selectedThreadKey ?? null } : null}
>
{descriptor.render()}
</NativePrimaryColumnContext>
</ColumnContent>
Expand All @@ -100,6 +105,18 @@ function WorkspaceColumns(
const inspector = use(NativeWorkspaceInspectorContext);
const hostRef = useRef<SplitHostCommands>(null);
const activeDetailKey = props.detail.at(-1)?.key;
const threadParams = props.detail.findLast((route) => route.name === "Thread")?.params;
const selectedThreadKey =
threadParams &&
"environmentId" in threadParams &&
"threadId" in threadParams &&
typeof threadParams.environmentId === "string" &&
typeof threadParams.threadId === "string"
? scopedThreadKey(
EnvironmentId.make(threadParams.environmentId),
ThreadId.make(threadParams.threadId),
)
: null;
const handleNativeDismiss = useCallback(
(key: string) => {
const state = props.navigation.getState();
Expand Down Expand Up @@ -145,6 +162,7 @@ function WorkspaceColumns(
<ColumnScreen
descriptor={primary}
primary
selectedThreadKey={selectedThreadKey}
onDismiss={handleNativeDismiss}
navigation={props.navigation}
/>
Expand Down
4 changes: 3 additions & 1 deletion 4 apps/mobile/src/native/v5-workspace-context.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { createContext, type ReactNode } from "react";

// The router is shared with the other platforms; only iOS uses native columns.
export const NativeWorkspaceModeContext = createContext(false);
export const NativePrimaryColumnContext = createContext(false);
export const NativePrimaryColumnContext = createContext<{
readonly selectedThreadKey: string | null;
} | null>(null);
export const NativeWorkspaceInspectorContext = createContext<{
readonly render: (() => ReactNode) | undefined;
readonly visible: boolean;
Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.