Skip to content

Fix Select title hidden by Filtering(true) in apps init prompts#4603

Closed
jamesbroadhead wants to merge 5 commits intodatabricks:mainfrom
jamesbroadhead:improve-resource-prompt-description
Closed

Fix Select title hidden by Filtering(true) in apps init prompts#4603
jamesbroadhead wants to merge 5 commits intodatabricks:mainfrom
jamesbroadhead:improve-resource-prompt-description

Conversation

@jamesbroadhead
Copy link
Copy Markdown

Summary

  • huh.Select.Filtering(true) immediately activates filter mode, which replaces the Title with a blank filter text input in titleView() — so the user never saw what resource they were selecting (e.g., "Select SQL Warehouse")
  • Remove Filtering(true) so the Title renders on initial display. Users can still press / to activate filtering (bound by default in huh's keymap)
  • Update the description hint from "type to filter" to "press / to filter" to match the new behavior

Affects both promptFromListWithLabel (all resource pickers during apps init) and PromptForAppSelection.

Test plan

  • Run databricks apps init interactively, select a feature, and verify the resource picker title (e.g., "Select SQL Warehouse") is now visible
  • Verify pressing / activates filtering and typing filters the list
  • Verify pressing Esc exits filter mode and restores the title

🤖 Generated with Claude Code

huh's Select.Filtering(true) immediately activates filter mode, which
replaces the Title with a blank filter text input in titleView().
This meant the user never saw what resource they were being asked to
select (e.g., "Select SQL Warehouse").

Remove Filtering(true) so the Title renders. Users can still press /
to activate filtering (bound by default in huh's keymap). Update the
description hint from "type to filter" to "press / to filter".

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jamesbroadhead jamesbroadhead requested a review from a team as a code owner February 25, 2026 22:01
Test that:
- Title is visible in the initial render without Filtering(true)
- Filtering(true) replaces the Title with a blank filter input (the bug)
- Pressing '/' activates filtering and correctly filters options
- Help text includes the filter hint

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Copy link
Copy Markdown
Member

@pkosiec pkosiec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Sorry, missed this PR last week - but also noticed the issue today: c8c3c0d 😄

pkosiec added a commit that referenced this pull request Mar 5, 2026
Revert the description hint and Filtering(true/false) changes in
promptFromListWithLabel and PromptForAppSelection, as these are
addressed properly in PR #4603.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
pkosiec added a commit that referenced this pull request Mar 5, 2026
Revert the description hint and Filtering(true/false) changes in
promptFromListWithLabel and PromptForAppSelection, as these are
addressed properly in PR #4603.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
pkosiec added a commit that referenced this pull request Mar 9, 2026
Revert the description hint and Filtering(true/false) changes in
promptFromListWithLabel and PromptForAppSelection, as these are
addressed properly in PR #4603.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…pt-description

# Conflicts:
#	libs/apps/prompt/prompt.go
#	libs/apps/prompt/prompt_test.go
The prompt_test.go file imports charmbracelet/x/ansi directly,
so it should not be listed as indirect in go.mod.

Co-authored-by: Isaac
@github-actions
Copy link
Copy Markdown

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 4603
  • Commit SHA: be0081544c72d5c9cb34046b476374c32b354708

Checks will be approved automatically on success.

@github-actions
Copy link
Copy Markdown

Approval status: pending

/libs/apps/ - needs approval

Files: libs/apps/prompt/prompt_test.go
Teams: @databricks/eng-apps-devex

General files (require maintainer)

Files: go.mod
Based on git history:

  • @pietern -- recent work in ./, libs/apps/prompt/

Any maintainer (@andrewnester, @anton-107, @denik, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db) can approve all areas.
See OWNERS for ownership rules.

@jamesbroadhead
Copy link
Copy Markdown
Author

Superseded by #5114 — re-opened from an upstream branch instead of a fork (so CI can run). Was previously approved by @igrekun and @pkosiec.

auto-merge was automatically disabled April 28, 2026 16:06

Pull request was closed

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.

3 participants