feat(projects): add Smart Waste Management Platform (closes #86) - #123
Open
arcgod-design wants to merge 2 commits into
Open
feat(projects): add Smart Waste Management Platform (closes #86)#123arcgod-design wants to merge 2 commits into
arcgod-design wants to merge 2 commits into
Conversation
|
@arcgod-design is attempting to deploy a commit to the vishwamistrylearning-1037's projects Team on Vercel. A member of the Team first needs to authorize it. |
…mpletion, syntax fix (closes MistryVishwa#86) Fixes broken 'function Seed(com particular,loc)' syntax from prior commit d2023f8; adds role-switcher header with three seeded demo users (admin / collector / citizen), role-aware complaint visibility, collector route Mark Done / admin route Reset actions, toast notifications, and README + project.json descriptions updated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #86
Summary
Adds the Smart Waste Management Platform as a BuildVerse project at
projects/smart-waste-management/.Single self-contained
index.html(no build step, no CDN, no backend) backed bylocalStorageso the app runs offline after the first load. Implements the role-based access control pattern called out in the issue:A role-switcher in the header (top-right) lets a single browser session switch between the three seeded demo users (
u-admin / u-collector / u-citizen) so the role-aware views are demoable without a login flow.Modules
complaint.reporteris set to the active user'suserIdso the Citizen dashboard can filter to "my issues" only.Bonus UX: toast notifications confirm Submit Report / Route Complete / Role Switch actions. Mobile-friendly (stats grid collapses to 2 columns at <=600px).
Files
Notes
localStorageis the only persistence. To reset the seeded data, runlocalStorage.clear()in DevTools then refresh.Validation
node --checkpasses on the JS inside the<script>block.{/ 70}, 212(/ 212)).Commit
f6a0215onfeat/issue-86-smart-waste-management— supersedesd2023f8(which had a syntax bug:function Seed(com particular,loc)).