feat: add role-based user management with live spreadsheet imports - #32
Open
tilipim123 wants to merge 10 commits into
Open
feat: add role-based user management with live spreadsheet imports#32tilipim123 wants to merge 10 commits into
tilipim123 wants to merge 10 commits into
Conversation
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.
What I built
This PR is my implementation of the Umanni full stack challenge. I chose the Hotwire path and stayed close to the Rails 8 stack instead of introducing a separate frontend or Redis dependency.
Design decisions
I kept the application as a modular monolith because users, permissions, imports, and dashboard statistics share the same data and transactional boundaries. Controllers only coordinate HTTP concerns; mutations live in focused services, reads in query objects, and PostgreSQL constraints back the important model invariants.
Two failure cases received extra attention: concurrent requests cannot remove the final administrator, and retries cannot duplicate rows that were already imported. Import history also survives account deletion by anonymizing creator/imported-user references at the database boundary.
How I verified it
The complete local gate is one command:
docker compose --profile tools run --rm test bin/ciLatest result:
/,/up,/manifest, and/service-workerreturning 200; a login POST without a CSRF token returning 422 with credentials filtered from logsThe README contains the build, seed, run, configuration, and deployment instructions. Detailed evidence is in
docs/qa-report.md; the acceptance inventory is indocs/qa-inventory.md.AI usage
I used OpenAI Codex with GPT-5.6 Sol (
gpt-5.6-sol) during architecture, implementation, testing, and review. I reviewed the generated changes and remained responsible for the final technical decisions. The disclosure is also the first section of the README, as required by the challenge.