Skip to content

Schema save creates a duplicate identical version on freshly created projects #582

Description

@JArmandoAnaya

On a freshly created project: define classes, press Save version → v1 is created. Press Save version again immediately, with no edits → v2 is created with identical content (the version panel itself renders "Nothing changed between v1 and v2"). Only the third press is caught by the no-change detection ("nothing to save" toast).

Observed only on freshly created projects.

cf. the schema editor design in DESIGN.md ("Versioning is ambient, not modal": Save version is always enabled; pressing it with no changes shows a toast and issues no request).

Reproduction

  1. Create a project.
  2. Open the Schema tab, add one or more classes.
  3. Press Save version → v1.
  4. Press Save version again, without editing anything → v2 is created.
  5. Press Save version a third time → "No changes to save".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions