Skip to content

Integrate OnboardingWidget into the main Dashboard view #896

Closed

Description

@propr-dev

Context

The dashboard is the primary landing page, making it the perfect location to display the onboarding widget to new users who haven't completed setup.

Requirements

  • Update the Dashboard component to fetch the system readiness state using useSystemReadiness.
  • Display the OnboardingWidget prominently at the top if setup is incomplete.

Implementation Specification

  • Import useSystemReadiness and OnboardingWidget into propr-ui/src/components/Dashboard.tsx.
  • Render the widget conditionally based on readiness.

Acceptance Criteria

  • The widget appears when agents or repos are missing.
  • The widget smoothly disappears once both are configured.

Created by ProPR AI Planner

Activity

  1. propr-dev commented on Mar 3, 2026

    @propr-dev
    ContributorAuthor

    Suggested Implementation:

    Implementation Approach

    Injecting the widget at the top of the layout ensures it's the very first thing a new user sees. We use the custom hook we created to keep the data fetching abstracted from the UI layer.

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

    --- a/propr-ui/src/components/Dashboard.tsx
    +++ b/propr-ui/src/components/Dashboard.tsx
    @@ -3,8 +3,9 @@
     import TaskStatsChart from './TaskStatsChart';
     import RepositoryBreakdown from './RepositoryBreakdown';
     import TopModels from './TopModels';
    -import { NewPlanForm, KPICard, transformRepoData, getInitialSelectedRepo, Repo } from './Dashboard/index';
    +import { NewPlanForm, KPICard, transformRepoData, getInitialSelectedRepo, Repo, OnboardingWidget } from './Dashboard/index';
     import TaskList from './TaskList';
    +import { useSystemReadiness } from '../hooks/useSystemReadiness';
     
     const Dashboard: React.FC = () => {
       const [repos, setRepos] = useState<Repo[]>([]);
    @@ -17,6 +18,10 @@
       const fileInputRef = useRef<HTMLInputElement>(null);
       const navigate = useNavigate();
     
    +  // System readiness for onboarding
    +  const readiness = useSystemReadiness();
    +  const needsOnboarding = !readiness.isLoading && (!readiness.hasAgents || !readiness.hasRepos);
    +
       // Expanded state from parent component
       const [isPlanFormExpanded, setIsPlanFormExpanded] = useState(false);
     
    @@ -128,6 +133,12 @@
           <div className="flex-1 min-w-0 p-6 overflow-y-auto">
             <div className="max-w-[1200px] mx-auto">
     
    +          {/* Onboarding Flow for New Users */}
    +          {needsOnboarding && (
    +            <OnboardingWidget hasAgents={readiness.hasAgents} hasRepos={readiness.hasRepos} />
    +          )}
    +
               {/* Create Plan Form - Only expanded if user clicks into it */}
               <NewPlanForm
                 repos={repos}
  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: 896/claude-opus-4-5-20251101-integrate-onboardingwidge-20260303-1219-dzy
    • Base Branch: 892-epic-create-usesystemreadiness-xcn
    • Worktree: issue-896-20260303-1219-claude-opus-4-5-20251101-dzy

    🔍 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