From 4e8e2cabfc988677a1b9688adce080cdfc27ee01 Mon Sep 17 00:00:00 2001 From: Elvanos Date: Tue, 13 Apr 2021 17:18:42 +0200 Subject: [PATCH] 0.1.5 - added "Is finished" field and connected functionality --- src/App.vue | 2 +- src/documents/advancedSearchCheatSheet.md | 1 + src/documents/advancedSearchGuide.md | 1 + src/documents/changeLog.md | 7 +++++- src/interfaces/I_OpenedDocument.ts | 1 + src/pages/DocumentDisplay.vue | 14 ++++++++---- .../databaseManager/blueprints/chapters.ts | 16 ++++++++++++-- .../databaseManager/blueprints/characters.ts | 22 ++++++++++++++----- .../databaseManager/blueprints/currencies.ts | 16 ++++++++++++-- .../databaseManager/blueprints/events.ts | 16 ++++++++++++-- .../databaseManager/blueprints/items.ts | 16 ++++++++++++-- .../databaseManager/blueprints/languages.ts | 16 ++++++++++++-- .../databaseManager/blueprints/locations.ts | 16 ++++++++++++-- .../databaseManager/blueprints/loreNotes.ts | 16 ++++++++++++-- .../databaseManager/blueprints/magic.ts | 16 ++++++++++++-- .../databaseManager/blueprints/myths.ts | 16 ++++++++++++-- .../blueprints/politicalGroups.ts | 16 ++++++++++++-- .../databaseManager/blueprints/races.ts | 16 ++++++++++++-- .../databaseManager/blueprints/religions.ts | 16 ++++++++++++-- .../blueprints/scienceTechnology.ts | 18 ++++++++++++--- .../utilities/advancedDocumentFilter.ts | 7 ++++++ suggestionList.md | 12 +++++----- 22 files changed, 233 insertions(+), 44 deletions(-) diff --git a/src/App.vue b/src/App.vue index ab49a18..03e310f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,7 @@ v-model="advSearchWindowVisible" no-resize title="Advanced Search Cheatsheet" - :height="460" + :height="480" :width="425" :start-x="50" :start-y="150" diff --git a/src/documents/advancedSearchCheatSheet.md b/src/documents/advancedSearchCheatSheet.md index 0731a47..eb2a9c8 100644 --- a/src/documents/advancedSearchCheatSheet.md +++ b/src/documents/advancedSearchCheatSheet.md @@ -7,6 +7,7 @@ - `>` - Hierarchical path - `^` - Switch - `^d` - Is Dead/Gone/Destroyed + - `^f` - Is finished - `^m` - Is a minor document - Full search - `%` - Beginning of the full-search diff --git a/src/documents/advancedSearchGuide.md b/src/documents/advancedSearchGuide.md index 7f07d78..bc4f9bd 100644 --- a/src/documents/advancedSearchGuide.md +++ b/src/documents/advancedSearchGuide.md @@ -54,6 +54,7 @@ Except for the advanced search functionality, Fantasia Archive also offers insta - `>` - Symbol for hierarchical path search - `^` - Symbol for switch search (limited values below) - `^d` - Displays only documents with `Is Dead/Gone/Destroyed` ticked on + - `^f` - Displays only documents with `Is finished` ticked on - `^m` - Displays only documents with `Is a minor document` ticked on that are normally invisible and filtered out ## Full-search filtering diff --git a/src/documents/changeLog.md b/src/documents/changeLog.md index 536b8eb..d7cfb8e 100644 --- a/src/documents/changeLog.md +++ b/src/documents/changeLog.md @@ -13,6 +13,7 @@ ### Bugfixes & Optimizations - Fixed a typo in `Type of being` field in the `Species/Races` document type +- Fixed even more random types I don't even recall T_T - Fixed a bug that was causing the relationship dropdowns sometimes not be clickable and instead caused dragging of the app window when shown over the top of the drag-bar at the top of the app - Updated advanced search guide with missing information about full-text search - Changes a small bug when the `New Object` dialog wasn't respecting option changes being done in the same session of the program being opened @@ -62,8 +63,10 @@ - Create new document with this document as parent - Copy this document - Added a special description field for categories that become visible only when the document is switches to the category mode -- Added filtering via switch value for `Is a minor document` and `Is Dead/Gone/Destroyed` switch +- Added a floating popup windows for quick cheatsheet for Advanced Search guide that can be summoned from each relationship search anywhere in the app +- Added filtering via switch value for `Is a minor document`, `Is finished` and `Is Dead/Gone/Destroyed` switch - Dead is visible in the lists by default, but can be used to narrow down the search + - Finished is visible in the lists by default, but can be used to narrow down the search - Minor is NOT visible in the lists by default, but can be inluded using this option - Instructions on how to trigger by this additions can be found in the `Advanced Search Guide` help menu - Added Fantasia mascot in the app! ^_^ @@ -73,6 +76,8 @@ - Added support for background color for documents - Added support for "Minor document" mode switch for better organization and visual representation of documents - Added support for "Dead/Gone/Destroyed" mode switch for better organization and visual representation of documents +- Added support for "Finished" mode switch for better organization and visual representation of documents + - This is essentially an individual setting for "Hide empty fields" options setting on per-document basis - Added trivia concerning Fantasia mascot - Added support for direct opening of documents in edit mode from the hierarchy tree without needing to open the document in view mode first - Added option: Hide Fantasia mascot diff --git a/src/interfaces/I_OpenedDocument.ts b/src/interfaces/I_OpenedDocument.ts index fdbe55d..095088f 100644 --- a/src/interfaces/I_OpenedDocument.ts +++ b/src/interfaces/I_OpenedDocument.ts @@ -11,6 +11,7 @@ export interface I_OpenedDocument{ type: string icon: string hasEdits: boolean + isFinished: boolean isNew: boolean url: string scrollDistance?: number diff --git a/src/pages/DocumentDisplay.vue b/src/pages/DocumentDisplay.vue index 980e884..f39aa0e 100644 --- a/src/pages/DocumentDisplay.vue +++ b/src/pages/DocumentDisplay.vue @@ -4,7 +4,7 @@ :class="{ 'q-pb-xl q-pl-xl q-pr-xl': disableDocumentControlBar, 'q-pa-xl': !disableDocumentControlBar, - 'hiddenFields': hideEmptyFields + 'hiddenFields': (hideEmptyFields || retrieveFieldValue(currentData, 'finishedSwitch')) }" v-if="bluePrintData" > @@ -769,6 +769,7 @@ export default class PageDocumentDisplay extends BaseClass { icon: this.bluePrintData.icon, editMode: true, isNew: true, + isFinished: false, hasEdits: false, url: `/project/display-content/${this.bluePrintData._id}/${uniqueID}`, extraFields: [] @@ -781,15 +782,20 @@ export default class PageDocumentDisplay extends BaseClass { categoryFieldFilter (currentFieldID: string) { const isCategory = this.retrieveFieldValue(this.currentData, "categorySwitch") - const ignoredList = ["breakDocumentSettings", "name", "documentColor", "documentBackgroundColor", "parentDoc", "order", "categorySwitch", "minorSwitch", "deadSwitch", "tags"] - return (((!isCategory && currentFieldID !== "categoryDescription") || ignoredList.includes(currentFieldID)) || (isCategory && currentFieldID === "categoryDescription")) + const ignoredList = ["breakDocumentSettings", "name", "documentColor", "documentBackgroundColor", "parentDoc", "order", "categorySwitch", "minorSwitch", "deadSwitch", "finishedSwitch", "tags"] + return ( + ( + (!isCategory && currentFieldID !== "categoryDescription") || + ignoredList.includes(currentFieldID) + ) || (isCategory && currentFieldID === "categoryDescription") + ) } /** * Checks if the field in question */ hasValueFieldFilter (field: any) { - if (!this.hideEmptyFields) { + if (!this.hideEmptyFields && !this.retrieveFieldValue(this.currentData, "finishedSwitch")) { return true } diff --git a/src/scripts/databaseManager/blueprints/chapters.ts b/src/scripts/databaseManager/blueprints/chapters.ts index 65fb841..e193607 100644 --- a/src/scripts/databaseManager/blueprints/chapters.ts +++ b/src/scripts/databaseManager/blueprints/chapters.ts @@ -42,7 +42,7 @@ export const chaptersBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const chaptersBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/characters.ts b/src/scripts/databaseManager/blueprints/characters.ts index ee27a53..7db15da 100644 --- a/src/scripts/databaseManager/blueprints/characters.ts +++ b/src/scripts/databaseManager/blueprints/characters.ts @@ -42,7 +42,7 @@ export const charactersBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const charactersBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", @@ -445,7 +457,7 @@ export const charactersBlueprint: I_Blueprint = { "Crass", "Crazy", "Creative", - "Crebral", + "Cerebral", "Criminal", "Crisp", "Critical", @@ -586,7 +598,7 @@ export const charactersBlueprint: I_Blueprint = { "Hearty", "Hedonistic", "Helpful", - "Herioc", + "Heroic", "Hesitant", "Hidebound", "High-handed", @@ -991,7 +1003,7 @@ export const charactersBlueprint: I_Blueprint = { affix: "Level", extraSelectValueList: [ "Trainee", - "Appreantice", + "Apprentice", "Capable", "Advanced", "Expert", diff --git a/src/scripts/databaseManager/blueprints/currencies.ts b/src/scripts/databaseManager/blueprints/currencies.ts index af1c437..ddfff3c 100644 --- a/src/scripts/databaseManager/blueprints/currencies.ts +++ b/src/scripts/databaseManager/blueprints/currencies.ts @@ -42,7 +42,7 @@ export const currenciesBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const currenciesBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/events.ts b/src/scripts/databaseManager/blueprints/events.ts index d6aec24..f8447cd 100644 --- a/src/scripts/databaseManager/blueprints/events.ts +++ b/src/scripts/databaseManager/blueprints/events.ts @@ -42,7 +42,7 @@ export const eventsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const eventsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/items.ts b/src/scripts/databaseManager/blueprints/items.ts index 671ae5d..d165871 100644 --- a/src/scripts/databaseManager/blueprints/items.ts +++ b/src/scripts/databaseManager/blueprints/items.ts @@ -42,7 +42,7 @@ export const itemsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const itemsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/languages.ts b/src/scripts/databaseManager/blueprints/languages.ts index a891b93..7345eda 100644 --- a/src/scripts/databaseManager/blueprints/languages.ts +++ b/src/scripts/databaseManager/blueprints/languages.ts @@ -42,7 +42,7 @@ export const languagesBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const languagesBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/locations.ts b/src/scripts/databaseManager/blueprints/locations.ts index 91e24c9..78fc050 100644 --- a/src/scripts/databaseManager/blueprints/locations.ts +++ b/src/scripts/databaseManager/blueprints/locations.ts @@ -42,7 +42,7 @@ export const locationsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const locationsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/loreNotes.ts b/src/scripts/databaseManager/blueprints/loreNotes.ts index d551bee..11fc201 100644 --- a/src/scripts/databaseManager/blueprints/loreNotes.ts +++ b/src/scripts/databaseManager/blueprints/loreNotes.ts @@ -42,7 +42,7 @@ export const loreNotesBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const loreNotesBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/magic.ts b/src/scripts/databaseManager/blueprints/magic.ts index 6f705bf..02be58f 100644 --- a/src/scripts/databaseManager/blueprints/magic.ts +++ b/src/scripts/databaseManager/blueprints/magic.ts @@ -42,7 +42,7 @@ export const magicBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const magicBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/myths.ts b/src/scripts/databaseManager/blueprints/myths.ts index de4991e..9815fd5 100644 --- a/src/scripts/databaseManager/blueprints/myths.ts +++ b/src/scripts/databaseManager/blueprints/myths.ts @@ -42,7 +42,7 @@ export const mythsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const mythsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/politicalGroups.ts b/src/scripts/databaseManager/blueprints/politicalGroups.ts index 2619e97..374bed6 100644 --- a/src/scripts/databaseManager/blueprints/politicalGroups.ts +++ b/src/scripts/databaseManager/blueprints/politicalGroups.ts @@ -42,7 +42,7 @@ export const politicalGroupsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const politicalGroupsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/races.ts b/src/scripts/databaseManager/blueprints/races.ts index d0934cd..f23d533 100644 --- a/src/scripts/databaseManager/blueprints/races.ts +++ b/src/scripts/databaseManager/blueprints/races.ts @@ -42,7 +42,7 @@ export const racesBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const racesBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/religions.ts b/src/scripts/databaseManager/blueprints/religions.ts index 1884ba2..319e5ce 100644 --- a/src/scripts/databaseManager/blueprints/religions.ts +++ b/src/scripts/databaseManager/blueprints/religions.ts @@ -42,7 +42,7 @@ export const religionsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const religionsBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", diff --git a/src/scripts/databaseManager/blueprints/scienceTechnology.ts b/src/scripts/databaseManager/blueprints/scienceTechnology.ts index e59b79d..790f7bc 100644 --- a/src/scripts/databaseManager/blueprints/scienceTechnology.ts +++ b/src/scripts/databaseManager/blueprints/scienceTechnology.ts @@ -42,7 +42,7 @@ export const techBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 }, { id: "documentBackgroundColor", @@ -53,7 +53,19 @@ export const techBlueprint: I_Blueprint = { `This field allows for custom-coloring your document to any available HEX or RBG color.
The selected color will show as a background both in the hierarchical tree on the left and in the top tabs. `, - sizing: 3 + sizing: 2 + }, + { + id: "finishedSwitch", + name: "Is finished", + type: "switch", + icon: "mdi-check-bold", + tooltip: + `This setting allows for setting the current document to finished document mode. +
+ A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings. + `, + sizing: 2 }, { id: "minorSwitch", @@ -172,7 +184,7 @@ export const techBlueprint: I_Blueprint = { "Machinery", "Magi-tech creation", "School of technology", - "scientific/Technological institution", + "Scientific/Technological institution", "Technique", "Other" ] diff --git a/src/scripts/utilities/advancedDocumentFilter.ts b/src/scripts/utilities/advancedDocumentFilter.ts index 3c4c5f2..8492257 100644 --- a/src/scripts/utilities/advancedDocumentFilter.ts +++ b/src/scripts/utilities/advancedDocumentFilter.ts @@ -297,6 +297,13 @@ export const advancedDocumentFilter = (inputString: string, currentDocumentList: } } + if (switchSearch === "f") { + const field = doc.extraFields.find(e => e.id === "finishedSwitch") + if (field && field.value === true) { + foundSwitch = true + } + } + return foundSwitch }) } diff --git a/suggestionList.md b/suggestionList.md index 712c70a..21198b4 100644 --- a/suggestionList.md +++ b/suggestionList.md @@ -1,28 +1,28 @@ -- Mass tag rename +- Add intelligent responsive design to the left tree and document body (maybe button to pull the left bar in and out?) + - Add category for Guilds/other groups +- Add "Related notes" ## THE GM BATCH -- Add "Related notes" - Floating notes corkboard - Add hover/on-demand document preview to relationships - Export for MD/PDF - Selective export per field basis -- Export templates -- DM only fields +- Templates for exports ## THE GM BATCH END +- Mass tag rename + - Add "Predecessors", "Successors", "Date of start", "Date of end" and "How long it lasted" fields to locations and all other groups - Add advanced search capabilities to the hierarchical tree - "Save all" keybind and "Save all and exit" option on the exiting -- Add intelligent responsive design to the left tree and document body (maybe button to pull the left bar in and out?) - - Add "Open all search matches" button in the Quick-search that opens a new page with a list of items - Allow showing of document types under tags - Add description tabs