-
Notifications
You must be signed in to change notification settings - Fork 213
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
Tallies added for teams and loadouts #2070
Conversation
[frontend] [Sun May 5 02:51:20 UTC 2024] - Deployed 22c30a9 to https://genshin-optimizer-prs.github.io/pr/2070/frontend (Takes 3-5 minutes after this completes to be available) [frontend] [Sun May 5 16:27:34 UTC 2024] - Deployed 1beb311 to https://genshin-optimizer-prs.github.io/pr/2070/frontend (Takes 3-5 minutes after this completes to be available) [frontend] [Mon May 6 16:44:23 UTC 2024] - Deployed 004ed14 to https://genshin-optimizer-prs.github.io/pr/2070/frontend (Takes 3-5 minutes after this completes to be available) [Mon May 6 16:52:45 UTC 2024] - Deleted deployment |
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.
Is it possible to move the last edit time here? Will balance out the whitespace.
Also, update translations in https://github.com/frzyc/genshin-optimizer/blob/master/libs/gi/localization/assets/locales/en/settings.json
Looks much better now. That is a good catch on the |
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.
Need to pass format CI stage:
assuming you are running a fork with upstream set to the main repo, you can run nx format write --base upstream/master
. Next time, it might be better to create a feature branch in your fork to avoid this issue.
@@ -63,7 +63,17 @@ function DataCard({ index, readOnly }: { index: number; readOnly: boolean }) { | |||
const numChar = database.chars.keys.length | |||
const numArt = database.arts.values.length | |||
const numWeapon = database.weapons.values.length | |||
const hasData = Boolean(numChar || numArt || numWeapon) | |||
const numTeams = database.teams.values.length | |||
let numLoadouts = 0; |
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.
The number of loadouts should just be database.teamChars.values.length
.
Can you also include the number of builds?
database.builds.values.length
…implified calculations
I think you need to change your autocrlf settings in git:
|
When I do yarn run mini-ci, I only fail the gi-dm-localization test because the file at libs/gi/dm/GenshinData/TextMap/TextMapCHS.json isn't found, is this fine? |
That missing file is likely due to the datamine submodule not being loaded, you can run |
Did I break something? The checks have been going on for a while |
Nope, because you are a first contributor, the pipeline needs approval before running. I've started it. |
LGTM, thanks for your work!. |
Describe your changes
Added a tally when looking at databases for the number of teams and loadouts.
Issue or discord link
#2040
Testing/validation
BEFORE
AFTER
Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)
yarn run mini-ci
locally to validate format and lint.