Skip to content

Commit

Permalink
Update warning for Secrets of the Obscure
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Aug 22, 2023
1 parent e50f84c commit 1e7bcf6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 9 deletions.
8 changes: 4 additions & 4 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"Copy build": "Copy build",
"Copy from selected character": "Copy from selected character",
"Copy selected sigils to both slots": "Copy selected sigils to both slots",
"Core game changes are updated for the July 18th game patch, but preset coefficients and trait selections may not yet be completely updated. Most gear results will be correctly optimized, but DPS estimates and comparisons may be wrong.<br/><br/>Templates not marked as Outdated are expected to be up to date.": "Core game changes are updated for the July 18th game patch, but preset coefficients and trait selections may not yet be completely updated. Most gear results will be correctly optimized, but DPS estimates and comparisons may be wrong.<br/><br/>Templates not marked as Outdated are expected to be up to date.",
"Create build templates that can be used for the gear optimizer.": "Create build templates that can be used for the gear optimizer.",
"Create templates for the discretize.eu website. Please check the discretize-guides repo for more information.": "Create templates for the discretize.eu website. Please check the discretize-guides repo for more information.",
"Ctrl+d": "Ctrl+d",
Expand Down Expand Up @@ -789,7 +788,7 @@
"preset_trait_Power Quickbrand": "Power Quickbrand",
"preset_trait_Power Quickness Berserker": "Power Quickness Berserker",
"preset_trait_Power Quickness Catalyst": "Power Quickness Catalyst",
"preset_trait_Power Quickness Herald": "preset_trait_Power Quickness Herald",
"preset_trait_Power Quickness Herald": "Power Quickness Herald",
"preset_trait_Power Quickness Spellbreaker": "Power Quickness Spellbreaker",
"preset_trait_Power Reaper": "Power Reaper",
"preset_trait_Power Scrapper": "Power Scrapper",
Expand Down Expand Up @@ -949,7 +948,7 @@
"traitSubText_virtuoso": "virtuoso",
"traitSubText_virtuoso (bugged version)": "virtuoso (bugged version)",
"traitSubText_with 1h weapon": "with 1h weapon",
"traitSubText_with active sand shade": "traitSubText_with active sand shade",
"traitSubText_with active sand shade": "with active sand shade",
"traitSubText_with active shade": "with active shade",
"traitSubText_with aegis": "with aegis",
"traitSubText_with axe": "with axe",
Expand All @@ -963,5 +962,6 @@
"traitSubText_with staff": "with staff",
"traitSubText_with sword": "with sword",
"traitSubText_with torch": "with torch",
"traitSubText_with torch/dagger": "with torch/dagger"
"traitSubText_with torch/dagger": "with torch/dagger",
"🎉 Secrets of the Obscure has been released! 🎉<br/><br/>The gear optimizer has not yet been updated with the changes to runes and relics.": "🎉 Secrets of the Obscure has been released! 🎉<br/><br/>The gear optimizer has not yet been updated with the changes to runes and relics."
}
37 changes: 32 additions & 5 deletions src/pages/index/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ const IndexPage = () => {

const [alertOpen, setAlertOpen] = React.useState([true, true]);

const ALERTS = [
const RED_ALERTS = [
<Trans>
Core game changes are updated for the July 18th game patch, but preset coefficients and trait
selections may not yet be completely updated. Most gear results will be correctly optimized,
but DPS estimates and comparisons may be wrong.
🎉 Secrets of the Obscure has been released! 🎉
<br />
<br />
Templates not marked as Outdated are expected to be up to date.
The gear optimizer has not yet been updated with the changes to runes and relics.
</Trans>,
];

const ALERTS = [
<Trans>
The gear optimizer is still being developed! Please report issues or suggest improvements in
the Discretize{' '}
Expand All @@ -57,6 +58,32 @@ const IndexPage = () => {
<BackgroundImage gameMode={gameMode} />
<Layout>
<URLStateImport sagaType={SagaTypes.ImportFormState} clearUrlOnSuccess />
{RED_ALERTS.map((alert, index) => (
<Collapse key={`alert-${index.toString()}`} in={alertOpen[index]}>
<MuiAlert
action={
<IconButton
aria-label="close"
color="inherit"
size="small"
onClick={() => {
const newAlertOpen = [...alertOpen];
newAlertOpen[index] = false;
setAlertOpen(newAlertOpen);
}}
>
<CloseIcon fontSize="inherit" />
</IconButton>
}
elevation={6}
variant="filled"
severity="error"
sx={{ marginBottom: 1, color: '#fff' }}
>
{alert}
</MuiAlert>
</Collapse>
))}
{ALERTS.map((alert, index) => (
<Collapse key={`alert-${index.toString()}`} in={alertOpen[index]}>
<MuiAlert
Expand Down

0 comments on commit 1e7bcf6

Please sign in to comment.