-
Notifications
You must be signed in to change notification settings - Fork 127
Nav update icon projects/kt #3090
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| }: Props = $props(); | ||
| const [x, y] = $derived(point); | ||
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.
⚠️ Type 'SVGTextElement | undefined' is not assignable to type 'SVGTextElement'.
| const showIcon = $derived(icon && config); | ||
| const textWidth = $derived(textElement?.getBBox()?.width || 0); | ||
| const backdropWidth = $derived(showIcon ? textWidth + 36 : textWidth + 12); | ||
| const textX = $derived( |
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.
⚠️ 'config' is possibly 'undefined'.
| const activityTaskScheduled = $derived( | ||
| group.eventList.find(isActivityTaskStartedEvent), | ||
| ); | ||
| const retried = $derived( |
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.
⚠️ 'activityTaskScheduled.attributes.attempt' is possibly 'null' or 'undefined'.
| {#key [namespace]} | ||
| <PaginatedTable | ||
| let:visibleItems | ||
| {onFetch} |
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.
⚠️ Type '(err: APIErrorResponse) => void' is not assignable to type '(error: unknown) => void | undefined'.
| query: string | null, | ||
| onError: ErrorCallback, | ||
| request = fetch, | ||
| ): Promise<PaginatedSchedulesPromise> => { |
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.
⚠️ Type '(pageSize?: number, token?: string) => Promise<{ items: IScheduleListEntry[]; nextPageToken: string; } | { items: IScheduleListEntry[] | null | undefined; nextPageToken: string; }>' is not assignable to type 'PaginatedSchedulesPromise'.
| import { get, type Subscriber } from 'svelte/store'; | ||
|
|
||
| import { startOfDay } from 'date-fns'; | ||
| import { enUS } from 'date-fns/locale'; |
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.
⚠️ Could not find a declaration file for module 'date-fns-tz'. '/home/runner/work/ui/ui/node_modules/.pnpm/date-fns-tz@1.3.8_date-fns@2.30.0/node_modules/date-fns-tz/index.js' implicitly has an 'any' type.
|
| ? 'focus-visible:ring-success' | ||
| : 'focus-visible:ring-primary/70'}" | ||
| onclick={toggle} | ||
| {#if isCloud} |
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.
We should make this it's own component instead of an if statement. Start with a CloudNavBar and OSSNavBar and if we want to use CloudNavBar for OSS we can switch to 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.
yess thats a much better plan.
|
See this PR -- without all the unintended changes -- here --> #3095 |
This PR is meant to add the underlying structure for the new nav.
The effect of this PR adds more svelte5 migrations because the nav is central to a lot of things and updating it ended up being more hairy than I had hoped for.
The LLM helped me do this, so there are probably errors or weirdness somewhere I am code blind to.
The application seemed to run fine though, so maybe I am paranoid.
The icons are added and there are lots of guard rails to prevent any of these changes to prod until we are ready.