balena-io / pensieve

A tool for managing and viewing structured documents, backed by the power of git
7 stars 5 forks source link

Pensieve should warn you if you add a new field with the same name as an existing field #266

Open lurch opened 6 years ago

lurch commented 6 years ago

Expected Behavior

When adding a new (user-defined) field to an entry, pensieve should display a warning if the entry already has a field with that name.

Actual Behavior

If you add a new user-defined field to an entry that (perhaps accidentally) has the same name as an existing field, pensieve silently goes ahead, and doesn't display any warning. Worse still, if the field already contains any information, that existing information is silently discarded!

Steps to Reproduce the Problem

  1. Edit an entry in a pensieve
  2. Add a new field with the same name as an existing field
  3. Watch in amazement as pensieve silently discards any information that was in the existing field
  4. Click cancel to abort editing the entry :wink: (which prevents the new field overwriting the old field)

Specifications

whatsmybrowser.org/b/MDKAR48

Labelling this as degrades-UX as it can lead to accidental data-loss.