Skip to content

Commit

Permalink
Add category "WorkflowStep"
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Mar 3, 2025
1 parent 1efa150 commit 2c9b9bf
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 2 deletions.
5 changes: 5 additions & 0 deletions core/config/Config-Default.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@
"StorageBag:default": {
"hidden": [],
"fields": {}
},
"WorkflowStep:default": {
"hidden": [],
"fields": {}
}
},
"order": [
Expand Down Expand Up @@ -295,6 +299,7 @@
"FindCollection",
"Inscription",
"Sample",
"WorkflowStep",
"Image",
"Drawing",
"Photo",
Expand Down
12 changes: 12 additions & 0 deletions core/config/Library/Forms.json
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,18 @@
"fields": ["geometry", "dimensionVerticalExtent", "includesStratigraphicalUnits"]
}
]
},
"WorkflowStep:default": {
"description": {},
"createdBy": "",
"creationDate": "",
"categoryName": "WorkflowStep",
"groups": [
{
"name": "stem",
"fields": ["identifier", "category", "shortDescription"]
}
]
}
}

4 changes: 4 additions & 0 deletions core/config/Library/Language.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,10 @@
"StorageBag": {
"label": "Tüte",
"fields": {}
},
"WorkflowStep": {
"label": "Arbeitsschritt",
"fields": {}
}
},
"forms": {
Expand Down
25 changes: 25 additions & 0 deletions core/config/Library/Templates/Templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@
"StorageBag:default": {
"hidden": [],
"fields": {}
},
"WorkflowStep:default": {
"hidden": [],
"fields": {}
}
},
"order": [
Expand Down Expand Up @@ -298,6 +302,7 @@
"FindCollection",
"Inscription",
"Sample",
"WorkflowStep",
"Image",
"Drawing",
"Photo",
Expand Down Expand Up @@ -352,6 +357,10 @@
"Type": {
"hidden": [],
"fields": {}
},
"WorkflowStep": {
"hidden": [],
"fields": {}
}
},
"order": [
Expand All @@ -361,6 +370,7 @@
"Place",
"Feature",
"Find",
"WorkflowStep",
"Image",
"TypeCatalog",
"Type"
Expand Down Expand Up @@ -434,6 +444,10 @@
"Type": {
"hidden": [],
"fields": {}
},
"WorkflowStep": {
"hidden": [],
"fields": {}
}
},
"order": [
Expand All @@ -450,6 +464,7 @@
"Roof",
"Opening",
"Stairs",
"WorkflowStep",
"Image",
"TypeCatalog",
"Type"
Expand Down Expand Up @@ -503,6 +518,10 @@
"Type": {
"hidden": [],
"fields": {}
},
"WorkflowStep": {
"hidden": [],
"fields": {}
}
},
"order": [
Expand All @@ -514,6 +533,7 @@
"SurveyUnit",
"Excavation",
"Find",
"WorkflowStep",
"Image",
"TypeCatalog",
"Type"
Expand Down Expand Up @@ -605,6 +625,10 @@
"fields": {},
"identifierPrefix": "PRZ",
"color": "#00ff00"
},
"WorkflowStep:default": {
"hidden": [],
"fields": {}
}
},
"order": [
Expand All @@ -617,6 +641,7 @@
"FeatureSegment",
"Find",
"Sample",
"WorkflowStep",
"Image",
"Photo",
"PlanDrawing",
Expand Down
13 changes: 13 additions & 0 deletions core/src/configuration/built-in-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,19 @@ export class BuiltInConfiguration {
]
}
},
WorkflowStep: {
supercategory: true,
userDefinedSubcategoriesAllowed: true,
fields: {},
minimalForm: {
groups: [
{
name: Groups.STEM,
fields: ['identifier', 'category', 'shortDescription']
}
]
}
},
Image: {
supercategory: true,
userDefinedSubcategoriesAllowed: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ export module ConfigurationUtil {
category.name,
filter.isRecordedInCategory,
Relation.Hierarchy.RECORDEDIN
)
) || category.name === 'WorkflowStep'
: !projectConfiguration.getRelationsForDomainCategory(category.name)
.map(to('name')).includes(Relation.Hierarchy.RECORDEDIN)
&& !['Image', 'Type', 'TypeCatalog', 'StoragePlace'].includes(category.name);
&& !['Image', 'Type', 'TypeCatalog', 'StoragePlace', 'WorkflowStep']
.includes(category.name);
}
});
}
Expand Down

0 comments on commit 2c9b9bf

Please sign in to comment.