Skip to content

[Content] Create item modal UX updates #3525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

finnar-bin
Copy link
Contributor

  • Autofocus and open dropdown when the create item modal opens
  • Removed the None option
  • Always enable the create button
  • Added error handling when clicking the error button without selecting a model

Resolves #3356

Content---Zesty-io---zesty-pw---Manager.1.webm

@finnar-bin finnar-bin self-assigned this May 22, 2025
@finnar-bin finnar-bin added enhancement Improvement to an existing feature ready PR is complete and ready for deployment labels May 22, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the create item modal UX by adding autofocus behavior, removing the "None" default option, always enabling the create button, and incorporating error handling when no model is selected.

  • Removes default "None" option from the selected model
  • Adds error handling to alert the user when no model is selected
  • Implements autofocus and open-on-focus features for improved UX

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/shell/components/CreateContentItemDialog.tsx Adjusts state initialization, error handling, and autocomplete behavior for model selection
cypress/e2e/content/navigation.spec.js Adds tests to verify error handling and modal behavior with no model selection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature ready PR is complete and ready for deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content: Create Item Modal UX Enhancements
2 participants