Fix editability of some data-lake variables#2776
Conversation
Automated PR Review (Claude)0. SummaryVerdict: MINOR SUGGESTIONS Minor items to consider: 1.1, 1.2, 6.1. This PR fixes editability of certain data-lake variables (camera zoom/focus speed). It introduces a "value-only edit mode" in 1. Correctness & Implementation Bugs1.1 if (initialValue !== undefined) {
dataLakeVariableTimestamps[variable.id] = performance.now()
}
...
if (variable.persistValue && initialValue !== undefined) {
savePersistentValues()
}When a persisted value exists and 1.2 2. AGENTS.md Adherence — ✅3. Security — ✅4. Performance — ✅5. UI / UX — ✅6. Code Quality & Style6.1 7. Commit Hygiene — ✅8. Tests — ✅9. Documentation — ✅10. Nitpicks / Optional — ✅Generated by Claude. This is advisory; a human reviewer must still approve. |
Internal variables with persistValue were always initialized from their default, overwriting values saved in localStorage.
Only zoom/focus speed settings should be configurable by the user; increase/decrease variables remain internal-only.
The Data Lake table hid the edit button for internal variables even when they were marked as user-editable.
Editing internal variables should only change the value, not metadata like name, type, or persistence settings.
Internal variables explicitly marked persistent:false were shown as user-defined in the Data Lake, allowing full edit and delete.
adef72e to
e1b8787
Compare
Review follow-up — round 1Done
Done differently
Won't change (with reasoning)
|
|
/review |
Automated PR Re-review 2 (Claude)Comparing Previous findings status
Discussion since last review@rafaellehmkuhl posted a review follow-up detailing how each finding was handled:
New findings0. SummaryVerdict: MINOR SUGGESTIONS Minor items to consider: 1.1, 6.1. This PR fixes editability of certain data-lake variables (camera zoom/focus speed). It introduces a 1. Correctness & Implementation Bugs1.1 2. AGENTS.md Adherence — ✅3. Security — ✅4. Performance — ✅5. UI / UX — ✅6. Code Quality & Style6.1 7. Commit Hygiene — ✅8. Tests — ✅9. Documentation — ✅10. Nitpicks / Optional — ✅Generated by Claude. This is advisory; a human reviewer must still approve. |
Review follow-up — round 2All round 1 findings (1.1, 1.2, 6.1) were confirmed addressed in the re-review. Two new minor items this round — declining both, reasoning below. Won't change (with reasoning)
|
Fix #2774
Fix #2775