Commit graph

784 commits

Author SHA1 Message Date
Nolan Lawson 7c548018c1
Simplify click delegate implementation (#155) 2018-04-17 21:47:30 -07:00
Nolan Lawson 00e71293d6
fix autosuggestion mixed with emoji (#154)
fixes #140
2018-04-17 18:38:36 -07:00
Nolan Lawson 980fec15ec
fix favorites/boosts reversed aria labels (#153)
Fixes #146
2018-04-17 18:38:27 -07:00
Maxime Le Conte des Floris eef54e992b focus container on page load (#116)
* focus container on page load

* only focus container on first page load

* add test for container focus on page load

* fix typo
2018-04-17 09:42:10 -07:00
Nolan Lawson b231466fff
Refactor database for better code-splitting (#144) 2018-04-16 20:56:21 -07:00
Nolan Lawson 8fb00a961c
refactor to avoid unnecessary emojify computations (#143) 2018-04-16 20:54:16 -07:00
Nolan Lawson 0efafdec90
only show "you are offline" notification once (#137)
Fixes #34
2018-04-15 16:00:16 -07:00
Nolan Lawson 300a399655
Mark permalinks with icons accessibly (#138)
Fixes #128
2018-04-15 16:00:09 -07:00
Nolan Lawson a21541ce4b
hide overflow menu for same-user profile (#136)
Fixes #130
2018-04-15 15:39:54 -07:00
Nolan Lawson e23aa97cf2
make PseudoVirtualList sync rather than async (#133)
Attempt to address #92
2018-04-15 14:43:41 -07:00
Nolan Lawson 7ff45dfb3f
mute and unmute accounts (#127) 2018-04-14 22:18:48 -07:00
Nolan Lawson 732d1fded4
Block and unblock an account (#125)
One of the many features listed in #6
2018-04-14 18:47:55 -07:00
Nolan Lawson 6230c2703e
content warnings can have emoji (#122)
fixes #105
2018-04-14 15:50:06 -07:00
Nolan Lawson a6e737bdbb
remove page flash due to LazyPage.html (#120) 2018-04-14 14:50:53 -07:00
Nolan Lawson 29c38c1f83
Don't show media in notifications (#112)
Fixes #70
2018-04-14 14:18:19 -07:00
Nolan Lawson dc91dbd1e7
fix excessive itemIdsToAdd updates (#117)
fixes #40
2018-04-14 11:52:47 -07:00
Nolan Lawson ff8e92df6c
preload content in CW (#110)
* preload content in CW

Fixes #63

* fix test
2018-04-14 10:47:53 -07:00
Nolan Lawson 707e89e899
faster hydrateContent() algorithm, add test (#109) 2018-04-14 10:08:43 -07:00
Nolan Lawson 6be77a6b25
Fix spinner button spinning background (#113)
Fixes #107
2018-04-14 10:07:45 -07:00
Maxime Le Conte des Floris e52130f1c8 add toot-cafe theme (#108)
* add toot-cafe theme

* rename "toot-cafe" theme to "sorcery"
2018-04-14 09:43:30 -07:00
Nolan Lawson fdcf2bc46b
fix blurry modal dialog on chrome/safari (#101)
Fixes #71
2018-04-13 09:46:47 -07:00
Nolan Lawson a208e5dedb
fix warning about max EventEmitter listeners (#100) 2018-04-13 09:46:38 -07:00
Nolan Lawson aaf0a16a48 remove mistaken code comment
[skip ci]
2018-04-12 22:30:40 -07:00
Nolan Lawson d2c5839873 tweak style for small devices 2018-04-12 22:13:05 -07:00
Nolan Lawson a82c44c21f
Replying returns focus to reply button (#98)
Fixes #42
2018-04-12 21:18:14 -07:00
Nolan Lawson a875386539
fix image hover description on Firefox (#97)
Fixes #57
2018-04-12 21:18:06 -07:00
Nolan Lawson b8d862618a
Use display:none for virtual list header (#96)
Fixes #59 by using display:none instead of opacity/pointer-events tricks while still showing an animation
2018-04-12 21:17:57 -07:00
Nolan Lawson 2c6576e09d
Fix compose button covering content (#95)
Fixes #43 for browsers that support fit-content
2018-04-12 20:23:38 -07:00
Nolan Lawson 7853285eea
Fix scrollTop jiggle in Firefox (#94)
Fixes #64
2018-04-12 19:58:18 -07:00
Nolan Lawson 3786473e34
Simplify PseudoVirtualList (#93)
Possible fix for #92
2018-04-12 19:38:41 -07:00
Nolan Lawson 7ece5d7ffc fix css typo 2018-04-12 19:37:37 -07:00
Nolan Lawson 84148912ee
Fix spoilers being posted after removal (#90)
Fixes #83
2018-04-11 22:55:11 -07:00
Nolan Lawson 1ad72f00c2
fix optimistic follow button (#91)
Fixes #85
2018-04-11 22:55:04 -07:00
Nolan Lawson 95c3349db7 fix bug where favicon changes incorrectly 2018-04-11 20:30:38 -07:00
Chris c8687635e8 add cobalt blue theme (#78)
* added cobalt blue theme

* lighten nav items
2018-04-11 20:11:47 -07:00
Nolan Lawson bdf658f54c fixup minor style nitpicks
[skip ci]
2018-04-11 20:01:45 -07:00
codl 8e08d08712 send status on ctrl+enter (#81)
* send status on ctrl+enter (#24)

* don't check for floating post button when pressing ctrl+enter

oops, I was too eager. it doesn't matter too much, except that if the
main compose form is off-screen but still focused, ctrl+enter would open
the compose modal instead of posting
2018-04-11 20:01:17 -07:00
Nolan Lawson a150613b53 tweak css variable names
[skip ci]
2018-04-11 19:53:43 -07:00
Spanky bdf547b561 made a variable for the AccountProfile page for its color overlay of the header image. (#84) 2018-04-11 19:47:24 -07:00
codl 6fcecce311 allow scroll-to-top to be canceled by a user scroll (#79) 2018-04-11 19:43:22 -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 9bfa2cf013 add perf mark for clicking spoiler button
[skip ci]
2018-04-10 22:30: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 7aceaa4d8c
remove role=alert from "show more" button (#68)
Possible solution for issue #59
2018-04-10 22:09:07 -07:00
Nolan Lawson 70b03eb56e
fix headings for timelines (#67)
Adds an sr-only class to make this easier in the future. Also fixes a missing aria-label.

Fixes #44
2018-04-10 22:08:14 -07:00
Nolan Lawson 9d706a3748
Add img title as well as alt (#66)
Fixes #57
2018-04-10 20:02:42 -07:00
Spanky 3a7d887531 Added 'Ozark' dark blue color theme (#62)
* added Ozark theme, based off of a personal color scheme I use elsewhere.

* fixed incorrect main color value
2018-04-10 20:02:28 -07:00
Nolan Lawson 494f906701
increase fetch timeout to 60 seconds for now (#55)
Fixes #29
2018-04-09 18:33:23 -07:00
Nolan Lawson 7ae3212c55
Fix alts for image uploads (#54)
* Fix alts for image uploads

Fixes #41

* 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 (#52)
Fix #31: allow trailing slash in instance name
2018-04-09 15:09:58 -07:00
Nolan Lawson 1f5a0c3694 add note about intro blog post 2018-04-09 09:35:58 -07:00
Nolan Lawson b2097d33d3 Fix typo that broke Pleroma
Fixes #26
2018-04-09 09:29:15 -07:00
Nolan Lawson ea717b74e3 loading bg for avatars 2018-04-08 17:36:05 -07:00
Nolan Lawson eb8cd5f83d simplify and refactor dialogs using event bus 2018-04-08 16:56:20 -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 e7b1b2ba31 mentions open modal compose box 2018-04-07 00:21:00 -07:00
Nolan Lawson b8d93a5d96 add try catch for closing compose dialog 2018-04-06 08:49:15 -07:00
Nolan Lawson fe8ad175f2 more elegant fix for autosuggestion covering toolbar 2018-04-05 21:35:22 -07:00
Nolan Lawson f5943c3c24 Revert "fix issue with not being able to click toolbar"
This reverts commit 001f85eecc.
2018-04-05 21:00:30 -07:00
Nolan Lawson 001f85eecc fix issue with not being able to click toolbar 2018-04-05 20:30:52 -07:00
Nolan Lawson c54bde0a19 use scrollIntoView which is more consistent than previous strategy 2018-03-29 23:01:36 -07:00
Nolan Lawson b4fc6cf99e fix media in notifications not clickable 2018-04-05 18:18:23 -07:00
Nolan Lawson 57a40a4c41 simplify backdrop filter 2018-04-05 18:13:31 -07:00
Nolan Lawson 2544b71251 use lodash-es for slightly smaller bundle size 2018-04-05 17:57:36 -07:00
Nolan Lawson a6d2382f97 tweak status options 2018-04-05 07:44:10 -07:00
Nolan Lawson 8197c9e773 fix DM background color for replies 2018-04-04 23:03:26 -07:00
Nolan Lawson 8f24531d94 tweak dialog 2018-04-04 22:28:22 -07:00
Nolan Lawson 0ce79fed44 fix z-index 2018-04-04 22:20:12 -07:00
Nolan Lawson 33d595f239 add mention option to account profiles 2018-04-04 21:45:19 -07:00
Nolan Lawson 5a23235529 destroy entire dialog when closed 2018-04-04 20:33:17 -07:00
Nolan Lawson 8d6cb56421 make entire sticky banner pointer-events:auto 2018-04-04 20:32:54 -07:00
Nolan Lawson b17b554965 fix auto-focus for dialog compose 2018-04-04 19:49:05 -07:00
Nolan Lawson 760cafdeff don't allow clicking through to status if click is on toolbar 2018-04-04 18:53:52 -07:00
Nolan Lawson cbe7192928 use regular for loop for html dom element collection 2018-04-04 18:34:43 -07:00
Nolan Lawson eac398702d add console error message 2018-04-04 18:33:31 -07:00
Nolan Lawson cbf46ccae6 simplify language 2018-04-03 18:01:22 -07:00
Nolan Lawson bd183c9b37 fix default post privacy on replies 2018-04-03 17:50:48 -07:00
Nolan Lawson e0345ad750 fix typo 2018-04-03 17:27:30 -07:00
Nolan Lawson 48dc087e58 be optimistic about follow button 2018-04-03 09:51:34 -07:00
Nolan Lawson 79e33d7938 automatically insert CWs for replies to CWs 2018-04-03 09:45:17 -07:00
Nolan Lawson 3c0fe1effc number format account profile details 2018-04-03 08:57:01 -07:00
Nolan Lawson 584d94eea4 fix streaming gap issue for instance switching 2018-04-02 21:14:12 -07:00
Nolan Lawson 5b6af3c8d5 compose modal should auto-focus 2018-04-02 20:49:33 -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
Nolan Lawson 3458c353e4 clicking avatar takes you to your profile 2018-04-02 17:53:04 -07:00
Nolan Lawson 7988222086 fix emoji dialog overflow 2018-04-01 23:41:35 -07:00
Nolan Lawson 64fccee69b tweak styles 2018-04-01 02:54:40 -07:00
Nolan Lawson 80a89a64f1 fix having multiple modal dialogs 2018-03-31 18:46:44 -07:00
Nolan Lawson ef5b922e77 add basic handling for window resize 2018-03-31 17:42:52 -07:00
Nolan Lawson 8c076622eb fix account details squished on mobile 2018-03-31 17:01:09 -07:00
Nolan Lawson 3c0d543ea1 refactor account profile 2018-03-31 16:51:18 -07:00
Nolan Lawson 7342ff1bf2 unify usage of autoplaying video 2018-03-31 10:45:11 -07:00
Nolan Lawson e467f74631 fix intersection observer bug in firefox 2018-03-31 09:36:29 -07:00
Nolan Lawson ec80a3847b clicking Esc clears autosuggestions 2018-03-30 17:34:10 -07:00
Nolan Lawson 2848d5a417 hide avatar for pinned toots 2018-03-30 17:30:30 -07:00
Nolan Lawson b535285542 fix svg size 2018-03-30 17:21:35 -07:00
Nolan Lawson db9913e6b8 tweak spinner delay 2018-03-30 17:14:53 -07:00
Nolan Lawson f9993cac35 fix post privacy for replies 2018-03-30 10:04:35 -07:00
Nolan Lawson 91402d06fc tweak debounce/throttle 2018-03-30 08:43:36 -07:00
Nolan Lawson 6d085eea36 correctly handle keyboard event for button 2018-03-30 08:19:30 -07:00
Nolan Lawson 5a0c4897b0 make replies inline 2018-03-30 01:06:17 -07:00
Nolan Lawson 3b8f551477 implement better timeline navigations with fades 2018-03-29 23:16:53 -07:00
Nolan Lawson 6f350b68d3 fix content warning should delete when you hide it 2018-03-28 18:37:53 -07:00
Nolan Lawson 9c7cef502e add version info 2018-03-28 18:16:42 -07:00
Nolan Lawson 290a3b068e fix math error in css 2018-03-28 09:05:22 -07:00
Nolan Lawson 474b6e6dad replace × with svg x icon 2018-03-28 08:56:40 -07:00
Nolan Lawson 3bca451669 fix svg spinner 2018-03-28 08:45:58 -07:00
Nolan Lawson 45ee11352f remove unnecessary will-change 2018-03-27 20:13:41 -07:00
Nolan Lawson 2a5b1fe1a9 remove unnecessary will-change/filter 2018-03-27 20:13:17 -07:00
Nolan Lawson bf0592aee4 use double rAF instead of rIC for lazy pages 2018-03-27 19:46:01 -07:00
Nolan Lawson 148b1f1b38 use flexbox for dialog button 2018-03-27 17:31:17 -07:00
Nolan Lawson d4c63f04db fix grid layout in Edge 2018-03-27 17:21:40 -07:00
Nolan Lawson 59cf489ca3 try to fix floating button with will-change:transform 2018-03-27 10:01:35 -07:00
Nolan Lawson 1d7d7612a6 improve floating compose button 2018-03-27 09:38:19 -07:00
Nolan Lawson afb67f076d change design of top nav bar 2018-03-27 09:34:29 -07:00
Nolan Lawson ddd32a2223 improve tests 2018-03-27 08:38:40 -07:00
Nolan Lawson 58b700788c add floating compose button 2018-03-27 00:02:55 -07:00
Nolan Lawson 412c7316bc add followers/following/toots to account profile 2018-03-25 16:07:18 -07:00
Nolan Lawson 7ce9a39119 add emoji autosuggest 2018-03-25 12:24:38 -07:00
Nolan Lawson 6fc21e40bf add username autocomplete feature 2018-03-24 18:04:54 -07:00
Nolan Lawson f9cde60a1d fix follow animation 2018-03-23 09:10:49 -07:00
Nolan Lawson 882a288326 only show hourglass for locked accounts 2018-03-23 08:39:09 -07:00
Nolan Lawson c67ba5c0a9 spoiler button is faster now 2018-03-23 08:29:54 -07:00
Nolan Lawson d682982a54 fix caching logic 2018-03-23 08:16:46 -07:00
Nolan Lawson 3b03bd0e8d tweak when to use requestIdleCallback 2018-03-22 22:53:50 -07:00
Nolan Lawson 0dc676b1c5 tweak render buffer 2018-03-22 22:31:29 -07:00
Nolan Lawson cd968245e1 go back to having Timeline.html manage focus 2018-03-22 21:59:02 -07:00
Nolan Lawson 7a9cb22269 add icons for boosters/favoriters/followers in status header 2018-03-22 21:36:19 -07:00
Nolan Lawson 2785eb28c3 add option to reduce motion 2018-03-22 20:23:00 -07:00
Nolan Lawson 76848d4c35 make anims faster 2018-03-22 20:19:07 -07:00
Nolan Lawson 15133c276b add animation for following someone 2018-03-22 20:18:17 -07:00
Nolan Lawson 80c92ac33d fix animation IconButton issue in Edge 2018-03-22 20:09:20 -07:00
Nolan Lawson a03961f379 attempt to fix focus crash issue 2018-03-22 19:56:08 -07:00
Nolan Lawson d40befacdb compose button is not disabled by default 2018-03-22 17:55:35 -07:00
Nolan Lawson ef51842e6a calculate listOffset to avoid profile offset issue 2018-03-22 17:33:42 -07:00
Nolan Lawson 98b8ea1c67 increase the render factor until I can figure out how to fix the list offsets 2018-03-22 09:39:46 -07:00
Nolan Lawson ec73ce8149 avatar should be aria-hidden 2018-03-22 00:22:18 -07:00
Nolan Lawson d2834d3bb2 dial back rIC usage, fix virtualListStore calculations 2018-03-22 00:01:19 -07:00
Nolan Lawson 72e7e18e0b add favorite/reblog animations 2018-03-21 09:38:20 -07:00
Nolan Lawson 7053230ac0 fix focus() being called too often 2018-03-21 00:53:52 -07:00
Nolan Lawson 60dd2ecff2 add muted style for image/video dialogs 2018-03-20 21:26:53 -07:00
Nolan Lawson b7406c78ae simplify HiddenFromSSR 2018-03-20 20:56:52 -07:00
Nolan Lawson 0c9992c0e1 change scheduling to focus on requestIdleCallback 2018-03-20 20:28:53 -07:00
Nolan Lawson 98b704f465 optimistic updates for fav/reblog 2018-03-20 17:41:39 -07:00
Nolan Lawson 1786d737bb correctly resize text input after posting 2018-03-19 20:58:53 -07:00
Nolan Lawson f6d1e5079a add titles for mention links 2018-03-19 18:05:51 -07:00
Nolan Lawson 00fd911579 truly fix streaming gap issue, remove sleeps from tests 2018-03-19 18:00:49 -07:00
Nolan Lawson eaa19f79e4 fix streaming gap issue 2018-03-19 10:09:05 -07:00
Nolan Lawson add39a7334 faster HiddenFromSSR implementation 2018-03-18 18:37:19 -07:00
Nolan Lawson 536fa97060 don't attempt to remove reblogged duplicates 2018-03-18 09:31:36 -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 ed0db17ca0 add auto-focus to reply input text 2018-03-16 19:04:48 -07:00
Nolan Lawson 9a0071a934 clicking avatars goes directly to profile 2018-03-16 18:48:24 -07:00
Nolan Lawson 4e47f3048b can show list of follow requests 2018-03-16 09:18:40 -07:00
Nolan Lawson 67e2e781f4 start on follow requests 2018-03-16 09:05:34 -07:00
Nolan Lawson 9de2949cb7 Simplify selectors, prefer class selectors for SVGs 2018-03-16 08:58:04 -07:00
Nolan Lawson bd0a0bf0be refactor 2018-03-16 00:01:03 -07:00
Nolan Lawson e4572a8066 increase timeout 2018-03-15 21:01:37 -07:00
Nolan Lawson a25dd048b6 make statuses robust against duplicates, remove duplicate from test 2018-03-15 20:04:24 -07:00
Nolan Lawson a5ca99c2f0 fix some tests 2018-03-15 17:33:52 -07:00
Nolan Lawson 9c6b8a7a8e Revert "use rIC to keep scrolling smooth"
This reverts commit fc8554bed3.
2018-03-15 10:25:02 -07:00
Nolan Lawson 8c8c6bab25 improve perf of hydrateContent slightly 2018-03-15 10:05:49 -07:00
Nolan Lawson fc8554bed3 use rIC to keep scrolling smooth 2018-03-15 10:00:51 -07:00
Nolan Lawson f137f0c56c simplify and expand click delegates 2018-03-15 08:59:30 -07:00
Nolan Lawson f81bb51936 change toast message 2018-03-14 23:17:47 -07:00
Nolan Lawson 622b162924 uniqBy doesnt have shorthands in production 2018-03-14 23:13:27 -07:00
Nolan Lawson 8bd3cf24e3 reduce viewport render factor for better scrolling perf 2018-03-14 23:03:37 -07:00
Nolan Lawson 56f7efb78f implement requesting to follow someone 2018-03-14 22:32:58 -07:00
Nolan Lawson c11f2454ad break up status rendering with rAF a bit 2018-03-14 19:04:48 -07:00
Nolan Lawson 1477fbfbda faster classname function 2018-03-14 18:52:33 -07:00
Nolan Lawson 2db30856f9 fix bug where large items might not be rendered when scrolling up 2018-03-14 18:38:26 -07:00
Nolan Lawson a2744cddb0 attempt to fix dupliates in itemIdsToAdd 2018-03-14 09:46:08 -07:00
Nolan Lawson b8d1ccb339 add ability to delete a status 2018-03-14 08:36:12 -07:00
Nolan Lawson ffa672382d fix underline on link hover 2018-03-14 07:24:24 -07:00
Nolan Lawson c97937eced remove unnecessary rAF 2018-03-14 07:24:16 -07:00
Nolan Lawson 436c8c05aa implement lazy images 2018-03-13 23:07:30 -07:00
Nolan Lawson dd67b4f856 fix "loading more" spinner 2018-03-13 21:27:34 -07:00
Nolan Lawson 5908ac6614 Implement LazyPage and refactor to support it 2018-03-13 20:02:50 -07:00
Nolan Lawson b0896a4e10 move informational footer to own component 2018-03-12 22:16:52 -07:00
Nolan Lawson a05c691667 Revert "improve column switching performance"
This reverts commit 8813694039.
2018-03-12 22:13:51 -07:00
Nolan Lawson 8813694039 improve column switching performance 2018-03-12 20:58:45 -07:00
Nolan Lawson 624020dd01 improve keyboard latency in compose box 2018-03-12 20:18:34 -07:00
Nolan Lawson 136ec67d61 fix length gauge 2018-03-12 10:06:41 -07:00
Nolan Lawson c13771c3a0 more options button to follow/unfollow 2018-03-11 19:40:32 -07:00
Nolan Lawson 92176df3ab add ability to follow/unfollow an account 2018-03-11 15:22:31 -07:00
Nolan Lawson 9c0fbdabd2 better offline support 2018-03-11 12:11:06 -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 d4e48ac6fa better indication of non-autoplay gifs 2018-03-10 11:28:30 -08:00
Nolan Lawson b3263e528f fix incoming statuses, add tests 2018-03-10 10:54:16 -08:00
Nolan Lawson 8b21505089 fix offline display of images in timeline 2018-03-09 23:30:17 -08:00
Nolan Lawson af814b24f5 change comments 2018-03-09 23:09:43 -08:00
Nolan Lawson 7813cf99ed immediately add replies to threads 2018-03-09 22:31:26 -08:00