Skip to content

fix: restore prompt suggestions +X more expansion in Sitebuilder#151

Open
JOORVIS wants to merge 1 commit intomainfrom
fix/prompt-suggestions-expand-toggle-150
Open

fix: restore prompt suggestions +X more expansion in Sitebuilder#151
JOORVIS wants to merge 1 commit intomainfrom
fix/prompt-suggestions-expand-toggle-150

Conversation

@JOORVIS
Copy link
Copy Markdown
Collaborator

@JOORVIS JOORVIS commented Feb 23, 2026

Summary

  • Fixes Prompt Suggestions expansion by switching to explicit suggestion row targets and removing brittle DOM traversal during expand/collapse.
  • Introduces a single expanded/collapsed state in the Stimulus controller and applies it consistently on connect, on click toggles, and after suggestion list refreshes.
  • Adds click-driven Stimulus integration tests covering +X more expand, Show less collapse, and larger suggestion counts to prevent regressions.

Closes #150

Test plan

  • mise run tests:frontend
  • mise run npm run prettier
  • mise run npm run lint
  • mise run npm exec tsc -- --noEmit
  • mise run quality (fails early in this environment due unrelated Doctrine schema sync state)

Replace brittle row lookups with explicit suggestion row targeting and a single expanded state so +X more consistently reveals all hidden suggestions and Show less restores the collapsed list across initial render and refreshes.
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.

Prompt suggestions "+X more" expansion does not display additional suggestions

1 participant