feat(ux): add 'Moja firma' link to user dropdown menu
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Adds direct shortcut to company edit (MANAGER) or company profile (EMPLOYEE)
in the user avatar dropdown. Addresses feedback that editing company data
required searching for own company in the directory.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-31 13:09:27 +02:00
parent 3171ea001a
commit 0b13d80164

View File

@ -1678,6 +1678,21 @@
</svg>
Moje konto
</a>
{% if current_user.company_id and current_user.can_manage_company(current_user.company_id) %}
<a href="{{ url_for('public.company_edit', company_id=current_user.company_id) }}" class="user-menu-item">
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/>
</svg>
Moja firma
</a>
{% elif current_user.company_id %}
<a href="{{ url_for('public.company_detail', company_id=current_user.company_id) }}" class="user-menu-item">
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/>
</svg>
Moja firma
</a>
{% endif %}
{% if current_user.company_id and current_user.email == 'maciej.pienczyn@inpi.pl' %}
<a href="{{ url_for('auth.konto_integracje') }}" class="user-menu-item owner-only">
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24">