Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Adds dropdowns to breadcrumbs #1716

Merged

Conversation

mklanjsek
Copy link
Contributor

Where applicable, breadcrumbs will now contain dropdown controls, providing additional way to navigate directly from the breadcrumb bar.

Most notable changes:

  • Consolidated breadcrumb functionality inside a single go class,
  • Added logic to place dropdowns inside breadcrumbs for all object and custom resource types,
  • Added logic to create breadcrumbs only for top level components, we need it now for performance reasons,
  • Fixed inconsistencies in structuring breadcrumbs, mostly in cluster module,
  • Fixed naming issues that were preventing dropdown selection,
  • Added Selection property to dropdown that can be used to specify selected item,

Signed-off-by: Milan Klanjsek [email protected]

Which issue(s) this PR fixes

@mklanjsek mklanjsek requested a review from a team December 8, 2020 20:52
@mklanjsek mklanjsek force-pushed the breadcrumbs-with-dropdowns branch 3 times, most recently from 6992ade to 9c27ec9 Compare December 16, 2020 15:16
internal/describer/breadcrumb.go Outdated Show resolved Hide resolved
internal/describer/breadcrumb.go Outdated Show resolved Hide resolved
internal/describer/breadcrumb.go Outdated Show resolved Hide resolved
internal/describer/breadcrumb_test.go Outdated Show resolved Hide resolved
internal/describer/crd_section.go Outdated Show resolved Hide resolved
@GuessWhoSamFoo
Copy link
Contributor

Just jumped off a call with @mklanjsek , most of the review comments here are likely going to be irrelevant with suggested refactors.

Copy link
Contributor

@GuessWhoSamFoo GuessWhoSamFoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes - good work!

internal/api/breadcrumb.go Show resolved Hide resolved
internal/api/breadcrumb.go Outdated Show resolved Hide resolved
internal/api/breadcrumb.go Outdated Show resolved Hide resolved
internal/describer/object_test.go Show resolved Hide resolved
Signed-off-by: Milan Klanjsek <[email protected]>

Added changelog file

Signed-off-by: Milan Klanjsek <[email protected]>

Added dropdown overflow logic

Signed-off-by: Milan Klanjsek <[email protected]>

Illustrate using breadcrumbs from plugins, fix for component unmarshal issue
Added dropdown to list of docs generating components, get rid of console warning

Signed-off-by: Milan Klanjsek <[email protected]>

Switch to use module navigation data

Signed-off-by: Milan Klanjsek <[email protected]>

Removed old breadcrumbs code and RootPath logic

Signed-off-by: Milan Klanjsek <[email protected]>

Code review feedback

Signed-off-by: Milan Klanjsek <[email protected]>
@mklanjsek
Copy link
Contributor Author

@GuessWhoSamFoo PTAL, I made changes or commented on your points and squashed all commits.

Thanks for reviewing it so quickly!

@mklanjsek mklanjsek merged commit 7ec49ac into vmware-archive:master Jan 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

provide a breadcrumb navigation to other pages in a plugin
2 participants