Skip to content

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

Add creation and update time to sidebar together

Tianzhou Chen1caef8fcc76b
diff --git a/frontend/src/miragejs/factories/pipeline.js b/frontend/src/miragejs/factories/pipeline.js
index 6f97d9dbf6..5c5022d941 100644
--- a/frontend/src/miragejs/factories/pipeline.js
+++ b/frontend/src/miragejs/factories/pipeline.js
@@ -7,7 +7,7 @@ export default {
return faker.fake("{{lorem.sentence}}");
},
createdTs(i) {
- return Date.now() - i * 1800 * 1000;
+ return Date.now() - (i + 1) * 1800 * 1000;
},
lastUpdatedTs(i) {
return Date.now() - i * 3600 * 1000;
diff --git a/frontend/src/views/PipelineSidebar.vue b/frontend/src/views/PipelineSidebar.vue
index 6dd5fee9a9..032c99d2bd 100644
--- a/frontend/src/views/PipelineSidebar.vue
+++ b/frontend/src/views/PipelineSidebar.vue
@@ -52,24 +52,16 @@
</svg>
<span class="text-gray-900 text-sm font-medium">4 comments</span>
</div>
- <div class="flex 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"
+ <div>
+ <h2 class="text-sm font-medium text-gray-500">Update Time</h2>
+ <span class="text-gray-900 text-sm font-medium">
+ {{ moment(pipeline.attributes.lastUpdatedTs).format("LLL") }}</span
>
- <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"
- >Created on
- {{ moment(pipeline.attributes.createdTs).format("LL") }}</span
+ </div>
+ <div>
+ <h2 class="text-sm font-medium text-gray-500">Creation Time</h2>
+ <span class="text-gray-900 text-sm font-medium">
+ {{ moment(pipeline.attributes.createdTs).format("LLL") }}</span
>
</div>
</div>