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): narrow composers open the card on tap by flamboh · Pull Request #23986 · pingdotgg/t3code

feat(mobile): narrow composers open the card on tap #23986

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
flamboh wants to merge 27 commits into pingdotgg:main from flamboh:t3/composer-card-on-tap

Uh oh!

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

Closed

feat(mobile): narrow composers open the card on tap #23986

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
81d3b5e
feat(mobile): narrow composers open the card on tap
flamboh Oct 23, 2026
6e814d5
refactor(mobile): share the composer's model display label
flamboh Oct 23, 2026
a0613f3
fix(mobile): re-measure the composer row after it is resized
flamboh Oct 23, 2026
7f7e08a
refactor(mobile): leave model label shortening to its own change
flamboh Oct 23, 2026
59008e9
fix(mobile): close the composer card on Android Back and wait for the…
flamboh Oct 24, 2026
7606cda
fix(mobile): pasting a long line no longer flashes the composer card
flamboh Oct 24, 2026
0c4d667
fix(mobile): Android composer card closes with the keyboard
flamboh Oct 24, 2026
be67a40
fix(mobile): open the card for wrapped drafts when an attachment alre…
flamboh Oct 24, 2026
00c7311
fix(mobile): keep the empty-thread message still when the composer ca…
flamboh Oct 25, 2026
0d64a22
fix(mobile): leave room for the floating status control under the emp…
flamboh Oct 25, 2026
d22a6d4
chore(mobile): justify the keyboard listener effect for the effect bu…
flamboh Oct 26, 2026
3890314
feat(mobile): the model name slides out of the icon and the draft sli…
flamboh Oct 26, 2026
737bfb1
fix(mobile): wide composers keep the model label and open the card as…
flamboh Oct 26, 2026
902feeb
fix(mobile): integrate current composer layout into narrow card behavior
maria-rcks Oct 26, 2026
2d2443f
Merge branch 'main' into t3/composer-card-on-tap
flamboh Oct 27, 2026
a933966
test(mobile): takeover tests for the compact composer card
juliusmarminge Oct 27, 2026
4a5b132
refactor(mobile): compact composer resolves its layout in one place
juliusmarminge Oct 27, 2026
9113191
Merge remote-tracking branch 'origin/main' into pr-23986
juliusmarminge Oct 27, 2026
de1ddf8
fix(mobile): wide composers re-measure when the model label resizes w…
juliusmarminge Oct 27, 2026
267b0dd
fix(mobile): dictation from a focused narrow composer keeps the row h…
juliusmarminge Oct 27, 2026
52ad83f
fix(mobile): a wider model label no longer bounces an open wide-row card
juliusmarminge Oct 27, 2026
9bb5ad2
fix(mobile): removing a thumbnail with the card open no longer strand…
juliusmarminge Oct 27, 2026
a50ca1c
fix(mobile): the Android card no longer closes while focus returns fr…
juliusmarminge Oct 27, 2026
033153d
Merge remote-tracking branch 'origin/main' into pr-23986
juliusmarminge Oct 27, 2026
4cad671
Merge remote-tracking branch 'origin/main' into t3/composer-card-on-tap
flamboh Nov 1, 2026
693d128
feat(mobile): the model name slides out of the icon as the composer c…
flamboh Nov 1, 2026
ddf250c
feat(mobile): the draft slides between the row and the card as the co…
flamboh Nov 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
refactor(mobile): share the composer's model display label
  • Loading branch information

Uh oh!

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

@flamboh
flamboh committed Oct 26, 2026
commit 6e814d57eaf3af5b92a292e4d103027d8f1e4921

There are no files selected for viewing

8 changes: 2 additions & 6 deletions 8 apps/mobile/src/components/ComposerModelControl.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
buildTraitsTriggerDisplay,
getPromptControlledTraits,
} from "@t3tools/client-runtime/model-traits";
import type { ModelOption } from "../lib/modelOptions";
import { modelOptionDisplayLabel, type ModelOption } from "../lib/modelOptions";
import { resolveProviderOptionDescriptors } from "../lib/providerOptions";
import { AppText as Text } from "./ui/AppText";
import { ComposerInlineControl } from "./ComposerToolbar";
Expand Down Expand Up @@ -38,11 +38,7 @@ export function ComposerModelControl(props: {
: "";
const badge = props.modelOption?.providerBadge;
const label = props.modelOption?.label ?? props.selection?.model ?? "Choose model";
const providerPrefix = `${props.modelOption?.providerLabel} `;
const visibleLabel =
!badge?.showBadge && label.startsWith(providerPrefix)
? label.slice(providerPrefix.length)
: label;
const visibleLabel = props.modelOption ? modelOptionDisplayLabel(props.modelOption) : label;
return (
<ComposerInlineControl
accessibilityLabel={[
Expand Down
36 changes: 36 additions & 0 deletions 36 apps/mobile/src/lib/modelOptions.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
describeUnavailableModelSelection,
groupByProvider,
isModelSelectionUnavailable,
modelOptionDisplayLabel,
resolveDefaultableModelSelection,
resolveNewTaskModelSelection,
resolveSelectableModelSelection,
Expand Down Expand Up @@ -71,6 +72,41 @@ describe("mobile model options", () => {
]);
});

it("drops the vendor name only where the provider icon already shows it", () => {
const config = {
providers: [
{ instanceId: "claudeAgent", driver: "claudeAgent" },
{ instanceId: "opencode", driver: "opencode" },
{ instanceId: "codex", driver: "codex" },
].map((provider) => ({
...provider,
enabled: true,
installed: true,
auth: { status: "authenticated" },
models: [
{ slug: "opus", name: "Claude Opus 5.5", capabilities: null },
{ slug: "sol", name: "GPT-6.1 Sol", capabilities: null },
],
})),
} as unknown as ServerConfig;

expect(buildModelOptions(config, null, undefined, null).map(modelOptionDisplayLabel)).toEqual([
"Opus 5.5",
"GPT-6.1 Sol",
"Claude Opus 5.5",
"GPT-6.1 Sol",
"Claude Opus 5.5",
"GPT-6.1 Sol",
]);

const accounts = {
providers: [config.providers[0], { ...config.providers[0], instanceId: "claude_work" }],
} as unknown as ServerConfig;
expect(buildModelOptions(accounts, null, undefined, null).map(modelOptionDisplayLabel)[0]).toBe(
"Claude Opus 5.5",
);
});

it("does not materialize catalog defaults for missing stored options", () => {
const config = {
providers: [
Expand Down
11 changes: 11 additions & 0 deletions 11 apps/mobile/src/lib/modelOptions.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,17 @@ export function buildModelOptions(
return [...options.values()];
}

const MODEL_VENDOR_PREFIX_BY_DRIVER: Partial<Record<string, string>> = {
claudeAgent: "Claude ",
};

export function modelOptionDisplayLabel(option: ModelOption): string {
const prefix = MODEL_VENDOR_PREFIX_BY_DRIVER[option.providerDriver];
return prefix && !option.providerBadge?.showBadge && option.label.startsWith(prefix)
? option.label.slice(prefix.length)
: option.label;
}

export function groupByProvider(options: ReadonlyArray<ModelOption>): ReadonlyArray<ProviderGroup> {
const groups = new Map<
string,
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 01402809 — 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.