Bruno Windels
06d2d2e198
draft of idb store for fragments
2019-04-18 20:19:43 +02:00
Bruno Windels
749bdadf74
disable failing tests for now and include fragment index so it's tests are found
2019-04-18 20:19:09 +02:00
Bruno Windels
6ba37e90a3
work on memory store
2019-04-04 09:27:31 +02:00
Bruno Windels
3f2f656db7
work on gap filling + tests (doesn't work yet)
2019-03-29 23:01:27 +01:00
Bruno Windels
aaff9eea6c
update store api with requirements for gap filling
2019-03-29 23:01:22 +01:00
Bruno Windels
7d91b2dde3
first go at a timeline memory store
...
first to use in unit tests for persister
later also to use in production when idb is not available
2019-03-29 23:00:22 +01:00
Bruno Windels
b1e382d7c9
thinko with direction
2019-03-21 21:36:02 +01:00
Bruno Windels
8f7e5a799c
work on filling gaps + test (draft only)
2019-03-21 21:35:33 +01:00
Bruno Windels
61804073e2
comment how updates should work
2019-03-15 20:29:17 +01:00
Bruno Windels
2cd9c2344e
expose timeline loading error in viewmodel
2019-03-09 00:43:43 +01:00
Bruno Windels
8e8e22fe16
work on filling gaps
2019-03-09 00:41:06 +01:00
Bruno Windels
c8749a1a06
rought impl of tiles collection
2019-03-09 00:40:17 +01:00
Bruno Windels
153d54a285
work on tile view models
2019-03-09 00:40:03 +01:00
Bruno Windels
1f5d488105
draft of timeline tiles support
2019-03-08 20:04:56 +01:00
Bruno Windels
6940e14b18
move sortedIndex out of observable as other code will want to use it too
2019-03-08 20:04:28 +01:00
Bruno Windels
95bef00054
some comments
2019-03-08 20:03:47 +01:00
Bruno Windels
ec925d7c49
draft of how to implement filling a timeline gap
2019-03-08 20:03:18 +01:00
Bruno Windels
1757a27475
consistent naming
2019-03-08 20:01:28 +01:00
Bruno Windels
994f1c57d3
store all logout data outside of the session storage
...
so we could store it in gnome keyring, macOs keychain, ... on non-webclients,
also better separation
2019-03-08 20:00:37 +01:00
Bruno Windels
2dbd0fb9dc
move view models over to domain
2019-03-08 19:58:54 +01:00
Bruno Windels
049e70e312
throw NetworkError from HomeServerApi
2019-03-08 12:26:59 +01:00
Bruno Windels
818cf8051c
dont show ui before initial sync
2019-02-27 23:38:03 +01:00
Bruno Windels
9e7811299d
MappedMap update mechanism needs to be reworked, disable for now
2019-02-27 23:23:20 +01:00
Bruno Windels
f8bd11f07b
doesn't need to be async for now
2019-02-27 23:23:09 +01:00
Bruno Windels
8462a0ac6b
this behaves weird? need to figure out later
2019-02-27 23:22:47 +01:00
Bruno Windels
80eac6e48d
ignore clicking on root
2019-02-27 23:21:16 +01:00
Bruno Windels
7903ae0001
pass event to item clicked handler
2019-02-27 23:21:00 +01:00
Bruno Windels
16d5c3279c
correctly map className attribute
2019-02-27 23:20:29 +01:00
Bruno Windels
6b4ed65a57
show timeline when clicking room in roomlist
2019-02-27 22:50:08 +01:00
Bruno Windels
5cafb92fee
emit after txn has been committed
...
to keep txn open for as short as possible,
and avoid any errors caused as part of emit aborting txn
2019-02-27 22:49:52 +01:00
Bruno Windels
c2ecd79f21
pass params to child onUpdate
2019-02-26 23:50:15 +01:00
Bruno Windels
d567e2ac5a
fix ListView::onMove code
2019-02-26 23:27:34 +01:00
Bruno Windels
c8d5b4483a
public room.id property, needed for session.rooms updater
2019-02-26 23:27:06 +01:00
Bruno Windels
841f280d3c
rooms on the screen!!
2019-02-26 22:45:58 +01:00
Bruno Windels
90a7989eda
rooms is a proper collection now, so no need for getter on session
2019-02-26 22:09:48 +01:00
Bruno Windels
2e362d1bbd
fixes and tests for add, remove, move and update
2019-02-26 22:03:16 +01:00
Bruno Windels
290886a5eb
fix and test subscription and initial values for sort
2019-02-26 21:13:43 +01:00
Bruno Windels
21d93a5893
fix and test initialValues for map
2019-02-26 21:13:11 +01:00
Bruno Windels
853316933c
adjust import path
2019-02-26 20:49:45 +01:00
Bruno Windels
77eeacb09b
convert string children to text nodes
2019-02-26 20:49:32 +01:00
Bruno Windels
618c4ffe20
restructure observable collections and fixes for sort, filter and map
2019-02-26 20:48:57 +01:00
Bruno Windels
db53db7007
adjust to new ObservableMap api
2019-02-24 19:25:06 +01:00
Bruno Windels
4d28448920
add compare method to SortKey and add tests
2019-02-24 19:24:43 +01:00
Bruno Windels
d5b88cbbe6
finish ObservableMap and add tests
2019-02-24 19:24:28 +01:00
Bruno Windels
1441abbf7e
work on sorted list from map
2019-02-21 23:08:23 +01:00
Bruno Windels
5bff41c1ee
wip on collections and listview
2019-02-20 23:48:16 +01:00
Bruno Windels
952f1abddf
wip
2019-02-17 23:58:01 +01:00
Bruno Windels
d87444824d
only store sync token when it changes
2019-02-16 02:59:10 +01:00
Bruno Windels
e49c416fae
playing around with live collections
2019-02-16 02:57:19 +01:00
Bruno Windels
07fed669f6
debug room lastsortkey not loading in chrome (but does in FF!)
2019-02-16 02:57:19 +01:00
Bruno Windels
be8544aa48
also persist state events in timeline
2019-02-16 02:57:19 +01:00
Bruno Windels
f7789d343a
more fields for summary
2019-02-16 02:57:19 +01:00
Bruno Windels
ad9999fd50
idb compares binary keys per byte, so make SortKey big endian
2019-02-16 02:57:19 +01:00
Bruno Windels
03ef98e668
make sure queries don't run into other rooms
2019-02-16 02:57:19 +01:00
Bruno Windels
c60840bae9
fix selectAll
2019-02-16 02:57:19 +01:00
Bruno Windels
ffd3d740c5
state events are under state key
2019-02-16 02:57:19 +01:00
Bruno Windels
c70376e82d
make starting a transaction async so we can do more synchronization later on
2019-02-16 02:57:19 +01:00
Bruno Windels
48a47cb639
expose native error for now
...
as server not reachable seems to be reported as a TypeError
with message "fetch failed" or something in chrome,
let's see if we can find something in common between browsers
to wrap it into something more sensible
2019-02-16 02:57:19 +01:00
Bruno Windels
a544c25d58
more
2019-02-10 22:02:42 +01:00
Bruno Windels
35648d31b9
dont emit error when aborting request when stopping sync
2019-02-10 21:40:11 +01:00
Bruno Windels
bff0161a05
move sync & persistence engine over to own matrix folder
2019-02-10 21:33:18 +01:00
Bruno Windels
b57c5abdd6
its syncing, sort off
2019-02-10 21:25:46 +01:00
Bruno Windels
c05e40188b
WIP2
2019-02-07 01:03:47 +00:00
Bruno Windels
abffdf1877
wip on loading rooms in session
2019-02-07 00:51:48 +00:00
Bruno Windels
ec6bd2ca1f
camel-case non-matrix keys in idb stores
2019-02-07 00:51:27 +00:00
Bruno Windels
90b016bbcf
cleanup main logging
2019-02-07 00:50:47 +00:00
Bruno Windels
3438806781
cleanup hardcoded credentials to avoid inconsistencies
2019-02-07 00:50:23 +00:00
Bruno Windels
6c7474e95e
rename Network to HomeServerApi
2019-02-07 00:25:12 +00:00
Bruno Windels
3f776129f5
basic session loading
2019-02-07 00:20:27 +00:00
Bruno Windels
c115164822
no need to catch here, can't handle the error
2019-02-06 23:19:44 +00:00
Bruno Windels
3e763ab5c0
simplify session store api
2019-02-06 23:19:29 +00:00
Bruno Windels
7a15f12525
basic session manager
2019-02-06 23:19:14 +00:00
Bruno Windels
27be261a5d
whitespace
2019-02-06 22:06:56 +00:00
Bruno Windels
511e91a699
small changes
2019-02-06 22:06:47 +00:00
Bruno Windels
d6857a1ede
fix errors
2019-02-06 22:06:33 +00:00
Bruno Windels
5c7a1f66d6
cleanup directory structure
2019-02-06 22:06:00 +00:00
Bruno Windels
90300dcdaf
cleanup idb storage
2019-02-04 23:21:50 +00:00
Bruno Windels
e99ad90539
storage error definition
2019-02-04 22:31:35 +00:00
Bruno Windels
27b98408f1
add runnable html and js file to start making things actually run
2019-02-04 22:31:08 +00:00
Bruno Windels
5703a034ca
stored summary is no longer passed in ctor but loaded in load method
2019-02-04 22:30:57 +00:00
Bruno Windels
f58af883b8
remove (circular) dependency on sync in session
2019-02-04 22:29:46 +00:00
Bruno Windels
f0e5757692
merge initial & incremental sync
2019-02-04 22:26:45 +00:00
Bruno Windels
b15136a9e8
fix errors & support login in network
2019-02-04 22:26:24 +00:00
Bruno Windels
b6df30bc27
work on txn, ...
2019-02-03 23:45:29 +00:00
Bruno Windels
12bb3a7147
more work on idb sync transaction, other storage stuff
2019-01-09 11:06:09 +01:00
Bruno Windels
0cf9e84bdd
WIP
2018-12-21 14:35:24 +01:00