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

Adding language metabox to the meeting post type #1139

Merged
merged 5 commits into from
Dec 5, 2022

Conversation

hlashbrooke
Copy link
Collaborator

This PR adds the language metabox to the meeting post type - this completed the work done in #1009 and is necessary for the filtering in #1008 to be possible.

@hlashbrooke
Copy link
Collaborator Author

hlashbrooke commented Dec 1, 2022

I used the existing metabox files to add this new one - I hope that's the right place for it, but I'm happy to move things around if there's a better location.

@hlashbrooke
Copy link
Collaborator Author

New 'Meeting Language' metabox shows up in the sidebar:

Screenshot 2022-12-02 at 11 16 52 AM

The meta field registration and default value were already added in a previous PR, so this PR is simply rendering the metabox and saving the field when the post is updated.

@hlashbrooke hlashbrooke self-assigned this Dec 2, 2022
@hlashbrooke hlashbrooke added this to In Review in Website Development Dec 2, 2022
Co-authored-by: Adam Wood <adam.wood@automattic.com>
Co-authored-by: Adam Wood <adam.wood@automattic.com>
Co-authored-by: Adam Wood <adam.wood@automattic.com>
Copy link
Contributor

@adamwoodnz adamwoodnz left a comment

Choose a reason for hiding this comment

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

Works for me, just one a11y fix needed

@hlashbrooke
Copy link
Collaborator Author

I have added all the changes you suggested, including the a11y fix - that was a good catch! This is ready to go now.

Copy link
Contributor

@adamwoodnz adamwoodnz left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@adamwoodnz adamwoodnz moved this from In Review to Ready to ship in Website Development Dec 5, 2022
@adamwoodnz adamwoodnz merged commit a7cf3c8 into trunk Dec 5, 2022
Website Development automation moved this from Ready To Ship to Done Dec 5, 2022
@adamwoodnz adamwoodnz deleted the add-meeting-language-metabox branch December 5, 2022 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants