Repository navigation
feat(home): add a jump-to bar and a login button to the home page - #933
Merged
Merged
Conversation
The home page opened with the logo and a single sentence, and its main tasks (search, publish) sat at the bottom of a long page. The header now offers a "Log in with ORCID" or "Complete your profile" button with the reason next to it, and a bar of links to the page's top-level sections, built from the section headings so it follows the configured views. Empty warnings and notices no longer leave blank space, and the home resource's title menu is gone from the logo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
The first group sits directly under the bar, so a link to it only repeated what is already in view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
🎉 This PR is included in version 5.23.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The home page opened with the logo and one sentence. The ORCID login was an inline link, and Search and Publish sat at the very bottom of a long page of tables. This PR reworks the header:
buildHomeSectionNavinnanodash.jsbuilds it from the section headings, so it follows the configured views and re-runs after Ajax loads. It stays hidden when there are fewer than two sections.The logo is now the page's
h1.Testing
WicketApplicationTest,SiteModePagesTest,NavigationContextSiteModeTestandSitemapAndRobotsTestpass.jetty:runat desktop width, both with a local profile and withNANODASH_ORCID_LOGIN_MODE=true(login button shown, version warning hidden). The jump-to links scroll to their sections.Follow-ups (view nanopubs, not code)
🤖 Generated with Claude Code