-
Notifications
You must be signed in to change notification settings - Fork 1.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
5413 - [Notebook] Various visual issues with renaming sections/pages #5475
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5475 +/- ##
==========================================
- Coverage 53.34% 53.33% -0.01%
==========================================
Files 594 595 +1
Lines 22016 22018 +2
Branches 2051 2055 +4
==========================================
- Hits 11745 11744 -1
- Misses 9698 9700 +2
- Partials 573 574 +1
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
Hey @jvigliotta and @unlikelyzero, Please review |
@mariuszr great work! We're headsdown on a major release and will have this totally reviewed by the end of the week! In the meantime, would you mind adding coverage for some of this functionality so that it doesn't regress in the future? For the keystroke / key input commands, I think they'd best be suited as e2e tests. |
@mariuszr can you rebase now that we've merged 2.0.5 back into master? |
@unlikelyzero Merged with the master's source code. I will be able to take a look at the e2e in the next week. |
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.
Looking good! Requesting a couple of small changes.
…- requested changes
…- remove a magic number (ENTER)
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.
Hi @mariuszr ! Sorry for the delay. I've left a couple suggestions, but overall this is looking really good. The next step would be to cover these changes with some e2e tests. We've recently refactored our e2e framework and folder structure, and added a bunch of documentation. Please check it out and let us know if you have any questions or run into any issues while working on the e2e tests. We are happy to provide any guidance if needed as well. Thanks!
Hi @ozyx, I'll take a look at the e2e tests. |
@mariuszr This is fantastic, thanks so much! There's an additional regression issue that we found that in master that isn't yet addressed, and I'm hoping you might be able to add a fix to this PR for it. I've added the note to the original issue, but to recap here:
If you can't address this particular problem in this PR, let us know and we'll merge this in and file a separate issue. But if you can, that'd be even more appreciated. In either case, thanks so much for the contributions, effort and interest. |
Hi @charlesh88, Please note that the plugin header name also behaves with one click option to get the header editable. Providing the double click option to make the component value editable may cause inconsistency in that type of interaction. |
That is true, but there's an important difference: the main view header name is not really "selectable". The Notebook navigation is more akin to a list of files in a folder view; "selecting" a page or section primarily navigates to that location, in the same way that items in the tree navigate to their views when clicked. The problem we're solving for in the Notebook nav is to also allow a secondary rename action. |
…- Separate selectability and editability actions for `Section` and `Page` components
@charlesh88 I got your point. Thank you for the explanation. I have separated the selectability and editability actions for the |
Hi @unlikelyzero and @ozyx Can we create a new issue for creating the E2E test for the task? I will be able to provide it at a later time. |
Hi @mariuszr, Sure! Not a problem, but would you mind adding a couple test stubs so that we don't forget to add coverage here? You can just follow the same pattern established here. No need to implement the tests, just a couple Other than that, this PR is just pending a final review from @charlesh88 before we can merge. Thanks again for all your work on this! |
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.
Closes #5413
Describe your changes:
Enter
does confirm the rename and does not add a newline (no multiple line option)'Unnamed Section/Page'
Section
andPage
componentsEscape
option that returns the initial value after hittingEsc
All Submissions:
Author Checklist
Reviewer Checklist