Skip to content

Commit aed8d71

Browse files
authored
Merge pull request #1 from thruflo/db
docs: finish up coming soon page.
2 parents e5da7e2 + c9d48e2 commit aed8d71

5 files changed

Lines changed: 166 additions & 95 deletions

File tree

src/images/electric-dark.svg

Lines changed: 13 additions & 0 deletions
Loading

src/images/electric-light.svg

Lines changed: 13 additions & 0 deletions
Loading

src/libraries/db.tsx

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { VscPreview, VscWand } from 'react-icons/vsc'
1+
import { BsCollectionFill } from 'react-icons/bs'
2+
import { VscPreview, VscWand } from 'react-icons/co'
23
import { Library } from '.'
34
import { FaGithub, FaBolt, FaCogs } from 'react-icons/fa'
45
import { BiBookAlt } from 'react-icons/bi'
@@ -15,8 +16,7 @@ export const dbProject = {
1516
to: '/db',
1617
tagline: `A reactive client store for building super fast apps on sync`,
1718
description: `TanStack DB extends TanStack Query with collections, live queries and optimistic mutations that keep your UI reactive, consistent and blazing fast 🔥`,
18-
ogImage:
19-
'https://github.com/tanstack/db/raw/main/media/repo-header.png',
19+
ogImage: 'https://github.com/tanstack/db/raw/main/media/repo-header.png',
2020
badge: 'soon',
2121
bgStyle: `bg-orange-700`,
2222
textStyle: `text-orange-500`,
@@ -31,15 +31,15 @@ export const dbProject = {
3131
scarfId: '302d0fef-cb3f-43c6-b45c-f055b9745edb',
3232
defaultDocs: 'overview',
3333
menu: [
34-
{
35-
icon: <VscPreview />,
36-
label: 'Examples',
37-
to: '/db/latest/docs/framework/react/examples/simple',
38-
},
34+
// {
35+
// icon: <VscPreview />,
36+
// label: 'Examples',
37+
// to: '/db/latest/docs/framework/react/examples/simple',
38+
// },
3939
{
4040
icon: <BiBookAlt />,
4141
label: 'Docs',
42-
to: '/db/latest/docs',
42+
to: `https://github.com/${repo}/blob/main/docs/index.md`,
4343
},
4444
{
4545
icon: <FaGithub />,
@@ -50,25 +50,35 @@ export const dbProject = {
5050
featureHighlights: [
5151
{
5252
title: 'Collections',
53-
icon: <VscWand className={twMerge(textStyles)} />,
53+
icon: <BsCollectionFill className={twMerge(textStyles)} />,
5454
description: (
55-
<div>Typed sets of objects that can mirror a backend table or be populated with a filtered view or result set, such as <code>pendingTodos</code> or <code>decemberNewTodos</code>.
56-
Collections are just JavaScript data — load them on demand and define as many as you need.
55+
<div>
56+
Collections are typed sets of objects. Sync or load data into them.
57+
Query across them with live queries and write locally to them using
58+
optimistic mutations.
5759
</div>
5860
),
5961
},
6062
{
6163
title: 'Live Queries',
6264
icon: <FaBolt className={twMerge(textStyles)} />,
6365
description: (
64-
<div>Queries run reactively against and across collections with support for joins, filters and aggregates. They're powered by differential dataflow: query results update incrementally, not by re-running the whole query.</div>
66+
<div>
67+
Live queries run reactively against and across collections. They're
68+
super fast, powered by differential dataflow, with support for joins,
69+
filters and aggregates.
70+
</div>
6571
),
6672
},
6773
{
68-
title: 'Transactional mutators',
74+
title: 'Optimistic mutations',
6975
icon: <FaCogs className={twMerge(textStyles)} />,
7076
description: (
71-
<div>Batch and stage local changes across collections with immediate application of local optimistic updates. Then sync transactions to the backend with automatic rollbacks and management of optimistic state.</div>
77+
<div>
78+
Batch and stage instant local changes across collections. Sync
79+
transactions to the backend with automatic management of rollbacks and
80+
optimistic state.
81+
</div>
7282
),
7383
},
7484
],

0 commit comments

Comments
 (0)