-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: [sveltekit pod] missing issues filters #979
feat: [sveltekit pod] missing issues filters #979
Conversation
…ekit-pod-issues-missing-filters
…ekit-pod-issues-missing-filters
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.
Some small changes requested and bigger chanegs noted but that can wait
svelte-kit-scss/src/lib/components/IssueSearch/IssueSearchControls/IssueSearchControls.svelte
Outdated
Show resolved
Hide resolved
const body = await response.json(); | ||
throw error(response.status, body?.message || response.statusText); | ||
} | ||
const responseBodyJson = (await response.json()) as Promise<GithubIssueMilestone[]>; |
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.
Generally I think casting the type with as
is a code smell. Sometimes it can't be avoided, but it shouldn't be the goto solution.
I would rather see something just validate the api response is of GithubIssueMilestone
type than casting it.
This does not need to be changed in this PR though, we can refactor 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.
Please suggest the change. I cannot understand how shoudl I change that
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.
I will add a suggestion as a future ticket
...routes/(authenticated)/[username]/[repo]/[issueSearchType=issue_search_type]/+page.server.ts
Show resolved
Hide resolved
svelte-kit-scss/src/lib/components/shared/Dropdown/DropdownMenu.svelte
Outdated
Show resolved
Hide resolved
svelte-kit-scss/src/lib/components/shared/Dropdown/DropdownMenu.svelte
Outdated
Show resolved
Hide resolved
svelte-kit-scss/src/lib/components/shared/Dropdown/DropdownMenu.svelte
Outdated
Show resolved
Hide resolved
* [sveltekit-pod] Issues Search: inline filters (open/closed) * Code review fixes * Code review + Components cleanup * feat: [sveltekit pod] missing issues filters (#979) * Dinamic filters: Milestone filter. Dropdown adjustments * fix label * Milestone filter adjustments * Code review fixes * feat: [sveltekit-pod] sveltekit pod issues pulls route redirect (#998) * Dinamic filters: Milestone filter. Dropdown adjustments * fix label * Milestone filter adjustments * resolve redirect for issues search pages * adjust linked components * adjust linked components * Code review fixes * Code review * Code review * Code review fixes
Partially resolves #901
Includes: