-
Notifications
You must be signed in to change notification settings - Fork 107
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
Refactor Navigation
and Accordion
#117
Conversation
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.
Looks great, thank you very much for finishing this off! ⭐
Just one tip for PR hygiene: the changes to _validate_pages
are quite hard to review because the code was changed and it moved file. Where possible (tbh often it's not unless you know what you're doing in advance or are happy rewriting git history) it's nice to do these commits in a fixed order:
- Make all changes to
_validate_pages
- Then move it to a different file
The opposite order is also fine, but doing 1 then 2 then 1 again is not so good. The idea is that the reviewer should be able to see what are all the actual functional changes by looking at the diff between two commits that have the code in the same file rather than needing to compare between two different files.
Doesn't make any difference here since it's a pretty small function and I know what the changes are anyway, but just a general tip 🙁
vizro-core/changelog.d/20231017_212005_huong_li_nguyen_navigation.md
Outdated
Show resolved
Hide resolved
Before taking a look, can you add a little bit of background to the PR why the refactoring was necessary? What didn't work before, and what is better now? |
There was room for clean-up and improvement and we had the capacity to do so, so there wasn't a necessity in terms of having to fix something. The new code works as before, so functionally nothing has changed except for the two minor changes I've added to the changelog. It's just a nice to have :) Trying to remember everything - feel free to add @antonymilne :
|
Makes a lot of sense, will take into account in the future 👍 |
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.
LGTM! Left a few comments, mainly for my understanding. Forgive if there are silly questions that I should have understood!
vizro-core/changelog.d/20231017_212005_huong_li_nguyen_navigation.md
Outdated
Show resolved
Hide resolved
No worries ❤️ I'll let you resolve the open threads yourself if it's clear to you, otherwise let's discuss :) |
Description
Navigation
andAccordion
and update unit tests accordinglyUser relevant changes:
navigation.pages
if NoneScreenshot
Checklist
Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
(if applicable)Types of changes
Notice
I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":