From 84d8f52aa872349e25f3f0372e1db1284e099c78 Mon Sep 17 00:00:00 2001 From: Will Sheldon <114631109+wssheldon@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:14:41 -0800 Subject: [PATCH] Addressing many of the comments from kevgliss --- .../src/case/CaseAttributesDrawer.vue | 27 +---- .../src/case/CaseResolutionSearchPopover.vue | 32 +----- .../src/case/CaseSignalInstanceTab.vue | 8 +- .../dispatch/src/case/CaseTimelineTabOld.vue | 101 ----------------- .../static/dispatch/src/case/EditSheet.vue | 6 +- .../static/dispatch/src/case/Page.vue | 6 +- .../static/dispatch/src/case/PageHeader.vue | 1 + .../static/dispatch/src/case/TimelineTab.vue | 26 +---- .../priority/CasePrioritySearchPopover.vue | 8 +- .../severity/CaseSeveritySearchPopover.vue | 8 +- .../src/case/type/CaseTypeSearchPopover.vue | 8 +- .../src/components/EscalateButton.vue | 21 ---- .../dispatch/src/components/FancyMenu.vue | 17 +-- .../dispatch/src/components/HoverCard.vue | 69 ------------ .../dispatch/src/components/SearchPopover.vue | 19 +--- .../static/dispatch/src/components/Tiptap.vue | 104 ------------------ .../participant/ParticipantAvatarGroup.vue | 19 +--- .../participant/ParticipantSearchPopover.vue | 17 +-- .../src/project/ProjectSearchPopover.vue | 8 +- .../static/dispatch/src/styles/index.scss | 49 ++++++++- 20 files changed, 95 insertions(+), 459 deletions(-) delete mode 100644 src/dispatch/static/dispatch/src/case/CaseTimelineTabOld.vue delete mode 100644 src/dispatch/static/dispatch/src/components/EscalateButton.vue delete mode 100644 src/dispatch/static/dispatch/src/components/HoverCard.vue delete mode 100644 src/dispatch/static/dispatch/src/components/Tiptap.vue diff --git a/src/dispatch/static/dispatch/src/case/CaseAttributesDrawer.vue b/src/dispatch/static/dispatch/src/case/CaseAttributesDrawer.vue index a80184f4f65e..432166cdb047 100644 --- a/src/dispatch/static/dispatch/src/case/CaseAttributesDrawer.vue +++ b/src/dispatch/static/dispatch/src/case/CaseAttributesDrawer.vue @@ -188,7 +188,7 @@ watchEffect(() => { - { - diff --git a/src/dispatch/static/dispatch/src/case/CaseResolutionSearchPopover.vue b/src/dispatch/static/dispatch/src/case/CaseResolutionSearchPopover.vue index 0026b3138678..5d4e49e527c4 100644 --- a/src/dispatch/static/dispatch/src/case/CaseResolutionSearchPopover.vue +++ b/src/dispatch/static/dispatch/src/case/CaseResolutionSearchPopover.vue @@ -29,42 +29,18 @@ const selectCaseResolution = async (caseResolutionName: string) => { - diff --git a/src/dispatch/static/dispatch/src/case/CaseSignalInstanceTab.vue b/src/dispatch/static/dispatch/src/case/CaseSignalInstanceTab.vue index cd8f5e9fe79b..02f30efe1526 100644 --- a/src/dispatch/static/dispatch/src/case/CaseSignalInstanceTab.vue +++ b/src/dispatch/static/dispatch/src/case/CaseSignalInstanceTab.vue @@ -10,7 +10,7 @@ {{ item.signal.name }} - + ยท {{ formatRelativeDate(item.created_at) }} @@ -25,7 +25,7 @@ - + @@ -41,7 +41,6 @@ import { useRoute, useRouter } from "vue-router" import { formatRelativeDate } from "@/filters" import RawSignalViewer from "@/signal/NewRawSignalViewer.vue" -import HoverCard from "@/components/HoverCard.vue" // Define props const props = withDefaults( @@ -108,7 +107,8 @@ watch( ) - diff --git a/src/dispatch/static/dispatch/src/case/priority/CasePrioritySearchPopover.vue b/src/dispatch/static/dispatch/src/case/priority/CasePrioritySearchPopover.vue index 65a7e51063a9..6e87ac23f9a1 100644 --- a/src/dispatch/static/dispatch/src/case/priority/CasePrioritySearchPopover.vue +++ b/src/dispatch/static/dispatch/src/case/priority/CasePrioritySearchPopover.vue @@ -52,13 +52,11 @@ const selectCasePriority = async (casePriorityName: string) => { :hotkeys="[]" > - diff --git a/src/dispatch/static/dispatch/src/case/severity/CaseSeveritySearchPopover.vue b/src/dispatch/static/dispatch/src/case/severity/CaseSeveritySearchPopover.vue index 545d6a224e40..3b5c5167698e 100644 --- a/src/dispatch/static/dispatch/src/case/severity/CaseSeveritySearchPopover.vue +++ b/src/dispatch/static/dispatch/src/case/severity/CaseSeveritySearchPopover.vue @@ -52,13 +52,11 @@ const selectCaseSeverity = async (caseSeverityName: string) => { :hotkeys="[]" > - diff --git a/src/dispatch/static/dispatch/src/case/type/CaseTypeSearchPopover.vue b/src/dispatch/static/dispatch/src/case/type/CaseTypeSearchPopover.vue index d3b0cba78a9b..ac6c2f4ab491 100644 --- a/src/dispatch/static/dispatch/src/case/type/CaseTypeSearchPopover.vue +++ b/src/dispatch/static/dispatch/src/case/type/CaseTypeSearchPopover.vue @@ -52,13 +52,11 @@ const selectCaseType = async (caseTypeName: string) => { :hotkeys="[]" > - diff --git a/src/dispatch/static/dispatch/src/components/EscalateButton.vue b/src/dispatch/static/dispatch/src/components/EscalateButton.vue deleted file mode 100644 index 6dd8a7f2bd7c..000000000000 --- a/src/dispatch/static/dispatch/src/components/EscalateButton.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - - diff --git a/src/dispatch/static/dispatch/src/components/FancyMenu.vue b/src/dispatch/static/dispatch/src/components/FancyMenu.vue index 53c576f91013..79038406894d 100644 --- a/src/dispatch/static/dispatch/src/components/FancyMenu.vue +++ b/src/dispatch/static/dispatch/src/components/FancyMenu.vue @@ -24,7 +24,7 @@ rounded="lg" active-class="ma-4" > - {{ option }} + {{ option }} @@ -48,17 +48,6 @@ const selectOption = (option: string) => { } - diff --git a/src/dispatch/static/dispatch/src/components/HoverCard.vue b/src/dispatch/static/dispatch/src/components/HoverCard.vue deleted file mode 100644 index 933ae9454f7f..000000000000 --- a/src/dispatch/static/dispatch/src/components/HoverCard.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - diff --git a/src/dispatch/static/dispatch/src/components/SearchPopover.vue b/src/dispatch/static/dispatch/src/components/SearchPopover.vue index 67cbf8e9c075..e30f67f2f0ad 100644 --- a/src/dispatch/static/dispatch/src/components/SearchPopover.vue +++ b/src/dispatch/static/dispatch/src/components/SearchPopover.vue @@ -74,7 +74,7 @@ const toggleMenu = () => { v-bind="menu" :ripple="false" > - + {{ selectedItem }} @@ -114,7 +114,7 @@ const toggleMenu = () => { class="ml-1 mr-1" active-class="ma-4" > - + @@ -125,19 +125,8 @@ const toggleMenu = () => { - diff --git a/src/dispatch/static/dispatch/src/participant/ParticipantAvatarGroup.vue b/src/dispatch/static/dispatch/src/participant/ParticipantAvatarGroup.vue index a2c7cdf01ad3..2d01332ec786 100644 --- a/src/dispatch/static/dispatch/src/participant/ParticipantAvatarGroup.vue +++ b/src/dispatch/static/dispatch/src/participant/ParticipantAvatarGroup.vue @@ -141,7 +141,7 @@ const toggleMenu = () => { /> - + {{ participant.individual.name }} @@ -151,7 +151,9 @@ const toggleMenu = () => { - diff --git a/src/dispatch/static/dispatch/src/participant/ParticipantSearchPopover.vue b/src/dispatch/static/dispatch/src/participant/ParticipantSearchPopover.vue index b9154ddd77ec..9e9d215d6c46 100644 --- a/src/dispatch/static/dispatch/src/participant/ParticipantSearchPopover.vue +++ b/src/dispatch/static/dispatch/src/participant/ParticipantSearchPopover.vue @@ -232,7 +232,7 @@ const toggleMenu = () => { > - {{ participant }} + {{ participant }} - diff --git a/src/dispatch/static/dispatch/src/styles/index.scss b/src/dispatch/static/dispatch/src/styles/index.scss index 39de3e324c24..2cf83b2a8758 100644 --- a/src/dispatch/static/dispatch/src/styles/index.scss +++ b/src/dispatch/static/dispatch/src/styles/index.scss @@ -1,7 +1,52 @@ .v-data-table { - font-size: 0.875rem; + font-size: 0.875rem; } .v-card--variant-outlined { - border-color: rgb(210, 210, 210); + border-color: rgb(210, 210, 210); +} + +.dispatch-side-card { + backdrop-filter: blur(12px) saturate(190%) contrast(50%) brightness(130%) !important; + border: 0.5px solid rgb(216, 216, 216) !important; + border-radius: 8px !important; + box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px !important; + color: rgb(60, 65, 73) !important; + opacity: 2 !important; +} + +.dispatch-text-paragraph { + font-size: 0.75rem !important; +} + +.dispatch-text-subtitle { + font-size: 0.8125rem !important; + font-weight: 500 !important; + color: rgb(60, 65, 73) !important; +} + +.dispatch-text-title { + font-size: 13px !important; +} + +.dispatch-button { + text-transform: none !important; + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + margin: 0px !important; + font-weight: 500px !important; + line-height: normal !important; + transition-property: border, background-color, color, opacity !important; + transition-duration: 0.15s !important; + user-select: none !important; + box-shadow: rgba(0, 0, 0, 0.09) 0px 1px 4px !important; + background-color: rgb(255, 255, 255) !important; + border: 1px solid rgb(223, 225, 228) !important; + border-radius: 4px !important; + color: rgb(60, 65, 73) !important; + min-width: 28px !important; + height: 28px !important; + padding: 0px 14px !important; + font-size: 0.75rem !important; }