195.2 Frontend Ui Analysis

Documentation for Sessions

S195.2 — Frontend UI Analysis: Required Updates Across All 4 Apps

Status: Analysis Complete, Implementation Deferred to S195.3

This document catalogs all frontend changes needed to fully leverage the S195 Vitto Intelligence Upgrade backend work.


Critical Path (Must Do)

1. libs/libs-ai/vitto-chat/src/lib/services/vitto-chat-engine.service.ts — DONE

2. libs/libs-ai/vitto-chat/src/lib/services/user-context.service.ts — DONE

3. Host App setContext() Callers — NEEDS UPDATE

Each app that hosts Vitto chat must pass roleLevel when calling userContext.setContext():

App File Status
gograb-ai apps/gograb-ai/src/app/ — look for setContext() calls Auto-derived from userType (works without change)
gograb-space apps/gograb-space/src/app/ Auto-derived (works)
gograb-admin apps/gograb-admin/src/app/ Auto-derived (works)
gograb-dev apps/gograb-dev/src/app/ Auto-derived (works)

Note: The defaultRoleLevel() auto-derivation means all apps work WITHOUT explicit changes. The roleLevel is inferred from userType. Apps can override with explicit roleLevel when they have richer auth context.


Executive Instructions UI — New Feature (S195.3)

Location: libs/libs-ai/vitto-hub/src/lib/components/vitto-settings/

The VittoSettingsComponent already has role-gated sections. Add a new section for executives:

Proposed Component: executive-instructions-panel.component.ts

Features:

API Calls (all to backend-vitto-api):

Route: Add as subsection of /vitto/settings or as new tab in the Vitto Hub sidebar under "Governance"


App-by-App Analysis

gograb-ai (Primary AI App)

Current Vitto Integration:

S195 Impact:

Recommended S195.3 Work:

  1. Create ExecutiveInstructionsPanelComponent in vitto-hub
  2. Add to vitto-settings as role-gated tab
  3. Add "Space Profile" card to observatory dashboard (shows maturity, modules, patterns)

gograb-space (Platform Builder App)

Current Vitto Integration:

S195 Impact:

Recommended S195.3 Work:

gograb-admin (Admin App)

Current Vitto Integration:

S195 Impact:

Recommended S195.3 Work:

gograb-dev (Developer App)

Current Vitto Integration:

S195 Impact:

Recommended S195.3 Work:


Summary

Component S195.2 Status S195.3 Required
Chat engine (vitto-chat lib) DONE -
User context (vitto-chat lib) DONE -
Backend API (vitto-api) DONE -
Host app callers Auto-derived, WORKS Explicit roleLevel from auth (optional)
Executive Instructions UI NOT STARTED New component in vitto-hub
Space Profile Dashboard NOT STARTED Observatory card (optional)
Generation History UI NOT STARTED Studio enhancement (optional)

Bottom line: All 4 apps work with S195.2 backend changes without any frontend modifications, thanks to the defaultRoleLevel() auto-derivation. The remaining frontend work (executive instructions UI, space profile dashboard) is new feature development for S195.3.