revert: removes expanded option, cards should always start minimized
This commit is contained in:
parent
a96acdd0d2
commit
973541e24f
7 changed files with 5 additions and 13 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<template name="Standard" schemaVersion="1">
|
||||
<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="Species" type="species" required="true" />
|
||||
<field label="Subspecies" type="subspecies" />
|
||||
|
|
@ -25,14 +25,14 @@
|
|||
<field label="Distinguishing Features" type="textarea" />
|
||||
</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>
|
||||
<field label="Employment History" type="list" />
|
||||
<field label="Formal Education" type="list" />
|
||||
<field label="Other Skills" type="list" />
|
||||
</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>
|
||||
<field label="Opt-Outs" type="multi-select">
|
||||
<option value="no-borg" label="Do Not Borgify" />
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
<field label="Psychological Evaluations" type="list" />
|
||||
</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>
|
||||
<field label="Attitude Towards SCC" type="textarea" />
|
||||
<field label="Attitude Towards Crew" type="textarea" />
|
||||
|
|
|
|||
|
|
@ -102,7 +102,6 @@ export function parseTemplate(xml: string, id: string): Template {
|
|||
|
||||
const records: RecordDef[] = root.record.map((r: any) => ({
|
||||
type: r['@_type'],
|
||||
expanded: r['@_expanded'] === 'true',
|
||||
preamble: r.preamble?.trim(),
|
||||
fields: r.field.map(parseField)
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -189,7 +189,6 @@ const testTemplate: Template = {
|
|||
records: [
|
||||
{
|
||||
type: 'public',
|
||||
expanded: true,
|
||||
fields: [
|
||||
{ label: 'Name', type: 'text' },
|
||||
{ label: 'Species', type: 'species' },
|
||||
|
|
@ -198,7 +197,6 @@ const testTemplate: Template = {
|
|||
},
|
||||
{
|
||||
type: 'employment',
|
||||
expanded: false,
|
||||
preamble: 'This information has been verified by employment agents.',
|
||||
fields: [
|
||||
{ label: 'Employment History', type: 'list' },
|
||||
|
|
@ -207,7 +205,6 @@ const testTemplate: Template = {
|
|||
},
|
||||
{
|
||||
type: 'medical',
|
||||
expanded: false,
|
||||
preamble: 'Protected by doctor-patient confidentiality.',
|
||||
fields: [
|
||||
{
|
||||
|
|
@ -220,7 +217,6 @@ const testTemplate: Template = {
|
|||
},
|
||||
{
|
||||
type: 'security',
|
||||
expanded: false,
|
||||
preamble: 'This information has been verified by employment agents.',
|
||||
fields: [
|
||||
{ label: 'Attitude Towards SCC', type: 'textarea' },
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ function makeTemplate(fields: any[]): Template {
|
|||
name: 'Test',
|
||||
description: '',
|
||||
schemaVersion: 1,
|
||||
records: [{ type: 'public', expanded: true, fields }]
|
||||
records: [{ type: 'public', fields }]
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ const testTemplate: Template = {
|
|||
records: [
|
||||
{
|
||||
type: 'public',
|
||||
expanded: true,
|
||||
fields: [
|
||||
{ label: 'Name', type: 'text' },
|
||||
{ label: 'Species', type: 'species' }
|
||||
|
|
|
|||
|
|
@ -92,7 +92,6 @@ export type FieldDef =
|
|||
export interface RecordDef {
|
||||
type: string;
|
||||
preamble?: string;
|
||||
expanded: boolean;
|
||||
fields: FieldDef[];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ const template = {
|
|||
records: [
|
||||
{
|
||||
type: 'public',
|
||||
expanded: true,
|
||||
fields: [
|
||||
{ label: 'Name', type: 'text' as const },
|
||||
{ label: 'Species', type: 'species' as const },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue