diff --git a/apps/sr-frontend/src/app/Character.tsx b/apps/sr-frontend/src/app/Character.tsx index 6ff159b453..d55ce0f9d9 100644 --- a/apps/sr-frontend/src/app/Character.tsx +++ b/apps/sr-frontend/src/app/Character.tsx @@ -7,8 +7,18 @@ import { useCharacterReducer, } from '@genshin-optimizer/sr-ui' import { CardThemed } from '@genshin-optimizer/ui-common' -import { Box, CardContent, Stack, TextField, Typography } from '@mui/material' -import { Container } from '@mui/system' +import { ExpandMore } from '@mui/icons-material' +import { + Accordion, + AccordionDetails, + AccordionSummary, + Box, + CardContent, + Container, + Stack, + TextField, + Typography, +} from '@mui/material' export default function Character() { const { characterKey } = useCharacterContext() @@ -44,24 +54,56 @@ export default function Character() { }) } /> - {( - [ - ['ATK', 'atk'], - ['DEF', 'def'], - ['HP', 'hp'], - ['SPD', 'spd'], - ] as const - ).map(([txt, skey]) => ( - - {txt}: {calc?.compute(member0.final[skey]).val} - - ))} - - - {calc - ?.listFormulas(member0.listing.formulas) - .map((read) => calc.compute(read).val)} + + }> + Basic stats for all chars + + + {( + [ + ['ATK', 'atk'], + ['DEF', 'def'], + ['HP', 'hp'], + ['SPD', 'spd'], + ] as const + ).map(([txt, skey]) => ( + + {txt}: {calc?.compute(member0.final[skey]).val} + + ))} + + + + }> + All target values, if sheet is created + + + + {calc?.listFormulas(member0.listing.formulas).map((read) => { + const computed = calc.compute(read) + const name = read.tag.name || read.tag.q + return ( + + + {name}: {computed.val} + + + }> + meta for {name} + + + + {JSON.stringify(computed.meta, undefined, 2)} + {' '} + + + + ) + })} + + +