Commit 13f9a8e
authored
Graph backend phase 1 (#5622)
* Add api-graph
* Add JSON-LD schemas
* Add flattenedNodeObject
* Fail when flattening array
* Add more tests for flattening
* Expect no warn/error
* Add doc
* Add expandArray
* Add doc
* Add test
* Add isOfType
* Rename to FlatNodeObject
* Comment
* Use flatNodeObject
* Add GraphProvider.mergeNode
* Add graph
* Add isPartOf auto-linking
* More opinions
* Update comments
* Clean up
* Add test
* Remove edge if needed
* Add specific test case for coloring
* Clean up
* Better test result
* Add slantNodeWithFix schema
* Simplify
* Clean up
* Clean up comment
* Reorder
* Clean up
* Fix comment
* Fix comment
* Fix comment
* First working graph
* Add react-hooks
* Add Graph2
* Add Graph2.middleware
* Use Map for middleware
* Clean up
* Support JSON literals
* Update npm start dependencies
* Activity as JSON literal
* Sort
* Test assumptions
* Clean up
* Fixed node reference
* Clean up schema
* Add @see
* Add validation schema
* Move to SlantGraph
* Validate middleware result
* Validate middleware request/result
* Auto-inversing and no flatten node reference
* Update opinion text
* npm start without transient local dependencies
* Deprecate Graph1
* Reorganize files
* Clean up
* Clean up auto-inversion
* Add crypto.randomUUID
* Fix randomUUID
* Hide console log
* Remove obsoleted Graph1
* Clean up
* Ponyfill
* Use uuid.v4()
* Handle event activity
* Fix race condition on setOrderedActivities
* readonly activities[]
* Skip test
* Allow typing activity
* Allow optional identifier
* Fix freeze SlantNode
* Fix initial subscribe not processing graph
* Fix duplicated line
* Use sequence ID to sort, add webchat:internal:position
* Fix ESLint
* Graph to support replace activity
* Fix replace activity for activity without ID
* Support replace activity with clientActivityId
* Fix replacing undefined client activity ID
* Add permanent ID
* Clean u9p
* Add comment
* Use uuid instead of crypto.randomUUID
* Add new property to fix typing
* Assign random value if no activity.id
* Keep activity when receive echoback
* Keep outgoing pending activity at same position
* Set outgoing pending with sequence ID instead of timestamp
* Fix sort fallback properly
* Fix get timestamp of 0
* Trigger subscriber after transaction is closed
* Handle unknown activity type
* Add activity.id for dedupe while remount
* Allow activity.timestamp: undefined
* Ordering should not take account into activities without timestamp
* Add snapshot
* Fix ESLint
* Allow-warn timestamp of type Date
* Allow act/upsert during subscribe() call
* Fix test
* Compare position
* Add debugging
* Revert debugging
* Assert with Redux
* Clean up
* Clean up
* Add freeze and clean up
* Clean up
* Fix typing
* Move freeze to base/valibot
* Typo
* Remove TODO
* Add terminator middleware
* Clean up
* Fix assertion, clean ordered activities on remount
* Clean up internal properties if passed in
* Rename to upserting from incoming
* Clean up
* Clean up by removing compose()
* Add entry
* Extract and cache schema object
* Remove commented code1 parent 228887d commit 13f9a8e
File tree
95 files changed
+4274
-131
lines changed- __tests__
- html2
- activityOrdering
- basic
- chatAdapter
- part-grouping
- preact/activity
- setup
- packages
- api-graph
- src
- private
- api
- src
- boot
- hooks
- internal
- providers
- ActivityListener
- ActivityTyping/private
- base
- src/valibot
- bundle
- component
- core-graph
- src
- private
- SlantGraph
- private
- schemas
- private
- core
- src
- graph
- reducers
- types
- test-d
- debug-theme
- fluent-theme
- redux-store
- styles
- test/page-object/src/globals/testHelpers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
95 files changed
+4274
-131
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
Lines changed: 87 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
| 91 | + | |
90 | 92 | | |
91 | | - | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | | - | |
| 97 | + | |
95 | 98 | | |
96 | | - | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments