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

Add breadcrumbs to search results #2772

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zenoachtig
Copy link
Contributor

When the search displays many similarly named pages, the user has no idea which search result leads where on the site or which result they actually need.

CleanShot 2025-01-16 at 13 24 44@2x

By adding breadcrumbs, we make it easier to understand what content we're matching.

Screenshot 2025-01-23 at 17 56 51 Screenshot 2025-01-23 at 17 56 31 Screenshot 2025-01-23 at 17 56 57

Copy link

changeset-bot bot commented Jan 23, 2025

🦋 Changeset detected

Latest commit: e7b7cde

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

linear bot commented Jan 23, 2025

@@ -317,12 +320,15 @@ async function transformSectionsAndPage(args: {
})) ?? [],
);

const pageData = await fetchPageData({ pathname: [item.path] });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function correctly gets the page data when the page is in the same space as we're currently searching in, but doesn't work when we need to search across sections/variants. Any suggestions to make it work are welcome.

@zenoachtig zenoachtig requested a review from SamyPesse January 23, 2025 17:00
Copy link
Contributor

GitBook Preview
Latest commit: https://5a173dea.gitbook-open.pages.dev
PR: https://pr2772.gitbook-open.pages.dev

Copy link

argos-ci bot commented Jan 23, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 4 changed Jan 23, 2025, 5:07 PM

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