-
Notifications
You must be signed in to change notification settings - Fork 20
[GOVCMSCT2-121] CT PORT - Fast fact card #1402
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
Open
joshua-salsadigital
wants to merge
20
commits into
develop
Choose a base branch
from
feature/GOVCMSCT2-121
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
9a257a1
[GOVCMSCT2-121] Added fact fact related fields and configuration and …
joshua-salsadigital 006540b
Added config missign files.
joshua-salsadigital c9996b7
Fixed config related issue.
joshua-salsadigital bb9b364
[GOVCMSCT2-121] Fixed behat test.
joshua-salsadigital cf7d57f
[GOVCMSCT2-121] Updated machine name to civictheme_fast_fact_card.
joshua-salsadigital af9ecdc
[GOVCMSCT2-121] Added post update hook for civictheme_fast_fact_card.
joshua-salsadigital 61dc9cc
[GOVCMSCT2-121] Fixed lint issue.
joshua-salsadigital ac0c3a1
[GOVCMSCT2-121] Fixed lint issue.
joshua-salsadigital 29e985d
Merge branch 'develop' into feature/GOVCMSCT2-121
joshua-salsadigital 76a1c3b
CivicTheme implementation to display a Fast Fact card. and bumped the…
joshua-salsadigital 5c7b4f5
Updated behat test.
joshua-salsadigital 6e76c02
Fixed Failing test.
joshua-salsadigital c8d8a55
Merge branch 'develop' into feature/GOVCMSCT2-121
joshua-salsadigital 8b56da4
Merge branch 'develop' into feature/GOVCMSCT2-121
joshua-salsadigital 5d08d07
Add Quant Cloud migration configuration
stooit 15bd089
Add Quant Cloud migration configuration
stooit 07daef1
Merge branch 'develop' into feature/GOVCMSCT2-121
joshua-salsadigital f966a90
Fixed quant merge conflict - diff-e65288356485a0927532b70464ad2d038d…
joshua-salsadigital 406439c
Merge branch 'develop' into feature/GOVCMSCT2-121
richardgaunt a022720
Merge branch 'develop' into feature/GOVCMSCT2-121
joshua-salsadigital File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
tests/behat/features/paragraph.civictheme_infographic_card.fields.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| @p1 @civictheme @civictheme_card @civictheme_infographic_card | ||
| Feature: Fast fact card fields | ||
|
|
||
| @api | ||
| Scenario: Fields appear as expected | ||
| Given I am logged in as a user with the "Site Administrator" role | ||
| When I visit "node/add/civictheme_page" | ||
| And I fill in "Title" with "[TEST] Page fields" | ||
| When I press "Add Manual list" | ||
| And I press "Add Fast fact card" | ||
|
|
||
| Then I should see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_title][0][value]']" element | ||
| And I should see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_title][0][value]'].required" element | ||
| And I should not see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_title][0][value]'][disabled]" element | ||
|
|
||
| And I should see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_icon][media_library_selection]']" element | ||
|
|
||
| And I should see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_summary][0][value]']" element | ||
| And I should not see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_summary][0][value]'].required" element | ||
| And I should not see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_summary][0][value]'][disabled]" element | ||
|
|
||
| And I should see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_link][0][uri]']" element | ||
| And I should not see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_link][0][uri]'].required" element | ||
| And I should not see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_link][0][uri]'][disabled]" element | ||
|
|
||
| And I should see an "[name='field_c_n_components[0][subform][field_c_p_list_items][0][subform][field_c_p_theme]']" element |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...config/install/core.entity_form_display.paragraph.civictheme_infographic_card.default.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| langcode: en | ||
| status: true | ||
| dependencies: | ||
| config: | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_icon | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_link | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_summary | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_theme | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_title | ||
| - paragraphs.paragraphs_type.civictheme_infographic_card | ||
| module: | ||
| - link | ||
| id: paragraph.civictheme_infographic_card.default | ||
| targetEntityType: paragraph | ||
| bundle: civictheme_infographic_card | ||
| mode: default | ||
| content: | ||
| field_c_p_icon: | ||
| type: entity_reference_autocomplete | ||
| weight: 2 | ||
| region: content | ||
| settings: | ||
| match_operator: CONTAINS | ||
| match_limit: 10 | ||
| size: 60 | ||
| placeholder: '' | ||
| third_party_settings: { } | ||
| field_c_p_link: | ||
| type: link_default | ||
| weight: 4 | ||
| region: content | ||
| settings: | ||
| placeholder_url: '' | ||
| placeholder_title: '' | ||
| third_party_settings: { } | ||
| field_c_p_summary: | ||
| type: string_textarea | ||
| weight: 3 | ||
| region: content | ||
| settings: | ||
| rows: 5 | ||
| placeholder: '' | ||
| third_party_settings: { } | ||
| field_c_p_theme: | ||
| type: options_select | ||
| weight: 5 | ||
| region: content | ||
| settings: { } | ||
| third_party_settings: { } | ||
| field_c_p_title: | ||
| type: string_textfield | ||
| weight: 1 | ||
| region: content | ||
| settings: | ||
| size: 60 | ||
| placeholder: '' | ||
| third_party_settings: { } | ||
| hidden: | ||
| created: true | ||
| status: true |
61 changes: 61 additions & 0 deletions
61
...config/install/core.entity_view_display.paragraph.civictheme_infographic_card.default.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| langcode: en | ||
| status: true | ||
| dependencies: | ||
| config: | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_icon | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_link | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_summary | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_theme | ||
| - field.field.paragraph.civictheme_infographic_card.field_c_p_title | ||
| - paragraphs.paragraphs_type.civictheme_infographic_card | ||
| module: | ||
| - link | ||
| - options | ||
| id: paragraph.civictheme_infographic_card.default | ||
| targetEntityType: paragraph | ||
| bundle: civictheme_infographic_card | ||
| mode: default | ||
| content: | ||
| field_c_p_icon: | ||
| type: entity_reference_label | ||
| label: above | ||
| settings: | ||
| link: true | ||
| third_party_settings: { } | ||
| weight: 2 | ||
| region: content | ||
| field_c_p_link: | ||
| type: link | ||
| label: above | ||
| settings: | ||
| trim_length: 80 | ||
| url_only: false | ||
| url_plain: false | ||
| rel: '' | ||
| target: '' | ||
| third_party_settings: { } | ||
| weight: 4 | ||
| region: content | ||
| field_c_p_summary: | ||
| type: basic_string | ||
| label: above | ||
| settings: { } | ||
| third_party_settings: { } | ||
| weight: 3 | ||
| region: content | ||
| field_c_p_theme: | ||
| type: list_default | ||
| label: above | ||
| settings: { } | ||
| third_party_settings: { } | ||
| weight: 5 | ||
| region: content | ||
| field_c_p_title: | ||
| type: string | ||
| label: above | ||
| settings: | ||
| link_to_entity: false | ||
| third_party_settings: { } | ||
| weight: 1 | ||
| region: content | ||
| hidden: { } |
28 changes: 28 additions & 0 deletions
28
...theme/config/install/field.field.paragraph.civictheme_infographic_card.field_c_p_icon.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| langcode: en | ||
| status: true | ||
| dependencies: | ||
| config: | ||
| - field.storage.paragraph.field_c_p_icon | ||
| - media.type.civictheme_icon | ||
| - paragraphs.paragraphs_type.civictheme_infographic_card | ||
| id: paragraph.civictheme_infographic_card.field_c_p_icon | ||
| field_name: field_c_p_icon | ||
| entity_type: paragraph | ||
| bundle: civictheme_infographic_card | ||
| label: Icon | ||
| description: '' | ||
| required: true | ||
| translatable: false | ||
| default_value: { } | ||
| default_value_callback: '' | ||
| settings: | ||
| handler: 'default:media' | ||
| handler_settings: | ||
| target_bundles: | ||
| civictheme_icon: civictheme_icon | ||
| sort: | ||
| field: _none | ||
| direction: ASC | ||
| auto_create: false | ||
| auto_create_bundle: '' | ||
| field_type: entity_reference |
22 changes: 22 additions & 0 deletions
22
...theme/config/install/field.field.paragraph.civictheme_infographic_card.field_c_p_link.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| langcode: en | ||
| status: true | ||
| dependencies: | ||
| config: | ||
| - field.storage.paragraph.field_c_p_link | ||
| - paragraphs.paragraphs_type.civictheme_infographic_card | ||
| module: | ||
| - link | ||
| id: paragraph.civictheme_infographic_card.field_c_p_link | ||
| field_name: field_c_p_link | ||
| entity_type: paragraph | ||
| bundle: civictheme_infographic_card | ||
| label: Link | ||
| description: '' | ||
| required: false | ||
| translatable: false | ||
| default_value: { } | ||
| default_value_callback: '' | ||
| settings: | ||
| title: 0 | ||
| link_type: 17 | ||
| field_type: link |
18 changes: 18 additions & 0 deletions
18
...me/config/install/field.field.paragraph.civictheme_infographic_card.field_c_p_summary.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| langcode: en | ||
| status: true | ||
| dependencies: | ||
| config: | ||
| - field.storage.paragraph.field_c_p_summary | ||
| - paragraphs.paragraphs_type.civictheme_infographic_card | ||
| id: paragraph.civictheme_infographic_card.field_c_p_summary | ||
| field_name: field_c_p_summary | ||
| entity_type: paragraph | ||
| bundle: civictheme_infographic_card | ||
| label: Summary | ||
| description: 'Limited to the number of characters configured in the theme settings. Any characters past the character limit will not show for users.' | ||
| required: false | ||
| translatable: false | ||
| default_value: { } | ||
| default_value_callback: '' | ||
| settings: { } | ||
| field_type: string_long |
22 changes: 22 additions & 0 deletions
22
...heme/config/install/field.field.paragraph.civictheme_infographic_card.field_c_p_theme.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| langcode: en | ||
| status: true | ||
| dependencies: | ||
| config: | ||
| - field.storage.paragraph.field_c_p_theme | ||
| - paragraphs.paragraphs_type.civictheme_infographic_card | ||
| module: | ||
| - options | ||
| id: paragraph.civictheme_infographic_card.field_c_p_theme | ||
| field_name: field_c_p_theme | ||
| entity_type: paragraph | ||
| bundle: civictheme_infographic_card | ||
| label: Theme | ||
| description: '' | ||
| required: true | ||
| translatable: false | ||
| default_value: | ||
| - | ||
| value: light | ||
| default_value_callback: '' | ||
| settings: { } | ||
| field_type: list_string |
18 changes: 18 additions & 0 deletions
18
...heme/config/install/field.field.paragraph.civictheme_infographic_card.field_c_p_title.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| langcode: en | ||
| status: true | ||
| dependencies: | ||
| config: | ||
| - field.storage.paragraph.field_c_p_title | ||
| - paragraphs.paragraphs_type.civictheme_infographic_card | ||
| id: paragraph.civictheme_infographic_card.field_c_p_title | ||
| field_name: field_c_p_title | ||
| entity_type: paragraph | ||
| bundle: civictheme_infographic_card | ||
| label: Title | ||
| description: '' | ||
| required: true | ||
| translatable: false | ||
| default_value: { } | ||
| default_value_callback: '' | ||
| settings: { } | ||
| field_type: string |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.