Repository navigation
fix: replace explicit any usage with real types #372
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -86,21 +86,30 @@ export type ApplicationsPageResult = { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export { PAGE_SIZE, APPLICATION_STATUSES }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export function applicationsPageQueryKey( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status: string | undefined, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| starred: boolean | undefined, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| searchTerm: string, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| likelyGhosted: boolean | undefined, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'applications', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'page', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status ?? null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| starred ?? false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| likelyGhosted ?? false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| searchTerm, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] as const; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+89
to
+103
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win Keep an absent filter distinct from Lines [98-100] map
Proposed fix- starred ?? false,
- likelyGhosted ?? false,
+ starred ?? null,
+ likelyGhosted ?? null,📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export function applicationsPageQueryOptions( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status: string | undefined, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| starred: boolean | undefined, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| searchTerm: string, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| likelyGhosted: boolean | undefined, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return infiniteQueryOptions({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| queryKey: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'applications', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'page', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status ?? null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| starred ?? false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| likelyGhosted ?? false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| searchTerm, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| queryKey: applicationsPageQueryKey(status, starred, searchTerm, likelyGhosted), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| queryFn: ({ pageParam }) => | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| gqlClient.request<ApplicationsPageResult>(APPLICATIONS_PAGE_QUERY, { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status: status ?? null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: mankatcheung/job-finder
Length of output: 15552
🏁 Script executed:
Repository: mankatcheung/job-finder
Length of output: 36398
🏁 Script executed:
Repository: mankatcheung/job-finder
Length of output: 16323
🏁 Script executed:
Repository: mankatcheung/job-finder
Length of output: 390
🏁 Script executed:
Repository: mankatcheung/job-finder
Length of output: 390
🏁 Script executed:
Repository: mankatcheung/job-finder
Length of output: 890
Add coverage for optimistic deletion and undo restoration.
The existing deletion tests assert mutation requests only. No test covers document-draft deletion, optimistic cache removal, or undo restoration. Use a controllable
showUndoToastmock and cover all six handlers, including removal across allApplicationsPagepages.📍 Affects 5 files
apps/web/src/routes/_authenticated/applications/$applicationId/-components/ApplicationDetailPage.tsx#L484-L493(this comment)apps/web/src/routes/_authenticated/applications/$applicationId/-components/ContactsTab.tsx#L350-L359apps/web/src/routes/_authenticated/applications/$applicationId/-components/DocumentsTab.tsx#L242-L251apps/web/src/routes/_authenticated/applications/$applicationId/-components/DocumentsTab.tsx#L396-L405apps/web/src/routes/_authenticated/applications/$applicationId/-components/InterviewsTab.tsx#L425-L436apps/web/src/routes/_authenticated/applications/-components/ApplicationsPage.tsx#L306-L319🤖 Prompt for AI Agents
Source: Coding guidelines