Skip to content

Saved Workflow Query Views#2931

Merged
Alex-Tideman merged 127 commits into
mainfrom
saved-queries
Oct 8, 2025
Merged

Saved Workflow Query Views#2931
Alex-Tideman merged 127 commits into
mainfrom
saved-queries

Conversation

@Alex-Tideman

@Alex-Tideman Alex-Tideman commented Sep 29, 2025

Copy link
Copy Markdown
Collaborator

Description & motivation 💭

This PR provides users with preset "system" queries and custom "user" queries that are saved to localStorage. User's can quickly navigate to queries they have previously run without needing to rebuild the queries from scratch, saving time and giving quicker results. Users can also copy/edit/discard the saved queries and also share them with other users. The Saved Query left nav can be expanded and collapsed based on the user preference. There is a limit of 20 saved queries at this time, not a system limitation but to prevent user frustration should they clear localStorage and wipe the saved queries. The refresh rate for workflow counts was significantly reduced from 5 seconds to 1 minute, which helps with the load on visibility store.

Also included is a more streamlines UI for applying filters. Each filter is it's own dropdown menu that makes it easier to edit on the fly.

Screenshots (if applicable) 📸

Screenshot 2025-09-29 at 2 45 33 PM Screenshot 2025-09-29 at 2 45 48 PM Screenshot 2025-09-29 at 2 46 02 PM Screenshot 2025-09-29 at 2 46 15 PM Screenshot 2025-09-29 at 2 46 27 PM Screenshot 2025-09-29 at 2 47 19 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

Comment thread src/lib/components/search-attribute-filter/search-attribute-menu.svelte Outdated
Comment thread src/lib/components/workflow/filter-bar/dropdown-filter-chip.svelte
Comment thread src/lib/components/workflow/filter-bar/search.svelte Outdated
Comment thread src/lib/components/workflow/workflows-summary-configurable-table.svelte Outdated
Comment thread src/lib/holocene/input/input.svelte Outdated
Comment thread src/lib/holocene/modal.svelte
Comment thread src/lib/holocene/tab-buttons/tab-buttons.svelte Outdated
Comment thread src/lib/pages/saved-query-views.svelte
type="number"
placeholder="Enter number..."
disabled={isNullFilter}
bind:value={localFilter.value}

@laurakwhit laurakwhit Oct 7, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should this have a min value? And do we want to allow decimals as well?

Suggested change
bind:value={localFilter.value}
bind:value={localFilter.value}
min={0}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Here's the docs from https://docs.temporal.io/search-attribute

Double is backed up by scaled_float Elasticsearch type with scale factor 10000 (4 decimal digits).
Datetime is backed up by date type with milliseconds precision in Elasticsearch 6 and date_nanos type with nanoseconds precision in Elasticsearch 7.
Int is 64-bit integer (long Elasticsearch type).

So I think we want to allow negatives and floats.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added steps="any" to support decimals

Screenshot 2025-10-08 at 8 08 13 AM Screenshot 2025-10-08 at 8 08 27 AM Screenshot 2025-10-08 at 8 14 02 AM

* Migrate to Svelte 5

* Update text color

* Account for NaN
* Migrate layout files to Svelte 5

* Update FeedbackButton
@Alex-Tideman
Alex-Tideman merged commit 3255f31 into main Oct 8, 2025
14 checks passed
@Alex-Tideman
Alex-Tideman deleted the saved-queries branch October 8, 2025 13:23
temporal-cicd Bot pushed a commit that referenced this pull request Oct 8, 2025
Auto-generated version bump from 2.40.1 to 2.41.0

Bump type: minor

Changes included:
- [`904ca347`](904ca34) fix(workflows): add GitHub App token to version bump PR creation (#2910)
- [`bd50889e`](bd50889) fix(workflows): fix changelog generation and PR body formatting in version bump (#2912)
- [`ce91ecf6`](ce91ecf) style: fix formatting in version-bump workflow (#2914)
- [`352e9f66`](352e9f6) ci(workflows): add path filter to trigger-downstream-updates (#2916)
- [`9e39fa81`](9e39fa8) Add test sentence in README.
- [`68f75a20`](68f75a2) Remove test sentence
- [`73c83894`](73c8389) Start Delay UI improvements (#2907)
- [`f7924cd0`](f7924cd) Fix issue with localActivity decoding with Java sdk (#2921)
- [`474091aa`](474091a) add switch icon (#2895)
- [`a6ec2611`](a6ec261) remove monaco in favor of codemirror (#2920)
- [`b0042390`](b004239) Add quotes around allowOrigins (#2923)
- [`b809fb51`](b809fb5) feat(holocene): add VerticalNav component (#2924)
- [`e72ca8ac`](e72ca8a) Try adding overflow css to codemirror (#2929)
- [`9c472385`](9c47238) add change event to dark mode in top nav (#2930)
- [`bb750c9c`](bb750c9) fix(security): remediate command injection vulnerabilities in GitHub Actions (#2932)
- [`e54f3dc9`](e54f3dc) Add try catch around decodeForSvelte on bad params (#2934)
- [`cfc4998c`](cfc4998) replace v5 with crypto.randomuuid (#2927)
- [`a47970e9`](a47970e) Fix NaN in Batch Operations results (#2938)
- [`6cb24dec`](6cb24de) Migrate layout files to Svelte 5 (#2937)
- [`f424f03d`](f424f03) Bump tar-fs from 3.0.9 to 3.1.1 (#2926)
- [`3255f31d`](3255f31) Saved Workflow Query Views (#2931)
Alex-Tideman added a commit that referenced this pull request Oct 8, 2025
Auto-generated version bump from 2.40.1 to 2.41.0

Bump type: minor

Changes included:
- [`904ca347`](904ca34) fix(workflows): add GitHub App token to version bump PR creation (#2910)
- [`bd50889e`](bd50889) fix(workflows): fix changelog generation and PR body formatting in version bump (#2912)
- [`ce91ecf6`](ce91ecf) style: fix formatting in version-bump workflow (#2914)
- [`352e9f66`](352e9f6) ci(workflows): add path filter to trigger-downstream-updates (#2916)
- [`9e39fa81`](9e39fa8) Add test sentence in README.
- [`68f75a20`](68f75a2) Remove test sentence
- [`73c83894`](73c8389) Start Delay UI improvements (#2907)
- [`f7924cd0`](f7924cd) Fix issue with localActivity decoding with Java sdk (#2921)
- [`474091aa`](474091a) add switch icon (#2895)
- [`a6ec2611`](a6ec261) remove monaco in favor of codemirror (#2920)
- [`b0042390`](b004239) Add quotes around allowOrigins (#2923)
- [`b809fb51`](b809fb5) feat(holocene): add VerticalNav component (#2924)
- [`e72ca8ac`](e72ca8a) Try adding overflow css to codemirror (#2929)
- [`9c472385`](9c47238) add change event to dark mode in top nav (#2930)
- [`bb750c9c`](bb750c9) fix(security): remediate command injection vulnerabilities in GitHub Actions (#2932)
- [`e54f3dc9`](e54f3dc) Add try catch around decodeForSvelte on bad params (#2934)
- [`cfc4998c`](cfc4998) replace v5 with crypto.randomuuid (#2927)
- [`a47970e9`](a47970e) Fix NaN in Batch Operations results (#2938)
- [`6cb24dec`](6cb24de) Migrate layout files to Svelte 5 (#2937)
- [`f424f03d`](f424f03) Bump tar-fs from 3.0.9 to 3.1.1 (#2926)
- [`3255f31d`](3255f31) Saved Workflow Query Views (#2931)

Co-authored-by: Alex-Tideman <[email protected]>
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.

4 participants