This repository was archived by the owner on Sep 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 669
(refactor) signal triggers page with entity information #6025
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b00d1ec
baseline utility
6883f2c
first signal view refactored
f0d6390
put back label
b23757d
prettier
6e1d5c8
docstring
491d432
Merge branch 'main' into signals-page-2
whitdog47 5a0ad10
Merge branch 'main' into signals-page-2
whitdog47 8ab8d6f
Merge branch 'main' into signals-page-2
aliciamatsumoto 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
48 changes: 48 additions & 0 deletions
48
src/dispatch/static/dispatch/src/signal/InstanceEntityPopover.vue
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,48 @@ | ||
| <template> | ||
| <div> | ||
| <v-menu v-model="menu" origin="overlap"> | ||
| <template #activator="{ props }"> | ||
| <v-chip v-bind="props"> | ||
| {{ value.length }} <v-icon class="pl-2">mdi-cube-outline</v-icon> | ||
| </v-chip> | ||
| </template> | ||
| <v-card v-if="value.length > 0" max-width="600px" class="pb-4"> | ||
| <v-list-dark v-bind="props"> | ||
| <v-list-item> | ||
| <v-list-item-title>Entities</v-list-item-title> | ||
| <template #append> | ||
| <v-btn icon variant="text" @click="menu = false"> | ||
| <v-icon>mdi-close-circle</v-icon> | ||
| </v-btn> | ||
| </template> | ||
| </v-list-item> | ||
| <v-list-item v-for="entity in value" :key="`${entity.entity_type.name}-${entity.value}`"> | ||
| <h5>{{ entity.entity_type.name }}</h5> | ||
| {{ entity.value }} | ||
| </v-list-item> | ||
| </v-list-dark> | ||
| </v-card> | ||
| </v-menu> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script> | ||
| export default { | ||
| name: "InstanceEntityPopover", | ||
|
|
||
| data: () => ({ | ||
| menu: false, | ||
| }), | ||
|
|
||
| setup() {}, | ||
|
|
||
| props: { | ||
| value: { | ||
| type: Object, | ||
| default: function () { | ||
| return {} | ||
| }, | ||
| }, | ||
| }, | ||
| } | ||
| </script> |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.