google / google/CodeCity

Make user choose effect of saving inherited properties

Offen
#271 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
/code core enhancement
Vorherrschende Sprache
JavaScript
Sterne
198
Forks
38
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Using the IDE to view inherited values works great, but the effect of editing one is not obvious.

At the moment, if you modify the displayed value and then save it, the editor creates an overriding property on the object being edited. This is perfectly reasonable behaviour (though note that, per #257, the editor gives bad feedback about what has just happened at the moment).

It might alternatively be useful or even expected that editing the inherited property actually modifies the value on the (appropriate) prototype object. To that end:

* There should be some way for the user to choose which object the value will be saved on, in the range of (prototype object from which it is currently inherited to this object).
* Maybe the user should be forced to decide (or at least make an initial decision) before they are actually able to edit the value.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Das Issue nennt keine Dateien, Tests oder Einstiegspunkte. Beginne damit, den IDE-Ablauf zu finden, der geerbte Werte anzeigt und bearbeitete Eigenschaften speichert, und kläre anschließend, wie Benutzer zwischen dem Prototyp und dem aktuellen Objekt wählen, bevor du das erwartete Verhalten definierst.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
devtools
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.