Skip to content

Commit 210eb61

Browse files
committed
Sync rules flow improvements
1 parent bc68137 commit 210eb61

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

integration-guides/flutterflow-+-powersync.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,14 @@ This guide walks you through building a basic item management app from scratch a
9999
- SELECT * FROM lists
100100
```
101101
102-
For additional information on PowerSync's Sync Rules, refer to the [Sync Rules](/usage/sync-rules) documentation.
102+
3. In the top right, click **"Validate sync rules"** and ensure there are no errors. This validates your sync rules against your Postgres database.
103+
4. In the top right, click **"Deploy sync rules"** and select your instance.
104+
5. Confirm in the dialog and wait a couple of minutes for the deployment to complete.
103105
104-
If you're wondering how Sync Rules relate to Supabase Postgres [RLS](https://supabase.com/docs/guides/auth/row-level-security), see [this subsection](/integration-guides/supabase-+-powersync/rls-and-sync-rules).
106+
<Tip>
107+
- For additional information on PowerSync's Sync Rules, refer to the [Sync Rules](/usage/sync-rules) documentation.
108+
- If you're wondering how Sync Rules relate to Supabase Postgres [RLS](https://supabase.com/docs/guides/auth/row-level-security), see [this subsection](/integration-guides/supabase-+-powersync/rls-and-sync-rules).
109+
</Tip>
105110
106111
## Initialize Your FlutterFlow Project
107112

integration-guides/supabase-+-powersync.mdx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ create publication powersync for table public.lists, public.todos;
122122

123123
[Sync Rules](/usage/sync-rules) allow developers to control which data gets synced to which user devices using a SQL-like syntax in a YAML file. For the demo app, we're going to specify that each user can only see their own to-do lists and list items.
124124

125-
1\. To update your sync rules, open the `sync-rules.yaml` file.
125+
1. To update your sync rules, open the `sync-rules.yaml` file.
126126

127127
<Frame>
128128
<img src="/images/integration-5.png" />
129129
</Frame>
130130

131-
1. Replace the `sync-rules.yaml` file's contents with the below:
131+
2. Replace the `sync-rules.yaml` file's contents with the below:
132132

133133
```yaml
134134
bucket_definitions:
@@ -140,16 +140,14 @@ bucket_definitions:
140140
- select * from todos where list_id = bucket.list_id
141141
```
142142
143-
1. In the top right, click **"Validate sync rules"** and ensure there are no errors. This validates your sync rules against your Postgres database.
144-
2. In the top right, click **"Deploy sync rules"** and select your Instance
145-
<Frame>
146-
<img src="/images/integration-6.png" width="60%"/>
147-
</Frame>
148-
3. Confirm in the dialog and wait a couple of minutes for the deployment to complete.
149-
150-
For additional information on PowerSync's sync rules, refer to the [Sync Rules](/usage/sync-rules) documentation.
143+
3. In the top right, click **"Validate sync rules"** and ensure there are no errors. This validates your sync rules against your Postgres database.
144+
4. In the top right, click **"Deploy sync rules"** and select your instance.
145+
5. Confirm in the dialog and wait a couple of minutes for the deployment to complete.
151146
152-
If you're wondering how Sync Rules relate to Supabase Postgres [RLS](https://supabase.com/docs/guides/auth/row-level-security), see [this subsection](/integration-guides/supabase-+-powersync/rls-and-sync-rules).
147+
<Tip>
148+
- For additional information on PowerSync's Sync Rules, refer to the [Sync Rules](/usage/sync-rules) documentation.
149+
- If you're wondering how Sync Rules relate to Supabase Postgres [RLS](https://supabase.com/docs/guides/auth/row-level-security), see [this subsection](/integration-guides/supabase-+-powersync/rls-and-sync-rules).
150+
</Tip>
153151
154152
## Test Everything (Using Our Demo App)
155153

0 commit comments

Comments
 (0)