Hotfix/page crash null seed#18
Merged
Merged
Conversation
Use a local state for the Max Ante input and debounce updates to the global state. Added useState/useEffect and useDebouncedCallback imports, introduced localAntes synced from antes, and a debouncedSetAntes(200ms) to avoid rapid updates. Updated NumberInput to bind to localAntes, parse string values defensively, and call the debounced setter instead of immediately mutating the global state. Cleans up previous immediate NaN/null handling and reduces unnecessary re-renders/updates.
Collaborator
Author
OptimusPi
commented
Feb 8, 2026
|
|
||
| export default function Footer() { | ||
| const {data: supporters, isPending} = useQuery<Array<{ name: string, subscription: boolean }>>({ | ||
| const {data: supporters, isPending: isPending} = useQuery<Array<{ name: string, subscription: boolean }>>({ |
Collaborator
Author
There was a problem hiding this comment.
my IDE said isPending was not defined, but, it was here but there's something weird with destructuring this
miaklwalker
approved these changes
Feb 8, 2026
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.

This pull request introduces several improvements and refactors to the seed analysis flow, input handling, and state management, focusing on better input sanitization, improved loading state tracking, and enhanced usability for seed and deck selection. The most important changes are grouped below:
Seed Input Handling & Sanitization
SeedInputAutoCompleteto a reusable component with debounced input and deck selection, improving seed input UX and ensuring seed values are sanitized before analysis. (src/components/SeedInputAutoComplete.tsx, [1] [2]sanitizeSeedutility in both UI and analysis functions, preventing invalid seed formats from propagating. (src/modules/ImmolateWrapper/index.ts, [1] [2];src/modules/state/store.ts, [3]State Management & Loading Feedback
SeedResultsContainerand integrated loading context (SeedResultLoadingContext) to track and expose analysis progress, allowing UI components to react to analysis status. (src/modules/ImmolateWrapper/CardEngines/Cards.ts, [1];src/modules/state/analysisResultProvider.tsx, [2] [3]SeedResultProviderto useuseTransitionanduseEffectfor asynchronous analysis, updating loading state and error handling for more robust seed analysis. (src/modules/state/analysisResultProvider.tsx, src/modules/state/analysisResultProvider.tsxR19-R53)UI Improvements
src/components/blueprint/layout/navbar.tsx, [1] [2]src/components/blueprint/simpleView/simple.tsx, [1] [2]Download Functionality
src/modules/state/downloadProvider.tsx, [1] [2]Miscellaneous
src/components/Rendering/canvasRenderer.tsx, [1] [2] [3] [4];src/components/blueprint/layout/navbar.tsx, [5] [6]src/components/blueprint/standardView/index.tsx, src/components/blueprint/standardView/index.tsxL552-R552)These changes collectively improve seed analysis reliability, user experience, and code maintainability.
Closes #17