Commit Graph

123 Commits

Author SHA1 Message Date
Nolan Lawson bc3a74bbcb don't wait if idb is blocked, remove workerize-loader ()
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
Sorin Davidoi e45af16bf9 Push notifications ()
* feat: Push notifications

* feat: Feature-detect push notifications support

* feat: Prompt user to reauthenticate when missing push scope

* fix(service-worker): Add tags to notifications

* feat: Push notification actions for mentions
2018-10-06 13:06:10 -07:00
Nolan Lawson 20dda272ba
fix auto-loading of toot content as you scroll () 2018-09-01 14:11:39 -07:00
Nolan Lawson 9641b7ad1e
tweak timeline loading and worker dev mode () 2018-08-31 09:12:48 -07:00
Nolan Lawson 2f1e4077ea
fix status thread update logic () 2018-08-31 09:12:39 -07:00
Nolan Lawson 96c2858d7a
lower timeline fetch batch size from 20 to 10 () 2018-08-29 22:49:14 -07:00
Nolan Lawson 6d8f4e22ef
fix worker ordering () 2018-08-29 22:03:29 -07:00
greenkeeper[bot] 8dbc1b0503 Update standard to the latest version 🚀 ()
* 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 () 2018-08-29 19:03:12 -07:00
Nolan Lawson 2449a27767
fix pinned/unpinned state of recently pinned statuses ()
* fix pinned/unpinned state of recently pinned statuses

* fixup

* fix test
2018-08-29 18:10:09 -07:00
Nolan Lawson 01b1d083a9
update fav boost accounts for stale views () 2018-08-28 06:45:15 -07:00
Nolan Lawson 6d50c65352
add warning text about private browsing () 2018-08-28 06:44:58 -07:00
Nolan Lawson b60d636ee2
media uploads no longer add URLs to status text ()
fixes 
2018-08-26 18:54:59 -07:00
Nolan Lawson d49af06fbd
use async clipboard API () 2018-08-26 16:40:48 -07:00
Nolan Lawson 95665f6d74
add domain blocking ()
* add domain blocking

fixes another thing from 

* show "domain blocking" on profile page
2018-08-26 14:16:00 -07:00
Nolan Lawson 17b80e5a79
simplify model for updating account relationships () 2018-08-26 12:14:08 -07:00
Nolan Lawson 8959cdaeb1
fix incorrect toast notification for follow requests () 2018-08-26 10:31:13 -07:00
Nolan Lawson d6af3b69a7
Add ability to show/hide boosts from accounts ()
Fixes some stuff in 
2018-08-25 22:03:33 -07:00
Nolan Lawson 1423a6b14b
slight refactor of timeline fetching () 2018-08-24 11:50:40 -07:00
Nolan Lawson 23ccec45d0
fix notifications in a background tab ()
Part of the way to improving .

Before this fix, if you recieved a notification while Pinafore was in a background tab, nothing would happen, because most browsers (Edge, Firefox, Chrome) don't run rAF in background tabs. Furthermore, Chrome doesn't run rIC. In this PR we detect if we're in a background tab and then avoid rAF/rIC in that case.
2018-06-23 10:11:14 -07:00
Nolan Lawson 5f4e869eeb
add more fine-grained request timeouts ()
* add more fine-grained request timeouts

fixes 

* tweak timeout
2018-06-13 07:38:36 -07:00
Nolan Lawson ad84adaf63
add ability to mute conversation ()
fixes another thing from 
2018-05-12 22:49:01 -07:00
Nolan Lawson 07fb5e867c
isolate autosuggestion state ()
fixes 
2018-05-06 16:25:17 -07:00
Nolan Lawson 8089202977
add ability to pin and unpin statuses ()
* add ability to pin and unpin statuses

* add another test
2018-04-29 12:28:44 -07:00
Nolan Lawson ffb00fcc5c
approve/reject follow requests, unblock, unmute ()
* approve/reject follow requests, unblock, unmute

* make tests less flaky
2018-04-28 14:19:39 -07:00
Nolan Lawson 8d5690d63d
remove get() with string from Svelte calls ()
* 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 () 2018-04-18 20:43:13 -07:00
Nolan Lawson 74ea773c25
remove lodash forEach to reduce bundle size () 2018-04-17 21:47:39 -07:00
Nolan Lawson 00e71293d6
fix autosuggestion mixed with emoji ()
fixes 
2018-04-17 18:38:36 -07:00
Nolan Lawson b231466fff
Refactor database for better code-splitting () 2018-04-16 20:56:21 -07:00
Nolan Lawson 7ff45dfb3f
mute and unmute accounts () 2018-04-14 22:18:48 -07:00
Nolan Lawson 732d1fded4
Block and unblock an account ()
One of the many features listed in 
2018-04-14 18:47:55 -07:00
Nolan Lawson dc91dbd1e7
fix excessive itemIdsToAdd updates ()
fixes 
2018-04-14 11:52:47 -07:00
Nolan Lawson a82c44c21f
Replying returns focus to reply button ()
Fixes 
2018-04-12 21:18:14 -07:00
Nolan Lawson 84148912ee
Fix spoilers being posted after removal ()
Fixes 
2018-04-11 22:55:11 -07:00
Nolan Lawson 1ad72f00c2
fix optimistic follow button ()
Fixes 
2018-04-11 22:55:04 -07:00
Nolan Lawson 55782a5331 detect "selected" when doing smooth scroll to top 2018-04-10 23:15:22 -07:00
Maxime Le Conte des Floris 660362ed46 feat: click on curent column nav button to go to the top of the timeline 2018-04-10 23:15:22 -07:00
Nolan Lawson d95de24df5 add note about ad blockers / tracker blockers
[skip ci]
2018-04-10 22:14:10 -07:00
Nolan Lawson 7ae3212c55
Fix alts for image uploads ()
* Fix alts for image uploads

Fixes 

* fix alts mixed with no-alts
2018-04-09 18:30:15 -07:00
Maxime Le Conte des Floris 2b143ebeeb fix: allow trailing slash in instance name ()
Fix : allow trailing slash in instance name
2018-04-09 15:09:58 -07:00
Nolan Lawson bcc7fb47ef start using an event bus 2018-04-08 15:08:32 -07:00
Nolan Lawson ee8cda5d66 fix modifying replies to statuses 2018-04-08 13:42:31 -07:00
Nolan Lawson 2544b71251 use lodash-es for slightly smaller bundle size 2018-04-05 17:57:36 -07:00
Nolan Lawson eac398702d add console error message 2018-04-04 18:33:31 -07:00
Nolan Lawson bd183c9b37 fix default post privacy on replies 2018-04-03 17:50:48 -07:00
Nolan Lawson 79e33d7938 automatically insert CWs for replies to CWs 2018-04-03 09:45:17 -07:00
Nolan Lawson 584d94eea4 fix streaming gap issue for instance switching 2018-04-02 21:14:12 -07:00
Nolan Lawson cf2b6bfe2f refactor 2018-04-02 18:02:09 -07:00
Nolan Lawson cfb8e28fcc be less aggressive about throttling notifications 2018-04-02 18:00:45 -07:00