0.1.5 - added "Is finished" field and connected functionality

This commit is contained in:
Elvanos 2021-04-13 17:18:42 +02:00
parent d277ff392b
commit 4e8e2cabfc
22 changed files with 233 additions and 44 deletions

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -11,6 +11,7 @@ export interface I_OpenedDocument{
type: string
icon: string
hasEdits: boolean
isFinished: boolean
isNew: boolean
url: string
scrollDistance?: number

View file

@ -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
}

View file

@ -42,7 +42,7 @@ export const chaptersBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const charactersBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const currenciesBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const eventsBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const itemsBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const languagesBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const locationsBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const loreNotesBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const magicBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const mythsBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const politicalGroupsBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const racesBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const religionsBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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",

View file

@ -42,7 +42,7 @@ export const techBlueprint: I_Blueprint = {
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>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.
<br>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.
<br>
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"
]

View file

@ -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
})
}

View file

@ -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