@@ -8,9 +8,9 @@ const props = defineProps<{
88 item: DelphiIssueResult
99}>()
1010
11- type Tab = ' Summary ' | ' Thread' | ' Files'
12- const tabs: readonly Tab [] = [' Summary ' , ' Thread' , ' Files' ]
13- const currentTab = ref <Tab >(' Summary ' )
11+ type Tab = ' Thread' | ' Files'
12+ const tabs: readonly Tab [] = [' Thread' , ' Files' ]
13+ const currentTab = ref <Tab >(' Thread ' )
1414
1515const severityColor = computed (() => {
1616 switch (props .item .report .severity ) {
@@ -26,25 +26,14 @@ const severityColor = computed(() => {
2626 }
2727})
2828
29- const statusColor = computed (() => {
30- switch (props .item .issue .status ) {
31- case ' pending' :
32- return ' text-orange bg-orange/10'
33- case ' approved' :
34- return ' text-green bg-green/10'
35- case ' rejected' :
36- return ' text-red bg-red/10'
37- }
38- })
39-
4029const createdAt = computed (() => new Date (props .item .report .created ).toLocaleDateString ())
4130 </script >
4231
4332<template >
4433 <div
4534 class =" overflow-hidden rounded-2xl border-[1px] border-solid border-surface-l4 bg-surface-l3"
4635 >
47- <div class =" flex flex-col gap-4 bg-surface-l3 p-4" >
36+ <div class =" flex flex-col gap-4 bg-surface-l3 p-4 pb-0 " >
4837 <div class =" flex items-center justify-between" >
4938 <div class =" flex items-center gap-4" >
5039 <Avatar
@@ -118,36 +107,26 @@ const createdAt = computed(() => new Date(props.item.report.created).toLocaleDat
118107 </div >
119108 </div >
120109
121- <hr class =" border -surface-l5" />
110+ <div class =" h-[1px] w-full bg -surface-l5" />
122111
123- <!-- todo -->
124- <div class =" flex items-center gap-3" >
125- <button
112+ <div class =" flex items-center" >
113+ <div
126114 v-for =" tab in tabs"
127115 :key =" tab"
128- class =" border-b-2 px-4 py -2 text-base font-semibold transition-colors"
116+ class =" cursor-pointer border-2 border-solid border-transparent px-4 pb-3 pt -2 text-base font-semibold transition-colors"
129117 :class =" {
130- 'border-white text-white ': currentTab === tab,
131- 'border-transparent text-secondary': currentTab !== tab,
118+ 'border-b-contrast text-contrast ': currentTab === tab,
119+ 'border-b- transparent text-secondary': currentTab !== tab,
132120 }"
133121 @click =" currentTab = tab"
134122 >
135123 {{ tab }}
136- </button >
124+ </div >
137125 </div >
138126 </div >
139127
140128 <div class =" min-h-[200px] border-t border-surface-l3 bg-surface-l2 p-4" >
141- <div v-if =" currentTab === 'Summary'" class =" flex min-h-[200px] items-center justify-center" >
142- <div class =" text-center text-secondary" >
143- <p class =" mt-1 text-sm" >TBD</p >
144- </div >
145- </div >
146-
147- <div
148- v-else-if =" currentTab === 'Thread'"
149- class =" flex min-h-[200px] items-center justify-center"
150- >
129+ <div v-if =" currentTab === 'Thread'" class =" flex min-h-[200px] items-center justify-center" >
151130 <div class =" text-center text-secondary" >
152131 <p class =" mt-1 text-sm" >TBD</p >
153132 </div >
0 commit comments