π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: add missing published_at information
Ramesh Manedb117ea89d77
diff --git a/packages/nc-gui/components/smartsheet/topbar/ManagedAppModal.vue b/packages/nc-gui/components/smartsheet/topbar/ManagedAppModal.vueindex 4fe5e5f621..d8a5d73d9b 100644--- a/packages/nc-gui/components/smartsheet/topbar/ManagedAppModal.vue+++ b/packages/nc-gui/components/smartsheet/topbar/ManagedAppModal.vue@@ -142,14 +142,8 @@ const createNewDraft = async () => {const formatDate = (dateString: string) => {if (!dateString) return 'N/A'- const date = new Date(dateString)- return new Intl.DateTimeFormat('en-US', {- year: 'numeric',- month: 'short',- day: 'numeric',- hour: '2-digit',- minute: '2-digit',- }).format(date)++ return parseStringDateTime(dateString, 'MMM DD, YYYY, HH:mm A')}const openVersionDeploymentsModal = (version: any) => {@@ -342,13 +336,13 @@ const modalSize = computed(() => {<!-- Active --><div class="nc-stat-card">- <div class="nc-stat-value">{{ deploymentStats.statistics?.activeDeployments || 0 }}</div>+ <div class="nc-stat-value text-green-600">{{ deploymentStats.statistics?.activeDeployments || 0 }}</div><div class="nc-stat-label">Active</div></div><!-- Failed --><div class="nc-stat-card">- <div class="nc-stat-value">{{ deploymentStats.statistics?.failedDeployments || 0 }}</div>+ <div class="nc-stat-value text-red-600">{{ deploymentStats.statistics?.failedDeployments || 0 }}</div><div class="nc-stat-label">Failed</div></div>@@ -527,23 +521,19 @@ const modalSize = computed(() => {}.nc-stat-card {- @apply flex flex-col gap-1 items-center justify-center border-r-1 border-nc-border-gray-light last:border-r-0 p-4;+ @apply flex flex-col gap-1 items-center justify-center border-r-1 border-nc-border-gray-medium last:border-r-0 p-4 text-nc-content-gray-subtle;}.nc-stat-icon-wrapper {@apply w-10 h-10 rounded-lg flex items-center justify-center mb-3;}-.nc-stat-content {- @apply space-y-1;-}-.nc-stat-value {@apply text-subHeading1 font-normal;}.nc-stat-label {- @apply text-captionSm text-nc-content-gray-muted uppercase;+ @apply text-tiny text-nc-content-gray-muted uppercase;}.nc-version-list-wrapper {diff --git a/packages/nc-gui/components/smartsheet/topbar/ManagedAppStatus/index.vue b/packages/nc-gui/components/smartsheet/topbar/ManagedAppStatus/index.vueindex 1c0a382ecd..1941b6987a 100644--- a/packages/nc-gui/components/smartsheet/topbar/ManagedAppStatus/index.vue+++ b/packages/nc-gui/components/smartsheet/topbar/ManagedAppStatus/index.vue@@ -42,12 +42,6 @@ watch(},{ immediate: true },)--watchEffect(() => {- console.log('managed App', managedApp.value)- console.log('currentVersion', currentVersion.value)- console.log('liveVersion', liveVersion.value)-})</script><template>@@ -193,7 +187,7 @@ watchEffect(() => {<template v-if="managedAppVersionsInfo.current?.published_at" #subtext><span class="text-green-600">- Published {{ parseStringDateTime(managedAppVersionsInfo.current?.published_at, undefined, true, 'MMM DD, YYYY') }}+ Published {{ parseStringDateTime(managedAppVersionsInfo.current?.published_at, 'MMM DD, YYYY, HH:mm A') }}</span></template></SmartsheetTopbarManagedAppStatusMenuItem>diff --git a/packages/nocodb-sdk/src/lib/dateTimeHelper.ts b/packages/nocodb-sdk/src/lib/dateTimeHelper.tsindex 1fa0723bfb..0b958c12ed 100644--- a/packages/nocodb-sdk/src/lib/dateTimeHelper.ts+++ b/packages/nocodb-sdk/src/lib/dateTimeHelper.ts@@ -90,19 +90,16 @@ export function parseStringDate(v: string, dateFormat: string) {export function parseStringDateTime(v: string,dateTimeFormat: string = `${dateFormats[0]} ${timeFormats[0]}`,- toLocal: boolean = true,- newDateTimeFormat?: string+ toLocal: boolean = true) {const dayjsObj = toLocal ? dayjs(v).local() : dayjs(v);if (dayjsObj.isValid()) {- v = dayjsObj.format(newDateTimeFormat || dateTimeFormat);+ v = dayjsObj.format(dateTimeFormat);} else {v = toLocal- ? dayjs(v, dateTimeFormat)- .local()- .format(newDateTimeFormat || dateTimeFormat)- : dayjs(v, dateTimeFormat).format(newDateTimeFormat || dateTimeFormat);+ ? dayjs(v, dateTimeFormat).local().format(dateTimeFormat)+ : dayjs(v, dateTimeFormat).format(dateTimeFormat);}return v;