-
Notifications
You must be signed in to change notification settings - Fork 9
Create blocks to integrate Sessionize schedules and speakers #1081
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8768d01
set up framework for Sessionize Schedule block
cjyabraham 5ef8651
got the basic scheduler block working
cjyabraham b316e0b
Allow for more params configured by user
cjyabraham 861fb58
round the buttons
cjyabraham fdee950
fix some styling
cjyabraham eb3a9dc
add author
cjyabraham d919c7f
Added the Speakers block and refactored the whole plugin
cjyabraham 5d06d04
Added the Speakers block
cjyabraham 79ed35c
fix tile layout
cjyabraham 335e860
tweak some styles
cjyabraham f7e0bef
fix grid sticky column issue
cjyabraham f6a43f1
fix formatting of css
cjyabraham 9a79543
Update Sessionize Block to Use API Code and Enhance Date Formatting O…
cjyabraham 4e77a2f
added color pickers for the color overrides
cjyabraham 621fcb8
made meta values consistent labelled
cjyabraham 14fa8f8
fixes date format
cjyabraham 4a45da3
Fix date format in sessionize speakers view to use hyphens instead of…
cjyabraham 4dca1bf
fix date format
cjyabraham 6e350b7
Remove y/m/d option for dates
cjyabraham 86bdbff
fix issues with modal on mobile
cjyabraham 6a1bffd
Update modal dimensions to use dynamic viewport height (dvh) for bett…
cjyabraham 4f62622
remove outdated helper
cjyabraham 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
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
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,21 @@ | ||
| # This file is for unifying the coding style for different editors and IDEs | ||
| # editorconfig.org | ||
|
|
||
| # WordPress Coding Standards | ||
| # https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
|
||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| indent_style = tab | ||
|
|
||
| [*.yml] | ||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| [*.md] | ||
| trim_trailing_whitespace = false |
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,27 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
|
|
||
| # Coverage directory used by tools like istanbul | ||
| coverage | ||
|
|
||
| # Compiled binary addons (https://nodejs.org/api/addons.html) | ||
| build/Release | ||
|
|
||
| # Dependency directories | ||
| node_modules/ | ||
|
|
||
| # Optional npm cache directory | ||
| .npm | ||
|
|
||
| # Optional eslint cache | ||
| .eslintcache | ||
|
|
||
| # Output of 'npm pack' | ||
| *.tgz | ||
|
|
||
| # dotenv environment variables file | ||
| .env |
117 changes: 117 additions & 0 deletions
117
web/wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/block.json
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,117 @@ | ||
| { | ||
| "$schema": "https://schemas.wp.org/trunk/block.json", | ||
| "apiVersion": 3, | ||
| "name": "custom/sessionize-schedule", | ||
| "version": "0.1.0", | ||
| "title": "Sessionize Schedule", | ||
| "category": "widgets", | ||
| "icon": "calendar-alt", | ||
| "description": "An interactive, dynamic schedule block powered by Sessionize.", | ||
| "textdomain": "sessionize-blocks", | ||
| "attributes": { | ||
| "apiCode": { | ||
| "type": "string", | ||
| "default": "pc6leesj" | ||
| }, | ||
| "publicSlug": { | ||
| "type": "string", | ||
| "default": "" | ||
| }, | ||
| "primaryFilterTitle": { | ||
| "type": "string", | ||
| "default": "Track" | ||
| }, | ||
| "timeFormat": { | ||
| "type": "string", | ||
| "default": "12h" | ||
| }, | ||
| "dateFormat": { | ||
| "type": "string", | ||
| "default": "dmy" | ||
| }, | ||
| "enableGridView": { | ||
| "type": "boolean", | ||
| "default": true | ||
| }, | ||
| "enablePersonalAgenda": { | ||
| "type": "boolean", | ||
| "default": true | ||
| }, | ||
| "defaultShowAllDays": { | ||
| "type": "boolean", | ||
| "default": true | ||
| }, | ||
| "hideTopControls": { | ||
| "type": "boolean", | ||
| "default": false | ||
| }, | ||
| "speakerTitleQuestionId": { | ||
| "type": "string", | ||
| "default": "60108" | ||
| }, | ||
| "speakerCompanyQuestionId": { | ||
| "type": "string", | ||
| "default": "60107" | ||
| }, | ||
| "speakerCompanyOverrideQuestionId": { | ||
| "type": "string", | ||
| "default": "" | ||
| }, | ||
| "cardSpeakerOverrideQuestionId": { | ||
| "type": "string", | ||
| "default": "128763" | ||
| }, | ||
| "presentationSlidesQuestionId": { | ||
| "type": "string", | ||
| "default": "124661" | ||
| }, | ||
| "customLinkField1QuestionId": { | ||
| "type": "string", | ||
| "default": "126625" | ||
| }, | ||
| "customLinkField2QuestionId": { | ||
| "type": "string", | ||
| "default": "126626" | ||
| }, | ||
| "customLinkField3QuestionId": { | ||
| "type": "string", | ||
| "default": "126627" | ||
| }, | ||
| "customLinkField4QuestionId": { | ||
| "type": "string", | ||
| "default": "126628" | ||
| }, | ||
| "customLinkField5QuestionId": { | ||
| "type": "string", | ||
| "default": "" | ||
| }, | ||
| "hiddenFilterCategories": { | ||
| "type": "string", | ||
| "default": "Session Format" | ||
| }, | ||
| "hideSessionChipsForCategories": { | ||
| "type": "string", | ||
| "default": "" | ||
| }, | ||
| "hideAllChipsForPrimaryValues": { | ||
| "type": "string", | ||
| "default": "" | ||
| }, | ||
| "includeSpeakerTitleForPrimaryValues": { | ||
| "type": "string", | ||
| "default": "Keynote Sessions" | ||
| }, | ||
| "companyRollupNames": { | ||
| "type": "string", | ||
| "default": "Red Hat" | ||
| }, | ||
| "primaryColorOverrides": { | ||
| "type": "string", | ||
| "default": "{\"Cloud Native Experience\":\"#236C39\",\"Cloud Native Novice\":\"#CC47E1\",\"Emerging + Advanced\":\"#94E147\",\"Keynote Sessions\":\"#CC0000\",\"ML/AI + Data Processing + Storage\":\"#D27A32\",\"Networking + Edge + Telco\":\"#FFF824\",\"Observability\":\"#D676DB\",\"Operations + Performance\":\"#BAB7D2\",\"Platform Engineering\":\"#4756E1\",\"Registration\":\"#69BA26\",\"SDLC\":\"#624A87\",\"Security\":\"#47E1C2\",\"Service Mesh\":\"#3BE5F1\"}" | ||
| } | ||
| }, | ||
| "editorScript": "file:./build/index.js", | ||
| "viewScript": "file:./build/view.js", | ||
| "style": "file:./build/style-index.css", | ||
| "render": "file:./render.php" | ||
| } | ||
1 change: 1 addition & 0 deletions
1
web/wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/build/index.asset.php
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 @@ | ||
| <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element'), 'version' => 'd039618a33c2adea90b0'); |
1 change: 1 addition & 0 deletions
1
web/wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/build/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/build/style-index-rtl.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
web/wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/build/style-index.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
web/wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/build/view.asset.php
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 @@ | ||
| <?php return array('dependencies' => array(), 'version' => '8f3fac79787ec4987a3e'); |
1 change: 1 addition & 0 deletions
1
web/wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/build/view.js
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default
apiCodeis set topc6leesj, which will trigger external Sessionize fetches by default and may surface unrelated content if someone inserts the block without configuring it. Consider defaultingapiCodeto an empty string and requiring explicit configuration to avoid unintended external dependencies/requests.