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

Revive go-next #1944

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Revive go-next #1944

merged 1 commit into from
Apr 12, 2024

Conversation

frzyc
Copy link
Owner

@frzyc frzyc commented Apr 12, 2024

Describe your changes

Get go-next to a working state again.
Add @prisma/nextjs-monorepo-workaround-plugin to resolve multiple instance of Prisma Client due to hot refresh in NextJS.

Issue or discord link

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

@frzyc frzyc requested a review from nguyentvan7 April 12, 2024 00:29
@frzyc frzyc self-assigned this Apr 12, 2024
Copy link
Contributor

github-actions bot commented Apr 12, 2024

[sr-frontend] [Fri Apr 12 00:31:44 UTC 2024] - Deployed acdb230 to https://genshin-optimizer-prs.github.io/pr/1944/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Fri Apr 12 00:32:47 UTC 2024] - Deployed acdb230 to https://genshin-optimizer-prs.github.io/pr/1944/frontend (Takes 3-5 minutes after this completes to be available)

[Fri Apr 12 04:04:21 UTC 2024] - Deleted deployment

@@ -312,7 +312,7 @@ function Header({
<ColorText color={mainStatLevel !== level ? 'warning' : undefined}>
{getMainStatDisplayStr(
mainStatKey,
rarity as RarityKey,
rarity as ArtifactRarity,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we have to type assert?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Artifact.rarity is a Int (number) from GraphQL interface, ArtifactRarity is 3|4|5
https://github.com/frzyc/genshin-optimizer/blob/master/apps/gi-backend/src/app/schema_gen.graphql#L33

Copy link
Collaborator

Choose a reason for hiding this comment

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

i thought the benefit of this was it had type safety

Copy link
Owner Author

Choose a reason for hiding this comment

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

getting the type for rarity to be a more strict enum is just extra work that hasnt been done yet, it will still validate it to be a int, which is better than any

@frzyc frzyc merged commit 2bd0116 into master Apr 12, 2024
7 checks passed
@frzyc frzyc deleted the go-next branch April 12, 2024 04:02
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.

None yet

2 participants