Skip to content

[Bug] 'All Changes Saved' autosave indicator shows even when all required fields are empty #411

Description

@saqibmanan

Summary

The model editor header always displays "All Changes Saved" regardless of whether any required fields have been populated. The autosave indicator tracks the existence of the draft record, not the completeness or validity of its content.

Impact

  • Creates a false sense of security — users who fill nothing see "All Changes Saved" and may think their model is ready
  • The indicator fires for every keystroke via GraphQL mutations, but never communicates that the model is incomplete
  • Contradicts the Publish step which correctly shows all missing required fields

Observed Behaviour

  1. New model created (empty)
  2. Editor header immediately shows "All Changes Saved"
  3. All required fields (Sectors, Tags, Languages, etc.) remain empty
  4. "All Changes Saved" continues to show throughout the session

Fix Recommendation

Change the indicator to differentiate states:

  • ✅ "All Changes Saved" — when all required fields are filled
  • ⚠️ "Draft saved — metadata incomplete" — when required fields are missing
  • 🔄 "Saving..." — during active save

Environment

  • URL: https://dev.civicdataspace.in/dashboard/organization/civicdatalab/aimodels/edit/{id}/details
  • Discovered: 2026-06-22 via QA audit
  • Report ref: CDS-003

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions