Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/node type yaml #36

Merged
merged 43 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4447424
feat: Add command Importer and Exporter NodesType `yaml` + Add reposi…
eliot488995568 Jan 24, 2025
10c81d4
feat: Add new column nodetype_name into table nodes and stack_types +…
eliot488995568 Jan 24, 2025
c5efac6
feat: Refactor getNodeType to use bag instead
eliot488995568 Jan 27, 2025
9af0f5b
Merge branch 'develop' of github.com:roadiz/core-bundle-dev-app into …
eliot488995568 Jan 28, 2025
bb91025
chore: Resolv threads
eliot488995568 Jan 28, 2025
ec542fb
chore: Generate entities
eliot488995568 Jan 28, 2025
7639fd8
feat: Update NodeTree for accept nodeType without id
eliot488995568 Jan 28, 2025
d5dbaa8
feat: Refactor forms for work without nodeTypeId + refactor default v…
eliot488995568 Jan 31, 2025
f5a5265
feat: Refactoring of unit tests to work with defaultValues in yaml
eliot488995568 Jan 31, 2025
a5de4db
chore: Build front
eliot488995568 Jan 31, 2025
ceccc23
feat: Add phpCsFix into make test + applicate phpCsFix
eliot488995568 Jan 31, 2025
20073b5
feat: Remove code in comment
eliot488995568 Jan 31, 2025
1a7acd6
chore: Fix PHPCS
eliot488995568 Jan 31, 2025
82a0264
feat: Skip null value on nodeType export
eliot488995568 Jan 31, 2025
32a35df
feat: Add Enum to FieldType and refactor serialization group
eliot488995568 Jan 31, 2025
a3653f0
chore: remove dump debug
eliot488995568 Jan 31, 2025
a317d01
feat: Fix yaml parse entityFieldGenerator and test
eliot488995568 Jan 31, 2025
9cd6112
feat: Refacto delete useless front node-type-fields
eliot488995568 Feb 3, 2025
fed31a5
chore: Fix threads
eliot488995568 Feb 4, 2025
23053a4
chore: Fix threads
eliot488995568 Feb 4, 2025
ed39e1a
chore: Build front
eliot488995568 Feb 4, 2025
ef20c25
feat: Use nodetypeBag for ajaxEntitiesExplorer
eliot488995568 Feb 4, 2025
ea46885
chore: Fix phpCS
eliot488995568 Feb 4, 2025
9c439aa
feat: Add deprecated comment on deprecated class
eliot488995568 Feb 4, 2025
bd4a4c5
feat: Add deprecated comment on deprecated class
eliot488995568 Feb 4, 2025
2825333
chore: Update roadiz/nodetype-contracts to 1.1.6
eliot488995568 Feb 4, 2025
57184ca
feat: Refactor Yaml parse of defaultValues with new method defaultval…
eliot488995568 Feb 4, 2025
9016bcc
chore: Fix PHPCS
eliot488995568 Feb 4, 2025
5176102
chore: Fix error on method
eliot488995568 Feb 4, 2025
84ce2a4
feat: Fix version to 2.* for roadiz/nodetype-contracts
eliot488995568 Feb 4, 2025
fea743d
chore: fix threads
eliot488995568 Feb 5, 2025
f42f591
feat: Added Symfony configuration to validate node-type yaml files be…
ambroisemaupate Feb 5, 2025
8fb1de6
Merge branch 'feature/node_type_yaml' of github.com:roadiz/core-bundl…
eliot488995568 Feb 5, 2025
f1b70d9
chore: fix PHPCS
eliot488995568 Feb 5, 2025
36f5c67
feat: Made NodeTypes bag parameters cacheable
ambroisemaupate Feb 5, 2025
0cb9055
Merge branch 'feature/node_type_yaml' of github.com:roadiz/core-bundl…
ambroisemaupate Feb 5, 2025
cbbd36b
chore: NodeTypesDefaultValuesCommand is still relevant but using Node…
ambroisemaupate Feb 5, 2025
37f881c
chore: Fixed remaining `explode` usage with field getDefaultValues
ambroisemaupate Feb 5, 2025
add31d2
chore: Removed unused imports in AppInstall command and handlers
ambroisemaupate Feb 5, 2025
39a504d
chore: Fixed node table migrations and indexes
ambroisemaupate Feb 5, 2025
285d0a9
chore: Fixed node-type exports page and Typescript generation
ambroisemaupate Feb 5, 2025
a698159
chore: Fixed php-cs
ambroisemaupate Feb 5, 2025
bbc1700
chore: Missing `serializationExclusionExpression` property
ambroisemaupate Feb 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test:
vendor/bin/monorepo-builder validate
make phpstan
XDEBUG_MODE=coverage vendor/bin/phpunit -v
php -d "memory_limit=-1" vendor/bin/php-cs-fixer check --ansi -vvv
php -d "memory_limit=-1" vendor/bin/php-cs-fixer fix --ansi -vvv
php -d "memory_limit=-1" bin/console lint:twig ./lib/Documents/src/Resources/views
php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizCoreBundle/templates
php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizFontBundle/templates
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"rezozero/intervention-request-bundle": "~3.0.1",
"rezozero/liform-bundle": "^0.20.1",
"rezozero/tree-walker": "^1.5.0",
"roadiz/nodetype-contracts": "~1.1.2",
"roadiz/nodetype-contracts": "^2.0.0",
"rollerworks/password-common-list": "^0.3.0",
"rollerworks/password-strength-bundle": "^3.0",
"scheb/2fa-backup-code": "^7.5",
Expand Down
109 changes: 109 additions & 0 deletions config/node_types/article.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
color: '#00308a'
name: Article
displayName: Article
description: Article
visible: true
publishable: true
attributable: true
sortingAttributesByWeight: false
reachable: true
hidingNodes: false
hidingNonReachableNodes: true
fields:
-
name: content
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: 'Your content'
expanded: false
position: 2.0
type: markdown
-
name: realm_b_secret
universal: false
excludeFromSearch: false
serializationGroups:
- realm_b
excludedFromSerialization: false
indexed: false
visible: true
label: 'Secret realm_b'
expanded: false
position: 3.0
type: string
-
name: realm_a_secret
universal: false
excludeFromSearch: false
serializationGroups:
- realm_a
excludedFromSerialization: false
indexed: false
visible: true
label: 'Secret realm_a'
expanded: false
position: 4.0
type: string
-
name: blocks
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: Blocks
expanded: false
position: 5.0
defaultValues:
- BasicBlock
- GroupBlock
type: children-nodes
-
name: unpublished_at
universal: true
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: true
visible: true
label: 'Date de dépublication'
expanded: false
position: 6.0
type: date-time
-
name: only_on_webresponse
universal: false
excludeFromSearch: false
serializationGroups:
- article_get_by_path
excludedFromSerialization: false
indexed: false
visible: true
label: 'Only on web response'
expanded: false
position: 7.0
type: string
-
name: related_article
universal: false
excludeFromSearch: false
serializationGroups: { }
normalizationContext:
groups:
- related_articles
excludedFromSerialization: false
indexed: false
visible: true
label: 'Related article'
expanded: false
position: 8.0
defaultValues:
- Article
type: nodes
defaultTtl: 15
searchable: true
13 changes: 13 additions & 0 deletions config/node_types/articlecontainer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
color: '#db2525'
name: ArticleContainer
displayName: 'Article container'
visible: true
publishable: false
attributable: true
sortingAttributesByWeight: false
reachable: true
hidingNodes: true
hidingNonReachableNodes: false
fields: { }
defaultTtl: 0
searchable: true
25 changes: 25 additions & 0 deletions config/node_types/articlefeedblock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
color: '#a31d1d'
name: ArticleFeedBlock
displayName: 'Article feed block'
visible: true
publishable: false
attributable: false
sortingAttributesByWeight: false
reachable: false
hidingNodes: true
hidingNonReachableNodes: true
fields:
-
name: listing_count
universal: true
excludeFromSearch: true
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: 'Article count'
expanded: false
position: 1.0
type: integer
defaultTtl: 0
searchable: true
49 changes: 49 additions & 0 deletions config/node_types/basicblock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
color: '#69a5ff'
name: BasicBlock
displayName: 'Basic Block'
visible: false
publishable: false
attributable: false
sortingAttributesByWeight: false
reachable: false
hidingNodes: false
hidingNonReachableNodes: false
fields:
-
name: content
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: Content
expanded: false
position: 1.0
type: markdown
-
name: boolean_field
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: 'Boolean field'
expanded: false
position: 2.0
type: boolean
-
name: image
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: Image
expanded: false
position: 3.0
type: documents
defaultTtl: 0
searchable: true
27 changes: 27 additions & 0 deletions config/node_types/groupblock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
color: '#000000'
name: GroupBlock
displayName: 'Group block'
visible: true
publishable: false
attributable: false
sortingAttributesByWeight: false
reachable: false
hidingNodes: false
hidingNonReachableNodes: false
fields:
-
name: blocks
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: Blocks
expanded: false
position: 1.0
defaultValues:
- BasicBlock
type: children-nodes
defaultTtl: 0
searchable: false
30 changes: 30 additions & 0 deletions config/node_types/menu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
color: '#947ccf'
name: Menu
displayName: Menu
visible: true
publishable: false
attributable: true
sortingAttributesByWeight: false
reachable: false
hidingNodes: false
hidingNonReachableNodes: false
fields:
-
name: menu_items
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: 'Éléments du menu'
expanded: false
position: 1.0
defaultValues:
- Menu
- MenuLink
- Page
- ArticleContainer
type: children-nodes
defaultTtl: 0
searchable: true
58 changes: 58 additions & 0 deletions config/node_types/menulink.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
color: '#6369c2'
name: MenuLink
displayName: 'Lien du menu'
visible: false
publishable: false
attributable: true
sortingAttributesByWeight: false
reachable: false
hidingNodes: false
hidingNonReachableNodes: false
fields:
-
name: link_external_url
universal: false
excludeFromSearch: true
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: 'URL externe'
expanded: false
position: 1.0
type: string
-
name: link_internal_reference
universal: true
excludeFromSearch: false
serializationGroups:
- urls
normalizationContext:
groups:
- urls
- nodes_sources_base
serializationMaxDepth: 1
excludedFromSerialization: false
indexed: false
visible: true
label: 'Référence au nœud (Page ou Bloc de page)'
expanded: false
position: 2.0
defaultValues:
- Page
- Article
type: nodes
-
name: image
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: false
visible: true
label: Image
expanded: false
position: 3.0
type: documents
defaultTtl: 0
searchable: true
26 changes: 26 additions & 0 deletions config/node_types/neutral.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
color: '#a8a8a8'
name: Neutral
displayName: Neutral
description: Neutral
visible: true
publishable: false
attributable: false
sortingAttributesByWeight: false
reachable: false
hidingNodes: false
hidingNonReachableNodes: false
fields:
-
name: number
universal: false
excludeFromSearch: false
serializationGroups: { }
excludedFromSerialization: false
indexed: true
visible: true
label: Number
expanded: false
position: 1.0
type: integer
defaultTtl: 0
searchable: true
Loading