refactor(site): extract useRuns hook (closes #595)#648
Draft
ronniegeraghty wants to merge 4 commits into
Draft
Conversation
- Morpheus reviewed 32 open issues and identified 3 quick-win recommendations - Added decision entry to decisions.md with sequencing guidance - Deleted inbox file (decisions/inbox/morpheus-issue-triage-2026-05-22.md) - Updated Morpheus history.md with learnings from backlog shape analysis - Orchestration logs written (not committed; in .gitignore): .squad/orchestration-log/2026-05-22T21-44-13Z-morpheus.md .squad/log/2026-05-22T21-44-13Z-issue-triage-quick-wins.md Top 3 quick wins for execution: #644 (enforce evaluation_criteria removal), #595 (extract useRuns hook), #72 (add early auth check). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Recorded auth check implementation following the task workflow. Documents the Waza pattern and auth check placement decision.
Both dashboard-page.tsx and prompts-page.tsx duplicated the same useEffect fetch pattern with cancellation flag. Extracted to shared useRuns() custom hook in site/src/app/hooks/useRuns.ts. Refactored both components to use the hook. No behavior change — cancellation semantics preserved exactly. Rebuilt embedded site assets (site/dist/) with changes. Closes #595 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ronniegeraghty
pushed a commit
that referenced
this pull request
May 22, 2026
- Add orchestration logs for Neo (3 tasks) and Trinity (Issue #595) - Add session log summarizing PRs #647, #648, #649, and follow-up #650 - Document autonomous two-PR split decision for Issue #644 - Decisions.md updated with scope management rationale (Phase 1 deprecation warning + Phase 2 migration tracked separately) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Extracts duplicated
useEffectfetch pattern fromdashboard-page.tsxandprompts-page.tsxinto a shareduseRuns()custom hook.Changes
site/src/app/hooks/useRuns.tswith shared hookuseRuns()useRuns()with proper dependency handlingTesting
Closes #595