Skip to content

Commit 6ca718b

Browse files
authored
WEB-88 Reorganize component categories (#116)
Put Versions plugin at the top of the layout. Fixed some minor spacing issues in MIGRATE_TO_SUPABASE_MANAGED_PG.md and SUPABASE_SETUP.md.
2 parents 75ae4b6 + 44faa7f commit 6ca718b

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/MIGRATE_TO_SUPABASE_MANAGED_PG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pg_dump -h localhost -p 5432 -U sga_puck_app -d sga_db --schema=public --data-on
4141
```
4242

4343
Restore data to Supabase-managed Postgres, setting `session_replication_role` to `replica` to avoid triggering any constraints or triggers during the restore:
44+
4445
```bash
4546
psql -h 127.0.0.1 -p 54322 -U postgres -d postgres <<'EOF'
4647
SET session_replication_role = 'replica';
@@ -52,4 +53,4 @@ Verify data and stop old Postgres:
5253

5354
```bash
5455
npx prisma studio
55-
```
56+
```

docs/SUPABASE_SETUP.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,3 @@ The config lives in `supabase/config.toml`.
8686
- Storage: Enabled with a public `media` bucket
8787
- Auth/API: Enabled because storage depends on them
8888
- Everything else: Disabled
89-

src/app/editor/[id]/[slug]/client.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Puck } from "@puckeditor/core";
55
import config from "../../../../puck.config";
66
import { useState, createContext, useContext, useCallback } from "react";
77
import { VersionPlugin } from "./VersionPlugin";
8+
import { blocksPlugin, outlinePlugin } from "@puckeditor/core";
89
import { ActionBarOverride } from "./ActionBarOverride";
910
import { SaveButton } from "./SaveButton";
1011
import type { Version } from "../../../../lib/types";
@@ -68,7 +69,7 @@ export function Client({
6869
config={config}
6970
data={currentData}
7071
ui={{plugin: {current: "version-plugin"}}}
71-
plugins={[VersionPlugin]}
72+
plugins={[VersionPlugin, blocksPlugin(), outlinePlugin()]}
7273
permissions={isArchived
7374
? { drag: false, duplicate: false, delete: false, edit: false, insert: false }
7475
: { duplicate: false } // We replace this with our own, to avoid an icon collision

0 commit comments

Comments
 (0)