Skip to content

Add proactive sidebar indicators for missing configurations #902

Closed

Description

@propr-dev

Context

Even if a user is on a different page, they should have visual cues indicating that their setup is incomplete (e.g., they haven't configured an AI Agent or a Repository yet).

Requirements

  • Integrate useSystemReadiness into the global Layout component.
  • Display an amber notification dot next to the "AI Agents" navigation item if no agents exist.
  • Display an amber notification dot next to the "Repositories" navigation item if no repos exist.

Implementation Specification

  • Modify propr-ui/src/components/Layout.tsx.
  • Import and call the new hook. Use its properties to augment the navItems array.

Acceptance Criteria

  • A visible indicator appears when setup is incomplete.
  • The indicator disappears automatically when the configuration is fulfilled.

Created by ProPR AI Planner

Activity

  1. propr-dev commented on Mar 3, 2026

    @propr-dev
    ContributorAuthor

    Suggested Implementation:

    Implementation Approach

    We add needsAttention flags directly into the existing routing config object within Layout.tsx, driven by our new system readiness hook. We render an absolute-positioned badge dot when this flag is true to draw the user's eye to the missing config.

    File: propr-ui/src/components/Layout.tsx

    --- a/propr-ui/src/components/Layout.tsx
    +++ b/propr-ui/src/components/Layout.tsx
    @@ -3,6 +3,7 @@
     import { LayoutDashboard, Settings, GitPullRequest, ListTodo, Menu, X, BookOpen, FileText, Activity } from 'lucide-react';
     import { getSystemStatus, getGeneratingPlansCount } from '../api/proprApi';
     import { useDocumentTitle } from '../hooks/useDocumentTitle';
    +import { useSystemReadiness } from '../hooks/useSystemReadiness';
     import { useDynamicFavicon } from '../hooks/useDynamicFavicon';
     import { GlobalHeader } from './GlobalHeader';
     
    @@ -12,6 +13,7 @@
       const [activeTaskCount, setActiveTaskCount] = useState(0);
       const [generatingPlansCount, setGeneratingPlansCount] = useState(0);
       const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
    +  const readiness = useSystemReadiness();
     
       // Only handle static layout title here (if no specific page overrides it)
       useDocumentTitle(undefined);
    @@ -43,11 +45,11 @@
       const navItems = [
         { name: 'Dashboard', path: '/', icon: LayoutDashboard },
         { name: 'Plans', path: '/plans', icon: BookOpen, count: generatingPlansCount },
         { name: 'Tasks', path: '/tasks', icon: ListTodo, count: activeTaskCount },
    -    { name: 'Repositories', path: '/repositories', icon: GitPullRequest },
    +    { name: 'Repositories', path: '/repositories', icon: GitPullRequest, needsAttention: !readiness.isLoading && !readiness.hasRepos },
         { name: 'Summaries', path: '/summaries', icon: FileText },
    -    { name: 'AI Agents', path: '/settings/agents', icon: Activity },
    +    { name: 'AI Agents', path: '/settings/agents', icon: Activity, needsAttention: !readiness.isLoading && !readiness.hasAgents },
         { name: 'Settings', path: '/settings', icon: Settings },
       ];
     
    @@ -87,6 +89,9 @@
                         {item.count > 0 && (
                           <span className="ml-auto bg-teal-100 text-teal-700 py-0.5 px-2 rounded-full text-xs font-medium">
                             {item.count}
                           </span>
                         )}
    +                    {item.needsAttention && (
    +                      <span className="absolute right-3 w-2 h-2 rounded-full bg-amber-500 shadow-sm"></span>
    +                    )}
                       </Link>
                     );
  2. propr-dev commented on Mar 3, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-4-5-20251101 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-4-5-20251101
    • Branch: 902/claude-opus-4-5-20251101-add-proactive-sidebar-ind-20260303-1243-te5
    • Base Branch: 892-epic-create-usesystemreadiness-xcn
    • Worktree: issue-902-20260303-1243-claude-opus-4-5-20251101-te5

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions