Activate UIUX V2 navigation for consultant and client pilots

This commit is contained in:
A R R R Associates
2026-07-10 17:33:13 +05:30
parent 7413d0dd7d
commit 12512b363b
5 changed files with 135 additions and 26 deletions
@@ -0,0 +1,71 @@
{#
UI/UX V2 Phase 1C — Consultant pilot navigation
This component preserves the existing consultant portal URLs and visibility.
It changes presentation only and does not grant access, change routes, or
replace the consultant dashboard's existing AJAX content tabs.
#}
{% set _consultant_path = request.url.path %}
{% set navigation_aria_label_v2 = 'Consultant workspace navigation' %}
{% set navigation_items_v2 = [
{
'label': 'Dashboard',
'url': '/consultant/dashboard',
'visible': true,
'active': _consultant_path == '/consultant/dashboard'
},
{
'label': 'Work',
'url': '/consultant/work',
'visible': true,
'active': _consultant_path.startswith('/consultant/work') or _consultant_path.startswith('/consultant/assignments')
},
{
'label': 'Messages',
'url': '/consultant/communications',
'visible': true,
'active': _consultant_path.startswith('/consultant/communications')
},
{
'label': 'Documents',
'url': '/consultant/documents',
'visible': true,
'active': _consultant_path.startswith('/consultant/documents')
},
{
'label': 'Service Requests',
'url': '/consultant/service-requests',
'visible': true,
'active': _consultant_path.startswith('/consultant/service-requests')
},
{
'label': 'Managed Clients',
'url': '/consultant/managed-clients',
'visible': true,
'active': _consultant_path.startswith('/consultant/managed-clients')
},
{
'label': 'Workspace',
'url': '/consultant/workspace',
'visible': true,
'active': _consultant_path.startswith('/consultant/workspace')
},
{
'label': 'Profile',
'url': '/consultant/profile',
'visible': true,
'active': _consultant_path.startswith('/consultant/profile')
},
{
'label': 'Alerts',
'url': '/alerts',
'visible': true,
'active': _consultant_path.startswith('/alerts'),
'badge': unread_alert_count if unread_alert_count is defined and unread_alert_count > 0 else none
}
] %}
<div class="mb-6 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-soft" data-uiux-v2-pilot="consultant">
{% include "ui/templates/components/navigation_v2.html" %}
{% include "ui/templates/components/mobile_navigation_v2.html" %}
</div>