feat: add element_access_denied.svelte; use in badge review page
- New reusable element_access_denied.svelte with title, message, action props - Badge review page: swap inline 'Access Denied' card with the component - Project doc: all 6 steps complete, status → Complete
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# PROJECT: Access Control UX — Session Expired & Access Denied
|
||||
|
||||
**Status:** In Progress
|
||||
**Status:** Complete
|
||||
**Priority:** Medium-High
|
||||
**Created:** 2026-02
|
||||
**Updated:** 2026-03-11
|
||||
@@ -231,7 +231,7 @@ Add the dismissible banner to the template (after/near the existing `is_offline`
|
||||
|
||||
---
|
||||
|
||||
### Step 4: Create `element_access_denied.svelte` ⬅ NEXT
|
||||
### Step 4: Create `element_access_denied.svelte` ✅ DONE (2026-03-11)
|
||||
|
||||
**File:** `src/lib/elements/element_access_denied.svelte`
|
||||
|
||||
@@ -239,7 +239,7 @@ Reusable card for inline access denial. Props per design decision 4c.
|
||||
|
||||
---
|
||||
|
||||
### Step 5: Fix Event Settings `alert()` ⬅ NEXT
|
||||
### Step 5: Fix Event Settings `alert()` ✅ DONE (2026-03-11)
|
||||
|
||||
**File:** `src/routes/events/[event_id]/settings/+page.svelte`
|
||||
|
||||
@@ -250,7 +250,7 @@ Replace the module-level `if (!$ae_loc.administrator_access)` + `alert()` block
|
||||
|
||||
---
|
||||
|
||||
### Step 6 (Optional / Low Priority): Swap badge review inline card
|
||||
### Step 6 (Optional / Low Priority): Swap badge review inline card ✅ DONE (2026-03-11)
|
||||
|
||||
**File:** `src/routes/events/[event_id]/(badges)/badges/[badge_id]/review/+page.svelte`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user