-
-
Notifications
You must be signed in to change notification settings - Fork 80
Improved visibility indicator handling #1499
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
Conversation
ref https://linear.app/ghost/issue/PLG-373/open-visibility-tab-when-clicking-icon - Simplified the visibility toggle hook. - Added a test that we're working towards
WalkthroughThis pull request refactors and enhances the visibility handling logic within several card components. The custom hook Possibly related PRs
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
packages/koenig-lexical/test/e2e/content-visibility.test.jsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "react-app" to extend from. Please check that the name of the config is correct. The config "react-app" was referenced from the config file in "/packages/koenig-lexical/.eslintrc.cjs". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
ref https://linear.app/ghost/issue/PLG-373/open-visibility-tab-when-clicking-icon
Previously, clicking the visibility indicator icon left of the CTA card opened the settings panel on the design tab. This refactor ensures it correctly opens the visibility tab instead.
useVisibilitySettingsTogglehook intoKoenigBehaviourPluginTOGGLE_CARD_VISIBILITY_COMMANDto handle visibility indicator clicksKoenigCardWrapperby removing direct toggle logic and using command dispatchCallToActionCardandHtmlNodeComponentto use new visibility toggle approachuseVisibilitySettingsTogglehook file