From 6855993debbd94b24042e913c24992fa5d4f1142 Mon Sep 17 00:00:00 2001 From: Garrett Fincke Date: Sat, 14 Nov 2026 11:15:04 -0500 Subject: [PATCH 1/4] feat: new threads open on a rotating headline The new-thread screen always asked "What should we build in ?". Web, desktop and iOS now pick from one shared list of project and no-project lines, hashed off the draft id so a draft keeps its line across rerenders and reloads. Co-Authored-By: Claude --- .../features/threads/NewTaskDraftScreen.tsx | 13 +++-- .../src/components/chat/DraftHeroHeadline.tsx | 11 +++- .../chat/DraftHeroProjectHeading.tsx | 14 ++++-- docs/operations/thin-fork.md | 1 + packages/shared/package.json | 4 ++ packages/shared/src/fincke-draft-headline.ts | 50 +++++++++++++++++++ 6 files changed, 85 insertions(+), 8 deletions(-) create mode 100644 packages/shared/src/fincke-draft-headline.ts diff --git a/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx b/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx index a63c4a54d4..c96c7768b5 100644 --- a/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx +++ b/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx @@ -52,6 +52,10 @@ import { import { SymbolView } from "../../components/ui/AppSymbol"; import { AppText as Text } from "../../components/ui/AppText"; import { threadContextsOutsideEnvironment } from "@t3tools/shared/composerContextReferences"; +import { + finckeProjectHeadline, + finckeScratchHeadline, +} from "@t3tools/shared/fincke-draft-headline"; import { makeTurnCommandMetadata } from "../../lib/commandMetadata"; @@ -733,10 +737,11 @@ export function NewTaskDraftScreen(props: { The shared content is no longer in the inbox. You can continue editing this task draft. ) : null; + const projectHeadline = finckeProjectHeadline(flow.draftKey); const hero = flow.isScratchDraft ? ( - What should we work on? + {finckeScratchHeadline(flow.draftKey)} - What should we build + {projectHeadline.lead} - in + + {projectHeadline.joiner}{" "} + {hasResolvedProject && !isScratchDraft ? ( - + {projectSelector} ) : (

{isScratchDraft ? ( - <>What should we work on? + <>{finckeScratchHeadline(draftId)} ) : canChooseProject ? ( <>{projectSelector} to start ) : ( diff --git a/apps/web/src/components/chat/DraftHeroProjectHeading.tsx b/apps/web/src/components/chat/DraftHeroProjectHeading.tsx index b0fa42cfce..bc4db81ca5 100644 --- a/apps/web/src/components/chat/DraftHeroProjectHeading.tsx +++ b/apps/web/src/components/chat/DraftHeroProjectHeading.tsx @@ -1,12 +1,15 @@ import { useLayoutEffect, useRef, useState, type ReactNode } from "react"; +import type { ProjectHeadline } from "@t3tools/shared/fincke-draft-headline"; import { observeResize } from "~/lib/observeResize"; export function DraftHeroProjectHeading({ children, + headline, projectName, }: { children: ReactNode; + headline: ProjectHeadline; projectName: string; }) { const containerRef = useRef(null); @@ -39,7 +42,9 @@ export function DraftHeroProjectHeading({ ref={inlineRef} className="flex w-max items-baseline gap-2 whitespace-nowrap font-normal text-3xl tracking-tight" > - What should we build in + + {headline.lead} {headline.joiner} + {projectName}? @@ -47,9 +52,12 @@ export function DraftHeroProjectHeading({

- What should we build + {headline.lead} ? - in + + {" "} + {headline.joiner} + {children} diff --git a/docs/operations/thin-fork.md b/docs/operations/thin-fork.md index 2c7e8e0525..52f6cb4565 100644 --- a/docs/operations/thin-fork.md +++ b/docs/operations/thin-fork.md @@ -515,6 +515,7 @@ Every upstream file touched for a personal design change is listed here. Earlier | `knip.jsonc` | none | Hook | Keeps the replaced upstream originals and the icon shims as entries. | | `apps/web/src/components/chat/composerProviderState.tsx` | `EffortPicker.tsx` | Hook | Renders the owned effort picker. | | `apps/web/src/components/chat/TraitsPicker.tsx`, `ComposerPendingApprovalActions.tsx` | `EffortPicker.tsx`, `FinckeApprovalCard.tsx` | Hook | Export `getTraitsSectionVisibility` and `DEFAULT_APPROVAL_OPTIONS`. | +| `apps/web/src/components/chat/DraftHeroHeadline.tsx`, `DraftHeroProjectHeading.tsx` | `packages/shared/src/fincke-draft-headline.ts` | Hook | The new-thread headline rotates through a shared list, one stable line per draft (also mobile `NewTaskDraftScreen.tsx`). | | `apps/web/src/components/chat/ChatComposer.tsx` | `FinckeApprovalCard.tsx`, `slashMenu.ts` | Hook | Fincke approval card; floating, sectioned slash menu. | | `apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx`, `ComposerPrimaryActions.tsx` | none | Hook | The question card owns its step chips, an inline "Something else" answer and Back/Next/Submit (also `ChatComposer.tsx`, `usePendingThreadRequests.ts`, `pendingUserInput.ts`, mobile `PendingUserInputCard.tsx`); the chat box stays a normal composer while a question is open, though attachments still go to the question. Reworks upstream files in place, so expect conflicts on updates. | | `apps/web/src/components/chat/ComposerFooterControls.tsx` | `PlanModeChip.tsx`, `useFinckeOcean.ts` | Hook | Under Fincke Ocean the plan control is a chip shown only while plan mode is on. | diff --git a/packages/shared/package.json b/packages/shared/package.json index 1c797f6551..792f0fc78f 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -3,6 +3,10 @@ "private": true, "type": "module", "exports": { + "./fincke-draft-headline": { + "types": "./src/fincke-draft-headline.ts", + "import": "./src/fincke-draft-headline.ts" + }, "./fincke-folder-tint": { "types": "./src/fincke-folder-tint.ts", "import": "./src/fincke-folder-tint.ts" diff --git a/packages/shared/src/fincke-draft-headline.ts b/packages/shared/src/fincke-draft-headline.ts new file mode 100644 index 0000000000..5b9b72076c --- /dev/null +++ b/packages/shared/src/fincke-draft-headline.ts @@ -0,0 +1,50 @@ +// packages/shared/src/fincke-draft-headline.ts +// rotating new-thread headlines shared by web and native, one stable pick per draft + +/** A project headline split so the project name can sit inline or on its own line. */ +export interface ProjectHeadline { + // the question w/o its mark; reads alone as "?" when the name wraps below + readonly lead: string; + // joins the lead to the project name when they share a line + readonly joiner: string; +} + +// the first entry is the original line & the fallback for a draft w/o an id +const PROJECT_HEADLINES: ReadonlyArray = [ + { lead: "What should we build", joiner: "in" }, + { lead: "What are we shipping", joiner: "in" }, + { lead: "What's next", joiner: "for" }, + { lead: "Where were we", joiner: "in" }, + { lead: "What needs fixing", joiner: "in" }, + { lead: "What's the plan", joiner: "for" }, + { lead: "What are we breaking", joiner: "in" }, + { lead: "What could go wrong", joiner: "in" }, +]; + +const SCRATCH_HEADLINES: ReadonlyArray = [ + "What should we work on?", + "What's on your mind?", + "Where should we start?", + "What are we figuring out?", + "What are we poking at?", + "Got a half-baked idea?", +]; + +// fnv-1a keeps a draft's line stable across rerenders, reloads & clients +function pick(lines: ReadonlyArray, draftId: string | null | undefined): T { + if (!draftId) return lines[0]!; + let hash = 0x811c9dc5; + for (let index = 0; index < draftId.length; index += 1) { + hash ^= draftId.charCodeAt(index); + hash = Math.imul(hash, 0x01000193); + } + return lines[(hash >>> 0) % lines.length]!; +} + +export function finckeProjectHeadline(draftId: string | null | undefined): ProjectHeadline { + return pick(PROJECT_HEADLINES, draftId); +} + +export function finckeScratchHeadline(draftId: string | null | undefined): string { + return pick(SCRATCH_HEADLINES, draftId); +} From 123b390b477c24245ba4b952528a0785525d6b24 Mon Sep 17 00:00:00 2001 From: Garrett Fincke Date: Sat, 14 Nov 2026 11:15:25 -0500 Subject: [PATCH 2/4] feat(web): effort picker gets segments, a slim slider and level bars The effort popover's fat pill slider looked out of place, the chip reserved room for its longest level name, and its gauge icon said nothing. A new Effort control setting picks between named segments (default) and a slim slider tinted like the chip. The chip now sizes to its level, drops its chevron, shows bars lit up to the level, and its popover hangs from the chip's stable edge and opens downward on a new thread so it clears the headline. Co-Authored-By: Claude --- .../components/chat/ComposerControlsBar.tsx | 5 +- .../settings/AppearanceSettingsPanel.tsx | 2 + .../src/components/settings/settingsSearch.ts | 6 + apps/web/src/fincke/EffortControlSetting.tsx | 66 ++++++++ apps/web/src/fincke/EffortPicker.tsx | 151 +++++++++++------- apps/web/src/fincke/EffortSegments.tsx | 63 ++++++++ apps/web/src/fincke/EffortSlider.tsx | 4 +- apps/web/src/fincke/effortSlider.css | 146 ++++++++++------- apps/web/src/fincke/oceanTokens.css | 2 +- docs/operations/thin-fork.md | 1 + knip.jsonc | 6 +- packages/contracts/src/settings.ts | 7 + packages/shared/package.json | 4 + packages/shared/src/fincke-effort-scale.ts | 32 ++++ 14 files changed, 371 insertions(+), 124 deletions(-) create mode 100644 apps/web/src/fincke/EffortControlSetting.tsx create mode 100644 apps/web/src/fincke/EffortSegments.tsx create mode 100644 packages/shared/src/fincke-effort-scale.ts diff --git a/apps/web/src/components/chat/ComposerControlsBar.tsx b/apps/web/src/components/chat/ComposerControlsBar.tsx index e05e45f83b..4d2efbcec8 100644 --- a/apps/web/src/components/chat/ComposerControlsBar.tsx +++ b/apps/web/src/components/chat/ComposerControlsBar.tsx @@ -275,9 +275,12 @@ export function ComposerControlsBar(props: {