feat : default condition note for constellations to C0 = 100%

This commit is contained in:
2026-09-27 14:48:31 +07:00 Unverified
parent cbfdeabfdd
commit 480bfeb9a5
+3 -2
View File
@@ -229,6 +229,7 @@ const teamMemberApplyOptions = [
] as const satisfies readonly (readonly [TeamMemberApplyField, string])[];
const multipleApplyStorageKey = (guideId: string) =>
`buzz-sheet:team-multiple-apply:${guideId}`;
const DEFAULT_CONSTELLATION_CONDITION_NOTE = "C0 = 100%";
type Guide = {
id: string;
characterKey: string;
@@ -2495,7 +2496,7 @@ function ConstellationEditor({
const [groups, setGroups] = useState(() => {
const source = initial.constellationGroups.length
? initial.constellationGroups
: [{ id: "constellation-condition-default", name: null, note: null, rows: [] }];
: [{ id: "constellation-condition-default", name: null, note: DEFAULT_CONSTELLATION_CONDITION_NOTE, rows: [] }];
return source.map((group) => ({
clientId: group.id,
name: group.name ?? "",
@@ -2581,7 +2582,7 @@ function ConstellationEditor({
{
clientId: createClientId("constellation-condition"),
name: "",
note: "",
note: DEFAULT_CONSTELLATION_CONDITION_NOTE,
rows: makeRows(),
},
]);