Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Refactor 3 pipeline list in Home view

Tianzhou Chencbd056504bc8
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index f95bf4160b..a79ead5a8f 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -7,32 +7,32 @@
@select-index="selectFilter"
/>
</div>
- <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
- Attention
- </h3>
- <div class="overflow-x-auto">
- <div class="py-2 align-middle inline-block min-w-full">
- <PipelineTable :pipelineList="filteredList(state.attentionList)" />
+ <template
+ v-for="(item, index) in [
+ {
+ title: 'Attention',
+ list: state.attentionList,
+ },
+ {
+ title: 'Subscribed',
+ list: state.subscribeList,
+ },
+ {
+ title: 'Recently Closed',
+ list: state.closeList,
+ },
+ ]"
+ :key="index"
+ >
+ <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
+ {{ item.title }}
+ </h3>
+ <div class="overflow-x-auto">
+ <div class="py-2 align-middle inline-block min-w-full">
+ <PipelineTable :pipelineList="filteredList(item.list)" />
+ </div>
</div>
- </div>
-
- <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
- Subscribed
- </h3>
- <div class="overflow-x-auto">
- <div class="py-2 align-middle inline-block min-w-full">
- <PipelineTable :pipelineList="filteredList(state.subscribeList)" />
- </div>
- </div>
-
- <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
- Recently Closed
- </h3>
- <div class="overflow-x-auto">
- <div class="py-2 align-middle inline-block min-w-full">
- <PipelineTable :pipelineList="filteredList(state.closeList)" />
- </div>
- </div>
+ </template>
</div>
</template>