-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Artifact Upgrade Probability Calculator (dev-mode only) (#1209)
* Please dont go into master please please * fast eval matches * fast eval w/ 4th sub working! * golf? * :) * slowEval working :) * big ass comment * integrate new class (I think) * strip out old code * delet old code * explain some magic numbers * sigma is so scuffed lmao * format differentiate * fix (?) import errors * fix and refactor code * finish implementing calcExact * update page layout * fix wacky percents * clicking button calls calcExact (UI doesnt update tho) * fix rendering, annotate bug * unify visualization for exact & approximation. Theres a bug w/ calcExact4th. * fix lint * fix 4thExact * close the opening histogram :) * fix type * bugfix: calcExact index * fix exactConstrained; change text & color for exact. * make exact & est colors more similar * lint/format? * lazy load exact graph, show equipped * bugfix: graph left of red line disappears * bugfix on bugfix: last "fix" was wrong oop * fix lint * Hide UI behind dev flag * Fix api calls * Fix spacing * Add translation key to NoArtWarning * Remove dead code --------- Co-authored-by: frzyc <[email protected]> Co-authored-by: Van Nguyen <[email protected]> Co-authored-by: Polomo <[email protected]>
- Loading branch information
1 parent
eb2a4a2
commit 5333ea4
Showing
9 changed files
with
943 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Alert, Link } from '@mui/material' | ||
import { Link as RouterLink } from 'react-router-dom' | ||
|
||
export default function AddArtInfo() { | ||
return ( | ||
<Alert severity="info" variant="filled"> | ||
Looks like you haven't added any artifacts yet. If you want, there are | ||
<Link color="warning.main" component={RouterLink} to="/scanner"> | ||
automatic scanners | ||
</Link> | ||
that can speed up the import process! | ||
</Alert> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Alert, Link } from '@mui/material' | ||
import { Trans, useTranslation } from 'react-i18next' | ||
import { Link as RouterLink } from 'react-router-dom' | ||
|
||
export default function NoArtWarning() { | ||
const { t } = useTranslation('page_character_optimize') | ||
return ( | ||
<Alert severity="warning" variant="filled"> | ||
<Trans t={t} i18nKey="noArtis"> | ||
Oops! It looks like you haven't added any artifacts to GO yet! You | ||
should go to the | ||
<Link component={RouterLink} to="/artifacts"> | ||
Artifacts | ||
</Link> | ||
page and add some! | ||
</Trans> | ||
</Alert> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.