Skip to content

Restore mobile Planner Studio and task-review workflows reached from notifications #1727

Closed

Description

@propr-dev

Context

Adding deep links and bottom navigation is insufficient if the destination page still hides the relevant action on mobile. Planner Studio already has a dedicated mobile layout and task actions are mostly responsive, but sticky regions, overflow behavior, and hidden controls need an explicit pass.

Requirements

  • Keep Planner Studio's setup, review, refinement, approval, and execution controls available below md.
  • Ensure plan refinement can be focused from the refine notification intent.
  • Ensure Approve/Execute is visible above the mobile bottom navigation.
  • Ensure task Stop, Follow up, prompt/log access, and PR links wrap rather than disappear.
  • Add safe-area-aware spacing to sticky mobile action areas.
  • Prevent the task detail sticky summary from colliding with the mobile bottom navigation.
  • Preserve desktop 30/70 task layout and desktop Planner Studio behavior.
  • Add responsive tests at 320px, 390px, and the md boundary.

Acceptance Criteria

  • Every requested task action can be reached without switching to desktop mode.
  • Planner review can be refined, approved, and advanced to execution on mobile.
  • No horizontal page overflow occurs at 320px.
  • Sticky action areas do not cover content or the bottom navigation.
  • Existing desktop component tests remain green.

Created by ProPR AI Planner

Activity

  1. propr-dev commented on Aug 2, 2026

    @propr-dev
    ContributorAuthor

    Suggested Implementation:

    Implementation Approach

    Adjust the existing responsive components instead of creating simplified mobile-only workflow pages. The current Planner Studio and TaskDetails components already own the correct state and APIs; duplicating them would introduce divergent validation. The changes focus on layout, wrapping, focus handoff, and safe-area spacing.

    File: propr-ui/src/components/TaskPlanner/PlanEditor.tsx

    Why this file: This is the existing review surface referenced by plan-ready deep links and already contains a mobile layout.

    --- a/propr-ui/src/components/TaskPlanner/PlanEditor.tsx
    +++ b/propr-ui/src/components/TaskPlanner/PlanEditor.tsx
    @@ -164,7 +164,12 @@
    -  <div className='md:hidden h-full flex flex-col'>
    +  {/* Keep the complete review workflow in one scroll container. The extra bottom
    +      space prevents approval controls from sitting beneath mobile navigation. */}
    +  <div className='md:hidden min-h-full flex flex-col overflow-x-hidden pb-[calc(4.5rem+env(safe-area-inset-bottom))]'>
    @@ -210,7 +215,8 @@
    -    <div className='sticky bottom-0'>
    +    <div className='sticky bottom-[calc(4rem+env(safe-area-inset-bottom))] z-20 border-t bg-white/95 backdrop-blur'>
           {/* existing refine / approve controls */}
         </div>

    File: propr-ui/src/components/TaskPlanner/RefinementChat.tsx

    Why this file: Notification-driven refinement should focus the existing composer without adding a duplicate chat implementation.

    --- a/propr-ui/src/components/TaskPlanner/RefinementChat.tsx
    +++ b/propr-ui/src/components/TaskPlanner/RefinementChat.tsx
    @@ -20,6 +20,7 @@
     interface RefinementChatProps {
    +  autoFocusComposer?: boolean;
     }
    @@ -50,6 +51,13 @@
    +useEffect(() => {
    +  if (!autoFocusComposer) return;
    +  // Defer until the mobile refinement panel becomes visible; focusing a hidden
    +  // textarea is ignored by Safari and may scroll the wrong container.
    +  requestAnimationFrame(() => textareaRef.current?.focus());
    +}, [autoFocusComposer]);
    @@ -140,7 +148,7 @@
    -<textarea ref={textareaRef}
    +<textarea ref={textareaRef} enterKeyHint='send'

    File: propr-ui/src/components/TaskDetails/index.tsx

    Why this file: TaskDetails is the direct destination for failed, stalled, completed, review, and PR notifications. Its mobile sticky summary must leave room for global navigation.

    --- a/propr-ui/src/components/TaskDetails/index.tsx
    +++ b/propr-ui/src/components/TaskDetails/index.tsx
    @@ -36,7 +36,10 @@
    -  <div className='sm:hidden sticky top-0 z-10 bg-white'>
    +  <div className='sm:hidden sticky top-0 z-10 bg-white'>
    @@ -135,7 +138,10 @@
    -    <div className='min-h-full flex flex-col overflow-x-hidden bg-white sm:h-full sm:overflow-hidden'>
    +    {/* Reserve mobile-nav space within the route as well as the app shell because
    +        this page owns nested sticky and scroll containers. */}
    +    <div className='min-h-full flex flex-col overflow-x-hidden bg-white pb-[calc(4rem+env(safe-area-inset-bottom))] sm:h-full sm:overflow-hidden sm:pb-0'>

    File: propr-ui/src/components/TaskDetails/MetadataBar.tsx

    Why this file: The wider task action surface must wrap on phones instead of clipping controls.

    --- a/propr-ui/src/components/TaskDetails/MetadataBar.tsx
    +++ b/propr-ui/src/components/TaskDetails/MetadataBar.tsx
    @@ -90,7 +90,10 @@
    -  <div className='flex items-center justify-between gap-4'>
    +  <div className='flex flex-col items-stretch gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-4'>
    @@ -120,7 +123,9 @@
    -    <div className='flex items-center gap-2'>
    +    {/* Every action remains in the DOM and wraps; no capability is removed merely
    +        because the viewport crossed below a desktop breakpoint. */}
    +    <div className='flex flex-wrap items-center gap-2'>

    File: propr-ui/src/components/TaskPlanner/SetupWizard.tsx

    Why this file: New Plan is a primary bottom-nav destination. Its footer must remain usable above global navigation.

    --- a/propr-ui/src/components/TaskPlanner/SetupWizard.tsx
    +++ b/propr-ui/src/components/TaskPlanner/SetupWizard.tsx
    @@ -155,7 +155,10 @@
    -      <div className='flex-shrink-0 px-3 md:px-6 py-2 md:py-4 bg-gray-100 border-t border-gray-300'>
    +      {/* Phone layouts reserve the global navigation height so Generate and model
    +          controls remain tappable in the installed PWA. */}
    +      <div className='flex-shrink-0 px-3 md:px-6 py-2 md:py-4 mb-[calc(4rem+env(safe-area-inset-bottom))] md:mb-0 bg-gray-100 border-t border-gray-300'>

    File: propr-ui/src/components/TaskPlanner/SetupWizard.test.tsx

    Why this file: Responsive visibility is a regression-prone UI policy and should be asserted at component level.

    it('keeps mobile generation controls visible above bottom navigation', () => {
      window.matchMedia = vi.fn().mockImplementation(query => ({
        matches: query.includes('max-width'),
        media: query,
        addEventListener: vi.fn(),
        removeEventListener: vi.fn(),
      }));
      render(<SetupWizard onGenerateComplete={vi.fn()} />);
      expect(screen.getByRole('button', { name: /generate/i })).toBeVisible();
      expect(screen.getByRole('button', { name: /generate/i }).closest('div[class]')?.className).toContain('mb-[');
    });
  2. propr-dev commented on Aug 24, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

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

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 1727/gpt-5.6-sol-restore-mobile-planner-st-20260824-2336-wrq
    • Base Branch: 1716-epic-failed-to-3m8
    • Worktree: issue-1727-20260824-2336-gpt-5.6-sol-wrq

    🔍 Track Task Execution

  3. added a commit that references this issue on Aug 24, 2026
  4. added a commit that references this issue on Aug 25, 2026
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