Skip to content

Fill out WIP TopNav, make it possible to preview with ?newnav - #3335

Draft
rosslovas wants to merge 3 commits into
mainfrom
ross/fill-out-and-preview-new-top-nav
Draft

Fill out WIP TopNav, make it possible to preview with ?newnav#3335
rosslovas wants to merge 3 commits into
mainfrom
ross/fill-out-and-preview-new-top-nav

Conversation

@rosslovas

@rosslovas rosslovas commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR fills out some of the functionality in the new TopNav component:

  • Some of the links are real now (still missing Learn and Changelog)
  • The theme switcher functions now (though it still has the wrong icons)

This PR also adds the ability for you to add ?newnav to any URL and it will temporarily replace the old header with the new work-in-progress TopNav. It will remember this for an hour before automatically reverting back to the old one, or you can add ?newnav=0 to go back to the old one at any point. This will let us play with it in production before it's fully ready to go.

@rosslovas
rosslovas force-pushed the ross/fill-out-and-preview-new-top-nav branch from 33241a9 to a1fed36 Compare August 11, 2026 05:07
## Octopus Command Line (CLI)

The Octopus CLI is a command line tool that builds on top of the [Octopus Deploy REST API](https://octopus.com/docs/octopus-rest-api). With the Octopus CLI, you can push your application packages for deployment as either zip or NuGet packages, and manage your environments, deployments, projects, and workers.
The Octopus CLI is a command line tool that builds on top of the [Octopus Deploy REST API](/docs/octopus-rest-api). With the Octopus CLI, you can push your application packages for deployment as either zip or NuGet packages, and manage your environments, deployments, projects, and workers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Drive-by fixup just so these links work on staging sites

@rosslovas
rosslovas force-pushed the ross/fill-out-and-preview-new-top-nav branch from a1fed36 to 493709c Compare August 11, 2026 05:12
Comment thread src/styles/main.css
box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
background-color: var(--header-bg);
min-height: 82px;
min-height: var(--header-height);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made this a variable because the new nav has a different height, and there are a few bits and pieces that were hardcoding the old 82px height.

import '../scripts/theme-switcher';
</script>

<style>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made these scoped styles just like I recently did with Button. I intended to do this all along, but I couldn't do it when I first added this because our caching strategy was broken and CSS with a content-hash that no longer exists could be pointed to by an old cached HTML page. That's all fixed now.

{ label: 'API', href: '#' },
{ label: 'CLI', href: '#' },
{ label: 'Docs', href: '/docs' },
{ label: 'Learn', href: '#' }, // TODO: Make this a real link

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure just yet what this is supposed to point to, I think the others are good though

{ label: 'Docs', href: '/docs' },
{ label: 'Learn', href: '#' }, // TODO: Make this a real link
{ label: 'API', href: '/docs/octopus-rest-api' },
{ label: 'CLI', href: '/docs/octopus-rest-api/cli' },

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've assumed CLI means the CLI that talks to an Octopus Server instance over HTTP, not the CLI of the Octopus Server binary itself, which is only applicable to self-hosted

data-theme-toggle-button
/>
<!-- TODO: Make this a real link -->
<Button label="Changelog" href="#" />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure what this is supposed to point to just yet, I couldn't actually find release notes for non-self-hosted releases available anywhere

Base automatically changed from ross/logged-in-top-nav to main August 11, 2026 05:20
@rosslovas
rosslovas force-pushed the ross/fill-out-and-preview-new-top-nav branch from 493709c to 8becccb Compare August 11, 2026 05:20
@rosslovas
rosslovas force-pushed the ross/fill-out-and-preview-new-top-nav branch from 8becccb to 36b5b53 Compare August 11, 2026 05:48
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