Bruno Windels
16fed27a8a
SwitchView, to alternate between different views
2019-06-15 17:49:45 +02:00
Bruno Windels
db376d3ac6
rename morpheus to brawl
2019-06-14 23:58:39 +02:00
Bruno Windels
ad92356b40
css class same name as prop
2019-06-14 23:46:47 +02:00
Bruno Windels
bec7720c42
cleanup template code
2019-06-14 23:46:31 +02:00
Bruno Windels
468af4755b
cleanup html utils
2019-06-14 23:46:18 +02:00
Bruno Windels
5feca5e0f4
gap has its own view now
2019-06-14 23:44:31 +02:00
Bruno Windels
0a6c50b3bb
support bindings for className object
2019-06-14 23:08:41 +02:00
Bruno Windels
f9038e2af9
dedicated template view for gaps
2019-06-14 22:55:07 +02:00
Bruno Windels
69be5012e8
templateview exposes viewModel prop
2019-06-14 22:54:51 +02:00
Bruno Windels
eba92399e3
update TemplateView with changes
2019-06-14 22:45:13 +02:00
Bruno Windels
0503b48c98
support conditional subtemplate & optimizations
2019-06-14 22:43:31 +02:00
Bruno Windels
773b4ed941
remove support for refs
...
not really needed, as render functions work with DOM nodes
that can be easily stored as a side-effect of the render fn
2019-06-14 22:41:50 +02:00
Bruno Windels
553bda2837
support bool values for attribute
2019-06-14 22:40:18 +02:00
Bruno Windels
eb2eb291d3
more work on databinding and templating
2019-06-13 00:41:45 +02:00
Bruno Windels
c7163a0554
wip of template/databinding
2019-06-12 22:01:50 +02:00
Bruno Windels
64f126ba68
support updates originating from tile, and removing tile on update
2019-06-12 21:57:13 +02:00
Bruno Windels
0524f06722
remove logging
2019-06-03 00:31:21 +02:00
Bruno Windels
6bdf44d114
adjust comment
2019-06-03 00:30:37 +02:00
Bruno Windels
45528580ed
fix comparator/comparer mismatch
2019-06-03 00:30:16 +02:00
Bruno Windels
3dbf5e727d
process in incoming order (reverse-chronological order if backward)
...
makes code simpler, don't need fix to undo reverse ordering of
nonOverlappingEvents. reverse looking is very likely premature
optimization as well.
2019-06-03 00:18:52 +02:00
Bruno Windels
0407829b26
fix filling gaps with overlapping events
...
although event order remains wrong, as events are reversed.
step before removing premature optimization, so it's in the git
commit log
2019-06-03 00:11:29 +02:00
Bruno Windels
c9aaa18151
return only eventId from findFirstOrLastOccurringEventId
2019-06-03 00:11:12 +02:00
Bruno Windels
7852f31f7e
clear token on pagination when events start overlapping
2019-06-02 19:28:24 +02:00
Bruno Windels
0b637f656a
timeline store requests should always be scoped to 1 fragmentId
...
as fragmentIds should not be sorted, they are a linked list
and that is what determines their order.
2019-06-02 19:27:40 +02:00
Bruno Windels
bb5f139355
fix fragmentId:0 being evaluated as falsy
2019-06-02 19:27:23 +02:00
Bruno Windels
4b5b90e199
fix another direction mismatch
2019-06-02 19:26:45 +02:00
Bruno Windels
c63d94947f
fix persisting a gappy sync
2019-06-02 18:28:38 +02:00
Bruno Windels
ef5d2cfa08
chunk is in reverse-chronological order for backward pagination
2019-06-02 18:15:40 +02:00
Bruno Windels
e3b4f898d0
show eventkey in ui for debugging purposes
2019-06-02 18:15:24 +02:00
Bruno Windels
a59014475b
also swap logic of setter
2019-06-02 18:15:08 +02:00
Bruno Windels
a269f612b6
space
2019-06-02 15:46:44 +02:00
Bruno Windels
bdad0ad86b
fix some gap fill errors
2019-06-02 15:46:24 +02:00
Bruno Windels
d022608a1a
it's entry.entryIndex, not eventIndex, but use helper method instead.
2019-06-02 15:24:27 +02:00
Bruno Windels
674007d892
don't fail when insert first or appending a tile
2019-06-02 15:15:14 +02:00
Bruno Windels
1ed3babfec
fragment boundary is a gap if backwards(started) & previousToken
2019-06-02 15:01:14 +02:00
Bruno Windels
e339cb7321
more fixes, timeline is showing again
2019-06-02 14:59:30 +02:00
Bruno Windels
a1e527ccbc
first round of fixes after running the app again in the browser!
2019-06-02 00:49:47 +02:00
Bruno Windels
210a00d541
first attempt at making UI work again, with tiles and gaps
2019-06-02 00:03:55 +02:00
Bruno Windels
3de86cdf33
obsolete comment
2019-06-01 18:32:32 +02:00
Bruno Windels
b10aa269d2
very quick emote support
2019-06-01 18:32:17 +02:00
Bruno Windels
1b228b0200
export timelineviewmodel from roomviewmodel
2019-06-01 18:29:23 +02:00
Bruno Windels
039bbe038c
adjust tiles(collection) to entry changes
2019-06-01 18:29:02 +02:00
Bruno Windels
35d90a8535
ctor takes a bool, not Direction. But use helper fn instead.
2019-06-01 18:20:29 +02:00
Bruno Windels
2a128ed32c
use SortedArray in Timeline, adjust loadAtTop to use TimelineReader
2019-06-01 17:39:23 +02:00
Bruno Windels
843c94b750
finished observable SortedArray to something useable
...
although not as performant as it could be
2019-06-01 17:38:23 +02:00
Bruno Windels
f8fbfbff9a
implement reading n events from end of live fragment
2019-06-01 17:04:05 +02:00
Bruno Windels
3137f025c7
remove draft commented code
2019-06-01 16:44:58 +02:00
Bruno Windels
447b0aa03c
allow adding fragments to comparer, instead of reloading from db.
...
This is a suboptimal implementation now,
but is the API we want to end up with. Readers and Writers
in persistence add fragments to the comparer when they become
aware of, create, or link up fragments.
2019-06-01 16:42:57 +02:00
Bruno Windels
fa4efe0132
rename Gap/SyncPersistence to Writer, in line with TimelineReader
2019-06-01 15:40:21 +02:00
Bruno Windels
784588440c
WIP for fragment support
2019-05-19 20:49:46 +02:00