Skip to content
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

[JN-1536] adding typescript live-checking #1332

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

devonbush
Copy link
Collaborator

@devonbush devonbush commented Dec 12, 2024

DESCRIPTION (include screenshots, and mobile screenshots for participant UX)

This adds back real-time (ish) typescript checking to the build.
image

I've gone through and corrected some of the errors (notably, we had an entire duplicated section of api functions), but there are still a lot more to go. I think we should go ahead and merge this, and live with the temporary inconvenience of having to dismiss the window while we clean up the rest, rather than wait for one massive PR to resolve it all

TO TEST: (simple manual steps for confirming core behavior -- used for pre-release checks)

  1. run npm install
  2. restart ui-admin
  3. confirm a window pops up showing you the boatload of TS errors we've accumulated since moving to Vite 😛

Copy link
Collaborator

@connorlbark connorlbark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that it only seems to show errors as they load into the browser. For example, when I started the admin UI without any backend running, it displayed no errors. When I started the API without anything populated, it showed no errors. Only when I populated demo did it show any errors. That makes me worry there might be weird nested/lazy loaded bugs that won't show up. Not a huge deal because we'll find them eventually, but I definitely could see this hiding bugs from us in areas of the codebase we don't often go to locally.

I wonder if we could supplement this, after we fix all of the errors, with a github action that statically checks if there are any typescript errors left in the codebase.

Copy link
Member

@MatthewBemis MatthewBemis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

also, sorry for the merge conflicts from removing the legacy designer :(

@devonbush devonbush merged commit d747afa into development Dec 12, 2024
18 checks passed
@devonbush devonbush deleted the db-ts-realtime branch December 12, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants