Skip to content

Add better path matching for active links#11

Merged
stevekinney merged 1 commit intomainfrom
path-matching
Jul 14, 2021
Merged

Add better path matching for active links#11
stevekinney merged 1 commit intomainfrom
path-matching

Conversation

@stevekinney
Copy link
Copy Markdown
Contributor

What was changed

Adds a pathMatches utility function for the NavigationLink component that works when the current path is a subdirectory—for lack of a better word—of the NavigationLink.

Why?

Previous to this change, the Workflows icon would no longer be highlighted if you navigated from /workflows to /workflows/:workflow_id/:run_id or some variation on that that. This addresses that.

Copy link
Copy Markdown
Contributor

@softwarecurator softwarecurator left a comment

Choose a reason for hiding this comment

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

perfecto

@stevekinney stevekinney merged commit 578e99d into main Jul 14, 2021
@stevekinney stevekinney deleted the path-matching branch July 14, 2021 19:10
@@ -0,0 +1,13 @@
export const pathMatches = (first: string, second: string): boolean => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we also clear out query strings?

hferentschik pushed a commit to hferentschik/temporal-ui that referenced this pull request Aug 13, 2025
Revert "[WFENG-2551] go straight to vault for SSO (temporalio#5)"
hferentschik pushed a commit to hferentschik/temporal-ui that referenced this pull request Aug 13, 2025
* Revert "Merge pull request temporalio#11 from DataDog/revert-5-bg/skip-click"

This reverts commit ca8fda6, reversing
changes made to 8fce4c8.

* use local storage

* use ttl for state

* don't minify

* use current location for state redirect

* move redirect to layout root

* don't minify anymore

* feedback skip instead of comment tests and clarify comments
Alex-Tideman added a commit that referenced this pull request Apr 2, 2026
Implement Tier 1 detections from existing data (#9, #11, #13, #15, #19,
#23, #35) and Tier 2 detections from event history scanning (#8, #12,
#26, #27, #28, #29, #30). Adds detectEventHistoryErrors with single-pass
scanning and updates getApplicableCommonErrors to accept optional event
history. All 35 error definitions now have active detection logic.
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