Skip to content

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

Add creation time to the detailed view

Tianzhou Chene93d33018f1b
diff --git a/frontend/src/miragejs/factories/pipeline.js b/frontend/src/miragejs/factories/pipeline.js
index eab7561569..4e77202030 100644
--- a/frontend/src/miragejs/factories/pipeline.js
+++ b/frontend/src/miragejs/factories/pipeline.js
@@ -4,15 +4,13 @@ import faker from "faker";
export default {
pipeline: Factory.extend({
name(i) {
- return faker.fake("{{lorem.sentence}}");
+ return faker.fake("{{lorem.sentences}}");
},
createdTs(i) {
- const scaleFactor = Math.random() * i;
- return Date.now() - scaleFactor * 3600 * 6 * 1000;
+ return Date.now() - i * 1800 * 1000;
},
lastUpdatedTs(i) {
- const scaleFactor = Math.random() * i;
- return Date.now() - scaleFactor * 3600 * 20 * 1000;
+ return Date.now() - i * 3600 * 1000;
},
status() {
return "RUNNING";
diff --git a/frontend/src/views/PipelineSidebar.vue b/frontend/src/views/PipelineSidebar.vue
index 3dc8853fd8..a8cbd5a004 100644
--- a/frontend/src/views/PipelineSidebar.vue
+++ b/frontend/src/views/PipelineSidebar.vue
@@ -54,60 +54,60 @@
>
</div>
</div>
- <div class="mt-6 border-t border-b border-gray-200 py-6 space-y-8">
+ <div class="mt-6 border-t border-b border-gray-200 py-6 space-y-4">
<div>
- <h2 class="text-sm font-medium text-gray-500">Assignees</h2>
+ <h2 class="text-sm font-medium text-gray-500">Assignee</h2>
<ul class="mt-3 space-y-3">
- <li class="flex justify-start">
- <a href="#" class="flex items-center space-x-3">
- <div class="flex-shrink-0">
- <img
- class="h-5 w-5 rounded-full"
- src="../assets/avatar.jpeg"
- alt=""
- />
- </div>
- <div class="text-sm font-medium text-gray-900">Eduardo Benz</div>
- </a>
+ <li class="flex justify-start items-center space-x-2">
+ <div class="flex-shrink-0">
+ <BBAvatar
+ :size="'small'"
+ :username="pipeline.attributes.assignee.name"
+ />
+ </div>
+ <div class="text-sm font-medium text-gray-900">
+ {{ pipeline.attributes.assignee.name }}
+ </div>
</li>
</ul>
</div>
<div>
- <h2 class="text-sm font-medium text-gray-500">Tags</h2>
- <ul class="mt-2 leading-8">
- <li class="inline">
- <a
- href="#"
- class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5"
- >
- <div
- class="absolute flex-shrink-0 flex items-center justify-center"
- >
- <span
- class="h-1.5 w-1.5 rounded-full bg-rose-500"
- aria-hidden="true"
- ></span>
- </div>
- <div class="ml-3.5 text-sm font-medium text-gray-900">Bug</div>
- </a>
+ <h2 class="text-sm font-medium text-gray-500">Creator</h2>
+ <ul class="mt-3 space-y-3">
+ <li class="flex justify-start items-center space-x-2">
+ <div class="flex-shrink-0">
+ <BBAvatar
+ :size="'small'"
+ :username="pipeline.attributes.creator.name"
+ />
+ </div>
+ <div class="text-sm font-medium text-gray-900">
+ {{ pipeline.attributes.creator.name }}
+ </div>
</li>
- <li class="inline">
- <a
- href="#"
- class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5"
+ </ul>
+ </div>
+ <div>
+ <h2 class="text-sm font-medium text-gray-500">Creation Time</h2>
+ <ul class="mt-3 space-y-3">
+ <li class="flex justify-start items-center space-x-2">
+ <!-- Heroicon name: solid/calendar -->
+ <svg
+ class="h-5 w-5 text-gray-400"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20"
+ fill="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ fill-rule="evenodd"
+ d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
+ clip-rule="evenodd"
+ />
+ </svg>
+ <span class="text-gray-900 text-sm font-medium">
+ {{ moment(pipeline.attributes.createdTs).format("LLL") }}</span
>
- <div
- class="absolute flex-shrink-0 flex items-center justify-center"
- >
- <span
- class="h-1.5 w-1.5 rounded-full bg-indigo-500"
- aria-hidden="true"
- ></span>
- </div>
- <div class="ml-3.5 text-sm font-medium text-gray-900">
- Accessibility
- </div>
- </a>
</li>
</ul>
</div>