Commit graph

48 commits

Author SHA1 Message Date
Nolan Lawson c1c3c755ce
reduce limit of stored data to 5 days (#597) 2018-11-04 14:41:22 -08:00
Nolan Lawson bc3a74bbcb don't wait if idb is blocked, remove workerize-loader (#602)
There are two issues here:

- if IDB is blocked, then the promise never resolves when you log out (and call indexedDB.deleteDatabase) and the app remains in a permanently hung state
- why is IDB blocked? well, something seems to have changed in Chrome 70 such that doing these operations in a web worker causes the blocked error. The benefits of workerizing IDB is so small that I'd rather just remove it at this point.
2018-11-04 13:59:14 -08:00
Nolan Lawson 431d1e1051
clean up unused idb functions (#537) 2018-09-05 21:08:38 -07:00
Nolan Lawson fd43dc6e5d
fix idb getall in edge (#535)
* fix idb getall in edge

fixes #532

* try to fix

* this should work

* fixup
2018-09-05 19:52:51 -07:00
Nolan Lawson 9641b7ad1e
tweak timeline loading and worker dev mode (#525) 2018-08-31 09:12:48 -07:00
Nolan Lawson 96c2858d7a
lower timeline fetch batch size from 20 to 10 (#523) 2018-08-29 22:49:14 -07:00
greenkeeper[bot] 8dbc1b0503 Update standard to the latest version 🚀 (#519)
* chore(package): update standard to version 12.0.0

* package lock update

* fix eslint
2018-08-29 21:42:57 -07:00
Nolan Lawson d599f2f308
run idb operations in a web worker (#517) 2018-08-29 19:03:12 -07:00
Nolan Lawson 270df188cb
Store IDB data for 1 week rather than 2 weeks (#498)
Based on issues I'm seeing on iOS Safari, I'm guessing that my IDB caching is too aggressive and is hitting origin storage limits, which causes IDB transactions in safari to fail silently and never call any transaction callbacks (`onblocked`, `onerror`, `oncomplete`).

This is pretty bad and causes Pinafore to basically just not work unless you clear site data, which we should avoid. 2 weeks was probably unnecessary anyway; in a social network, who cares about content that's 2 weeks old?
2018-08-26 15:38:54 -07:00
Nolan Lawson d6af3b69a7
Add ability to show/hide boosts from accounts (#491)
Fixes some stuff in #6
2018-08-25 22:03:33 -07:00
Nolan Lawson ad84adaf63
add ability to mute conversation (#291)
fixes another thing from #6
2018-05-12 22:49:01 -07:00
Nolan Lawson 8089202977
add ability to pin and unpin statuses (#235)
* add ability to pin and unpin statuses

* add another test
2018-04-29 12:28:44 -07:00
Nolan Lawson 8d5690d63d
remove get() with string from Svelte calls (#169)
* remove get() with string pt 1

* remove get() with string pt 2

* fix typo

* fix some null exceptions in get()

* fixup code style
2018-04-19 09:37:05 -07:00
Nolan Lawson e431c29efa
update and pin all deps (#164) 2018-04-18 20:43:13 -07:00
Nolan Lawson 74ea773c25
remove lodash forEach to reduce bundle size (#156) 2018-04-17 21:47:39 -07:00
Nolan Lawson b231466fff
Refactor database for better code-splitting (#144) 2018-04-16 20:56:21 -07:00
Nolan Lawson 2544b71251 use lodash-es for slightly smaller bundle size 2018-04-05 17:57:36 -07:00
Nolan Lawson 6fc21e40bf add username autocomplete feature 2018-03-24 18:04:54 -07:00
Nolan Lawson 4d386357e7 fix another indexeddb migration bug 2018-03-17 11:59:35 -07:00
Nolan Lawson b2f8f356ed bump db because lodash-webpack-plugin broke it 2018-03-16 23:39:10 -07:00
Nolan Lawson e397bf3b3b lint fix 2018-03-11 10:49:18 -07:00
Nolan Lawson 217aca3d31 only show one status if the thread is not cached 2018-03-11 10:48:16 -07:00
Nolan Lawson 06575a0b81 delete statuses should delete notifications 2018-03-10 21:05:00 -08:00
Nolan Lawson da2daa955d fix statuses being deleted from threads 2018-03-10 20:24:07 -08:00
Nolan Lawson 23a247a8c2 basic support for delete streaming 2018-03-10 16:21:10 -08:00
Nolan Lawson b3263e528f fix incoming statuses, add tests 2018-03-10 10:54:16 -08:00
Nolan Lawson f42a07162b simplify idb schema 2018-03-08 23:18:18 -08:00
Nolan Lawson e3b6a9b758 fix offline threads 2018-03-08 18:31:59 -08:00
Nolan Lawson 18dab36e52 add custom emoji modal 2018-02-27 23:18:07 -08:00
Nolan Lawson 333ac62b61 further refactor ComposeBox 2018-02-26 22:22:56 -08:00
Nolan Lawson 7eedeaac76 modularize Composebox 2018-02-26 21:50:03 -08:00
Nolan Lawson 00ccf35777 add reblogging/unreblogging 2018-02-24 20:35:22 -08:00
Nolan Lawson 1b7a01f1ee add favorite/unfavorite feature 2018-02-24 14:49:28 -08:00
Nolan Lawson 3a17f7ff7b start work on favoriting 2018-02-23 18:23:36 -08:00
Nolan Lawson 5a1016d1c9 handle streamed deletions 2018-02-16 19:38:21 -08:00
Nolan Lawson 3f264e476c add home/notification streaming 2018-02-15 09:02:46 -08:00
Nolan Lawson 144468ade2 lint fixup 2018-02-13 19:35:46 -08:00
Nolan Lawson 92f6dd96c0 implement periodic db cleanup 2018-02-13 19:34:37 -08:00
Nolan Lawson 8dcf72d144 lint fixes 2018-02-11 14:11:03 -08:00
Nolan Lawson 3213714f4b implement pinned statuses 2018-02-11 10:35:25 -08:00
Nolan Lawson 5adc975bef lint fixes 2018-02-11 09:37:13 -08:00
Nolan Lawson 9411490780 fix offline order of status threads 2018-02-11 09:36:01 -08:00
Nolan Lawson 4f157596eb optimize indexedDB storage 2018-02-09 19:48:52 -08:00
Nolan Lawson 2e83bc0ff9 use standard 2018-02-08 22:29:29 -08:00
Nolan Lawson 537a112adb refactor database some more 2018-02-08 22:04:10 -08:00
Nolan Lawson 08b3754746 refactor database 2018-02-08 21:49:52 -08:00
Nolan Lawson 1d25fa641e add lists support 2018-02-08 09:15:25 -08:00
Nolan Lawson d93811d470 refactor 2018-02-08 08:22:14 -08:00