Skip to content

feat(auth): adjust authority roles and optimize navigation layout#58

Merged
mtrznadel24 merged 2 commits into
developfrom
feature/IP-123-Dostosowanie-uprawnień-Authority
May 16, 2026

Hidden character warning

The head ref may contain hidden characters: "feature/IP-123-Dostosowanie-uprawnie\u0144-Authority"
Merged

feat(auth): adjust authority roles and optimize navigation layout#58
mtrznadel24 merged 2 commits into
developfrom
feature/IP-123-Dostosowanie-uprawnień-Authority

Conversation

@mtrznadel24

Copy link
Copy Markdown
Collaborator

Dostosowanie roli władz wydziału AUTHORITY do obecnych wymagań zarówno na frontendzie jak i backedzie. Authority może być project managerem i linear managerem. Dostosowanie navbara, aby pomieścił wszystkie nowe funkcjonalności. Razem z przyszłymi rejestrami. Dodanie demo kont, aby szybciej sie zalogować.

…d demo login

- Authorization & Access Control:
  * Adjusted AUTHORITY role privileges to correctly overlap with both PROJECT_MANAGER (creation of projects/groups) and LINEAR_MANAGER (approvals & pending requests) based on new requirements.
  * Usurped strict administrator bypass and fixed backend method-level security expressions on project controllers to avoid leaking global access.
  * Hardened user invitation validation to only accept supervisors holding either LINEAR_MANAGER or AUTHORITY roles.

- Navigation Architecture:
  * Refactored `Navbar` to dynamically support sub-navigation buckets (`children`) via cascade Dropdown menus to handle layout overcrowding.
  * Added dynamic path visibility checks and safe visibility filters to prevent rendering empty interface panels.
  * Enhanced UI/UX interaction surface (hitboxes) and contrast/hover active state indicators.

- Demo Quick Login Feature:
  * Implemented a "Quick Login" panel inside `LoginView` using `react-hook-form`'s unified data-filling mechanics.
  * Added dedicated layout button toggles mapped to active DEV seeding data accounts (PM, Linear, Authority, Common) to expedite client demonstration flows.
@mtrznadel24 mtrznadel24 requested a review from FAZ110 May 16, 2026 15:31
Comment thread frontend/src/features/auth/components/LoginForm.view.tsx Outdated
Comment thread frontend/src/features/user-management/user-management.hooks.ts Outdated
Comment thread frontend/src/features/user-management/user-management.hooks.ts
Comment thread frontend/src/components/layout/Navbar.tsx Outdated

@FAZ110 FAZ110 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chyba jest w porządku najbardziej się zastanawiam nad tym hardkodowaniem w LoginForm.view.tsx, a tak to jakieś nazewnictwo

@mtrznadel24 mtrznadel24 requested a review from FAZ110 May 16, 2026 17:32

@FAZ110 FAZ110 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chyba w porządku jest teraz

@mtrznadel24 mtrznadel24 merged commit 73cae40 into develop May 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants