Skip to content

fix: hide "New" and "+" buttons for SESSION/ONE concepts in BOX<FORM> - #441

Open
stefjoosten wants to merge 1 commit into
mainfrom
fix/box-form-session-create-button
Open

fix: hide "New" and "+" buttons for SESSION/ONE concepts in BOX<FORM>#441
stefjoosten wants to merge 1 commit into
mainfrom
fix/box-form-session-create-button

Conversation

@stefjoosten

Copy link
Copy Markdown
Contributor

Branch by @sjcjoosten (2026-08-06); PR opened to get it into the review flow.

Problem

BOX<FORM> offered a "New {concept}" button and a "+" add-icon for SESSION and ONE target concepts. Those are singleton concepts: no new instance can be created from the UI, so the buttons produced errors.

Fix

Guard both buttons on tgtResourceType !== 'SESSION' && !== 'ONE', analogous to the SESSION/ONE handling that landed via #431/#433/#434.

🤖 Generated with Claude Code

SESSION and ONE are singleton concepts — only one instance ever exists.
The "New {concept}" and "+" add buttons were shown regardless, implying
the user could create new instances when they cannot.

Guard both with tgtResourceType !== "SESSION" && tgtResourceType !== "ONE".
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant