Commit Graph

  • df8ec50631 Add storeEvents UTs; fix bugs as a result. Kegan Dougal 2015-07-02 11:37:50 +01:00
  • ea738e31ba Add storeEvents impl. Kegan Dougal 2015-07-02 11:03:50 +01:00
  • 023a3cf2bd Finish scrollback UTs. Kegan Dougal 2015-07-02 10:22:53 +01:00
  • 23c3ce92d7 Finish scrollback impl. Add UTs. Kegan Dougal 2015-07-02 10:13:51 +01:00
  • df7bde4257 Merge pull request #10 from matrix-org/push Kegsay 2015-07-01 18:19:43 +01:00
  • 82de3b6f19 Begin scrollback implementation. Kegan Dougal 2015-07-01 18:04:59 +01:00
  • 214697eec9 Fix long line David Baker 2015-07-01 18:03:29 +01:00
  • db790f0b19 fixjsstyle David Baker 2015-07-01 18:02:35 +01:00
  • c81cb1fcfd Tests for pushprocessor David Baker 2015-07-01 18:01:48 +01:00
  • a890bff30f Actually flip the cache bit Kegan Dougal 2015-07-01 16:39:32 +01:00
  • 9fd847567c Add get/setUser and getRooms with UTs. Kegan Dougal 2015-07-01 16:38:13 +01:00
  • 213caf7c26 Add old state check. Kegan Dougal 2015-07-01 15:33:58 +01:00
  • 732f9dc592 Restructure timeline batches to have high numbers = newest; it's less confusing that way. Kegan Dougal 2015-07-01 15:28:41 +01:00
  • 22506513b4 Add more webstore unit tests. Kegan Dougal 2015-07-01 14:20:14 +01:00
  • 753a11ab7f Move push actions method to the client David Baker 2015-07-01 14:09:34 +01:00
  • 994fcceace Add another storeRoom test. Add stub tests for WebStorage. Kegan Dougal 2015-07-01 12:03:34 +01:00
  • 2d08a6530c Don't need extra escaping; doesn't take coverage correctly. Kegan Dougal 2015-07-01 11:41:55 +01:00
  • 841e02d102 Don't minify tests so we can get proper stack traces when running 'npm test'. Kegan Dougal 2015-07-01 10:33:03 +01:00
  • a0fddf7ab3 Linting. Kegan Dougal 2015-06-30 17:58:35 +01:00
  • c8da373ecc Add first cut webstorage implementation. Add very basic test. Kegan Dougal 2015-06-30 17:56:58 +01:00
  • 3a8d99496c Merge branch 'master' into develop Kegan Dougal 2015-06-30 13:46:48 +01:00
  • 319595407c Tweak example to mention startClient() Kegsay 2015-06-30 13:46:27 +01:00
  • 388cd3a6da Add init/del structs Kegan Dougal 2015-06-30 12:00:58 +01:00
  • aaecda53d6 Add scrollback to store interface Kegan Dougal 2015-06-30 11:48:49 +01:00
  • 5d5d76d154 Pass a store implementation rather than kind string. Kegan Dougal 2015-06-30 11:39:57 +01:00
  • 796afb104b s/localstorage/webstorage/g. Add storage impl notes. Kegan Dougal 2015-06-30 11:30:49 +01:00
  • 9416a9a8a3 Fix linting & c+p errors David Baker 2015-06-29 18:20:36 +01:00
  • 22f08e4e5b Get rid of micromatch & reinstate our hacky version because micromatch, ironically, is huge. David Baker 2015-06-29 18:16:49 +01:00
  • a476b11f0c Add local storage impl notes Kegan Dougal 2015-06-29 17:55:11 +01:00
  • c82b2049eb prefix internal var with underscrore David Baker 2015-06-29 16:34:33 +01:00
  • 2ab8f8cf76 closure linting errors David Baker 2015-06-29 16:21:32 +01:00
  • 53f2f156ca Fix linting errors David Baker 2015-06-29 16:09:07 +01:00
  • 083a0980eb javascript function syntax #3... David Baker 2015-06-29 15:57:20 +01:00
  • 1be02a3c3c Port over push rule eveluator from the angular SDK and make it available on MatrixEvent David Baker 2015-06-29 15:53:23 +01:00
  • 21150e7587 Doc fail David Baker 2015-06-26 16:50:55 +01:00
  • 3806c4d566 Missing semicolon David Baker 2015-06-26 16:49:07 +01:00
  • b814872c37 unnecessary semicolon David Baker 2015-06-26 16:45:59 +01:00
  • b2656024bd Merge branch 'develop' into push David Baker 2015-06-26 16:39:32 +01:00
  • b7975866fa Add getSyncToken and setSyncToken to data store interface. Kegan Dougal 2015-06-26 15:36:53 +01:00
  • 6078100465 Export LocalStorageStore class. Throw if 'localStorage' isn't defined. Kegan Dougal 2015-06-26 15:24:55 +01:00
  • a3a59f4456 Add localstorage store module. Kegan Dougal 2015-06-26 15:13:04 +01:00
  • 9ea080b7bb Fetch the user's push rules before any events arrive, so we can annotate events with push data when they arrive. David Baker 2015-06-26 15:11:27 +01:00
  • 20b5553e48 Implement MatrixClient tests without a scheduler/store. Kegan Dougal 2015-06-26 14:26:57 +01:00
  • fd0eb0c674 Finish timline integration tests. Kegan Dougal 2015-06-26 13:53:01 +01:00
  • 3c4bda8580 Add MatrixScheduler.removeEventFromQueue/getQueueForEvent and QUEUED state. Kegan Dougal 2015-06-26 09:52:52 +01:00
  • 320bbec737 Add MatrixScheduler.getQueue to allow items in the queue to be modified. Kegan Dougal 2015-06-25 18:00:07 +01:00
  • 041f96ae6d Add remaining stub tests Kegan Dougal 2015-06-25 17:56:18 +01:00
  • f240563fb5 Add room state/syncing stub tests Kegan Dougal 2015-06-25 17:49:46 +01:00
  • e8d17a5ab3 Add missing pagination test Kegan Dougal 2015-06-25 17:36:21 +01:00
  • f49234a772 Add pagination tests Kegan Dougal 2015-06-25 17:29:25 +01:00
  • 46d5c2bd61 Add pagination test; fix null token bug. Kegan Dougal 2015-06-25 16:33:22 +01:00
  • 325c00c660 Set Room.oldState.paginationToken to null at the start of the timeline. Fix linting errors. Kegan Dougal 2015-06-25 15:28:25 +01:00
  • c4c68a0287 Add local echo tests. Kegan Dougal 2015-06-25 15:24:56 +01:00
  • 21df000604 Add Room.addEvents UT Kegan Dougal 2015-06-25 14:00:52 +01:00
  • 0be3c6837d Add utils UTs. Remove unused functions. Kegan Dougal 2015-06-24 17:42:02 +01:00
  • 74fcbdee3f Add retryFn -1 test. Kegan Dougal 2015-06-24 17:14:11 +01:00
  • 332bdcd101 Add Scheduler UTs. Kegan Dougal 2015-06-24 17:05:06 +01:00
  • 913178b284 Linting Kegan Dougal 2015-06-24 15:38:18 +01:00
  • 2a83248168 Add User UTs Kegan Dougal 2015-06-24 15:37:55 +01:00
  • 8f16948430 Appease linters Kegan Dougal 2015-06-24 14:57:48 +01:00
  • 1b665c176a Add RoomState UTs Kegan Dougal 2015-06-24 14:57:04 +01:00
  • 0bc9951f13 Add RoomState UT stubs. Kegan Dougal 2015-06-24 13:52:17 +01:00
  • d3377e3dea Add RoomMember UTs. Fix disambiguation bug. Add CHANGELOG. Kegan Dougal 2015-06-24 13:35:19 +01:00
  • b3efafebbe Restructure test layout. Kegan Dougal 2015-06-24 12:53:15 +01:00
  • a12133ec9f Appease linters Kegan Dougal 2015-06-24 11:44:00 +01:00
  • f763eb3f37 Convert all helper functions which make events to use kwargs Kegan Dougal 2015-06-24 11:43:16 +01:00
  • 26a23b19b3 Use an opts for helper mk functions; poor man's keyword args. Kegan Dougal 2015-06-24 11:14:54 +01:00
  • 9d967fb232 Add some UTs to Room methods Kegan Dougal 2015-06-24 11:05:18 +01:00
  • 62d7ff5ba9 Add colours to terminal. Sort room list by TS. Kegan Dougal 2015-06-23 17:46:52 +01:00
  • b0ca6609f4 Merge branch 'develop' v0.1.1 Kegan Dougal 2015-06-23 15:45:09 +01:00
  • ff9bc0b865 Merge branch 'release-v0.1.1' into develop Kegan Dougal 2015-06-23 15:44:47 +01:00
  • b3ef0b90ac Update README Kegan Dougal 2015-06-23 15:44:24 +01:00
  • 805d914940 Bump to 0.1.1. Add 'npm run release' script. Kegan Dougal 2015-06-23 15:42:08 +01:00
  • de560d1a4a Update CHANGELOG.md Kegsay 2015-06-23 15:27:18 +01:00
  • 07d3f43d8b Refactor terminal app; add /invite and /roominfo. Kegan Dougal 2015-06-23 15:22:57 +01:00
  • 57914969b8 Add MatrixClient.resendEvent to manually resend an event that was not sent. Kegan Dougal 2015-06-23 14:08:02 +01:00
  • 378c7fd6cb Update docs Kegan Dougal 2015-06-23 12:15:41 +01:00
  • 7534f59af2 Hook up the callback fn for scrollback. Update CHANGELOG. Kegan Dougal 2015-06-23 12:04:43 +01:00
  • 553325d66f Improve UX on node terminal app. Kegan Dougal 2015-06-23 11:50:17 +01:00
  • 6737388766 Implement pagination via the scrollback() function. Update CHANGELOG. Kegan Dougal 2015-06-23 11:36:30 +01:00
  • b7ed78b432 Update CHANGELOG. Add StubStore. Kegan Dougal 2015-06-23 11:03:08 +01:00
  • 9c2a2902eb Fix bug where hibernating laptops fail to restart the event stream. Kegan Dougal 2015-06-23 10:40:53 +01:00
  • ef77c6f989 Sync room state when another device joins a room. Kegan Dougal 2015-06-23 10:18:13 +01:00
  • bc0e2ad504 Sync room state when joining via client.joinRoom Kegan Dougal 2015-06-22 17:50:49 +01:00
  • ad70b3d434 Don't set NOT_SENT in the scheduler; the MatrixClient is responsible for this. Kegan Dougal 2015-06-19 17:19:48 +01:00
  • 002ae08f04 Update CHANGELOG.md Kegsay 2015-06-19 17:16:38 +01:00
  • 402a648a92 Update list of what the SDK does Kegsay 2015-06-19 17:15:36 +01:00
  • 756fe4ddcb Implement MatrixScheduler. Kegan Dougal 2015-06-19 16:53:28 +01:00
  • 898d16ae76 Update CHANGELOG Kegan Dougal 2015-06-19 16:07:36 +01:00
  • 18db0d8c02 Emit 'Room' event when the Room is fully populated rather than newly created. Kegan Dougal 2015-06-19 16:05:13 +01:00
  • 2f78ceb6fc Design the API for the scheduler and hook MatrixClient up to it. Kegan Dougal 2015-06-19 15:50:05 +01:00
  • 8a9f84a4b2 Don't return something which doesn't exist. Kegan Dougal 2015-06-18 17:49:13 +01:00
  • 1e3162128a Shelve scheduler queue work. Add processFn. Kegan Dougal 2015-06-18 13:56:46 +01:00
  • 7e12ea4273 Start gluing MatrixClient and MatrixScheduler. Kegan Dougal 2015-06-18 12:07:18 +01:00
  • 18a3ce415c Add _queues to MatrixScheduler. Kegan Dougal 2015-06-18 11:49:34 +01:00
  • ca414d1611 Implement rate limiting in the default retry algorithm. Kegan Dougal 2015-06-18 11:28:17 +01:00
  • ba56f5f621 Implement MatrixScheduler. Kegan Dougal 2015-06-18 11:11:07 +01:00
  • 4810d04257 Add stub MatrixScheduler. Kegan Dougal 2015-06-18 10:07:36 +01:00
  • 8d77edce86 Formatting Kegsay 2015-06-18 10:01:13 +01:00
  • 9cb37fbe4f Actually allow MatrixClient to not have a store. Update jsdoc. Kegan Dougal 2015-06-18 09:59:02 +01:00