-
Notifications
You must be signed in to change notification settings - Fork 25
fix(dashboard): catch up GitHub signal sync with cached query age #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9847c5d
fix(dashboard): catch up GitHub signal poll with cached query age
stylessh 55648fb
Merge origin/main into stylessh/c56dccdc
stylessh 62bc5cf
fix(dashboard): track signal last-seen per query target (CodeRabbit)
stylessh 1819771
fix(dashboard): satisfy Biome exhaustive-deps on signal map reset
stylessh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: stylessh/diffkit
Length of output: 376
🏁 Script executed:
cat -n apps/dashboard/src/lib/use-github-signal-stream.ts | head -200Repository: stylessh/diffkit
Length of output: 6750
🏁 Script executed:
rg -n 'MutableRefObject' --type ts apps/dashboard/src/lib/Repository: stylessh/diffkit
Length of output: 423
🏁 Script executed:
Repository: stylessh/diffkit
Length of output: 1909
🌐 Web query:
React 19 MutableRefObject RefObject ref type changes💡 Result:
In React 19, significant changes were made to ref types in TypeScript via
@types/reactupdates to align with runtime improvements, particularly making refs mutable by default and simplifying useRef. Key changes: - useRef now requires an initial argument (e.g., useRef(null) or useRef(undefined)). The zero-argument form is removed. - RefObject now has mutable current: T (not readonly T | null). Previously, current was readonly T | null. - MutableRefObject is deprecated in favor of the unified RefObject, which useRef always returns. - For ref as a prop (new React 19 feature, reducing need for forwardRef), use React.Ref for the prop type (union of RefObject | ((instance: T | null) => void) | null | undefined). These changes improve type safety and reflect common usage patterns. Codemods like types-react-codemod refobject-defaults and useref-required-initial help migration. Examples: const ref = useRef(null); // RefObject, current: HTMLDivElement | null (but mutable) ref.current = someElement; // Now allowed, previously readonly error // For component props in React 19: interface Props { ref?: React.Ref; } function MyComponent({ ref, ...props }: Props) { return <div ref={ref} {...props} />; } Official React docs do not detail TypeScript types (runtime-focused), but upgrade guide mentions ref cleanups and useRef requiring argument. Changes implemented in@types/reactfor React 19 compatibility.Citations:
Replace deprecated
MutableRefObjectwithRefObjectfor React 19 compatibility.MutableRefObjectis deprecated in React 19 as of@types/react@^19.2.0. Refactor line 2's import and the type annotations on lines 187 and 349 to useRefObject<Map<string, number>>instead, which is the unified ref type in React 19 with mutable.current.🤖 Prompt for AI Agents