diff --git a/app/Console/Commands/UpdateEmailSeries.php b/app/Console/Commands/UpdateEmailSeries.php index 596df62435..830d493ffd 100644 --- a/app/Console/Commands/UpdateEmailSeries.php +++ b/app/Console/Commands/UpdateEmailSeries.php @@ -20,7 +20,7 @@ class UpdateEmailSeries extends Command 'published' => true, 'show_affiliate_member' => true, 'show_member' => true, - 'show_sustaining_fellow' => true, + 'show_luminary' => true, 'show_non_member' => true, 'use_short_description' => true, ], @@ -28,7 +28,7 @@ class UpdateEmailSeries extends Command 'published' => true, 'show_affiliate_member' => true, 'show_member' => true, - 'show_sustaining_fellow' => true, + 'show_luminary' => true, 'show_non_member' => true, 'use_short_description' => true, ], @@ -36,7 +36,7 @@ class UpdateEmailSeries extends Command 'published' => true, 'show_affiliate_member' => true, 'show_member' => true, - 'show_sustaining_fellow' => true, + 'show_luminary' => true, 'show_non_member' => true, 'use_short_description' => true, ], @@ -44,96 +44,96 @@ class UpdateEmailSeries extends Command 'published' => true, 'show_affiliate_member' => true, 'show_member' => false, - 'show_sustaining_fellow' => false, + 'show_luminary' => false, 'show_non_member' => false, 'use_short_description' => false, 'affiliate_member_copy' => '
Tickets are sure to go quickly for this program—be sure to get yours today.
', 'member_copy' => '', - 'sustaining_fellow_copy' => '', + 'luminary_copy' => '', 'non_member_copy' => '', ], 'Member Tickets on Sale/Registration Open' => [ 'published' => true, 'show_affiliate_member' => false, 'show_member' => true, - 'show_sustaining_fellow' => false, + 'show_luminary' => false, 'show_non_member' => false, 'use_short_description' => false, 'affiliate_member_copy' => '', 'member_copy' => 'Tickets are sure to go quickly for this program—be sure to get yours today.
', - 'sustaining_fellow_copy' => '', + 'luminary_copy' => '', 'non_member_copy' => '', ], - 'Sustaining Fellow Tickets on Sale/Registration Open/RSVP' => [ + 'Luminary Tickets on Sale/Registration Open/RSVP' => [ 'published' => true, 'show_affiliate_member' => false, 'show_member' => false, - 'show_sustaining_fellow' => true, + 'show_luminary' => true, 'show_non_member' => false, 'use_short_description' => false, 'affiliate_member_copy' => '', 'member_copy' => '', - 'sustaining_fellow_copy' => 'Tickets are sure to go quickly for this program—be sure to get yours today.
', + 'luminary_copy' => 'Tickets are sure to go quickly for this program—be sure to get yours today.
', 'non_member_copy' => '', ], 'Nonmember Tickets on Sale/ Registration Open' => [ 'published' => true, 'show_affiliate_member' => false, 'show_member' => false, - 'show_sustaining_fellow' => false, + 'show_luminary' => false, 'show_non_member' => true, 'use_short_description' => false, 'affiliate_member_copy' => '', 'member_copy' => '', - 'sustaining_fellow_copy' => '', + 'luminary_copy' => '', 'non_member_copy' => 'Tickets will go fast—so grab yours today!
', ], 'Tickets on Sale/Registration Open Reminder' => [ 'published' => true, 'show_affiliate_member' => true, 'show_member' => true, - 'show_sustaining_fellow' => true, + 'show_luminary' => true, 'show_non_member' => true, 'use_short_description' => false, 'affiliate_member_copy' => 'We’d love to have you join us for this very special event—secure your tickets today.
', 'member_copy' => 'We’d love to have you join us for this very special event—secure your tickets today.
', - 'sustaining_fellow_copy' => 'We’d love to have you join us for this very special event—secure your tickets today.
', + 'luminary_copy' => 'We’d love to have you join us for this very special event—secure your tickets today.
', 'non_member_copy' => 'There are only a few tickets left—don’t miss out!
', ], 'Event Reminder' => [ 'published' => true, 'show_affiliate_member' => true, 'show_member' => true, - 'show_sustaining_fellow' => true, + 'show_luminary' => true, 'show_non_member' => true, 'use_short_description' => false, 'affiliate_member_copy' => '%%FirstName%%, your event, %%EventName%%, is coming up—we look forward to seeing you there.
', 'member_copy' => '%%FirstName%%, your event, %%EventName%%, is coming up—we look forward to seeing you there.
', - 'sustaining_fellow_copy' => '%%FirstName%%, your event, %%EventName%%, is coming up—we look forward to seeing you there.
', + 'luminary_copy' => '%%FirstName%%, your event, %%EventName%%, is coming up—we look forward to seeing you there.
', 'non_member_copy' => '%%FirstName%%, your event, %%EventName%%, is coming up—we look forward to seeing you there.
', ], 'Event Thank You' => [ 'published' => true, 'show_affiliate_member' => true, 'show_member' => true, - 'show_sustaining_fellow' => true, + 'show_luminary' => true, 'show_non_member' => true, 'use_short_description' => false, 'affiliate_member_copy' => 'We’re so happy you were able to join us for %%EventName%% and hope you enjoyed this special program.
We are so grateful for your support as a %%AffiliateGroup%% member and would love to have you join us for %%EventName%% on %%DisplayStartDate%%.
', 'member_copy' => 'We’re so happy you were able to join us for %%EventName%% and hope you enjoyed the event.
We have a bunch of great member-exclusive programs coming up in the next couple months. Check out our member event calendar to see the full lineup.
', - 'sustaining_fellow_copy' => 'We’re so happy you were able to join us for %%EventName%% and hope you enjoyed this special program.
We are so grateful for your support as a Sustaining Fellow and would love to have you join us for more events in the months to come. Check out our calendar to see what’s in store.
', + 'luminary_copy' => 'We’re so happy you were able to join us for %%EventName%% and hope you enjoyed this special program.
We are so grateful for your support as a Luminary and would love to have you join us for more events in the months to come. Check out our calendar to see what’s in store.
', 'non_member_copy' => 'We’re so happy you were able to join us for %%EventName%% and hope you enjoyed the event.
We have a wide range of great programs coming up in the next couple months. Check out our calendar to see the full lineup.
', ], 'Event Please Join Us for a Future Event' => [ 'published' => true, 'show_affiliate_member' => true, 'show_member' => true, - 'show_sustaining_fellow' => true, + 'show_luminary' => true, 'show_non_member' => true, 'use_short_description' => false, 'affiliate_member_copy' => 'We’re sorry we missed you at %%EventName%%. We hope to see you for another event or simply enjoying the galleries soon.
', 'member_copy' => 'We’re sorry we missed you at %%EventName%%. We hope to see you for another event or simply enjoying the galleries soon.
We have a bunch of great member-exclusive programs coming up in the next couple months. Check out our member event calendar to see what’s in store in the coming months.
', - 'sustaining_fellow_copy' => 'We’re sorry we missed you at %%EventName%%. We hope to see you for another event or simply enjoying the galleries soon.
We are so grateful for your support as a Sustaining Fellow and would love to have you join us for more events in the months to come. Check out our calendar to see what’s in store for Sustaining Fellows in the coming months.
', + 'luminary_copy' => 'We’re sorry we missed you at %%EventName%%. We hope to see you for another event or simply enjoying the galleries soon.
We are so grateful for your support as a Luminary and would love to have you join us for more events in the months to come. Check out our calendar to see what’s in store for Luminaries in the coming months.
', 'non_member_copy' => 'We’re sorry we missed you at %%EventName%%. We hope to see you for another event or simply enjoying the galleries soon.
We have a wide range of great programs coming up in the next couple months. Check out our calendar to see the full lineup of programs offered in the coming months.
', ], ]; diff --git a/app/Models/Api/Exhibition.php b/app/Models/Api/Exhibition.php index 66c195b16d..78daa3eb3a 100644 --- a/app/Models/Api/Exhibition.php +++ b/app/Models/Api/Exhibition.php @@ -23,7 +23,7 @@ class Exhibition extends BaseApiModel protected $presenterAdmin = 'App\Presenters\Admin\ExhibitionPresenter'; // Fields used when performing a search so we avoid a double call retrieving the complete entities - const SEARCH_FIELDS = ['id', 'title', 'status', 'aic_start_at', 'aic_end_at', 'is_boosted', 'thumbnail', 'short_description', 'start_at', 'end_at', 'department_display', 'gallery_title', 'gallery_id', 'image_id', 'api_model']; + const SEARCH_FIELDS = ['id', 'title', 'status', 'aic_start_at', 'aic_end_at', 'is_boosted', 'thumbnail', 'short_description', 'department_display', 'gallery_title', 'gallery_id', 'image_id', 'api_model']; // Generates the id-slug type of URL public function getRouteKeyName() diff --git a/app/Models/EmailSeries.php b/app/Models/EmailSeries.php index 05cfb0dd40..45125e1dd0 100644 --- a/app/Models/EmailSeries.php +++ b/app/Models/EmailSeries.php @@ -16,7 +16,7 @@ class EmailSeries extends AbstractModel implements Sortable public static $memberTypes = [ 'affiliate' => 'affiliate', 'member' => 'member', - 'sustaining_fellow' => 'sustaining fellow', + 'luminary' => 'luminary', 'nonmember' => 'nonmember', ]; @@ -26,11 +26,11 @@ class EmailSeries extends AbstractModel implements Sortable 'alert_message', 'show_affiliate', 'show_member', - 'show_sustaining_fellow', + 'show_luminary', 'show_nonmember', 'show_affiliate_test', 'show_member_test', - 'show_sustaining_fellow_test', + 'show_luminary_test', 'show_nonmember_test', 'position', 'published', @@ -39,11 +39,11 @@ class EmailSeries extends AbstractModel implements Sortable public $checkboxes = [ 'show_affiliate', 'show_member', - 'show_sustaining_fellow', + 'show_luminary', 'show_nonmember', 'show_affiliate_test', 'show_member_test', - 'show_sustaining_fellow_test', + 'show_luminary_test', 'show_nonmember_test', 'published', ]; @@ -51,11 +51,11 @@ class EmailSeries extends AbstractModel implements Sortable public $casts = [ 'show_affiliate' => 'boolean', 'show_member' => 'boolean', - 'show_sustaining_fellow' => 'boolean', + 'show_luminary' => 'boolean', 'show_nonmember' => 'boolean', 'show_affiliate_test' => 'boolean', 'show_member_test' => 'boolean', - 'show_sustaining_fellow_test' => 'boolean', + 'show_luminary_test' => 'boolean', 'show_nonmember_test' => 'boolean', 'published' => 'boolean', ]; @@ -94,10 +94,10 @@ protected function transformMappingInternal() 'value' => function () {return $this->show_member;}, ], [ - "name" => 'show_sustaining_fellow', - 'doc' => 'Whether to show the "Include sustaining fellow-specific copy" option', + "name" => 'show_luminary', + 'doc' => 'Whether to show the "Include luminary-specific copy" option', 'type' => 'boolean', - 'value' => function () {return $this->show_sustaining_fellow;}, + 'value' => function () {return $this->show_luminary;}, ], [ "name" => 'show_nonmember', @@ -118,10 +118,10 @@ protected function transformMappingInternal() 'value' => function () {return $this->show_member_test;}, ], [ - "name" => 'show_sustaining_fellow_test', - 'doc' => 'Whether to show the "Send sustaining fellow test" option', + "name" => 'show_luminary_test', + 'doc' => 'Whether to show the "Send luminary test" option', 'type' => 'boolean', - 'value' => function () {return $this->show_sustaining_fellow_test;}, + 'value' => function () {return $this->show_luminary_test;}, ], [ "name" => 'show_nonmember_test', diff --git a/app/Models/Event.php b/app/Models/Event.php index 7cd6b37d5a..5d4032f53b 100644 --- a/app/Models/Event.php +++ b/app/Models/Event.php @@ -124,7 +124,7 @@ class Event extends AbstractModel const RESEARCHERS_SCHOLARS = 5; const TEACHERS = 6; const EVENING_ASSOCIATES = 7; - const SUSTAINING_FELLOWS = 8; + const LUMINARY = 8; public static $eventAudiences = [ self::FAMILIES => 'Families', @@ -134,7 +134,7 @@ class Event extends AbstractModel self::RESEARCHERS_SCHOLARS => 'Researchers/Scholars', self::TEACHERS => 'Teachers', self::EVENING_ASSOCIATES => 'Evening Associates', - self::SUSTAINING_FELLOWS => 'Sustaining Fellows', + self::LUMINARY => 'Luminary', ]; const BASIC_LAYOUT = 0; @@ -214,15 +214,15 @@ public function emailSeries() ->withPivot( 'send_affiliate_test', 'send_member_test', - 'send_sustaining_fellow_test', + 'send_luminary_test', 'send_nonmember_test', 'override_affiliate', 'override_member', - 'override_sustaining_fellow', + 'override_luminary', 'override_nonmember', 'affiliate_copy', 'member_copy', - 'sustaining_fellow_copy', + 'luminary_copy', 'nonmember_copy' ); } @@ -883,7 +883,7 @@ protected function transformMappingInternal() foreach ([ 'affiliate_copy', 'member_copy', - 'sustaining_fellow_copy', + 'luminary_copy', 'nonmember_copy', ] as $field) { if (isset($item->$field)) { diff --git a/app/Models/EventEmailSeries.php b/app/Models/EventEmailSeries.php index 8d77b2d1ee..817f1aa30f 100644 --- a/app/Models/EventEmailSeries.php +++ b/app/Models/EventEmailSeries.php @@ -9,7 +9,7 @@ class EventEmailSeries extends Pivot protected $casts = [ 'override_affiliate' => 'boolean', 'override_member' => 'boolean', - 'override_sustaining_fellow' => 'boolean', + 'override_luminary' => 'boolean', 'override_nonmember' => 'boolean', ]; } diff --git a/app/Models/Exhibition.php b/app/Models/Exhibition.php index c8c5b6fdfc..fb2a2f899c 100644 --- a/app/Models/Exhibition.php +++ b/app/Models/Exhibition.php @@ -230,16 +230,25 @@ protected function transformMappingInternal() "value" => function () {return $this->exhibition_message;}, ], [ - "name" => 'exhibition_location', - "doc" => "Location", + "name" => "public_start_at", + "doc" => "Public opening at", "type" => "string", - "value" => function () {return $this->exhibition_location;}, + "value" => function () {return $this->public_start_date ? $this->public_start_date->toIso8601String() : null;}, ], [ - "name" => 'cms_exhibition_type', - "doc" => "CMS Type", - "type" => "number", - "value" => function () {return $this->cms_exhibition_type;}, + "name" => "public_end_at", + "doc" => "Public closing at", + "type" => "string", + "value" => function () {return $this->public_end_date ? $this->public_end_date->toIso8601String() : null;}, + ], + [ + "name" => "date_display", + "doc" => "Formatted date with override", + "type" => "string", + "value" => function () { + // WEB-1822, WEB-1830: This causes errors when the API model isn't found, needs more work on several fronts + // return trim(html_entity_decode(strip_tags($this->getApiModelFilledCached()->present()->formattedDate()->render()))); + }, ], [ "name" => 'related', diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 31c9586ad8..73919ecc67 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -261,11 +261,11 @@ private function composeTemplatesViews() ], [ 'name' => 'Learn With Us', - 'slug' => 'learn-with-us', + 'slug' => '/learn-with-us', ], [ 'name' => 'Support Us', - 'slug' => 'support-us', + 'slug' => '/support-us', ], ], diff --git a/app/Repositories/EventRepository.php b/app/Repositories/EventRepository.php index b07a083491..c1439e82f8 100644 --- a/app/Repositories/EventRepository.php +++ b/app/Repositories/EventRepository.php @@ -80,7 +80,7 @@ public function prepareFieldsBeforeSave($object, $fields) $isOnlyOneTestAudienceFieldShown = 1 === collect([ $series->show_affiliate_test, $series->show_member_test, - $series->show_sustaining_fellow_test, + $series->show_luminary_test, $series->show_nonmember_test, ])->filter()->count(); diff --git a/database/migrations/2020_09_14_122043_rename_sustaining_fellows_event_program.php b/database/migrations/2020_09_14_122043_rename_sustaining_fellows_event_program.php new file mode 100644 index 0000000000..a83dfbab74 --- /dev/null +++ b/database/migrations/2020_09_14_122043_rename_sustaining_fellows_event_program.php @@ -0,0 +1,33 @@ +first(); + $program->name = 'Luminary'; + $program->save(); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + $program = EventProgram::where('name', 'Luminary')->first(); + $program->name = 'Sustaining Fellows'; + $program->save(); + } +} diff --git a/database/migrations/2020_09_14_123043_rename_email_series_sustaining_fellows_columns.php b/database/migrations/2020_09_14_123043_rename_email_series_sustaining_fellows_columns.php new file mode 100644 index 0000000000..6e1bceef0c --- /dev/null +++ b/database/migrations/2020_09_14_123043_rename_email_series_sustaining_fellows_columns.php @@ -0,0 +1,45 @@ +renameColumn('show_sustaining_fellow', 'show_luminary'); + $table->renameColumn('show_sustaining_fellow_test', 'show_luminary_test'); + }); + Schema::table('event_email_series', function (Blueprint $table) { + $table->renameColumn('sustaining_fellow_copy', 'luminary_copy'); + $table->renameColumn('send_sustaining_fellow_test', 'send_luminary_test'); + $table->renameColumn('override_sustaining_fellow', 'override_luminary'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('email_series', function (Blueprint $table) { + $table->renameColumn('show_luminary', 'show_sustaining_fellow'); + $table->renameColumn('show_luminary_test', 'show_sustaining_fellow_test'); + }); + Schema::table('event_email_series', function (Blueprint $table) { + $table->renameColumn('luminary_copy', 'sustaining_fellow_copy'); + $table->renameColumn('send_luminary_test', 'send_sustaining_fellow_test'); + $table->renameColumn('override_luminary', 'override_sustaining_fellow'); + }); + + } +} diff --git a/database/migrations/2020_09_14_144355_rename_email_series_titles.php b/database/migrations/2020_09_14_144355_rename_email_series_titles.php new file mode 100644 index 0000000000..b774e12bd4 --- /dev/null +++ b/database/migrations/2020_09_14_144355_rename_email_series_titles.php @@ -0,0 +1,33 @@ +first(); + $series->title = 'Luminary Tickets on Sale/Registration Open/RSVP'; + $series->save(); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + $series = EmailSeries::where('title', 'Luminary Tickets on Sale/Registration Open/RSVP')->first(); + $series->title = 'Sustaining Fellow Tickets on Sale/Registration Open/RSVP'; + $series->save(); + } +} diff --git a/docs/apiModels.md b/docs/apiModels.md index a92d164b40..d35af44920 100644 --- a/docs/apiModels.md +++ b/docs/apiModels.md @@ -315,14 +315,14 @@ $params = [ 'must' => [ 0 => [ 'range' => [ - 'start_at' => [ + 'aic_start_at' => [ 'lte' => 'now+2w', ], ], ], 1 => [ 'range' => [ - 'end_at' => [ + 'aic_end_at' => [ 'gte' => 'now', ], ], @@ -351,14 +351,14 @@ public function scopeNextTwoWeeks($query) { 'must' => [ 0 => [ 'range' => [ - 'start_at' => [ + 'aic_start_at' => [ 'lte' => 'now+2w', ], ], ], 1 => [ 'range' => [ - 'end_at' => [ + 'aic_end_at' => [ 'gte' => 'now', ], ], diff --git a/resources/assets/js/blocks/BlockArtists.vue b/resources/assets/js/blocks/BlockArtists.vue index 1957cd2900..b609eb491b 100644 --- a/resources/assets/js/blocks/BlockArtists.vue +++ b/resources/assets/js/blocks/BlockArtists.vue @@ -1,7 +1,7 @@If no image is selected, we will fall back to the hero image, otherwise we will not show this artist.
If no image is selected, we will fall back to the hero image, otherwise we will not show this artist.
For YouTube, we recommend using full URLs instead of shortened ones.
For YouTube, we recommend using full URLs instead of shortened ones.
Please use "/terms" as the "Terms and Conditions" link.
-