feat(frontend): Hub Simple — chat-first home with real agent chat#243
Draft
esafwan wants to merge 5 commits into
Draft
feat(frontend): Hub Simple — chat-first home with real agent chat#243esafwan wants to merge 5 commits into
esafwan wants to merge 5 commits into
Conversation
- Add HubSimplePage as default '/' route (chat-first, no UnifiedLayout) - Add '/dashboard' route for existing metrics dashboard (agents/flows/executions tabs) - Collapsed 60px icon sidebar with nav to all major sections - Role-aware greetings and starter prompts (admin/builder/operator/viewer) - Starter prompts navigate to real pages; free-text triggers real agent chat - Slash command palette (/) with keyboard navigation → navigates to real routes - Real agent chat via 'Hub Orchestrator' with SSE streaming + delta updates - Provider check on mount: no provider → amber onboarding card with link to /models - Streaming delta updates using same pattern as ChatInput (streamingAvailable flag) - HomeHeaderActions: replace switch button with '← Hub' ghost button back to / - SlashCommandMenu and HubConversationView extracted to frontend/src/components/hub/
esafwan
marked this pull request as draft
June 2, 2026 03:34
- Add read-only/hidden is_system Check field to Agent DocType. - Guard on_trash, before_rename, and validate so system agents cannot be deleted, renamed, or have their system flag flipped by non-admins. - Let seeding set is_system via upsert_agent; set frappe.flags.in_seeding during seed_app so the tamper guard allows seed-driven updates. - Fix HubSimplePage role detection to use the real huf_role from PermissionsContext instead of the non-existent system.admin capability. - Remove dead operator persona/greeting/prompt branch. - Add minimal unit tests for Agent system guards.
esafwan
force-pushed
the
feat/design-simplified-hub-homepage-interface
branch
from
July 17, 2026 10:22
68ef6b5 to
a6e06a8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Chat-first home interface as default landing page.
Changes
New default home (
/) —HubSimplePageReal agent chat
sendMessageAPI (same pattern as ChatInput)/modelsDashboard preserved at
/dashboard/dashboard← Hubbutton in dashboard header returns to hubNew files
frontend/src/components/hub/SlashCommandMenu.tsxfrontend/src/components/hub/HubConversationView.tsxfrontend/src/pages/HubSimplePage.tsxNotes