Skip to content

Commit 3e7cb8e

Browse files
committed
fx custom dashboard example
1 parent f022e4e commit 3e7cb8e

7 files changed

Lines changed: 290 additions & 319 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ pnpm-debug.log*
4343

4444
# Turbo
4545
.turbo/
46+
.playwright-mcp

examples/composable-dashboard/app/posts/page.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,7 @@ export default async function PostsPage(props: { searchParams: Promise<{ search?
5757

5858
{/* Search Bar */}
5959
<div className="mb-6">
60-
<form method="GET" action="/posts">
61-
<SearchBar
62-
defaultValue={search}
63-
onSearch={(_query) => {
64-
// Form will handle submission
65-
}}
66-
onClear={() => {
67-
// window.location.href = "/posts";
68-
}}
69-
placeholder="Search posts by title or content..."
70-
/>
71-
</form>
60+
<SearchBar defaultValue={search} placeholder="Search posts by title or content..." />
7261
</div>
7362

7463
{/* Posts Table */}
@@ -86,9 +75,6 @@ export default async function PostsPage(props: { searchParams: Promise<{ search?
8675
createdAt: "timestamp",
8776
}}
8877
columns={["title", "authorName", "status", "createdAt"]}
89-
onRowClick={(_post) => {
90-
// window.location.href = `/posts/${post.id}`;
91-
}}
9278
sortable
9379
emptyMessage={
9480
search

packages/core/tests/access-relationships.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe("Relationship Access Control", () => {
66
const mockContext: AccessContext = {
77
session: null,
88
prisma: {},
9+
db: {},
910
};
1011

1112
describe("getRelatedListConfig", () => {

0 commit comments

Comments
 (0)