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

Layout Sections and Profiles #363

Merged
merged 62 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
856db67
feat (YALB-85): stub out profile content type
nJim Jun 19, 2023
0f35d97
feat (YALB-85): set display modes
nJim Jun 19, 2023
4ce7bac
feat (YALB-85): add condenced display
nJim Jun 23, 2023
a311244
Merge branch 'develop' into YALB-85-profiles
nJim Jun 23, 2023
5f05c1d
wip
nJim Jun 28, 2023
cfe22a6
feat(YALB-1439): WIP - add new event meta block and logic to grab var…
codechefmarc Jul 12, 2023
94b1d95
feat(YALB-1439): Finish event meta block
codechefmarc Jul 13, 2023
a1f4191
chore(YALB-1439): WIP, testing page won't be included in the end. Pre…
codechefmarc Jul 14, 2023
49ccfcb
chore(YALB-1439): WIP - Figuring out tempstore
codechefmarc Jul 18, 2023
d7dd356
Merge branch 'develop' into YALB-1439--event-meta
codechefmarc Jul 19, 2023
3590763
feat(YALB-1439): Move update hook code into deploy hook to run with d…
codechefmarc Jul 19, 2023
548bc4c
chore(YALB-1439): Remove testing module lb_copy_section
codechefmarc Jul 19, 2023
23a7fe7
feat(YALB-1439): Update local script to use new drush deploy command
codechefmarc Jul 19, 2023
aa0b5a5
feat(YALB-1439): Update Pantheon quicksilver script with new drush de…
codechefmarc Jul 19, 2023
e1d2a97
chore(YALB-1437): WIP
codechefmarc Jul 20, 2023
6416c92
Merge branch 'YALB-1439--event-meta' into YALB-85-profiles
codechefmarc Jul 20, 2023
0c7c56b
Merge branch 'YALB-1437--two-column' into YALB-85-profiles
codechefmarc Jul 20, 2023
9ce27c2
chore(YALB-1439): Change name of event section to Title and Metadata
codechefmarc Jul 20, 2023
8fca647
feat(YALB-1439): Update layout builder lock settings for events
codechefmarc Jul 20, 2023
a093d88
refactor(YALB-1439): Update page title section to use new page meta s…
codechefmarc Jul 21, 2023
6cde71a
refactor(YALB-1439): Remove old title and breadcrumb block
codechefmarc Jul 21, 2023
aca26c7
refactor(YALB-1439): Move all update functions to the same class
codechefmarc Jul 21, 2023
435ae37
t(YALB-1437): Allow existing nodes to add new sections - specifically…
codechefmarc Jul 21, 2023
0d1ec68
feat: Replace title with new title and metadata block and layout for …
codechefmarc Jul 21, 2023
7cffca6
feat(YALB-1438): Add profile meta block to layout
codechefmarc Jul 21, 2023
5584537
feat(YALB-1441): Add profile contact block, config for profiles, and …
codechefmarc Jul 21, 2023
be2160a
chore: Remove testing page
codechefmarc Jul 22, 2023
c44f6da
fix: Fix linting errors
codechefmarc Jul 22, 2023
b190e93
fix: Change Drupal call to dependency injection
codechefmarc Jul 22, 2023
4dab662
Merge branch 'develop' into YALB-85-profiles
codechefmarc Jul 24, 2023
4d7a581
Merge branch 'YALB-1465-drush-deploy' into YALB-85-profiles
codechefmarc Jul 24, 2023
f376a81
fix(YALB-1475): Add guard clauses to set defaults
dblanken-yale Jul 24, 2023
1972e58
fix(yalb-85): add markup to fix two-column layout
joetower Jul 24, 2023
81f3775
fix: Updates tempstore with page meta directly to prevent data loss
codechefmarc Jul 25, 2023
647b41d
Merge branch 'YALB-85-profiles' of github.com:yalesites-org/yalesites…
codechefmarc Jul 25, 2023
630b6b1
refactor(YALB-1475): Remove nested conditionals
dblanken-yale Jul 25, 2023
50fee18
chore(YALB-1475): Fix linting issues
dblanken-yale Jul 25, 2023
b473bde
Merge branch 'develop' into YALB-85-profiles
codechefmarc Jul 25, 2023
0d69bc7
Merge remote-tracking branch 'origin/YALB-1475-bug-build-with-assets-…
codechefmarc Jul 25, 2023
dbf6c8e
fix: Add in additional temp store updates for events, posts, and page…
codechefmarc Jul 25, 2023
1a40703
fix: Cleanup update class
codechefmarc Jul 25, 2023
2e7887b
fix: Remove content block from profile to fix error on Pantheon when …
codechefmarc Jul 25, 2023
8b4df83
chore: Update readme to force GitHub to notice PR change
codechefmarc Jul 25, 2023
55181ea
fix: Pages should not be allowed to add the profile contact block
codechefmarc Jul 26, 2023
6877231
refactor: Reduce code repetition in updateNodes
codechefmarc Jul 26, 2023
3c2485f
fix(yalb-85): update block to wrap content in block-wrapper with bloc…
joetower Jul 26, 2023
9c7474b
fix(yalb-85): wrap address fields in conditional
joetower Jul 26, 2023
6cc06a8
fix: Only update layouts if they were overridden first
codechefmarc Jul 27, 2023
ca286fa
Merge branch 'YALB-85-profiles' of github.com:yalesites-org/yalesites…
codechefmarc Jul 27, 2023
a4913ef
feat: Move profile meta block from one col section to banner section
codechefmarc Jul 27, 2023
415b1a3
feat: Add pathauto pattern for profiles
codechefmarc Jul 27, 2023
34338f0
fix: Remove quick links from profile two column content section
codechefmarc Jul 27, 2023
217ae94
Merge branch 'develop' into YALB-85-profiles
codechefmarc Jul 31, 2023
2c4df47
feat(YALB-1496): Add manage profiles view, menu item, and profile des…
codechefmarc Jul 31, 2023
3c36a98
feat(YALB-1496): Change address field to textarea, hide admin section…
codechefmarc Aug 1, 2023
441ad99
feat(YALB-1496): remove flex from view to better align growing options
codechefmarc Aug 1, 2023
bee2da2
fix: Prevent block previews from disappearing during layout builder d…
codechefmarc Aug 2, 2023
f2d1f41
fix(YALB-1496): Fix unable to remove additional contact blocks
codechefmarc Aug 2, 2023
8d5ea1a
chore: Extra check for node object before retrieving fields
codechefmarc Aug 3, 2023
7e8ad7f
Merge branch 'develop' into YALB-85-profiles
codechefmarc Aug 7, 2023
bef69bc
feat(YALB-1496): Add profile groups to edit form, add help text to po…
codechefmarc Aug 7, 2023
4f7b68a
fix: Allow editors to modify title block hide/show
codechefmarc Aug 8, 2023
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
12 changes: 2 additions & 10 deletions .ci/deploy/pantheon/dev-multidev
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,8 @@ fi
# Wake the environment to make sure the database is reachable.
terminus -n env:wake "$TERMINUS_SITE.$TERMINUS_ENV"

# Update the Drupal database
terminus -n drush "$TERMINUS_SITE.$TERMINUS_ENV" -- updatedb --no-cache-clear -y

# If exported configuration is available, then import it.
if [ -f "web/profiles/custom/yalesites_profile/config/sync/system.site.yml" ] ; then
terminus -n drush "$TERMINUS_SITE.$TERMINUS_ENV" -- config-import --yes
fi

# Clear Drupal cache
terminus -n drush "$TERMINUS_SITE.$TERMINUS_ENV" -- cr
# Run drush deploy - updb, cr, cim, cr, deploy:hook
terminus -n drush "$TERMINUS_SITE.$TERMINUS_ENV" -- deploy -v -y

# Clear the environment cache
terminus -n env:clear-cache "$TERMINUS_SITE.$TERMINUS_ENV"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ _Notes:_
- `confim` Imports the current config files to your database.
- `local:theme-link` Run this script once to establish `npm link`s to all of the frontend-related repositories.
- `local:cl-dev` Enables a frontend developer to work across all of the repositories (`yalesites-project`, `atomic`, and `component-library-twig`) in an environment configured to support both Storybook development, and have the changes reflected in the Drupal instance. Note: This also wires up the Tokens repo, but if you want to watch for changes there, you'll have to run the `npm run develop` script inside the Tokens directory.
.
5 changes: 1 addition & 4 deletions scripts/local/confim.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/bash

lando drush updatedb -y
lando drush cr
lando drush config-import -y
lando drush cr
lando drush deploy
23 changes: 4 additions & 19 deletions web/private/scripts/confim.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
<?php

if ($_POST['user_email'] !== '[email protected]') {
// Update databases
echo "Running database updates...\n";
passthru('drush updatedb -y');
echo "Database updates complete.\n";

// Clear all cache
echo "Rebuilding cache...\n";
passthru('drush cr');
echo "Rebuilding cache complete.\n";

// Import all config changes.
echo "Importing configuration from yml files...\n";
passthru('drush config-import -y');
echo "Import of configuration complete.\n";

// Clear all cache
echo "Rebuilding cache...\n";
passthru('drush cr');
echo "Rebuilding cache complete.\n";
// Update databases.
echo "Running drush deploy...\n";
passthru('drush deploy');
echo "Drush deploy complete.\n";
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
_core:
default_config_hash: hSAUW7BoAd9YUpKcVKyZpW4wY67g4XZAYlt3Vnz6SVA
enabled_default: 0
default_challenge: recaptcha_v3/form_submission
description: 'This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.'
administration_mode: false
allow_on_admin_pages: false
whitelist_ips: ''
add_captcha_description: true
wrong_captcha_response_message: 'The answer you entered for the CAPTCHA was not correct.'
default_validation: 1
persistence: 1
enable_stats: false
log_wrong_responses: false
enabled_default: 0
allow_on_admin_pages: false
add_captcha_description: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ignored_config_entities:
- 'system.site*'
- 'ys_alert.settings:alert'
- 'ys_core*'
- 'ys_themes.theme_settings'
- ys_themes.theme_settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: 3ec0b7cb-2e3a-4b6d-b9c1-5fd0292eb82f
langcode: en
status: true
dependencies:
config:
- node.type.profile
id: node.profile.promote
field_name: promote
entity_type: node
bundle: profile
label: 'Promoted to front page'
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: cca9c181-8043-40a7-abde-a1d3536c86f2
langcode: en
status: true
dependencies:
config:
- node.type.profile
id: node.profile.title
field_name: title
entity_type: node
bundle: profile
label: Name
description: ''
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
uuid: eb6e85b6-ab8a-4271-94cd-a2227478135b
langcode: en
status: true
dependencies:
config:
- field.field.node.profile.field_address
- field.field.node.profile.field_affiliation
- field.field.node.profile.field_department
- field.field.node.profile.field_email
- field.field.node.profile.field_login_required
- field.field.node.profile.field_media
- field.field.node.profile.field_metatags
- field.field.node.profile.field_position
- field.field.node.profile.field_subtitle
- field.field.node.profile.field_tags
- field.field.node.profile.field_teaser_media
- field.field.node.profile.field_teaser_text
- field.field.node.profile.field_teaser_title
- field.field.node.profile.field_telephone
- field.field.node.profile.layout_builder__layout
- node.type.profile
module:
- address
- allowed_formats
- field_group
- maxlength
- media_library
- metatag
- path
- text
third_party_settings:
field_group:
group_teaser:
children:
- field_teaser_title
- field_teaser_text
- field_teaser_media
label: Teaser
region: content
parent_name: ''
weight: 10
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
description: ''
required_fields: true
group__publishing:
children:
- field_login_required
label: 'Publishing Settings'
region: content
parent_name: ''
weight: 13
format_type: details_sidebar
format_settings:
classes: ''
show_empty_fields: false
id: ''
open: false
description: ''
required_fields: true
weight: 0
id: node.profile.default
targetEntityType: node
bundle: profile
mode: default
content:
field_address:
type: address_default
weight: 19
region: content
settings: { }
third_party_settings: { }
field_affiliation:
type: options_select
weight: 5
region: content
settings: { }
third_party_settings: { }
field_department:
type: string_textfield
weight: 6
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_email:
type: email_default
weight: 3
region: content
settings:
placeholder: ''
size: 60
third_party_settings: { }
field_login_required:
type: boolean_checkbox
weight: 14
region: content
settings:
display_label: true
third_party_settings: { }
field_media:
type: media_library_widget
weight: 8
region: content
settings:
media_types: { }
third_party_settings: { }
field_metatags:
type: metatag_firehose
weight: 12
region: content
settings:
sidebar: true
use_details: true
third_party_settings: { }
field_position:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_subtitle:
type: text_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '1'
hide_guidelines: '1'
maxlength:
maxlength_js: null
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: false
field_tags:
type: entity_reference_autocomplete_tags
weight: 7
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_teaser_media:
type: media_library_widget
weight: 18
region: content
settings:
media_types: { }
third_party_settings: { }
field_teaser_text:
type: text_textarea
weight: 17
region: content
settings:
rows: 5
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '1'
hide_guidelines: '1'
maxlength:
maxlength_js: 150
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: true
field_teaser_title:
type: string_textfield
weight: 16
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_telephone:
type: string_textfield
weight: 4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 9
region: content
settings: { }
third_party_settings: { }
simple_sitemap:
weight: 15
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 14
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 11
region: content
settings: { }
third_party_settings: { }
hidden:
created: true
layout_builder__layout: true
promote: true
revision_log: true
sticky: true
uid: true
Loading