-
-
Notifications
You must be signed in to change notification settings - Fork 43
Fix/453/admin see all cases #620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ethanstrominger
wants to merge
57
commits into
main
Choose a base branch
from
fix/453/admin-see-all-cases
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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
d667881 to
d596cbc
Compare
Remove database files from .gitignore, as it is already specified in heat-stack
…n/home-energy-analysis-tool into fix/453/admin-see-all-cases
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.
REVIEW AND MERGE CONFIG ONLY CHANGES PULL REQUEST FIRST
Topics:
Overview of Changes (config-only-changes branch)
This update introduces robust admin role management, UI improvements, and comprehensive Playwright test coverage for user and case management. The changes focus on:
File-by-File Change Explanations
TODO.md
New file.
Tracks tasks related to admin role, user management, and test seeding.
heat-stack/app/components/user-dropdown.tsx
Enhanced user dropdown.
heat-stack/app/constants/error-messages.ts
New file.
Centralizes error messages, e.g., "Access denied. Admins only."
heat-stack/app/routes/cases+/index.tsx
Admin/user case listing logic.
heat-stack/app/routes/users+/$username.tsx
User profile page.
heat-stack/app/routes/users+/index.tsx
User list page.
heat-stack/app/routes/users+/manage.tsx
New file: Admin user management UI.
heat-stack/app/utils/db/case.server.ts
Backend case logic.
heat-stack/app/utils/user.ts
User utility functions.
heat-stack/prisma/seed.ts
Seed script updates.
heat-stack/tests/db-utils.ts
Test utility updates.
heat-stack/tests/e2e/admin-manage-users.test.ts
New file: Playwright tests for admin user management.
heat-stack/tests/e2e/cases-list-admin-user.test.ts
New file: Playwright tests for case listing.
heat-stack/tests/playwright-helper.ts
New file: Playwright login helper.
heat-stack/tests/playwright-utils.ts
Test utility improvements.
heat-stack/tests/seed-test.ts
New file: Test seed data.
If you need a deeper diff or want to see the code for a specific file, let me know!