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(web): show environment label in new-thread project picker by gsimone · Pull Request #10791 · pingdotgg/t3code

Conversation

@gsimone

@gsimone gsimone commented Sep 8, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

The project dropdown in the "What should we build in {project}?" headline listed projects by display name only, so the same project name appearing in two environments (e.g. a local and a remote "Headroom") produced indistinguishable entries. Each MenuRadioItem now renders the target project's environment as muted secondary text on the right, preceded by the same EnvironmentMachineIcon used by the sidebar, branch toolbar, and command palette, and includes the label in the item's tooltip.

The label only appears when it disambiguates: a useMemo checks for 2+ distinct targetProject.environmentId values across the picker entries, so single-environment users see no change at all. Related to sibling PR #10790, which adds project favicons to the same picker.

Verified with vp run typecheck in apps/web (pass), vp lint --report-unused-disable-directives on the changed file (pass), vp fmt --check (pass after formatting), and vp test run --project unit src/components/chat/draftHeroTransition.test.ts (5 passed). No existing tests assert on this component's markup.

Before (main) After (this PR)
Project picker on main: two rows both reading "quasar", indistinguishable Project picker with this PR: each row carries a machine icon and its environment label

🤖 Generated with Claude Code

Summary by CodeRabbit

  • UI Improvements
    • Project picker entries display environment labels when projects span multiple environments.
    • Environment labels appear in item tooltips for additional context.
    • Labels remain hidden when all projects belong to the same environment.
    • Long environment labels are constrained and truncated to preserve the picker layout.
    • Projects with similar names are easier to distinguish across different environments using workspace path details when needed.
    • Same-name projects in a single environment can use their workspace path for clearer identification.

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Sep 8, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Sep 8, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Sep 8, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Would Approve

Macroscope's review found this PR approvable — This is a contained picker UI enhancement that adds environment context without changing project-selection mechanics or backend contracts, and it includes focused collision-handling tests. The current head includes the requested workspace-path fallback, though the supplied unresolved High-severity finding remains an independent merge blocker until its thread is closed.

Not approved because:

  • 1 blocking correctness issue found at or above your repo's Minimum Blocking Severity

No code changes detected at 64eab0b. Prior analysis still applies.

Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Sep 8, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 845c8573-cdaa-44dc-84d6-c4dce0465e4a

📥 Commits

Reviewing files that changed from the base of the PR and between fba3866e69867b94b1b321f1135fe67ca56c984e and 2781ea7f87bb709a1e4fb24c809c2b024a5ee8ba.

📒 Files selected for processing (3)
  • apps/web/src/components/chat/DraftHeroHeadline.logic.test.ts
  • apps/web/src/components/chat/DraftHeroHeadline.logic.ts
  • apps/web/src/components/chat/DraftHeroHeadline.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The project picker now resolves per-project environment hints. It displays machine icons and truncated labels when entries need environment or workspace-path disambiguation. Tooltips include the full hint text.

Changes

Project picker labels

Layer / File(s) Summary
Environment hint resolution
apps/web/src/components/chat/DraftHeroHeadline.logic.ts, apps/web/src/components/chat/DraftHeroHeadline.logic.test.ts
The resolver computes environment labels and workspace-path fallbacks for single-environment, multi-environment, and colliding project entries. Tests cover these cases.
Environment label disambiguation
apps/web/src/components/chat/DraftHeroHeadline.tsx
The picker resolves environment machine kinds, applies per-project hints, renders a machine icon and truncated hint text, and appends the hint to the tooltip.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 2781e

The picker now adds environment or workspace-path hints only when needed to distinguish projects, with existing single-environment behavior preserved. No concrete merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: showing environment labels in the web project picker.
Description check ✅ Passed The description explains what changed, why it changed, UI impact, screenshots, validation results, and related scope. It does not include the template headings or an explicit checklist, but the requir…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@gsimone
gsimone force-pushed the feat/draft-hero-project-environment-label branch from 7a86cd5 to ceeb80f Compare September 8, 2026 14:52
@macroscopeapp
macroscopeapp Bot dismissed their stale review September 8, 2026 14:52

Dismissing prior approval to re-evaluate ceeb80f

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

All reactions

Sorry, something went wrong.

Uh oh!

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

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Sep 8, 2026
View reviewed changes
@macroscopeapp
macroscopeapp Bot dismissed their stale review September 8, 2026 14:57

Dismissing prior approval to re-evaluate 88ff3be

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Sep 8, 2026
View reviewed changes
@macroscopeapp
macroscopeapp Bot dismissed their stale review September 8, 2026 14:59

Dismissing prior approval to re-evaluate d242ac2

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Sep 8, 2026
View reviewed changes
@gsimone
gsimone force-pushed the feat/draft-hero-project-environment-label branch from d242ac2 to fba3866 Compare September 9, 2026 08:55
@macroscopeapp
macroscopeapp Bot dismissed their stale review September 9, 2026 08:56

Dismissing prior approval to re-evaluate fba3866

macroscopeapp[bot]
macroscopeapp Bot reviewed Sep 9, 2026
View reviewed changes
Comment thread apps/web/src/components/chat/DraftHeroHeadline.tsx Resolved

Uh oh!

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

@gsimone

gsimone commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

@maria-rcks @t3dotgg I cannot get macroscope to re-review this

All reactions

Sorry, something went wrong.

Uh oh!

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

gsimone added a commit to gsimone/t3code that referenced this pull request Sep 11, 2026
@gsimone
Add before/after project picker screenshots for PR pingdotgg#10791
3b286ec
@gsimone
gsimone force-pushed the feat/draft-hero-project-environment-label branch from f3fdaca to 805bfab Compare September 11, 2026 14:32
gsimone and others added 5 commits September 11, 2026 22:27
@gsimone @claude
feat(web): show environment label in new-thread project picker
7b6edb7
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@gsimone @claude
fix(web): truncate long environment labels in new-thread project picker
325926f
Keep the project name readable when the environment label is long; the label truncates and is capped at 45% of the row.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@gsimone @claude
fix(web): cap environment label width with a fixed max instead of a p…
bbce907
…ercentage

A percentage max-width collapsed the w-max popup to its minimum width. Use max-w-32 so the popup still sizes to content and only the label truncates.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@gsimone @claude
feat(web): show environment machine icon next to picker environment l…
ba69e2d
…abels

Match the environment presentation used by the sidebar, branch toolbar, and command palette: the machine icon resolved from the environment's server config sits before the label.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@gsimone @claude
fix(web): disambiguate picker rows whose name and environment label c…
64eab0b
…ollide

Environment labels are not unique, so two checkouts of the same project on one machine rendered identical rows. Those rows now fall back to the workspace path, matching the checkout labels in ProjectSettingsPanel, and the rule lives in a small pure helper with unit tests.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@gsimone
gsimone force-pushed the feat/draft-hero-project-environment-label branch from 805bfab to 64eab0b Compare September 11, 2026 20:27
@juliusmarminge

juliusmarminge commented Sep 11, 2026

Copy link
Copy Markdown
Member

Superseded by #11323 (feat(web): mark projects on another machine in project pickers), which landed the machine-icon badge on both the sidebar project scope dropdown and the new-thread project picker. Closing this environment-label approach as wash leftover hygiene — reopen if anything unique still needs merging.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge closed this Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

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

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

2 participants

@gsimone @juliusmarminge
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 01402775 — 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.