Commit Graph

18 Commits

Author SHA1 Message Date
a12af3f0ee Implement RBAC with login screen for admin and staff roles
- Add Role enum (ADMIN, STAFF) and UserSession singleton
- Add User model and UserDB with SHA2-256 authentication
- Add login screen (login-view.fxml + LoginController)
- Update main-layout-view.fxml: dynamic username/role labels, logout button
- Update MainLayoutController: hide Inventory/Suppliers/Product-Suppliers for STAFF, show username/role, handle logout
- Update PetShopApplication to start with login screen and initialize users table
- Update module-info.java to open/export auth package
2026-02-21 13:27:50 -07:00
fb16da91e2 Merge pull request #24 from RecentRunner/Pets
Pets CRUD
2026-02-11 10:10:36 -07:00
augmentedpotato
bcb383c40a Pets CRUD 2026-02-11 08:40:31 -07:00
12020a2feb Fixed DB connection and java version issue 2026-02-10 16:35:49 -07:00
a2dd913abd Merge pull request #14 from RecentRunner/fixes
Added an example connection and docker compose for sql and proper error tracking
2026-02-10 09:18:41 -07:00
c2294d2faa Added an example connection file and also added proper error tracing 2026-02-10 09:15:20 -07:00
e8322cb8f5 Added docker compose for consistent MySQL setup 2026-02-10 09:10:32 -07:00
117e7010f6 Merge pull request #13 from RecentRunner/CURDProductSupplier
Added CRUD to productSuppliers
2026-02-04 22:12:13 -07:00
Alex
b53dcf10a7 Added CRUD to productSuppliers
-add CRUD to productSupplier and changed sqlDatabase so cost is in productSuppliers table
2026-02-04 19:05:41 -07:00
ccc9a67d8b Merge pull request #12 from RecentRunner/CRUDProducts
Added CRUD to Products and added Validation to dialog
2026-02-04 17:03:23 -07:00
Alex
07a6d3bfc6 Added CRUD to Products and added Validation to dialog 2026-02-03 20:02:46 -07:00
Alex
310b66329f Added CRUD to Suppliers 2026-02-01 18:43:35 -07:00
Alex
d11f8070ca Fixed Views for Product and Suppliers 2026-02-01 14:56:00 -07:00
Alex
47fe06a5c3 Added connection to database
- displayed products and suppliers to table but still incomplete
2026-01-31 17:52:30 -07:00
NikithaKommidi89
d4fe78b65f Merge branch 'main' of https://github.com/RecentRunner/group-2-threaded-project-petshop-desktop 2026-01-30 19:02:43 -07:00
NikithaKommidi89
2f90757229 Database 2026-01-30 19:02:19 -07:00
augmentedpotato
cb6a389a6a initial commit 2026-01-30 18:54:57 -07:00
Alex
5f42633350 Added UI 2026-01-28 18:48:36 -07:00