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

WC Post Types, Blocks: Add support for private speakers & sessions #994

Merged
merged 3 commits into from
May 13, 2024

Conversation

ryelle
Copy link
Contributor

@ryelle ryelle commented Jul 31, 2023

Fixes #717 — This is a simpler approach to the issue described, where it's difficult to style the speakers & sessions without making them public. By enabling private sessions & speakers to be used in blocks, this lets organizers (who have permissions to see private content) view and edit the content, without showing sessions & speakers to site visitors, and without notifying the wporg profiles code.

The intention to only show private sessions and not all sessions is that all sessions are submitted as drafts, so this lets the organizer team update and privately publish the accepted talks, while leaving the rest alone.

Screenshots

Private speakers now show up in the sessions list table, with updated label.

Screenshot 2023-07-31 at 1 11 23 PM

Private sessions appear in the Speaker Sessions block, which can be used on speaker posts.

Screenshot 2023-07-31 at 1 13 53 PM

And the main use for this, private sessions will show up in the schedule. In the following screenshot, the "Friday keynote" is a privately published regular session (the rest are public custom sessions).

Screenshot 2023-07-31 at 1 07 18 PM

How to test the changes in this Pull Request:

  1. Add some sessions and speakers
  2. Publish them privately
  3. The should be visible on the frontend when logged in, but not when logged out
@ryelle ryelle self-assigned this Jul 31, 2023
@ryelle ryelle added [Component] Blocks All custom blocks (Speakers, CrowdCast, Live Schedule, etc) [Component] WC-Post-Types Organizers, Speakers, Sessions, Schedule, Sponsors, Volunteers labels Jul 31, 2023
@renintw renintw force-pushed the update/show-private-schedule branch from 32622d3 to 04e23f5 Compare May 13, 2024 17:02
Copy link
Contributor

@renintw renintw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and looks good.

@renintw renintw merged commit b67909d into production May 13, 2024
3 checks passed
@renintw renintw deleted the update/show-private-schedule branch May 13, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Blocks All custom blocks (Speakers, CrowdCast, Live Schedule, etc) [Component] WC-Post-Types Organizers, Speakers, Sessions, Schedule, Sponsors, Volunteers [Priority] Medium
2 participants