Skip to content

feat(home): add a jump-to bar and a login button to the home page - #933

Merged
tkuhn merged 2 commits into
masterfrom
feat/home-page-ux
Nov 18, 2026
Merged

tkuhn merged 2 commits into
masterfrom
feat/home-page-ux

Conversation

@ashleycaselli

@ashleycaselli ashleycaselli commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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:

  • Next step as a button. "login to ORCID first" becomes a Log in with ORCID button followed by the reason. An incomplete profile gets a Complete your profile button the same way. The read-only notice is unchanged.
  • Jump-to bar. A row of links to the page's top-level sections (Latest Nanopublications, Recent events, Users, Spaces, Query, Publish). The first group of views is left out, since it sits directly under the bar. buildHomeSectionNav in nanodash.js builds 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.
  • Less clutter. Empty warning and notice paragraphs are hidden instead of leaving blank space. The home resource's title menu (the arrow next to the logo) is removed.
  • Refactor. The version-warning and getting-started logic moves out of the constructor into small methods. Version strings are now escaped, since the label renders HTML.

The logo is now the page's h1.

Testing

  • WicketApplicationTest, SiteModePagesTest, NavigationContextSiteModeTest and SitemapAndRobotsTest pass.
  • Checked locally with jetty:run at desktop width, both with a local profile and with NANODASH_ORCID_LOGIN_MODE=true (login button shown, version warning hidden). The jump-to links scroll to their sections.
  • Not checked at phone width. The links wrap with flexbox.

Follow-ups (view nanopubs, not code)

  • Move Basic Search and Popular Templates higher on the page.
  • Drop or shrink the alphabetical "Users (Human and Software Agents)" list and the "All Spaces" / "All Templates" tables on the home page.

🤖 Generated with Claude Code

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>
@ashleycaselli

Copy link
Copy Markdown
Member Author

This navigation bar allows users to navigate to the desired section quickly: Screenshot 2026-11-18 at 09 47 10

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>
@tkuhn
tkuhn merged commit a6a1dff into master Nov 18, 2026
11 of 12 checks passed
@tkuhn
tkuhn deleted the feat/home-page-ux branch November 18, 2026 15:44
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants