Skip to content

[CoR] Category creation fails silently when description is shorter than expected #1858

Description

@v-ruizh

OS: Win11 x64
Build Version: 0.12.8-alpha.0
VS Code Version: Version: 1.137.0

Repro Steps:

  1. Create a CoR project using the following prompt:
    Build an inventory management web app with Microsoft Entra authentication, a REST API, PostgreSQL database, item search, categories, and Azure deployment.
  2. Select "Keep iterating-start debugging and improve my code" and F5 with "Debug All Services".
  3. Open the "Categories" page and click "Create first category".
  4. Enter:
Name: test
Description: test
  1. Click "Create Category".

Expect:
The form should either:
Create the category successfully if the input satisfies backend requirements, or
Display a clear validation message and prevent submission until the input is valid.

Actual:
The button is enabled and can be clicked, but no category is created. No clear validation message explains why the submission failed.

More Info:

  1. A category could not be created when using a short description such as test, even though the Create Category button was enabled.
  2. Clicking Create Category produced no visible error message and appeared to do nothing.
  3. After adjusting the validation logic, the same input successfully created a category, which is now displayed in the Categories list.
    Image
  4. The issue appears to be caused by a hidden frontend validation rule that was not surfaced to the user, resulting in a silent failure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AT-CTICreated by CTI teamCoRCopilot on Rails

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions