Skip to content

ScopeBuddy per-app delete has no confirmation and skips list refresh if sheet closed mid-delete #35

Description

@I4cTime

Summary

The per-app/envvars .conf delete is a single click with no confirm, positioned right next to Save. Also, if the user closes the sheet (editorState=null) before the delete resolves, onSuccess returns early (if (!editorState) return;) so neither list is invalidated.

Location

electron/renderer/src/app/scopebuddy/page.tsx:233-249, 786-795

Failure scenarios

  • User clicks Delete meaning Save -> file gone instantly.
  • User clicks Delete then closes the sheet -> the per-app list still shows the deleted entry; clicking Edit opens a ghost file.

Fix

Add a confirm dialog; invalidate the lists regardless of editorState in onSuccess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions