CivicDataLab / CivicDataLab/DataSpaceFrontend

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

Open
#411 0 comments 0 reactions 1 assignee View on GitHub

@Abhishekfm is already working on this.

Since Jun 22, 2026.

bug
Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
1d 7h
Merged PRs (30d)
19

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.