Skip to content
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

[2.x] Extract back NavItem class for dropdowns #1601

Merged

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Mar 1, 2024

Adds back the dedicated class for grouped navigation items, but implemented better this time. This better separates concerns, and makes the data state of both classes clearer, and reduces the need for conditional returns and state dependent type logic. Targets #1568

@caendesilva caendesilva force-pushed the extract-back-navitem-dropdown-class branch from 0ef6e95 to 2ba269e Compare March 1, 2024 20:14
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.95%. Comparing base (0b4e924) to head (ff4e949).

Additional details and impacted files
@@                       Coverage Diff                        @@
##             improved-navigation-internals    #1601   +/-   ##
================================================================
  Coverage                            99.95%   99.95%           
- Complexity                            1775     1778    +3     
================================================================
  Files                                  183      184    +1     
  Lines                                 4801     4809    +8     
================================================================
+ Hits                                  4799     4807    +8     
  Misses                                   2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caendesilva caendesilva force-pushed the extract-back-navitem-dropdown-class branch from 81e16fb to 737734d Compare March 2, 2024 10:53
caendesilva and others added 2 commits March 2, 2024 12:09
Co-Authored-By: GPT 3.5 Turbo <openai-machine-user@hydephp.com>
@caendesilva caendesilva force-pushed the extract-back-navitem-dropdown-class branch from 02a2aac to 0132df1 Compare March 2, 2024 11:23
@caendesilva caendesilva force-pushed the extract-back-navitem-dropdown-class branch from 89665b1 to a888012 Compare March 2, 2024 11:29
This makes more sense as a method on the NavGroupItem class.
@caendesilva caendesilva force-pushed the extract-back-navitem-dropdown-class branch from 1bfc6b6 to 4ca2b69 Compare March 11, 2024 10:28
@caendesilva caendesilva force-pushed the extract-back-navitem-dropdown-class branch from fd59578 to e830cda Compare March 11, 2024 12:19
@caendesilva caendesilva marked this pull request as ready for review March 11, 2024 16:31
@caendesilva caendesilva merged commit 5de65be into improved-navigation-internals Mar 11, 2024
7 checks passed
@caendesilva caendesilva deleted the extract-back-navitem-dropdown-class branch March 11, 2024 16:59
@caendesilva caendesilva mentioned this pull request Jun 27, 2024
74 tasks
@caendesilva caendesilva added this to the v2 milestone Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant