Skip to content

Add account-pane: self-service password change, account deletion, data export #12

Open

Description

@melvincarvalho

Summary

A focused pane for JSS account self-service. Drives the IDP endpoints that already (or will) exist server-side, so users don't need curl/CLI to manage their own account.

Distinct from the broader #1 (Settings pane) — this one is narrowly scoped to account lifecycle managed by the IDP, not pod content / preferences / system settings.

Sections

Change password ✓ (server ready as of JSS 0.0.165)

Delete account (server-side TBD)

Export pod data (server-side TBD)

Pod portability — restore / migrate (server-side TBD)

Implementation notes

  • Pane file: `panes/account-pane.js`
  • `canHandle`: probably show on user's profile resource (`#me` / WebID owner) when caller's WebID matches the pod owner
  • Auth: `window.xlogin.authFetch` (already used by sharing-pane)
  • xlogin guard: same pattern as sharing-pane: login prompt for anonymous viewers (#8) #10 — only render when authenticated; anonymous shows "Log in to manage your account"

Out of scope

Acceptance

Phase 1 — change-password section only (the only one with a live endpoint):

  • `panes/account-pane.js` exists, registered in `mashlib.js`
  • `canHandle` shows on owner's profile only
  • Form: current / new / confirm-new, calls `PUT /idp/credentials`
  • Happy path: 200 → success toast
  • 401 (wrong current password): inline error, fields preserved
  • Anonymous viewer: login prompt empty-state (sharing-pane: login prompt for anonymous viewers (#8) #10 pattern)

Phase 2 onwards — added as server endpoints land for #352, #353, #354.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions