diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2a9cbee49..e87e88275 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,16 @@
# Changelog
+## v1.0.0-92
+
+
+### π©Ή Fixes
+
+- Remove template build now ([f0fa496](https://github.com/undb-io/undb/commit/f0fa496))
+
+### β€οΈ Contributors
+
+- Nichenqin ([@nichenqin](http://github.com/nichenqin))
+
## v1.0.0-91
diff --git a/apps/backend/src/modules/template/template.module.ts b/apps/backend/src/modules/template/template.module.ts
index f16390717..f6c924269 100644
--- a/apps/backend/src/modules/template/template.module.ts
+++ b/apps/backend/src/modules/template/template.module.ts
@@ -1,12 +1,25 @@
import { singleton } from "@undb/di"
-import { baseTemplateSchema } from "@undb/template"
+import { None } from "@undb/domain"
+import { baseTemplateSchema, injectTemplateQueryRepository, type ITemplateQueryRepository } from "@undb/template"
import Elysia from "elysia"
@singleton()
export class TemplateModule {
+ constructor(
+ @injectTemplateQueryRepository()
+ private readonly templateRepo: ITemplateQueryRepository,
+ ) {}
route() {
- return new Elysia().get("/api/template/base/schema.json", () => {
- return baseTemplateSchema
- })
+ return new Elysia()
+ .get("/api/template/base/schema.json", () => {
+ return baseTemplateSchema
+ })
+ .get("/api/templates", async () => {
+ const templates = await this.templateRepo.find(None)
+
+ return {
+ templates,
+ }
+ })
}
}
diff --git a/apps/frontend/src/lib/components/blocks/base/create-base-button.svelte b/apps/frontend/src/lib/components/blocks/base/create-base-button.svelte
index bac5b7d93..3393020d3 100644
--- a/apps/frontend/src/lib/components/blocks/base/create-base-button.svelte
+++ b/apps/frontend/src/lib/components/blocks/base/create-base-button.svelte
@@ -1,9 +1,11 @@
{#if $hasPermission("base:create")}
-
+
+
{/if}
diff --git a/apps/frontend/src/lib/components/blocks/field-control/checkbox-control.svelte b/apps/frontend/src/lib/components/blocks/field-control/checkbox-control.svelte
index 380c9f1cc..e6f1e9b8b 100644
--- a/apps/frontend/src/lib/components/blocks/field-control/checkbox-control.svelte
+++ b/apps/frontend/src/lib/components/blocks/field-control/checkbox-control.svelte
@@ -5,4 +5,6 @@
export let value: boolean
-
+
+
+
diff --git a/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/button-cell.svelte b/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/button-cell.svelte
index bc907dfc5..8efd59902 100644
--- a/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/button-cell.svelte
+++ b/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/button-cell.svelte
@@ -17,6 +17,7 @@
export let field: ButtonField
export let recordId: string
export let record: RecordDO | undefined
+ export let readonly = false
const table = getTable()
const recordsStore = getRecordsStore()
@@ -93,7 +94,8 @@
(confirm = false)}>Cancel
- Continue
+ Continue
diff --git a/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/email-cell.svelte b/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/email-cell.svelte
index 7b0d12570..244eb9deb 100644
--- a/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/email-cell.svelte
+++ b/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/email-cell.svelte
@@ -52,7 +52,7 @@
}}
/>
{:else}
-
+
{#if value}
{value}
{/if}
diff --git a/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/rollup-cell.svelte b/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/rollup-cell.svelte
index 133f926a1..f07b599cf 100644
--- a/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/rollup-cell.svelte
+++ b/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/rollup-cell.svelte
@@ -22,7 +22,7 @@
{#each value as item}
{#if !!item}
{item}
@@ -54,7 +54,7 @@
{#each value as item}
{#if !!item}
{item}
diff --git a/apps/frontend/src/lib/components/blocks/grid-view/grid-view-data-table.svelte b/apps/frontend/src/lib/components/blocks/grid-view/grid-view-data-table.svelte
index fe419e593..2ae13a776 100644
--- a/apps/frontend/src/lib/components/blocks/grid-view/grid-view-data-table.svelte
+++ b/apps/frontend/src/lib/components/blocks/grid-view/grid-view-data-table.svelte
@@ -40,6 +40,7 @@
export let currentPage: Writable
export let isLoading = false
export let total: number
+ export let hidePagination = false
const t = getTable()
@@ -350,6 +351,7 @@
+ {#if !hidePagination}
@@ -378,6 +380,7 @@
{total} Rows
+
-
+ {/if}
diff --git a/apps/frontend/src/lib/components/blocks/kanban-view/kanban-card.svelte b/apps/frontend/src/lib/components/blocks/kanban-view/kanban-card.svelte
index a2aa470ef..f47ff2160 100644
--- a/apps/frontend/src/lib/components/blocks/kanban-view/kanban-card.svelte
+++ b/apps/frontend/src/lib/components/blocks/kanban-view/kanban-card.svelte
@@ -32,24 +32,27 @@
>
{#each fields as field, idx (field.id.value)}
-
-
-
-
-
-
- {field.name.value}
-
-
-
+ {@const value = values[field.id.value]}
+ {#if value !== null && value !== undefined}
+
+
+
+
+
+
+ {field.name.value}
+
+
+
+ {/if}
{/each}
{#if isMatch}
diff --git a/apps/frontend/src/lib/components/blocks/tables-nav/tables-nav.svelte b/apps/frontend/src/lib/components/blocks/tables-nav/tables-nav.svelte
index bb2804f7d..2ba7ee53a 100644
--- a/apps/frontend/src/lib/components/blocks/tables-nav/tables-nav.svelte
+++ b/apps/frontend/src/lib/components/blocks/tables-nav/tables-nav.svelte
@@ -12,7 +12,6 @@
InboxIcon,
} from "lucide-svelte"
import {
- CREATE_BASE_MODAL,
CREATE_TABLE_MODAL,
DELETE_VIEW,
DUPLICATE_VIEW,
@@ -20,6 +19,7 @@
toggleModal,
UPDATE_VIEW,
} from "$lib/store/modal.store"
+ import CreateBaseButton from "../base/create-base-button.svelte"
import { baseId } from "$lib/store/base.store"
import * as Collapsible from "$lib/components/ui/collapsible"
import { cn } from "$lib/utils"
@@ -27,7 +27,6 @@
import { onMount } from "svelte"
import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js"
import { hasPermission } from "$lib/store/space-member.store"
- import { Button } from "$lib/components/ui/button"
import { Skeleton } from "$lib/components/ui/skeleton"
import ViewIcon from "../view/view-icon.svelte"
@@ -261,9 +260,7 @@
No bases
- {#if $hasPermission("base:create")}
-
- {/if}
+
{/if}
diff --git a/apps/frontend/src/lib/components/blocks/template/template-card.svelte b/apps/frontend/src/lib/components/blocks/template/template-card.svelte
index 12707d52a..e09991f25 100644
--- a/apps/frontend/src/lib/components/blocks/template/template-card.svelte
+++ b/apps/frontend/src/lib/components/blocks/template/template-card.svelte
@@ -42,7 +42,11 @@
{template.name}
- # {template.category}
+
+ {#each template.categories as category}
+ # {category}
+ {/each}
+
@@ -80,6 +84,7 @@