Skip to content

Add plus button to instantiation cells#1041

Closed
tibisabau wants to merge 1 commit intoToposInstitute:mainfrom
tibisabau:multiple-assignments-instatiation
Closed

Add plus button to instantiation cells#1041
tibisabau wants to merge 1 commit intoToposInstitute:mainfrom
tibisabau:multiple-assignments-instatiation

Conversation

@tibisabau
Copy link
Copy Markdown

Description

This change improves the discoverability of adding new assignment lines in instantiation cells by introducing a visible "+" button. Previously, users could only add new assignments by pressing "Return" from an existing assignment line, which was not intuitive. The implementation adds an IconButton with a Plus icon below the specializations list that, when clicked, adds a new assignment at the end and automatically focuses it.

The solution follows the existing UI patterns in the codebase by:

  • Using the Plus icon from lucide-solid/icons/plus
  • Using the IconButton component from catcolab-ui-components
  • Providing a tooltip "Add new assignment" for discoverability
  • Using consistent styling aligned with the left margin of the specializations list

Closes #891.

Checklist if Applicable

  • The tests passed – pnpm --filter ./packages/frontend run test
  • Linting passed – pnpm --filter ./packages/frontend run lint
  • Documentation has been added
  • CHANGELOG.md has been updated

@tibisabau tibisabau requested a review from kasbah as a code owner February 12, 2026 15:54
@epatters epatters added enhancement New feature or request ui/ux User interface and user experience labels Feb 12, 2026
@epatters epatters changed the title add plus button to instantiation cells Add plus button to instantiation cells Feb 12, 2026
@kasbah
Copy link
Copy Markdown
Member

kasbah commented Feb 20, 2026

Closing, see #1040 (comment)

@kasbah kasbah closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ui/ux User interface and user experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not obvious how to make multiple assignments in an instantiation

3 participants