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 main menu link for annual roadmap. #4332

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

jrobbins
Copy link
Collaborator

@jrobbins jrobbins commented Sep 4, 2024

This adds just one link to the main nav to show a query for shipping_year=2024 (or whatever the current year is). From there, the user can change the query in the search box.

Also, fix @state vs @property so that the typeahead value can be passed in from the page (which gets it from the URL).

@@ -261,6 +261,12 @@ export class ChromedashDrawer extends LitElement {
const myFeaturesMenu = this.renderMyFeaturesMenu();
const adminMenu = this.renderAdminMenu();

const year = new Date().getFullYear();
Copy link
Collaborator

@jcscottiii jcscottiii Sep 27, 2024

Choose a reason for hiding this comment

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

Just a heads-up for Jan 1: This will cause a lot of the playwright screenshot tests to break when the link changes from Shipping 2024 to Shipping 2025.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point. I'll follow up with a PR to elide that.

@jrobbins jrobbins merged commit fc41ec5 into main Sep 27, 2024
7 checks passed
@jrobbins jrobbins deleted the 20240904-add-nav-link-for-shipping-year branch September 27, 2024 17:49
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.

3 participants