Update the Aniimo catalog and regional filters
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 18m8s
Validate and deploy Sokko G / deploy (push) Successful in 9s

This commit is contained in:
Shinuwa 2026-10-30 00:03:04 +01:00
parent c08452d5a4
commit ae10661b63
62 changed files with 2799 additions and 130 deletions

View file

@ -24,7 +24,8 @@ function CardFaces({ variant, t, content, checklist, statsMax }) {
<div className="aniimo-card-inner">
<div className="aniimo-face aniimo-front nds-card" aria-hidden={flipped} inert={flipped}>
<div className="aniimo-portrait">
<img src={variant.image} alt={t(variant.name)} width="512" height="840" loading="lazy" />
{variant.image ? <img src={variant.image} alt={t(variant.name)} width="512" height="840" loading="lazy" /> : <div className="aniimo-portrait-placeholder" role="img" aria-label={`${t(variant.name)} — ${content.portraitUnavailable}`}><Icon name="picture" /><span>{content.portraitUnavailable}</span></div>}
<span className="aniimo-region">{t(variant.region)}</span>
<span className="aniimo-number">N° {variant.aniimoId}</span>
<GuideChecklistCheckbox checklist={checklist} itemKey={variant.key} />
</div>
@ -43,8 +44,9 @@ function CardFaces({ variant, t, content, checklist, statsMax }) {
<div className="aniimo-card-body aniimo-back-details nds-scrollbox" data-variant="ghost" role="region" aria-label={`${content.showBack} — ${t(variant.name)}`} tabIndex="0">
<div className="aniimo-back-summary">
<div><h3>{content.elements}</h3><Attributes values={variant.elements} t={t} /></div>
<div><h3>{content.role}</h3><Attributes values={[variant.role]} t={t} /></div>
<div><h3>{content.role}</h3>{variant.role ? <Attributes values={[variant.role]} t={t} /> : <span className="nds-badge" data-variant="neutral">{content.unknownRole}</span>}</div>
</div>
{variant.data_gaps?.length > 0 && <p className="nds-inline-notice" data-variant="info">{content.unverifiedData}</p>}
<h3>{content.abilities}</h3>
<ul className="aniimo-abilities">{variant.homeland_abilities.map((ability) => <li key={ability.type}>
<img src={aniimoAsset(ability.type)} alt="" width="24" height="24" />
@ -81,7 +83,7 @@ export function AniimoCard({ variants, t, content, checklist, statsMax }) {
target.parentElement.children[index].focus();
}
return (
<article className="aniimo-result" data-checklist-complete={checklist.isCompleted(variant.key) || undefined} data-aniimo={variant.aniimoId} data-form={variant.form} aria-label={t(variant.name)}>
<article className="aniimo-result" data-checklist-complete={checklist.isCompleted(variant.key) || undefined} data-aniimo={variant.aniimoId} data-uid={variant.aniimoUid} data-region={variant.region} data-form={variant.form} aria-label={t(variant.name)}>
<div className="aniimo-tabs-slot">
{multiple && <div className="aniimo-tabs nds-radio-button-group" data-size="xs" role="tablist" aria-label={`${content.variants} — ${t(variant.name)}`}>
{variants.map((item, index) => <Tooltip as="button" content={t(item.form)} aria-label={t(item.form)} key={item.key} type="button" role="tab" data-form={item.form} id={`${id}-${item.form}`} aria-controls={`${id}-panel`} aria-selected={item.key === variant.key} tabIndex={item.key === variant.key ? 0 : -1} className={item.key === variant.key ? "active" : ""} onClick={() => setSelectedKey(item.key)} onKeyDown={(event) => {