Skip to content

Commit 2797699

Browse files
authored
feat: 5584 Improve Excel schema creation flow
* feat(xlsx): add ENUM_VALUE, SHARED_ENUM_SHEET keys and Sub-Schema field type * feat(xlsx): add SharedEnumTable layout class * feat(xlsx): parse shared enum tab and inline sub-schemas on import * feat(xlsx): improve Excel schema import/export flow * fix(xlsx): remove old writeEnum() and improve schema docs * fix(xlsx): guard rich text cast and derive enum cell address from constant * feat(xlsx): rename schema columns and add backward-compat parsing for old Excel files * feat(xlsx): rename template columns and fix enum parameter links * fix(xlsx): legacy enum tab name fallback * fix(xlsx): merge sub-schema name cache and top-level schema loops * test(xlsx): add unit tests for new inline sub-schema and enum handling and for old cross-schema ref * feat(xlsx): add unique enum names and reorderable Enums tab columns * feat(xlsx): add enum name field - Improve import/export schema enums - Deduplicate enums with same names and options on export and creates new ones if names match but options do not match * fix(xlsx): add legacy enum headers in header check * feat(xlsx): add error message if enum field is missing parameter * fix(lint): triple-equals lint error in FileHelper._flat * fix(UI): allow clearing enum field selection in schema form * fix(lint): database-server.ts * fix(schema): enum name in json view --------- Signed-off-by: Dariy Miseldzhani <dariy.miseldzhani@hashgraph.com>
1 parent 4142115 commit 2797699

26 files changed

Lines changed: 1070 additions & 221 deletions

File tree

common/src/database-modules/database-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ export class DatabaseServer extends AbstractDatabaseServer {
26872687
public async getDocumentStateHistory(
26882688
filters: FilterObject<DocumentState>,
26892689
documentSubpaths: string[],
2690-
): Promise<Array<{ createDate: Date, document: any }>> {
2690+
): Promise<{ createDate: Date, document: any }[]> {
26912691
const topLevelKeys = Array.from(new Set(
26922692
documentSubpaths.map(p => (p || '').split('.', 1)[0])
26932693
));

0 commit comments

Comments
 (0)