Commit graph

184 commits

Author SHA1 Message Date
asonix fb7784f668 Update 'previous' and 'next' submission buttons to traverse submissions 2021-01-22 21:21:37 -06:00
asonix b2fb2f6283 Make more use of extension traits, change Update to Edit 2021-01-22 20:19:58 -06:00
asonix 0591969ccd Server: Add tile indicators for file counts, page
Fix submission file removal
2021-01-22 19:55:17 -06:00
asonix 4011ceb72f Toolkit: Add horizontal-scrolling option for Tiles
Add indicator dot for tile information
Always use 16px right margin for profile icons
2021-01-22 19:53:25 -06:00
asonix 4335891de2 Keep profile image in place on tiny screens 2021-01-21 23:55:20 -06:00
asonix f5551ebaa8 Update TODO with current information 2021-01-21 23:51:46 -06:00
asonix 934ddd76ff Server: Update to latest Toolkit & Profile apis
Reorganize files a bit
Add a Pagination trait to guide with paging in the future
Add extension traits for Profile, Comment, and Submission
Async-ify more things, but not all things
2021-01-21 23:47:47 -06:00
asonix a3c4bdce09 Profiles: Remove distinction between Context and State 2021-01-21 23:43:38 -06:00
asonix 7e2141d1b5 Accounts: Update to new toolkit api 2021-01-21 23:42:48 -06:00
asonix c86f4b3ff2 Move Images and Tiles into the toolkit
Add a Profile toolkit struct
2021-01-21 23:42:19 -06:00
asonix f6f603324a Fix federated image update duplication for submissions 2021-01-18 11:21:41 -06:00
asonix 77abf536f6 Add note about Sled 1.0 and Thread Safety in TODO.md 2021-01-17 22:52:52 -06:00
asonix f55a7011dc Add note about Blind Key Rotation in TODO.md 2021-01-17 22:44:31 -06:00
asonix 3594058a43 Toolkit: Add back 'height: 100%' to icon css
- Add media query to shrink icons further on sub-300px screens
2021-01-17 22:11:44 -06:00
asonix 2d2252e7b3 Add Shares section to TODO.md 2021-01-17 22:10:17 -06:00
asonix 7baeb47d34 Add information about NSFW submissions to TODO 2021-01-17 16:36:01 -06:00
asonix 6ba7b13e3e Add more to the TODO 2021-01-17 16:26:41 -06:00
asonix e1935b7935 Fix typo in code sample 2021-01-17 16:15:51 -06:00
asonix 67d0954635 Write up a TODO that details things that need to happen before MVP 2021-01-17 16:08:25 -06:00
asonix 04a9390482 Federation Test: automatically build pict-rs directories 2021-01-17 15:09:04 -06:00
asonix 5987f2f544 Server: Switch to tracing subscriber 2021-01-17 15:08:34 -06:00
asonix 4183da60ed Toolkit: Improve styles on smaller screens
- Allow profile icons to shrink
- Make select go full-width
2021-01-17 15:07:46 -06:00
asonix 83b447b780 Profiles: Federation fixes
- Fix image federation
- Enable submission & comment create/update federation
- Improve checks to ensure we don't federate when we don't need to
2021-01-17 15:01:45 -06:00
asonix c9b1c4fac0 Add a docker compose for federation testing 2021-01-17 01:31:00 -06:00
asonix 071e2ba838 Server: Implement federation
Http Signatures for Authorized Fetch + Delivery
Webfinger for actor discovery
2021-01-17 01:29:59 -06:00
asonix 642f0bb578 Profiles: lots of federation fixes
Currently federation requests + accepts + rejects + undos all work
Federation blocking works also
Profiles can federate their text and images, provided federation was
enabled before profile creation. Looking into backfilling existing
profiles is TODO
2021-01-17 01:27:13 -06:00
asonix 3e83994824 Accounts: Don't use domain in cookie 2021-01-17 01:18:52 -06:00
asonix e42aa27d12 Expose server info in admin panel 2021-01-16 11:49:03 -06:00
asonix 2c8439bed2 Add messaging around missing item errors 2021-01-16 11:48:12 -06:00
asonix 6ec099a1fd Print server actor on first generation 2021-01-15 22:51:30 -06:00
asonix 5f0682ee22 Make mobile nav not require page refresh when JS enabled
Make top bar stick to top of screen
Make wide view show rows of 4
Improve notification page styles, text
Add button js to more pages
2021-01-15 22:50:15 -06:00
asonix 95b3b17c61 Profiles: Add Servers, server follows & blocks
Enable and expose report forwarding
2021-01-15 22:25:16 -06:00
asonix c9b0c1a7cf Add notifications page to manage follow requests 2021-01-14 23:51:17 -06:00
asonix 0a64034ea9 Profiles: Expose notifications for profile
- Expose notification counts for profile
- Expose Accept & Reject Follow Request constructors
- Don't error on missing activitypub for RejectFollowRequest
2021-01-14 23:50:31 -06:00
asonix f350d718ac Add Profile and Submission report logic
Implement Follow and Block logic
2021-01-14 20:42:30 -06:00
asonix 29bdf064e9 Profiles: Update profile delete to profile suspend
Clear profile data on suspend
Clear comment body on delete
Update Unfollow and Unblock operations to only delete apub IDs if present
2021-01-14 20:41:53 -06:00
asonix 3f446a0b16 Add Admin page
- Add commandline flag to promote a user to an admin
- Add basic reporting feature
  - Enable reports for comments
  - TODO: Enable reports for submissions & profiles
2021-01-13 22:46:34 -06:00
asonix 464429747d Profiles: Add Reports, and the ability to suspend profiles
- Plus: Don't delete comments on delete, just mark as deleted
- TODO: Purge text from deleted comments
2021-01-13 22:43:43 -06:00
asonix 1c1e4fe677 Accounts: Add username lookups to public API, add suspended flag to account 2021-01-13 22:41:20 -06:00
asonix 8c61a428fa Add select input 2021-01-13 22:40:36 -06:00
asonix 73d40e2f75 Cache associated records when iterating over comments or submissions
Rely more on the toolkit for UI
Fix a couple hard-coded dark modes
2021-01-12 22:39:59 -06:00
asonix 979c6386ef Profiles: Only put top-level comments in submission tree 2021-01-12 22:35:29 -06:00
asonix a1e219f015 Move date rendering, nested records, icons, profile page into toolkit 2021-01-12 22:34:25 -06:00
asonix 67f3430751 Pull single-file folder modules into single-files 2021-01-11 22:02:16 -06:00
asonix 815649b0f1 Build out comments view, edit pages, submission comments section 2021-01-11 21:59:42 -06:00
asonix 7357fb4042 Switch stored records to using owned strings
There's an issue with the presence of returns with serde_json.
They can be serialized from borrowed strings, but they cannot
be deserialized into borrowed strings. I haven't looked into
why, but it's easy to just Own Things ™️

Also:
- Fix self-federating for comment create & update (this will
  likely need to be fixed for reacts when I get around to
  that)
- Expose API to retrieve replies for a given comment
- Expose Comment Create & Update actions
2021-01-11 21:58:03 -06:00
asonix 25311fe2f8 Textarea value sandwich :) 2021-01-11 21:52:49 -06:00
asonix 4ff824b92d Delete 'Back' in favor of mobile nav query
Add submissions to home page
Add drafts page
Validate handle, display name, description, submission: title, description
Add block checks to submission iterator
Add user info to submission page
Abstract dark preference to a single source, not yet configurable
2021-01-10 22:09:47 -06:00
asonix 7ecc402d1b Differentiate Drafted vs Published submission iterators
Always perform state changes in background thread
context -> ctx
2021-01-10 22:03:20 -06:00
asonix 628ccfcbdc Ignore cookie domain until a better method is found 2021-01-10 21:59:39 -06:00