Skip to content

Conversation

@emmadesilva
Copy link
Member

Targets v2.x via #1568

I've complicated things. This attempts to simplify the dropdown data generation by moving the responsibilities. If we call NavItem::dropdown we should have already found the data to use. If the user calls it themselves they have the responsibility (and expectation) that the data they manually enter is used. It's not the responsibility of the data model to perform such extensive dynamic data generation.

@emmadesilva emmadesilva force-pushed the simplify-dropdown-data-handling branch from 34f81bb to e8c0eb7 Compare February 20, 2024 18:24
@codecov
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4bcfbeb) 100.00% compared to head (e2e0f2d) 99.97%.

Additional details and impacted files
@@                         Coverage Diff                         @@
##             improved-navigation-internals    #1577      +/-   ##
===================================================================
- Coverage                           100.00%   99.97%   -0.03%     
- Complexity                            1763     1766       +3     
===================================================================
  Files                                  184      184              
  Lines                                 4773     4780       +7     
===================================================================
+ Hits                                  4773     4779       +6     
- Misses                                   0        1       +1     

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

@emmadesilva emmadesilva force-pushed the simplify-dropdown-data-handling branch from fbfc152 to 36ba2a0 Compare February 20, 2024 18:41
This means that when creating navigation dropdown items directly, you no longer get the normalization
@emmadesilva emmadesilva force-pushed the simplify-dropdown-data-handling branch from 36ba2a0 to 2c389e4 Compare February 20, 2024 18:44
@emmadesilva emmadesilva force-pushed the simplify-dropdown-data-handling branch from 61d9918 to e2e0f2d Compare February 20, 2024 20:31
@emmadesilva emmadesilva marked this pull request as ready for review February 20, 2024 20:47
@emmadesilva emmadesilva merged commit ea3d13d into improved-navigation-internals Feb 20, 2024
@emmadesilva emmadesilva deleted the simplify-dropdown-data-handling branch February 20, 2024 20:47
@emmadesilva emmadesilva 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.

2 participants