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
(content-manager): ask for confirmation of d&p tab change #19912
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Code looks fine on face value, there's an issue where if i click CleanShot.2024-03-27.at.10.21.06.mp4What is neat, is it works for i18n too, which i think is something we probably forgot about anyway. |
Hmmm weird I cant reproduce that. Are you just running 'yarn develop' from getstarted? |
yes, i ran |
Anything in the console that suggests why that happened? |
Okay so having a deeper look, when you first go on an entry we dont set a query param to You might actually want to pass a predicate function to |
Check the logs carefully particularly the query, you should see what im saying 😄 CleanShot.2024-03-27.at.12.09.33.mp4 |
593176c
to
9329a2a
Compare
Depends on changes to the design system tab components |
@joshuaellis this is working for me with our DS changes. The only thing is the blocker still needs to listen for changes to the query and have an I'll open a PR with the DS changes |
@@ -690,15 +690,19 @@ const isErrorMessageDescriptor = (object?: string | object): object is Translati | |||
/* ------------------------------------------------------------------------------------------------- | |||
* Blocker | |||
* -----------------------------------------------------------------------------------------------*/ | |||
const Blocker = () => { | |||
const Blocker = ({ onProceed = () => {} }) => { |
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.
for consistency, can we add an onCancel
and write an interface for the types with docs so they appear in the auto-generator and they're helpful?
Size Change: +1.12 kB (0%) Total Size: 2.38 MB
ℹ️ View Unchanged
|
What does it do?
location.search
Why is it needed?
So form data isn't lost without confirmation
How to test it?
Provide information about the environment and the path to verify the behaviour.
Related issue(s)/PR(s)
CONTENT-2298