close
Skip to content

chore(code): hide environment pickers until environments are set up#1727

Merged
VojtechBartos merged 2 commits intomainfrom
posthog-code/remove-plus-button-from-listing-local-worktree-and-cloud
Apr 20, 2026
Merged

chore(code): hide environment pickers until environments are set up#1727
VojtechBartos merged 2 commits intomainfrom
posthog-code/remove-plus-button-from-listing-local-worktree-and-cloud

Conversation

@VojtechBartos
Copy link
Copy Markdown
Member

Problem

The Workspace Mode dropdown and the Worktree environment picker both showed "add" / "+" affordances even when no environments had been configured yet, nudging users toward a feature they may not need. The Environments and Cloud environments settings screens also lacked a clear explanation of what these things are and how they're used.

Changes

Hide pickers until something is set up

  • WorkspaceModeSelect: the + next to "Cloud environments" only shows once at least one cloud environment exists.
  • EnvironmentSelector (worktree env picker in task input): renders nothing when the project has no environments defined, so it no longer takes up space with a dead dropdown.

Help text in settings

  • Environments list and Cloud environments list: added a short paragraph explaining what the thing is, how it's used, and where it's picked.
  • Environment form (local): per-field help for Name and Setup script (when it runs, what it's for).
  • Cloud environment form: per-field help for Name, Network access (Full / Trusted / Custom), Allowed domains (wildcard syntax), "Include default domains" checkbox, and Environment variables (.env format, how editing works).

Showcase

Screenshot 2026-04-20 at 11 02 18 Screenshot 2026-04-20 at 11 02 25 Screenshot 2026-04-20 at 11 02 38 Screenshot 2026-04-20 at 11 02 31

Created with PostHog Code

@VojtechBartos VojtechBartos self-assigned this Apr 20, 2026
Generated-By: PostHog Code
Task-Id: e06718c8-e6d5-4742-9b58-0ed9e46e2e3c
Generated-By: PostHog Code
Task-Id: e06718c8-e6d5-4742-9b58-0ed9e46e2e3c
@VojtechBartos VojtechBartos force-pushed the posthog-code/remove-plus-button-from-listing-local-worktree-and-cloud branch from 97cd2c7 to 75718c3 Compare April 20, 2026 14:45
@VojtechBartos VojtechBartos enabled auto-merge (squash) April 20, 2026 14:45
@VojtechBartos VojtechBartos merged commit 0cd0eaa into main Apr 20, 2026
16 of 19 checks passed
@VojtechBartos VojtechBartos deleted the posthog-code/remove-plus-button-from-listing-local-worktree-and-cloud branch April 20, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants