Skip to content

Commit f2c9b9b

Browse files
authored
Merge branch 'pingdotgg:main' into feat/oh-my-pi-provider
2 parents 0049c35 + c034f51 commit f2c9b9b

97 files changed

Lines changed: 4572 additions & 505 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/VOUCHED.td‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,41 @@
1010
#
1111
# Keep entries sorted alphabetically.
1212
github:adityavardhansharma
13+
github:arhxam
1314
github:bil0000
1415
github:binbandit
16+
github:Brechard
1517
github:chrisdeeming
1618
github:chuks-qua
1719
github:cursoragent
20+
github:D3OXY
1821
github:eggfriedrice24
22+
github:extoci
1923
github:gbarros-dev
2024
github:gfsaaser24
2125
github:github-actions[bot]
2226
github:gsimone
27+
github:GuilhermeVieiraDev
2328
github:hwanseoc
29+
github:jakeleventhal
2430
github:jamesx0416
2531
github:jappyjan
2632
github:jasonLaster
2733
github:JoeEverest
2834
github:justsomelegs
35+
github:kridaydave
36+
github:lnieuwenhuis
37+
github:Lucenx9
2938
github:mackinleysmith
3039
github:maria-rcks
40+
github:mwolson
3141
github:nmggithub
3242
github:Noojuno
3343
github:notkainoa
3444
github:PatrickBauer
3545
github:pc-style
46+
github:PixPMusic
47+
github:PollyGlot
3648
github:RakshithBhat03
3749
github:realAhmedRoach
3850
github:Rishet11
@@ -43,6 +55,8 @@ github:shivamhwp
4355
github:StiensWout
4456
github:SunkenInTime
4557
github:tarik02
58+
github:tris203
4659
github:UtkarshUsername
4760
github:Yash-Singh1
61+
github:yashranaway
4862
github:Ymit24

‎apps/marketing/vercel.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import type { VercelConfig } from "@vercel/config/v1";
22

33
export const config: VercelConfig = {
4+
git: {
5+
deploymentEnabled: false,
6+
},
47
installCommand: "npm install -g vite-plus && vp install --filter '@t3tools/marketing...'",
58
buildCommand: "vp run --filter @t3tools/marketing build",
69
outputDirectory: "dist",

‎apps/mobile/modules/t3-markdown-text/src/markdownLinks.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import type { MARKDOWN_FILE_ICON_SOURCES } from "./markdownFileIcons.generated";
33
const WINDOWS_DRIVE_PATH_PATTERN = /^[A-Za-z]:[\\/]/;
44
const WINDOWS_UNC_PATH_PATTERN = /^\\\\/;
55
const RELATIVE_PATH_PREFIX_PATTERN = /^(~\/|\.{1,2}\/)/;
6-
const RELATIVE_FILE_PATH_PATTERN = /^[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)+(?::\d+){0,2}$/;
7-
const RELATIVE_FILE_NAME_PATTERN = /^[A-Za-z0-9._-]+\.[A-Za-z0-9_-]+(?::\d+){0,2}$/;
6+
const RELATIVE_FILE_PATH_PATTERN =
7+
/^(?:[A-Za-z0-9._-]+(?: +[A-Za-z0-9._-]+)*\/)+[A-Za-z0-9._-]+(?: +[A-Za-z0-9._-]+)*(?::\d+){0,2}$/;
8+
const RELATIVE_FILE_NAME_PATTERN =
9+
/^[A-Za-z0-9._-]+(?: +[A-Za-z0-9._-]+)*\.[A-Za-z0-9_-]+(?::\d+){0,2}$/;
810
const POSITION_SUFFIX_PATTERN = /:\d+(?::\d+)?$/;
911
const POSIX_FILE_ROOT_PREFIXES = [
1012
"/Users/",

‎apps/mobile/src/components/CompactBrandTitle.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export function brandTitleOffset(nativeLeadingItem: boolean): number {
3333
*/
3434
export function CompactBrandTitle(
3535
props: {
36+
readonly allowFontScaling?: boolean;
3637
readonly nativeLeadingItem?: boolean;
3738
} = {},
3839
) {
@@ -57,6 +58,7 @@ export function CompactBrandTitle(
5758
>
5859
<T3Wordmark color={iconColor} height={15} />
5960
<Text
61+
allowFontScaling={props.allowFontScaling}
6062
style={{
6163
color: mutedColor,
6264
fontFamily: "DMSans-Medium",
@@ -75,6 +77,7 @@ export function CompactBrandTitle(
7577
}}
7678
>
7779
<Text
80+
allowFontScaling={props.allowFontScaling}
7881
style={{
7982
color: mutedColor,
8083
fontFamily: "DMSans-Bold",
@@ -91,7 +94,7 @@ export function CompactBrandTitle(
9194
}
9295

9396
export function renderCompactBrandTitle() {
94-
return <CompactBrandTitle />;
97+
return <CompactBrandTitle allowFontScaling={Platform.OS === "ios"} />;
9598
}
9699

97100
export function renderCompactBrandHeaderItems(): NativeStackHeaderItem[] {

‎apps/mobile/src/features/home/AndroidHomeFab.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { SymbolView } from "../../components/AppSymbol";
66
import { useThemeColor } from "../../lib/useThemeColor";
77

88
/**
9-
* Android-only wrapper that overlays a bottom-right new-task FAB on the home
10-
* screen. Other platforms render children unchanged.
9+
* Android-only wrapper that overlays a bottom-right new-task FAB on a thread
10+
* list. Other platforms render children unchanged.
1111
*/
1212
export function AndroidHomeFabLayout(props: {
1313
readonly onStartNewTask: () => void;

‎apps/mobile/src/features/home/HomeRouteScreen.tsx‎

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as Arr from "effect/Array";
22
import * as Order from "effect/Order";
33
import { useNavigation } from "@react-navigation/native";
44
import { useEffect, useMemo, useState } from "react";
5+
import { Platform } from "react-native";
56

67
import { NativeHeaderToolbar, NativeStackScreenOptions } from "../../native/StackHeader";
78
import { useProjects, useThreadShells } from "../../state/entities";
@@ -106,7 +107,11 @@ export function HomeRouteScreen() {
106107
return (
107108
<>
108109
<NativeStackScreenOptions
109-
options={{ title: "", headerTitle: "", unstable_headerLeftItems: () => [] }}
110+
options={
111+
Platform.OS === "android"
112+
? { headerShown: false }
113+
: { title: "", headerTitle: "", unstable_headerLeftItems: () => [] }
114+
}
110115
/>
111116
<WorkspaceSidebarToolbar
112117
afterSidebarButton={
@@ -129,18 +134,20 @@ export function HomeRouteScreen() {
129134
onStartNewTask={() => navigation.navigate("NewTaskSheet", { screen: "NewTask" })}
130135
>
131136
<>
132-
{/* Restore the compact title after the split branch blanks the detail
133-
header. The brand slot doubles as the connection status surface:
134-
while an environment reconnects, the lockup fades to a status label
135-
in place (no layout shift in the list below). */}
137+
{/* Restore the header after leaving split view; screen options are
138+
shallow-merged. The brand slot also doubles as the connection
139+
status surface while an environment reconnects. */}
136140
<NativeStackScreenOptions
137-
options={getConnectionAwareBrandHeaderOptions({
138-
onOpenEnvironments: () =>
139-
navigation.navigate("SettingsSheet", {
140-
screen: "SettingsContent",
141-
params: { screen: "SettingsEnvironments" },
142-
}),
143-
})}
141+
options={{
142+
...getConnectionAwareBrandHeaderOptions({
143+
onOpenEnvironments: () =>
144+
navigation.navigate("SettingsSheet", {
145+
screen: "SettingsContent",
146+
params: { screen: "SettingsEnvironments" },
147+
}),
148+
}),
149+
headerShown: true,
150+
}}
144151
/>
145152
<HomeHeader
146153
environments={environments}

‎apps/mobile/src/features/home/HomeScreen.tsx‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import {
5656
THREAD_LIST_V2_SETTLED_PAGE_COUNT,
5757
type ThreadListV2ListItem,
5858
} from "../threads/threadListV2";
59+
import { useThreadListV2ShelfPreferences } from "../threads/use-thread-list-v2-shelf-preferences";
5960
import type { HomeListFilterMenuEnvironment } from "./home-list-filter-menu";
6061
import {
6162
buildHomeListLayout,
@@ -572,10 +573,13 @@ export function HomeScreen(props: HomeScreenProps) {
572573
() => setSettledVisibleCount((count) => count + THREAD_LIST_V2_SETTLED_PAGE_COUNT),
573574
[],
574575
);
575-
const [snoozedShelfExpanded, setSnoozedShelfExpanded] = useState(false);
576-
const toggleSnoozedShelf = useCallback(() => setSnoozedShelfExpanded((value) => !value), []);
577-
const [settledShelfExpanded, setSettledShelfExpanded] = useState(true);
578-
const toggleSettledShelf = useCallback(() => setSettledShelfExpanded((value) => !value), []);
576+
const {
577+
loaded: shelfPreferencesLoaded,
578+
settledShelfExpanded,
579+
snoozedShelfExpanded,
580+
toggleSettledShelf,
581+
toggleSnoozedShelf,
582+
} = useThreadListV2ShelfPreferences();
579583
// now is quantized to the minute and ticks so the inactivity auto-settle
580584
// boundary is actually crossed while the app stays open (mirrors web);
581585
// without a clock dependency the partition memoizes a frozen "now".
@@ -785,6 +789,7 @@ export function HomeScreen(props: HomeScreenProps) {
785789
return (
786790
<ThreadListV2SnoozedShelfHeader
787791
count={item.count}
792+
disabled={!shelfPreferencesLoaded}
788793
expanded={item.expanded}
789794
onToggle={toggleSnoozedShelf}
790795
/>
@@ -794,6 +799,7 @@ export function HomeScreen(props: HomeScreenProps) {
794799
return (
795800
<ThreadListV2SettledShelfHeader
796801
count={item.count}
802+
disabled={!shelfPreferencesLoaded}
797803
expanded={item.expanded}
798804
onToggle={toggleSettledShelf}
799805
/>
@@ -890,6 +896,7 @@ export function HomeScreen(props: HomeScreenProps) {
890896
props.onSelectThread,
891897
props.savedConnectionsById,
892898
serverConfigs,
899+
shelfPreferencesLoaded,
893900
settlementEnvironmentIds,
894901
snoozeEnvironmentIds,
895902
threadListV2Items,

‎apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx‎

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import {
4545
parseActiveThreadPath,
4646
useHardwareKeyboardCommand,
4747
} from "../keyboard/hardwareKeyboardCommands";
48+
import { AndroidHomeFabLayout } from "../home/AndroidHomeFab";
4849
import { HomeListOptionsProvider } from "../home/home-list-options";
4950
import { ThreadNavigationSidebar } from "../threads/ThreadNavigationSidebar";
5051
import { WORKSPACE_PANE_TIMING } from "./workspace-pane-animation";
@@ -435,6 +436,10 @@ function AdaptiveWorkspaceLayoutContent(
435436
});
436437
}, [navigation]);
437438

439+
const handleStartNewTask = useCallback(() => {
440+
navigation.navigate("NewTaskSheet", { screen: "NewTask" });
441+
}, [navigation]);
442+
438443
// Minted here (root stack navigation) so the sidebar pane stays free of
439444
// navigation hooks — on iOS it renders inside an independent nav tree.
440445
const handleOpenEnvironmentSettings = useCallback(() => {
@@ -528,18 +533,22 @@ function AdaptiveWorkspaceLayoutContent(
528533
pointerEvents={panes.primarySidebarVisible ? "auto" : "none"}
529534
style={sidebarAnimatedStyle}
530535
>
531-
<ThreadNavigationSidebar
532-
width={layout.listPaneWidth}
533-
visible={panes.primarySidebarVisible}
534-
onRequestVisibility={revealPrimarySidebar}
535-
selectedThreadKey={selectedThreadKey}
536-
onOpenSettings={handleOpenSettings}
537-
onOpenEnvironmentSettings={handleOpenEnvironmentSettings}
538-
onNewThreadInProject={handleNewThreadInProject}
539-
onSelectThread={handleSelectThread}
540-
onSearchQueryChange={setPrimarySidebarSearchQuery}
541-
searchQuery={primarySidebarSearchQuery}
542-
/>
536+
<View className="flex-1" style={{ width: layout.listPaneWidth }}>
537+
<AndroidHomeFabLayout onStartNewTask={handleStartNewTask}>
538+
<ThreadNavigationSidebar
539+
width={layout.listPaneWidth}
540+
visible={panes.primarySidebarVisible}
541+
onRequestVisibility={revealPrimarySidebar}
542+
selectedThreadKey={selectedThreadKey}
543+
onOpenSettings={handleOpenSettings}
544+
onOpenEnvironmentSettings={handleOpenEnvironmentSettings}
545+
onNewThreadInProject={handleNewThreadInProject}
546+
onSelectThread={handleSelectThread}
547+
onSearchQueryChange={setPrimarySidebarSearchQuery}
548+
searchQuery={primarySidebarSearchQuery}
549+
/>
550+
</AndroidHomeFabLayout>
551+
</View>
543552
</Animated.View>
544553
) : null}
545554
<View className="flex-1 overflow-hidden bg-screen" collapsable={false}>

‎apps/mobile/src/features/threads/ThreadFeed.tsx‎

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ import {
7676
} from "../review/nativeReviewDiffAdapter";
7777
import { buildReviewParsedDiff } from "../review/reviewModel";
7878
import { cn } from "../../lib/cn";
79-
import { deriveCenteredContentHorizontalPadding, type LayoutVariant } from "../../lib/layout";
79+
import {
80+
deriveCenteredContentHorizontalPadding,
81+
deriveThreadFeedInitialContentInset,
82+
type LayoutVariant,
83+
} from "../../lib/layout";
8084
import {
8185
resolveMarkdownFontSizes,
8286
resolveNativeMarkdownTypography,
@@ -1555,6 +1559,11 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
15551559
const bottomContentInset = props.contentBottomInset ?? 18;
15561560
const usesNativeAutomaticInsets =
15571561
props.usesAutomaticContentInsets === true && Platform.OS === "ios";
1562+
const initialContentInset = deriveThreadFeedInitialContentInset({
1563+
platform: Platform.OS,
1564+
usesNativeAutomaticInsets,
1565+
bottomContentInset,
1566+
});
15581567
// With automatic insets the header inset lives in UIKit's adjustedContentInset,
15591568
// which LegendList's JS anchoring math cannot see — it measures the anchored
15601569
// end space from the scroll view's frame top. Fold the header height back into
@@ -1794,10 +1803,10 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
17941803
// The empty↔filled key below remounts the list, which resets its imperative
17951804
// content-inset override — and useKeyboardChatComposerInset (mounted above
17961805
// the remount boundary) deduplicates by height, so it never re-reports the
1797-
// composer inset to the fresh instance. Without this, the remounted list's
1798-
// initial scroll-to-end computes with a zero end inset and rests one
1799-
// composer-height short of the end. Layout effect: it must land before the
1800-
// list's first positioning tick or the one-shot initial scroll misses it.
1806+
// composer inset to the fresh instance. Re-report the measured overlay height
1807+
// (composer plus any pending approval / user-input card) so the remounted
1808+
// list's scroll math gets the true value; on Android the declarative
1809+
// contentInset floor below covers the window before this effect lands.
18011810
const listMountKey = `${feedThreadKey}:${props.feed.length === 0 ? "empty" : "filled"}`;
18021811
useLayoutEffect(() => {
18031812
const bottom = props.contentInsetEndAdjustment.value;
@@ -2104,6 +2113,17 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
21042113
// ThreadDetailScreen); this tells LegendList's scroll math about the
21052114
// extra so programmatic end scrolls land at the true resting offset.
21062115
contentInsetEndStaticAdjustment={usesNativeAutomaticInsets ? insets.bottom : 0}
2116+
// Android: the composer overlay only exists as the keyboard
2117+
// integration's animated bottom padding, which the list's scroll
2118+
// math cannot see until the inset reports above land — and those
2119+
// arrive via runOnJS, racing the remounted list's one-shot initial
2120+
// scroll-at-end. Seed the estimated overlay height as a declarative
2121+
// contentInset floor: LegendList consumes it in JS math only
2122+
// (Android's ScrollView has no native contentInset prop) and the
2123+
// first reported override REPLACES it instead of adding to it.
2124+
// Not on iOS: there the prop would reach UIKit and inset natively
2125+
// on top of the animated padding.
2126+
{...(initialContentInset ? { contentInset: initialContentInset } : {})}
21072127
// The keyboard integration's offset math (end pinning, max scroll)
21082128
// must add the same UIKit-added extra, or its keyboard-open end
21092129
// targets land one safe-area short of the true resting offset.

0 commit comments

Comments
 (0)