-
Notifications
You must be signed in to change notification settings - Fork 178
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
Add missing title dialog #4251
Add missing title dialog #4251
Conversation
Size Change: +750 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
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.
Would be great to add this to the storybook
@o-fernandez Can you help with the messaging here. I'm not sure if we can use 'research shows'. |
Right, I'd also eliminate the exclamation marks so it doesn't seem like shouting. How about this?
Also, @barklund, is it possible to just bring up an input field into the dialog/pop-up where the user could enter the title directly there? If so, that would be more streamlined and we could have.
In both of these, learn more would link to the guidelines as it currently does. |
Works for me!!!!!
I would like a design for that, but it could be done. Note that the overlay has white background, but our input fields have dark background - thus the need for a design.
That link to guidelines doesn't work outside of Google. I can't see the link - I just get a "You need access" page: This is the link I'm using: |
@samitron7, please check the updated design above in the PR description at the very top. Does it look acceptable? |
Codecov Report
@@ Coverage Diff @@
## main #4251 +/- ##
==========================================
+ Coverage 83.37% 83.52% +0.14%
==========================================
Files 845 853 +8
Lines 14937 14964 +27
==========================================
+ Hits 12454 12498 +44
+ Misses 2483 2466 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
I don't see any errors and the story publishes just fine for me. Maybe it has to do with permalinks settings, as my setup is set to default (id only) and the slug then for a new story without title defaults to the ID of the story. It sounds like you're trying to set an empty string as slug or similar? Also, what should happen in this case? |
I'm not seeing any issues publishing a story without a title (and slug) - even with permalink set to something involving the slug. |
For some reason, I'm also not seeing this anymore 🤷 |
Summary
This adds a "missing title" dialog that appears when trying to publish without a title.
This is what it looks like:
And this is how the flow works:
Relevant Technical Choices
To-do
User-facing changes
Testing Instructions
Fixes #4184