Skip to content

Overhaul user profile display. One task to rule them all.

This is just one task that ecompasses all of these: #65 #111 #198 (closed) #199 (closed)

Steps:

  • Change current display and switcher from two panel to one panel, use tab-switcher instead of whatever is there right now. All the refactoring that needs to be done goes in this step. !427 (merged)
    • Add posts without replies
    • Add favorites
    • Add media
      • Make media tab display images/videos/audio somewhat similar to how tusky handles it instead of showing posts
    • Add ability to hide followers/following/favorites depending on users's relevant privacy settings.

Overview

Several key points:

  • Right now user profile allows you to see:
  • All of the user's posts
  • Followers
  • Who user Follows
  • We also needs to add:
  • User's posts without replies
  • User's media (only posts containing media)
  • User's favorites/liked posts
  • ability to filter out repeats
  • Code regarding user timeline seems scattered all over the place, like some stuff related to switching between statuses/followers/follows is in modules/statuses.js, looks like it needs refactoring.

Mastodon shows "Posts/Posts with replies/media" under "Posts". Tusky also shows media in a different way than mastodon's profile page. Neither of those have "favorites" display, it's a bit of challenge to fit it in somewhere (esp if we don't have counter for it)

In addition, current switcher posts/following/followers confused some people. And honestly it feels very disconnected visually.

And finally with hide_network option we need to do something about not allowing users to view followers/follows or show some kind of error.

My proposition is to use single-level-depth switcher. Just a tab bar that has:

  • Posts
  • Posts with replies
  • Media
  • Following (if allowed)
  • Followers (if allowed)
  • Favorites (if allowed?)

Visually it should probably look something like this (artist rendition):
image

Edited by HJ