Add auth flow and role-based views (admin vs stakeholder) #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Repo
forgejo_admin/minio-playgroundLineage
plan-minio-mobile→ Phase 1 (Playground Auth Flow)User Story
As a platform admin on my phone
I want to sign in and see all buckets with full CRUD
So that I can manage MinIO assets from mobile
As a project stakeholder on my phone
I want to sign in and see only my project's files
So that I can review assets shared with me without seeing other projects
Context
The playground v1 (PR #2) shipped with mock data and no auth flow. Now that minio-mobile is its own project with multi-tenant auth, the playground needs to prototype the signin → role-based routing UX before we build the SvelteKit app.
Follow the westside-playground pattern: signin page with Demo Account links that navigate into different role views. HTML comments document
@route,@auth,@api,@interactivity,@gaps,@notesso SvelteKit promotion knows exactly what to wire up.Key decisions:
assets/westside/), read + upload, no deleteFile Targets
Files to modify:
app.js— add role state management, demo account routing, role-based mock data filtering, stakeholder prefix scopingstyle.css— add signin page styles, role-specific nav styles, stakeholder headerindex.html— update to be admin-only bucket list landing (redirect stakeholders to their browse view)Files to create:
signin.html— login form (non-functional) with Demo Account links. Include@route,@auth,@api,@interactivity,@gaps,@notesHTML comments (see westside-playground/signin.html for pattern)Files to reference (read-only):
~/westside-playground/signin.html— reference for auth flow pattern and HTML comment conventions~/westside-playground/shared/app.css— reference for signin page styling patternsFiles NOT to touch:
assets/directory — leave as-isAcceptance Criteria
signin.htmlrenders at 390px with login form and 3 demo account linksindex.html(bucket list — all buckets visible)browse.html?bucket=assets&prefix=westside/&role=stakeholder&project=Westside Basketballbrowse.html?bucket=assets&prefix=mcd-tracker/&role=stakeholder&project=MCD Tracker@route /signin,@auth none,@interactivitywith Keycloak OIDC flow descriptionpython3 -m http.server 8080Test Expectations
Constraints
style.css, oneapp.js, HTML files per pagepal-e-playground/guide/index.htmlChecklist
Related
phase-minio-mobile-1-playground-auth— phase noteproject-minio-mobile— project this advances