-
Notifications
You must be signed in to change notification settings - Fork 43
Updated Help Hub for ET. #3741
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
Updated Help Hub for ET. #3741
Conversation
…ak/ET-2376_Help_Hub
Replaced static resource sections setup with the dynamic `Section_Builder` for easier scalability and maintenance. Implemented new filters and descriptions to improve customizability and consistency in Help Hub content.
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
phpcs
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed
Tabs must be used to indent lines; spaces are not allowed
return _x('Help on setting up, customizing, and troubleshooting your tickets.', 'Help Hub resources description', 'event-tickets'); |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
Expected 1 spaces after opening parenthesis; 0 found
return _x('Help on setting up, customizing, and troubleshooting your tickets.', 'Help Hub resources description', 'event-tickets'); |
[phpcs] reported by reviewdog 🐶PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
Expected 1 spaces before closing parenthesis; 0 found
return _x('Help on setting up, customizing, and troubleshooting your tickets.', 'Help Hub resources description', 'event-tickets'); |
[phpcs] reported by reviewdog 🐶Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed
Tabs must be used to indent lines; spaces are not allowed
Replaced the generic Section_Builder with Link_Section_Builder and FAQ_Section_Builder for better modularity and maintainability. Updated functions to individually define sections, improving clarity and extensibility of the resource data. Addressed minor formatting inconsistencies in some Help Hub descriptions.
Streamlined Help Hub initialization by introducing `initialize()` to prevent redundant setup. Added customization hooks for header logo and Help Hub pages. Removed unused `Resource_Data_Mock.php` and updated tests to validate the changes.
Updated the filter name and parameter from "support_title" to "support_description" for consistency and accurate labeling. Adjusted associated comments and return descriptions to align with the changes.
- Correct text domain reference for "support description."
…ak/ET-2376_Help_Hub
- Implement `redirect_to_help_hub` to redirect users from the old Help page to the new Help Hub.
- Add new `et_icon` for Event Tickets logo. - Replace `tec_icon` with `et_icon` in Help Hub link.
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.
Need some tests for the changes.
…ta`. - **Update PHP docblocks**: Add missing @SInCE tags and improve parameter/return annotations. - **Introduce integration tests** for Help Hub templates and functionality. - **Add snapshot testing** for template rendering.
Co-authored-by: Rafsun Chowdhury <[email protected]>
🎫 Ticket
🗒️ Description
🎥 Artifacts
✔️ Checklist
npm run changelog
to add changelog file(s). More info herewpunit
orintegration
tests.wpunit
orintegration
tests.