Commit Graph

416 Commits (7d7a11250c3e1994c12a54f05520657392ca93a7)

Author SHA1 Message Date
Eugen Rochko 82fd74d101 Fix modals sizing and add animation to it, fix by only making the text of
status clickable (this also fixes multiple dropdown being openable at the same
time)
Eugen Rochko 36921be9aa Fix - Make active favourite buttons yellow
Eugen Rochko bf5f55a6bb Fix live status removal from public/hashtag channels
Eugen Rochko 9aecc0f48a Move timelines API from statuses to its own controller, add a check for
resources that require a user context vs those that don't (such as public timeline)

/api/v1/statuses/public   -> /api/v1/timelines/public
/api/v1/statuses/home     -> /api/v1/timelines/home
/api/v1/statuses/mentions -> /api/v1/timelines/mentions
/api/v1/statuses/tag/:tag -> /api/v1/timelines/tag/:tag
Eugen Rochko 86574ea524 Adding Emoji One
Eugen Rochko 0400734df7 Click video player to toggle playback
Eugen Rochko a39a92bd22 Fix - More prominent focus style for inputs
Eugen Rochko bec47e40f5 Better look/behaviours for video player/lightbox
Eugen Rochko d0d799f911 Replace react-skylight with own solution that centers images better
Eugen Rochko c3559d18a3 Do not modify scroll position unless content has been added to the top, not bottom
Eugen Rochko 4a6cc46e81 Keep scroll position when scrolled down and new content is added
Eugen Rochko 23fc424b7a Account notes (bios) can now contain links. Character limit upped to 160
Eugen Rochko 262adb9791 Fix remote hashtag linking
Eugen Rochko eb47409036 Fix mistake
Eugen Rochko a698b767c1 Fix linking of remote hashtags in UI, add public view of hashtags
Eugen Rochko 48b9619439 Adding hashtags
Eugen Rochko 2463c72006 Add forgotten reducer for FAVOURITES_FETCH_SUCCESS
Eugen Rochko 087b993892 Adding list of who favourited status
Eugen Rochko 6d5ef89356 Reduce code duplication, add touch scrolling behaviour for webkit browsers
on scrollable areas
Eugen Rochko 98c3a5e9c3 Optimize how statuses are re-rendered and relative time intervals
Eugen Rochko 6d26bfd147 Add list of who reblogged status
Eugen Rochko 0405ef977a Aria-labels actually didn't work in React, so removing. Fixing some bugs
Eugen Rochko 159203a7bc Fix : Add aria-labels
Eugen Rochko 3731230c6d Allow @username@domain/@username in follow form, prevent duplicate accounts
created via remote look-up when domains differ but point to the same resource
Eugen Rochko aff22bfdb5 Add own composed status to home without waiting for websocket event
This makes the UI appear less laggy. After all, the status *is* created
right there and then, it's the distribution to home timelines that can take
a while
Eugen Rochko 4b357ecf98 Fix subtle bugs, new icon button
Eugen d427df4a8a Merge pull request from marcus-herrmann/master
a11y: Improve icon button component regarding semantics, screen reader usage
mhe 87aabeb7af a11y: Improve icon button component regarding semantics and screen reader usage
Frederic Hemberger 5ff2762fcf a11y: Add labels to input fields for screenreader
See: https://dequeuniversity.com/rules/axe/2.1/label
Eugen Rochko dd03118098 Fix follow icon changing plus to minus, add terms page stub
Eugen Rochko 57304ac375 Catch 404 errors when downloading remote media, add screenshot to landing page
Eugen Rochko bab4904492 Actually fix the reblogs/favs reducer issue
Eugen d88d148d89 Fix forgotten reducers for reblogs/favourites
Eugen 50aaf4667f Fix accounts not being normalized from context statuses
Eugen Rochko 7e35650398 Actually complete the autosuggestion feature
Eugen Rochko c49f6290eb Basic username autocomplete for text area
Eugen Rochko e8ff4c8e56 Refactoring redux state into different reducers
Eugen Rochko 7060bdf04b Hide notes on user lists for now
Eugen Rochko bfb6cc5f2c Make suggestions box also use user list components
Eugen Rochko ac4f53a3a2 Improved how user lists look, added follow button to them
Eugen Rochko 1c84d505c8 Adding following/followers lists to the UI
Eugen Rochko c1a0633a12 Guard against unexisting statuses rendering
Eugen Rochko de50eff6ac Add opening images in a modal window
Eugen Rochko f8f40f15da Move status components inside individual containers. We still need to select
all statuses/accounts to assemble, but at least lists don't have to be
re-rendered all the time now. Also add "mention" dropdown option
Eugen Rochko b746a931a5 Fix OAuth authorization redirect
Eugen Rochko a9e40a3d80 Adding OAuth access scopes, fixing OAuth authorization UI, adding rate limiting
to the API
Eugen Rochko 04bbc57690 Fix - Add "back" button to certain views
Also fix reloading of timelines after merge-type events
Eugen Rochko 8698cd3281 Remember scroll position when navigating back, do not needlessly reload
entire timelines (only fetch since last known ID). Side effect: account
timelines no longer update in real-time
Eugen Rochko f88b8ce757 Improve how errors are displayed in the UI
Eugen Rochko 43df35213e Improving all forms
Eugen Rochko 7bb72ff198 Small clean up
Eugen Rochko b62c31306e This should fix it
Eugen Rochko f8b9b0810d Debugging
Eugen Rochko 225ce8cfce More debugging
Eugen Rochko ea44d89383 More debugging
Eugen Rochko dd02fc0ec4 More debugging
Eugen Rochko f3e5625d2d More debugging
Eugen Rochko fdd30af595 Will this fix the issue?
Eugen Rochko 6611e3a2ef More debugging
Eugen Rochko 564e01eaf6 Add console.error to all axios failures
Eugen Rochko e865673175 Fix - only show latest reblog of status in UI
Eugen Rochko b5c6d00afa Fix - public timeline not just reblogs, fix infinite scrolling issues
Eugen Rochko f0f791bb76 Don't preload timelines as props, load them when timeline component is mounted
This prevents the bug where if you go "back" to the UI after navigating to
another page it loads with the old set of statuses
Eugen Rochko b8eda3026f Fix scrolling on small devices for account timelines and compose column
Eugen Rochko 4470330385 Backfill follow suggestions with fallback when not enough results. Cycling
through suggestions in UI
Eugen Rochko df2c0b8dad Fix typo
Eugen Rochko 04bfd4262f Fix follow suggestions ranking
Eugen Rochko 67b35a601a Exclude blocked users from follow suggestions, fix tests
Eugen Rochko aa9d48343d Fix suggestions box style for long names
Eugen Rochko 20f581f796 Display follow suggestions
Eugen Rochko e21a3fe0cd Adding sync of follow relationships to Neo4J, accounts/suggestions API
Eugen Rochko a3384b6ea6 Add "edit profile" link to dropdown on own profile
Eugen Rochko 7a6d95f70c E-mail preferences page
Eugen Rochko 9b195f5dd3 Add window titles to auth pages and about page, link sign up/login from about page
Eugen Rochko f7f3e6e3be Fix styles
Eugen Rochko 45776b55b0 Responsively changing layout to single-column + nav on smaller screens
Eugen Rochko 0634e8dee5 Improved how in-UI profiles look
Eugen Rochko 29e79f770f Making AccountTimeline into a sub-route
Eugen Rochko d85df27053 Fix mistake
Eugen Rochko bef4d8dab8 Add link to public timeline to getting started screen
Eugen Rochko ef9d4f4e06 Use reselect to memoize denormalization in UI state
Also upgrade react-redux to latest version. This is a performance update
Eugen Rochko 1f650d327d Adding public timeline
Eugen Rochko 943c69c65d Fix - Click on in-UI profile avatar/name to open public profile
Eugen Rochko a4b8069cf5 Styling loading indicator, removing unused routes, adding "getting started" explanation
Also, only update relative time every minute instead of 6 seconds. My bad
Eugen Rochko e8a8703a4b Fix how missing display name is displayed (fallback to username)
Eugen Rochko 296ce2d45a Adjusting new CSS for smaller screens
Eugen Rochko 2af3abd279 Fix - break too long lines and hide overflowing characters in status content
Eugen Rochko 05af66d6b9 Fix - pretty scrollbars for lucky webkit users
Eugen Rochko 3554d638b3 Fix - add follow/unfollow button to public profiles
Eugen Rochko 87ba52ad3f Fix delete option missing from statuses in detailed view
Eugen Rochko b304cc07d5 Fix - set scrollTop property of element node rather than use scrollTo() method
Eugen Rochko 8bdbe99d69 Fix - Add logout link to UI
Eugen Rochko 68402228f3 Fix - disable autocomplete on follow form
Eugen Rochko 70e9dd0b5b Blocking will prevent e-mail notifications from blocked user, blocks in UI
Eugen Rochko 7b9a4af311 API for blocking and unblocking
Eugen Rochko fc198a8b4c Adding e-mail confirmations
Eugen Rochko b3c7c8700d Fix most pages on small screens
Eugen Rochko 188c6f326b Making public pages responsive, removing reblogs/favs counts from them
Eugen Rochko be86d4e0a3 Preparing feeds for better filtering
Eugen Rochko 1fce687f8e Unreblogging and unfavouriting from the UI
Eugen Rochko 4909bbf415 Add logging for outgoing http requests
Eugen Rochko ef2b50c9ac Deleting statuses from UI
Eugen Rochko e63aebff7a Adding landing page
Eugen Rochko 45a96e899e Fix - disable compose form while image is uploading
Eugen Rochko 4f9b7432dd Fix - Add API versioning (v1)
Eugen Rochko 7e14eefc81 Replace logo, fix - delete/unreblog/unfavourite API, fix - app
registration API
Eugen Rochko 0bd4608ad1 Fix - Filter self from pre-filled mentions
Eugen Rochko 693383234c Improved style of settings page
Eugen Rochko e9bc4a4a08 Limit usernames to 30 chars, statuses to 500, open account after follow form success
Eugen Rochko 62b384824d Improved styling for media/videos in detailed status view
Eugen Rochko 15f51dbf8c Better styling for selected status in detailed view
Eugen Rochko db6df6ddb3 Only load JS on homepage, no other page uses it
Eugen Rochko 95d72b2249 Temporarily link "settings" to the static version of the form
Eugen Rochko 0c75ce1122 Improved ColumnsArea on smaller windows, improved how ActionBar looks
Eugen Rochko 3f9708edc4 Change output of api/accounts/:id/follow and unfollow to return relationship
Track relationship in redux state. Display follow/unfollow and following-back
information on account view (unstyled)
Eugen Rochko c6d893a71d Uploading/undoing media modifies status text. Also: status text trimmed before validation
Eugen Rochko b1a670af8d Handle remote account mentions a little better by trying a URL lookup in the db
Eugen Rochko 2a84271e85 Infinite scroll for account timelines
Eugen Rochko 2c0261ac25 Infinite scroll for timeline columns
Eugen Rochko 74dfefabd3 Make in-text mentions open account detailed view when possible
Eugen Rochko bc98865c1a API returns mentions for statuses, compose form pre-fills all relevant usernames into the form when replying
Eugen Rochko e46abc71ca Fix notifications in UI, added new API for fetching account relationships
Eugen Rochko 6d89edc4f7 Fix by renaming TIMELINE_SET action to TIMELINE_REFRESH_SUCCESS
Eugen Rochko a86f21cf90 Fix rake tasks and loading bar
Eugen Rochko 1245ee42fb Update OStatus2 library
Eugen Rochko 98de6927f3 Remove background mask from avatars
Eugen Rochko 337462aa5e Re-organizing components to be more modular, adding loading bars
Eugen Rochko f820edb463 Fix type mistake in account component
Eugen Rochko ee770c3fd3 Live update account timelines, small fix for replyCompose
Eugen Rochko 0967961de7 Improve how account detailed view looks, load account's statuses
Eugen Rochko dafcb02153 Remove unused action constants
Eugen Rochko 08896f7dcf Detailed status view scrollable
Eugen Rochko ab7291b8fe Add ancestors/descendants during normalization in timeline reducer
This way replies will appear in the detailed view live if they are from
statuses that would be delivered to the user normally
Eugen Rochko dfd5deacf4 Volume toggle control in VideoPlayer
Eugen Rochko 5342629a0a Adding webm playback to UI
Eugen Rochko bd5ad304ba Adding media controller, 1 webm/compose form allowed, previews generated
Eugen Rochko 0e9c1a297a Improved error handling for FollowRemoteService
Eugen Rochko 8c0b19012b Fix , debug
Eugen e906677092 Stop event propagation after IconButton onClick
Eugen Rochko 5b0cef9781 Setting up preliminary "detailed" routes in the UI, new API end-point for fetching status context
Eugen Rochko 2e7aac793a Adding sense of self to the UI, cleaning up routing, adding third (detail) column
Eugen Rochko d6a64f45fd Adding a notification stack for error messages
Eugen Rochko ce29624c6d Fixing image upload limits, allowing webm, merge/unmerge events trigger
timeline reload in UI, other small fixes
Eugen Rochko 0077fc26df Merge and unmerge timelines on follow/unfollow, solves ,
Eugen Rochko 457625591d Styling for paragraphs in statuses
Eugen de7eb2341a Fix typo in deleteFromTimelines action creator
Eugen Rochko a4cc966476 Removing default avatars
Eugen Rochko 0f4bc56719 Improving production logs, removing n+1 on media attachments in atom,
adding attachments display to static views
Eugen Rochko 499beb4484 UI for uploading media attachments (and cancelling them)
Mostly resolves , though attachments are still not displayed in public view
Eugen Rochko aca988a16b Fix for Drawer growing horizontally
Eugen Rochko 75fbde1c1a Fixed styling for media attachments in statuses (margins)
Eugen Rochko ac77170d19 Add icons to column headers, click them to scroll to top
Eugen Rochko 1f18cf97b5 Fix styling of media attachments in statuses
Eugen 265215dae9 Fix reply bug introduced when compose form started using normalized data
Eugen Rochko 5f36d8828a Better layout for attachments in <MediaGallery>
Eugen Rochko fc222dfa49 Displaying media attachments in timelines
Eugen Rochko eec0dc46a6 PostStatusService can attach media to status, ProcessFeedService likewise
Eugen Rochko ae1fac0062 Add API to upload media attachments
Eugen Rochko 05001d54d1 Make compose form also use normalized data
Eugen Rochko 926eea89b5 RemoveStatusService fleshed out, still doesn't send Salmon slaps though
Eugen Rochko 1022d682dc Normalized data in Redux, fix for asset URLs when rendered outside request
Eugen Rochko d0e2733f63 Fix reblogs of reblogs in UI, add follow form in UI
Eugen Rochko 2d57bcf1b7 Preparing for follow form
Eugen Rochko c249ceb10c Reblogs fixed
Eugen Rochko 595c8dda60 Favouriting works, reblogging is a little broken because of <Status>
Eugen Rochko c2a4d70265 Small style fixes
Eugen Rochko 2093cda89a Fixing one more typo
Eugen Rochko d6873797ac Fix typo
Eugen Rochko dbae8062f4 Replies in the compose form
Eugen Rochko 1e0e17ba85 Improving styling a little bit
Eugen Rochko 72591cc6d5 Cleaning up action names and compose drawer
Eugen Rochko 92afd29650 The frontend will now be an OAuth app, auto-authorized. The frontend will use an access token for API requests
Adding better errors for the API controllers, posting a simple status works from the frontend now
Eugen Rochko 44e57f64dd Improving statuses, adding a composer drawer, which doesn't work yet
Eugen f5e1127894 Forgotten return
Eugen Rochko a541e937ca More styling for statuses
Eugen Rochko bc0692d75b Removing mini-profiler that doesn't work, formatting timelines a bit better
Eugen Rochko 03f5ffcd06 Dockerfile adjustments
Eugen Rochko 49520d6e62 Adding React.js, Redux, revamping dashboard
Eugen Rochko 6deb9f966e Live timelines using ActionCable
Eugen Rochko 882c94a6bf Cleaning up status partial
Eugen Rochko 85b00d19b8 Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
Eugen Rochko f2da848a3e Add alternate link to entries Atom
Eugen Rochko 5764d52b04 Fix Sidekiq pooling issues. Remove API docs from homepage, replace with
a basic home timeline
Eugen Rochko 318886287b Fixing some stuff for Turbolinks, adding gzip on top, fixing a n+1 query
Eugen Rochko 8eeec389c1 Add link to github project to footer, move FanOutOnWriteService calls to
DistributionWorker. That isn't the heaviest service, yet, but gotta start
somewhere
Eugen Rochko f14f462eaf Adding Turbolinks, adding status posting form on homepage
Eugen Rochko 5b10329394 Resize default avatar cat to fit circle better
Eugen Rochko 02696a063e Change default avatar, redirect to home after sign up
Eugen Rochko 9d55529318 Fix text color in dashboard inputs, sanitize remote status content in UI,
simplify FanOutOnWriteService, add /api/accounts/lookup method
Eugen Rochko bf08d46e58 Improving borders between predecessor/successor statuses
Eugen Rochko b640f35621 Writing out more tests, fixed some bugs
Eugen Rochko 5d72b92271 Improving account grid cards layout for longer usernames and notes
Eugen Rochko 71ae4dd3d2 Adding public following and followers pages, fix
Eugen Rochko c349200761 Removing some unused gems, adding pagination to profiles, fix
Eugen Rochko 8767a98fbb Adding CSS for form errors, adding missing indices
Eugen Rochko 6fec8afc3f Bind oauth applications to users
Eugen Rochko 25d7c1b6ea Customizing the last of doorkeeper views, adding CSS for dashboard forms
Eugen Rochko 3441361568 Adding simple_form, adding profile settings, header image
Eugen Rochko 1aa477ac2f Customized more doorkeeper views, only logged in users can create oauth apps
Eugen Rochko aab9f57e36 Adding config for puma, dashboard layout, fixing some queries
Eugen Rochko b919f39b31 Customizing doorkeeper views for authorizing app
Eugen Rochko d4b9b289e8 Adding Mastodon logo
Eugen Rochko ab6696e855 Adding doorkeeper, adding a REST API
POST /api/statuses                  Params: status (text contents), in_reply_to_id (optional)
GET  /api/statuses/:id
POST /api/statuses/:id/reblog

GET  /api/accounts/:id
GET  /api/accounts/:id/following
GET  /api/accounts/:id/followers
POST /api/accounts/:id/follow
POST /api/accounts/:id/unfollow

POST /api/follows                  Params: uri (e.g. user@domain)

OAuth authentication is currently disabled, but the API can be used with HTTP Auth.
Eugen Rochko 3824c58853 Adding GNU Public license, adding home timeline, reblog/favourite counters
Eugen Rochko aab330eb2d Adjusting design of public pages, optimizing account page queries
Eugen Rochko ab80ebdeec Adjusting design of profile and entry pages, linkify mentions in statuses
Eugen Rochko 6045b6cb18 Customizing devise views and controllers
Eugen Rochko 0e8f59c16f Refactoring Grape API methods into normal controllers & other things
Eugen Rochko 47d50b0e39 A lot of fixes from a live test
Eugen Rochko 2825991e09 Improving status display design, including replies and threads
Eugen Rochko 5ae54f9e36 Adding avatars to profile page and statuses
Eugen Rochko 2c70f0ecaa Adding paperclip for avatars, fixing design of the public pages
Eugen Rochko fa29ef3a41 Improving design
Eugen Rochko 24646d5769 Adding views for the profile and entry pages
Eugen Rochko 709c6685a9 Made some progress
Eugen Rochko 9c4856bdb1 Initial commit