element-web/test
Luke Barnard 298c5e4df3 Implement a store for RoomView
This allows for a truely flux-y way of storing the currently viewed room, making some callbacks (like onRoomIdResolved) redundant and making sure that the currently viewed room (ID) is only stored in one place as opposed to the previous many places.

This was required for the `join_room` action which can be dispatched to join the currently viewed room.

Another change was to introduce `LifeCycleStore` which is a start at encorporating state related to the lifecycle of the app into a flux store. Currently it only contains an action which will be dispatched when the sync state has become PREPARED. This was necessary to do a deferred dispatch of `join_room` following the registration of a PWLU (PassWord-Less User).

The following actions are introduced:
 - RoomViewStore:
    - `view_room`: dispatch to change the currently viewed room ID
    - `join_room`: dispatch to join the currently viewed room
 - LifecycleStore:
    - `do_after_sync_prepared`: dispatch to store an action which will be dispatched when `sync_state` is dispatched with `state = 'PREPARED'`
 - MatrixChat:
    - `sync_state`: dispatched when the sync state changes. Ideally there'd be a SyncStateStore that emitted an `update` upon receiving this, but for now the `LifecycleStore` will listen for `sync_state` directly.
2017-05-24 16:56:13 +01:00
..
components Implement a store for RoomView 2017-05-24 16:56:13 +01:00
img Fix a load of warnings in the tests 2016-10-11 14:20:40 +01:00
stores Implement a store for RoomView 2017-05-24 16:56:13 +01:00
utils Megolm import: Fix handling of short files 2017-01-31 12:30:30 +00:00
.eslintrc.js Add mocha env for tests in eslint config 2017-01-23 14:16:25 +00:00
all-tests.js Make it possible to only run one test file each time 2016-04-07 17:49:39 +01:00
mock-clock.js Some basic tests for MessagePanel 2016-03-31 00:48:46 +01:00
skinned-sdk.js Sort alphabetically (and name consistently) 2016-06-17 15:46:31 +01:00
test-utils.js Implement a store for RoomView 2017-05-24 16:56:13 +01:00