Skip to content

fix: Improve error message for URL conflicts #46

@rafaelrsantosti

Description

@rafaelrsantosti

Description

Improve the user experience when a URL conflict occurs during application component creation.

Current Behavior

When a user tries to create a component with a URL that already exists, they receive a generic database constraint error that is not user-friendly.

Expected Behavior

Show a clear, actionable error message like:

"The URL 'myapp.localhost' is already in use by another application. Please choose a different URL."

Implementation

  1. API: Catch the unique constraint violation and return a specific error code
  2. Portal: Display a friendly error message with suggestion to change the URL

Acceptance Criteria

  • API returns HTTP 409 (Conflict) with clear message
  • Portal shows user-friendly error
  • Error suggests available alternatives (optional)

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions