-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Welcome Guide: Should be possible to link to a page via URL #8051
Comments
@noisysocks is NUX still something we want to update with features? |
No, |
Although, re-reading this, I can see that it might be a useful enhancement to have |
Yes, this feature stands regardless of the system chosen. Please reopen this for |
If I understand correctly, this issue can't be solved by doing conditional rendering based on URL parameters? /**
* WordPress dependencies
*/
import { Guide } from '@wordpress/components';
import { useState } from '@wordpress/element';
export default function SomeComponent() {
const url = new URL( window.location.href );
const isFirstTime = url.searchParams.get( 'tip' ) === 'editor-first-time';
const [ isOpen, setIsOpen ] = useState( isFirstTime );
return (
isFirstTime &&
isOpen && (
<Guide
finishButtonText={ 'Close' }
onFinish={ () => setIsOpen( false ) }
pages={ [ { content: <p>Hello World!</p> } ] }
/>
)
);
} |
I think the idea is to include a standard way to avoid:
🤷🏻 I think. |
This issue has had no activity for almost a year, and there are implementation examples in the comment. I don’t believe this is a problem that can be solved by Gutenberg, so I’m closing this issue. |
The idea of Tips is that they should provide a framework to allow creating dialog-based guidance for feature, regardless of being as short as one message, or as long as a multi-step wizard.
However, I've done some research and there seem to be no URL-based way to trigger the tips, as I had to clear by local application data to make them toggle again.
Suggestion:
?tip=editor-first-time
that triggers the specific flow as needed.Why?
This will open a massively beneficial new way to provide help across WordPress.
The text was updated successfully, but these errors were encountered: