create-protobase 0.100.24 → 0.101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,12 +24,12 @@
24
24
  "zod": "^4.6.5"
25
25
  },
26
26
  "devDependencies": {
27
- "@protobase/cli": "^0.100.24",
28
- "@protobase/config": "^0.100.24",
29
- "@protobase/layout": "^0.100.24",
30
- "@protobase/schema": "^0.100.24",
31
- "@protobase/server": "^0.100.24",
32
- "@protobase/ui": "^0.100.24",
27
+ "@protobase/cli": "^0.101.0",
28
+ "@protobase/config": "^0.101.0",
29
+ "@protobase/layout": "^0.101.0",
30
+ "@protobase/schema": "^0.101.0",
31
+ "@protobase/server": "^0.101.0",
32
+ "@protobase/ui": "^0.101.0",
33
33
  "@types/node": "^22.20.5",
34
34
  "@types/pg": "^8.23.1",
35
35
  "@types/react": "^19.3.0",
@@ -22,7 +22,7 @@ export const salesOverview = page(
22
22
  title="Biggest unpaid delivery"
23
23
  resource="orders"
24
24
  filter="status = 'delivered' AND paid = false"
25
- sort="total desc"
25
+ sort={['total desc']}
26
26
  empty="Every delivered order is paid."
27
27
  actions={<Action name="markPaid" variant="primary" />}
28
28
  >
@@ -38,7 +38,7 @@ export const salesOverview = page(
38
38
  title="Oldest overdue invoice"
39
39
  resource="invoices"
40
40
  filter="status = 'overdue'"
41
- sort="issued_at"
41
+ sort={['issued_at']}
42
42
  empty="Nothing is overdue."
43
43
  actions={[<Action name="send" label="Send reminder" />, <Action name="recordPayment" variant="primary" />]}
44
44
  >
@@ -58,15 +58,15 @@ export const salesOverview = page(
58
58
  <Chart title="Revenue by customer" description="Orders not cancelled." resource="orders" groupBy="company_id" sum="total" filter="status != 'cancelled'" limit={5} />
59
59
  </Grid>
60
60
  <Grid columns={2}>
61
- <Table title="Overdue invoices" resource="invoices" filter="status = 'overdue'" sort="issued_at" columns={['number', 'company_id', 'due_at', 'total']} limit={5} empty="Nothing is overdue." />
62
- <Table title="Latest orders" resource="orders" sort="created_at desc" columns={['number', 'company_id', 'status', 'total']} limit={5} />
61
+ <Table title="Overdue invoices" resource="invoices" filter="status = 'overdue'" sort={['issued_at']} columns={['number', 'company_id', 'due_at', 'total']} limit={5} empty="Nothing is overdue." />
62
+ <Table title="Latest orders" resource="orders" sort={['created_at desc']} columns={['number', 'company_id', 'status', 'total']} limit={5} />
63
63
  </Grid>
64
64
  <CardRow
65
65
  title="New leads"
66
66
  description="Companies that have not ordered yet."
67
67
  resource="companies"
68
68
  filter="status = 'lead'"
69
- sort="created_at desc"
69
+ sort={['created_at desc']}
70
70
  limit={8}
71
71
  actions={<ModalForm mode="create" label="Add lead" resource="companies" fields={['name', 'city', 'country_code', 'email']} values={{ status: 'lead' }} />}
72
72
  >
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.100.24",
31
- "@protobase/config": "^0.100.24",
32
- "@protobase/layout": "^0.100.24",
33
- "@protobase/schema": "^0.100.24",
34
- "@protobase/server": "^0.100.24",
35
- "@protobase/ui": "^0.100.24",
30
+ "@protobase/cli": "^0.101.0",
31
+ "@protobase/config": "^0.101.0",
32
+ "@protobase/layout": "^0.101.0",
33
+ "@protobase/schema": "^0.101.0",
34
+ "@protobase/server": "^0.101.0",
35
+ "@protobase/ui": "^0.101.0",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -9,9 +9,9 @@ import { Page, RecordRow, page } from '@protobase/layout'
9
9
  export const home = page(
10
10
  'home',
11
11
  <Page title="Find a home" description="Houses and apartments for sale and for rent in the Netherlands and Spain, from the agencies on the portal.">
12
- <RecordRow title="For sale" resource="listings" filter="for_sale = true AND status = 'available'" sort="published_at desc" />
13
- <RecordRow title="For rent" resource="listings" filter="for_rent = true AND status = 'available'" sort="published_at desc" />
14
- <RecordRow title="Newest listings" resource="listings" sort="published_at desc" limit={24} />
12
+ <RecordRow title="For sale" resource="listings" filter="for_sale = true AND status = 'available'" sort={['published_at desc']} />
13
+ <RecordRow title="For rent" resource="listings" filter="for_rent = true AND status = 'available'" sort={['published_at desc']} />
14
+ <RecordRow title="Newest listings" resource="listings" sort={['published_at desc']} limit={24} />
15
15
  <RecordRow title="Your searches" resource="saved_searches" empty="Nothing yet. Filter the listings and save the search to hear of new ones." />
16
16
  <RecordRow title="Your favorites" resource="favorites" empty="Save a listing with the heart on its card." />
17
17
  </Page>,
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.100.24",
31
- "@protobase/config": "^0.100.24",
32
- "@protobase/layout": "^0.100.24",
33
- "@protobase/schema": "^0.100.24",
34
- "@protobase/server": "^0.100.24",
35
- "@protobase/ui": "^0.100.24",
30
+ "@protobase/cli": "^0.101.0",
31
+ "@protobase/config": "^0.101.0",
32
+ "@protobase/layout": "^0.101.0",
33
+ "@protobase/schema": "^0.101.0",
34
+ "@protobase/server": "^0.101.0",
35
+ "@protobase/ui": "^0.101.0",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -18,7 +18,7 @@ export const portfolioOverview = page(
18
18
  <RecordCard
19
19
  title="Largest arrears"
20
20
  resource="arrears"
21
- sort="balance desc"
21
+ sort={['balance desc']}
22
22
  empty="Every tenant is paid up."
23
23
  actions={<Action name="remind" label="Send reminder" variant="primary" />}
24
24
  >
@@ -34,7 +34,7 @@ export const portfolioOverview = page(
34
34
  title="Oldest urgent ticket"
35
35
  resource="tickets"
36
36
  filter="priority = 'urgent' AND (status = 'reported' OR status = 'scheduled')"
37
- sort="reported_at"
37
+ sort={['reported_at']}
38
38
  empty="No urgent tickets are open."
39
39
  actions={<Action name="complete" variant="primary" />}
40
40
  >
@@ -48,8 +48,8 @@ export const portfolioOverview = page(
48
48
  </RecordCard>
49
49
  </Grid>
50
50
  <Grid columns={2}>
51
- <Table title="Arrears" resource="arrears" sort="balance desc" columns={['lease_id', 'balance', 'open_charges', 'oldest_due_on']} limit={5} empty="Every tenant is paid up." />
52
- <Table title="Open tickets" resource="tickets" filter="status = 'reported' OR status = 'scheduled'" sort="reported_at desc" columns={['number', 'title', 'priority', 'status']} limit={5} empty="Nothing is open." />
51
+ <Table title="Arrears" resource="arrears" sort={['balance desc']} columns={['lease_id', 'balance', 'open_charges', 'oldest_due_on']} limit={5} empty="Every tenant is paid up." />
52
+ <Table title="Open tickets" resource="tickets" filter="status = 'reported' OR status = 'scheduled'" sort={['reported_at desc']} columns={['number', 'title', 'priority', 'status']} limit={5} empty="Nothing is open." />
53
53
  </Grid>
54
54
  <Table title="Vacant units" resource="units" filter="status = 'vacant'" columns={['label', 'property_id', 'bedrooms', 'base_rent']} limit={5} empty="Every unit is let." />
55
55
  </Page>,
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.100.24",
31
- "@protobase/config": "^0.100.24",
32
- "@protobase/layout": "^0.100.24",
33
- "@protobase/schema": "^0.100.24",
34
- "@protobase/server": "^0.100.24",
35
- "@protobase/ui": "^0.100.24",
30
+ "@protobase/cli": "^0.101.0",
31
+ "@protobase/config": "^0.101.0",
32
+ "@protobase/layout": "^0.101.0",
33
+ "@protobase/schema": "^0.101.0",
34
+ "@protobase/server": "^0.101.0",
35
+ "@protobase/ui": "^0.101.0",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -24,12 +24,12 @@
24
24
  "zod": "^4.6.5"
25
25
  },
26
26
  "devDependencies": {
27
- "@protobase/cli": "^0.100.24",
28
- "@protobase/config": "^0.100.24",
29
- "@protobase/layout": "^0.100.24",
30
- "@protobase/schema": "^0.100.24",
31
- "@protobase/server": "^0.100.24",
32
- "@protobase/ui": "^0.100.24",
27
+ "@protobase/cli": "^0.101.0",
28
+ "@protobase/config": "^0.101.0",
29
+ "@protobase/layout": "^0.101.0",
30
+ "@protobase/schema": "^0.101.0",
31
+ "@protobase/server": "^0.101.0",
32
+ "@protobase/ui": "^0.101.0",
33
33
  "@types/node": "^22.20.5",
34
34
  "@types/pg": "^8.23.1",
35
35
  "@types/react": "^19.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-protobase",
3
- "version": "0.100.24",
3
+ "version": "0.101.0",
4
4
  "description": "npm create protobase: starts a new Protobase project from one of its presets, or on an existing Postgres database.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "postgres": "^3.4.9"
29
29
  },
30
30
  "devDependencies": {
31
- "@protobase/cli": "0.100.24"
31
+ "@protobase/cli": "0.101.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"