-
Notifications
You must be signed in to change notification settings - Fork 136
Worker insights #3087
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
Draft
Alex-Tideman
wants to merge
20
commits into
main
Choose a base branch
from
worker-insights
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Worker insights #3087
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b3f5e95
Testing out api
Alex-Tideman 6f1b4d2
Add worker-info component
Alex-Tideman 2b15a34
Add worker-info to Workers tab
Alex-Tideman e992c50
Add worker-table if new api fails
Alex-Tideman 1dfd237
Add workers list page
Alex-Tideman 1eadb99
Make filterable a prop
Alex-Tideman 96bddae
Merge branch 'main' into worker-insights
Alex-Tideman 567aa2d
Refactor workers page to designs
Alex-Tideman 48ef22a
New worker nav items
Alex-Tideman 89985d6
Dont use url params
Alex-Tideman 9e3f91f
Fix merge conflicts
Alex-Tideman 89675ee
Merge branch 'main' into worker-insights
laurakwhit 722bd81
Clean up types and remove Shutdown status
laurakwhit 213c0e3
Merge branch 'main' into worker-insights
laurakwhit 01bf37b
Merge branch 'main' into worker-insights
laurakwhit 618b9c3
Merge branch 'main' into worker-insights
laurakwhit 5fbbbc4
Merge branch 'main' into worker-insights
laurakwhit 004bf4d
Small fixes and improvements
laurakwhit cddca19
Add filtering to workers table
laurakwhit cb9bda3
Update no workers polling alert
laurakwhit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,4 +27,5 @@ go.work.sum | |
| .claude/settings.local.json | ||
| .claude/* | ||
| !.claude/skills/ | ||
| .sisyphus/* | ||
| .omc | ||
| .sisyphus/* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/lib/components/shared-search-attribute-filter/filter-bar.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| <script lang="ts"> | ||
| import type { Writable } from 'svelte/store'; | ||
|
|
||
| import Button from '$lib/holocene/button.svelte'; | ||
| import Icon from '$lib/holocene/icon/icon.svelte'; | ||
| import Tooltip from '$lib/holocene/tooltip.svelte'; | ||
| import type { SearchAttributeFilter } from '$lib/models/search-attribute-filters'; | ||
| import type { SearchAttributeOption } from '$lib/stores/search-attributes'; | ||
|
|
||
| import type { StatusAttribute } from './types.ts'; | ||
|
|
||
| import Filter from './filter.svelte'; | ||
| import ManualQuery from './manual-query.svelte'; | ||
|
|
||
| interface Props { | ||
| filters: Writable<SearchAttributeFilter[]>; | ||
| options: SearchAttributeOption[]; | ||
| id: string; | ||
| statusAttribute?: StatusAttribute; | ||
| onManualSearch?: (query: string) => void; | ||
| } | ||
|
|
||
| let { filters, options, id, statusAttribute, onManualSearch }: Props = | ||
| $props(); | ||
|
|
||
| let viewManualQuery = $state(false); | ||
| </script> | ||
|
|
||
| <div> | ||
| <div | ||
| class="flex w-full flex-wrap items-center justify-between gap-2 border border-subtle bg-primary p-1.5" | ||
| > | ||
| <div class="flex grow items-center justify-start gap-4 px-2"> | ||
| <Icon name="filter-lines" class="text-primary-text h-4 w-4 shrink-0" /> | ||
| <Filter {filters} {options} {id} {statusAttribute} /> | ||
| </div> | ||
| <div class="flex items-center gap-1"> | ||
| <Tooltip | ||
| text={viewManualQuery ? 'Hide raw query' : 'View raw query'} | ||
| left | ||
| > | ||
| <Button | ||
| variant="ghost" | ||
| size="xs" | ||
| leadingIcon="json" | ||
| active={viewManualQuery} | ||
| data-testid="toggle-manual-query" | ||
| on:click={() => (viewManualQuery = !viewManualQuery)} | ||
| /> | ||
| </Tooltip> | ||
| </div> | ||
| </div> | ||
| {#if viewManualQuery} | ||
| <ManualQuery {filters} {id} onSearch={onManualSearch} /> | ||
| {/if} | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.