You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add mobile Inbox actions for stopping tasks, following up, opening PRs, and dismissing #1724
Inbox cards must be actionable rather than acting only as status summaries. Task notifications need Stop, Follow up, Open PR, Dismiss, and detail navigation while reusing existing authenticated task APIs.
Requirements
Render only actions advertised by each notification event.
Require confirmation before stopping an active task.
Reuse the existing follow-up modal and postTaskFollowup API.
Open PR URLs in a new browser context with safe noopener,noreferrer behavior.
Never trust a PR URL outside https://github.com.
Disable actions while a request is pending.
Show success and error toasts.
Re-fetch or reconcile the Inbox after a successful action.
Preserve accessible labels and minimum mobile tap targets.
Acceptance Criteria
Stop is unavailable unless included in the event action list.
Stop requires explicit confirmation and cannot be triggered by a push click alone.
Follow up opens a modal, posts once, and closes after success.
Open PR rejects malformed or non-GitHub URLs.
Dismiss updates unread count and removes the card.
All controls work at 320px width and with keyboard navigation.
Use a dedicated action component that receives the immutable notification item and callback hooks from the Inbox. Existing task APIs remain the source of truth; no duplicate notification-specific stop or follow-up endpoint is added. Confirmation is implemented in the foreground UI because notification service workers cannot provide sufficient context for destructive actions.
File: propr-ui/src/components/Inbox/TaskNotificationActions.tsx (new file)
Why this file: It encapsulates task-specific mutations and validation without making InboxPage aware of task API details.
importReact,{useState}from'react';importtype{NotificationEvent}from'@propr/shared';import{ExternalLink,MessageSquarePlus,OctagonX,Trash2}from'lucide-react';import{postTaskFollowup,stopTaskExecution}from'../../api/proprApi';importFollowupModalfrom'../TaskDetails/FollowupModal';import{useToast}from'../ui/useToast';interfaceProps{item: NotificationEvent;onDismiss: ()=>Promise<void>;onChanged: ()=>Promise<void>;}constsafeGithubUrl=(value: string|null|undefined): string|null=>{try{consturl=newURL(value??'');returnurl.protocol==='https:'&&url.hostname==='github.com' ? url.href : null;}catch{returnnull;}};exportfunctionTaskNotificationActions({ item, onDismiss, onChanged }: Props){const{ addToast }=useToast();const[busy,setBusy]=useState(false);const[followupOpen,setFollowupOpen]=useState(false);constactions=newSet(item.actions);constprUrl=safeGithubUrl(item.prUrl);conststop=async()=>{// Stopping can discard active agent work, so a foreground confirmation is// required even when the action originated from an urgent notification.if(!window.confirm('Stop this task? Current agent work will be interrupted.'))return;setBusy(true);try{awaitstopTaskExecution(item.targetId);addToast({type: 'success',message: 'Stop requested.'});awaitonChanged();}catch(error){addToast({type: 'error',message: (errorasError).message});}finally{setBusy(false);}};constsubmitFollowup=async(body: string)=>{setBusy(true);try{awaitpostTaskFollowup(item.targetId,body);setFollowupOpen(false);addToast({type: 'success',message: 'Follow-up posted.'});awaitonChanged();}finally{setBusy(false);}};return(<><divclassName='flex flex-wrap gap-2'>{actions.has('stop')&&<buttontype='button'disabled={busy}onClick={stop}className='min-h-10 rounded-md border border-red-200 px-3 text-sm text-red-700'><OctagonXclassName='mr-1 inline h-4 w-4'/>Stop</button>}{actions.has('follow_up')&&<buttontype='button'disabled={busy}onClick={()=>setFollowupOpen(true)}className='min-h-10 rounded-md border px-3 text-sm'><MessageSquarePlusclassName='mr-1 inline h-4 w-4'/>Follow up</button>}{actions.has('open_pr')&&prUrl&&<buttontype='button'onClick={()=>window.open(prUrl,'_blank','noopener,noreferrer')}className='min-h-10 rounded-md border px-3 text-sm'><ExternalLinkclassName='mr-1 inline h-4 w-4'/>Open PR</button>}{actions.has('dismiss')&&<buttontype='button'disabled={busy}onClick={onDismiss}className='min-h-10 rounded-md border px-3 text-sm text-slate-600'><Trash2className='mr-1 inline h-4 w-4'/>Dismiss</button>}</div><FollowupModalisOpen={followupOpen}onClose={()=>setFollowupOpen(false)}onSubmit={submitFollowup}initialContent=''taskInfo={{repository: item.projectSlug??undefined,title: item.title}asnever}/></>);}
File: propr-ui/src/pages/InboxPage.tsx
Why this file: Replace the empty action mount point with the task action component while retaining the page-level dismissal and refresh callbacks.
Why this file: The task detail page is a push deep-link destination. Its existing actions must remain reachable on narrow screens without horizontal clipping.
--- a/propr-ui/src/components/TaskDetails/ActionBar.tsx+++ b/propr-ui/src/components/TaskDetails/ActionBar.tsx@@ -119,7 +119,10 @@- <div className='flex items-center gap-2'>+ {/* Wrapping preserves every task action on phone-sized screens. Hiding the+ overflow would make a valid push deep link land on a page where its action+ is still inaccessible. */}+ <div className='flex flex-wrap items-center justify-end gap-2'>
Activity
propr-dev commentedon Aug 2, 2026
Suggested Implementation:
Implementation Approach
Use a dedicated action component that receives the immutable notification item and callback hooks from the Inbox. Existing task APIs remain the source of truth; no duplicate notification-specific stop or follow-up endpoint is added. Confirmation is implemented in the foreground UI because notification service workers cannot provide sufficient context for destructive actions.
File:
propr-ui/src/components/Inbox/TaskNotificationActions.tsx(new file)Why this file: It encapsulates task-specific mutations and validation without making
InboxPageaware of task API details.File:
propr-ui/src/pages/InboxPage.tsxWhy this file: Replace the empty action mount point with the task action component while retaining the page-level dismissal and refresh callbacks.
File:
propr-ui/src/components/TaskDetails/ActionBar.tsxWhy this file: The task detail page is a push deep-link destination. Its existing actions must remain reachable on narrow screens without horizontal clipping.
propr-dev commentedon Aug 24, 2026
🤖 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:
codexgpt-5.6-sol1724/gpt-5.6-sol-add-mobile-inbox-actions--20260824-1639-e1g1716-epic-failed-to-3m8issue-1724-20260824-1639-gpt-5.6-sol-e1g🔍 Track Task Execution
fix(ai): Resolve issue #1724 - Add mobile Inbox actions for stopping …
[1724 by GPT-5.6 Sol] Add mobile Inbox actions for stopping tasks, fo…
[Epic] PWA & Web push (#1731)