revert: removes expanded option, cards should always start minimized

This commit is contained in:
Lewis Wynne 2026-03-23 18:56:49 +00:00
parent a96acdd0d2
commit 973541e24f
7 changed files with 5 additions and 13 deletions

View file

@ -2,7 +2,7 @@
<template name="Standard" schemaVersion="1"> <template name="Standard" schemaVersion="1">
<description>The standard record format used by a majority of players.</description> <description>The standard record format used by a majority of players.</description>
<record type="public" expanded="true"> <record type="public">
<field label="Name" type="text" required="true" /> <field label="Name" type="text" required="true" />
<field label="Species" type="species" required="true" /> <field label="Species" type="species" required="true" />
<field label="Subspecies" type="subspecies" /> <field label="Subspecies" type="subspecies" />
@ -25,14 +25,14 @@
<field label="Distinguishing Features" type="textarea" /> <field label="Distinguishing Features" type="textarea" />
</record> </record>
<record type="employment" expanded="false"> <record type="employment">
<preamble>This information has been verified by employment agents within the External Affairs department, and any comments, questions, or concerns about the legitimacy of such must be sent in a secure document to the same department.</preamble> <preamble>This information has been verified by employment agents within the External Affairs department, and any comments, questions, or concerns about the legitimacy of such must be sent in a secure document to the same department.</preamble>
<field label="Employment History" type="list" /> <field label="Employment History" type="list" />
<field label="Formal Education" type="list" /> <field label="Formal Education" type="list" />
<field label="Other Skills" type="list" /> <field label="Other Skills" type="list" />
</record> </record>
<record type="medical" expanded="false"> <record type="medical">
<preamble>The following information is protected by doctor-patient confidentiality laws. Do not release without patient's consent.</preamble> <preamble>The following information is protected by doctor-patient confidentiality laws. Do not release without patient's consent.</preamble>
<field label="Opt-Outs" type="multi-select"> <field label="Opt-Outs" type="multi-select">
<option value="no-borg" label="Do Not Borgify" /> <option value="no-borg" label="Do Not Borgify" />
@ -49,7 +49,7 @@
<field label="Psychological Evaluations" type="list" /> <field label="Psychological Evaluations" type="list" />
</record> </record>
<record type="security" expanded="false"> <record type="security">
<preamble>This information has been verified by employment agents within the External Affairs department, and any comments, questions, or concerns about the legitimacy of such must be sent in a secure document to the same department.</preamble> <preamble>This information has been verified by employment agents within the External Affairs department, and any comments, questions, or concerns about the legitimacy of such must be sent in a secure document to the same department.</preamble>
<field label="Attitude Towards SCC" type="textarea" /> <field label="Attitude Towards SCC" type="textarea" />
<field label="Attitude Towards Crew" type="textarea" /> <field label="Attitude Towards Crew" type="textarea" />

View file

@ -102,7 +102,6 @@ export function parseTemplate(xml: string, id: string): Template {
const records: RecordDef[] = root.record.map((r: any) => ({ const records: RecordDef[] = root.record.map((r: any) => ({
type: r['@_type'], type: r['@_type'],
expanded: r['@_expanded'] === 'true',
preamble: r.preamble?.trim(), preamble: r.preamble?.trim(),
fields: r.field.map(parseField) fields: r.field.map(parseField)
})); }));

View file

@ -189,7 +189,6 @@ const testTemplate: Template = {
records: [ records: [
{ {
type: 'public', type: 'public',
expanded: true,
fields: [ fields: [
{ label: 'Name', type: 'text' }, { label: 'Name', type: 'text' },
{ label: 'Species', type: 'species' }, { label: 'Species', type: 'species' },
@ -198,7 +197,6 @@ const testTemplate: Template = {
}, },
{ {
type: 'employment', type: 'employment',
expanded: false,
preamble: 'This information has been verified by employment agents.', preamble: 'This information has been verified by employment agents.',
fields: [ fields: [
{ label: 'Employment History', type: 'list' }, { label: 'Employment History', type: 'list' },
@ -207,7 +205,6 @@ const testTemplate: Template = {
}, },
{ {
type: 'medical', type: 'medical',
expanded: false,
preamble: 'Protected by doctor-patient confidentiality.', preamble: 'Protected by doctor-patient confidentiality.',
fields: [ fields: [
{ {
@ -220,7 +217,6 @@ const testTemplate: Template = {
}, },
{ {
type: 'security', type: 'security',
expanded: false,
preamble: 'This information has been verified by employment agents.', preamble: 'This information has been verified by employment agents.',
fields: [ fields: [
{ label: 'Attitude Towards SCC', type: 'textarea' }, { label: 'Attitude Towards SCC', type: 'textarea' },

View file

@ -8,7 +8,7 @@ function makeTemplate(fields: any[]): Template {
name: 'Test', name: 'Test',
description: '', description: '',
schemaVersion: 1, schemaVersion: 1,
records: [{ type: 'public', expanded: true, fields }] records: [{ type: 'public', fields }]
}; };
} }

View file

@ -15,7 +15,6 @@ const testTemplate: Template = {
records: [ records: [
{ {
type: 'public', type: 'public',
expanded: true,
fields: [ fields: [
{ label: 'Name', type: 'text' }, { label: 'Name', type: 'text' },
{ label: 'Species', type: 'species' } { label: 'Species', type: 'species' }

View file

@ -92,7 +92,6 @@ export type FieldDef =
export interface RecordDef { export interface RecordDef {
type: string; type: string;
preamble?: string; preamble?: string;
expanded: boolean;
fields: FieldDef[]; fields: FieldDef[];
} }

View file

@ -10,7 +10,6 @@ const template = {
records: [ records: [
{ {
type: 'public', type: 'public',
expanded: true,
fields: [ fields: [
{ label: 'Name', type: 'text' as const }, { label: 'Name', type: 'text' as const },
{ label: 'Species', type: 'species' as const }, { label: 'Species', type: 'species' as const },