Giter Club home page Giter Club logo

mastodon-ios's Introduction

Mastodon

CI Crowdin

Download on the App Store

Introduction

This is the repository for the official iOS App for Mastodon. You can install it from the App Store now. You can build the app from source and file bug report here.

Read this blog post for this app to learn more.

Developing an official iOS app for Mastodon

Getting Started

Acknowledgments

Thanks to these open-source projects listed here.

License

This project is released under the GPL-3 License. It is also dual-licensed to Apple for the purposes of publishing the app on the App Store. For this reason, any contributors are required to sign a Contributor License Agreement.

mastodon-ios's People

Contributors

5sw avatar ataridreams avatar bracciata avatar cdoncarroll avatar cythb avatar gargron avatar hirossan4049 avatar ivannnito avatar j-f1 avatar jinsu35 avatar jk234ert avatar jordanekay avatar jvacek avatar jverkoey avatar kimar avatar kylebshr avatar mainasuk avatar marysaka avatar mattrobmattrob avatar nanosector avatar nossipova avatar painhapp avatar pietropizzi avatar reactiveraven avatar rizwankce avatar snxiaojian avatar tejuamirthi avatar treeshateorcs avatar woxtu avatar zeitschlag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mastodon-ios's Issues

Set user avatar and display name when user sign up

When the user following the sign-up flow. The avatar and display name needs to update correctly just when the user enters the home scene after confirming the email. Otherwise, discard the request.

@sxiaojian88 We do not implement related API now. So just make the UX works. I'll fulfill the user info update logic later.

Note:
Please check the new iOS Photo Library permission. We use the read-only grant with the latest API. So the user could directly select the photo without permission request.

Please check the TOCropViewController to make the user could crop the photo into the square shape avatar. Also, iPad test needs for TOCropViewController. There is an issue to present the modal on the iPad. Workaround needs to patch.

[Task] Compose scene

Toot

  • New Toot
  • New Reply

Meta

  • image attachment
  • image description
  • video #142
  • Poll (single)
  • Poll (multiple)
  • Emojis
  • spoilter text
  • visibility
  • input character counter

Auto-complete #137

  • Hashtag
  • Mention
  • Emojis

Highlight

  • URL
  • Hashtag
  • Mention

May be later

  • Draft

[Task] Search scene

Recommend

  • Hashtags
  • Accounts

Search

  • Search history
  • Search result

The search result scene fetching grouped results from the "People" and "Hashtags". The view controller and view model needs implemented as child view controller. Make application could directly set search text without search bar UI.

Add indicator for navigation bar to prompt timeline status

Custom rounded rectangle button when timeline status changed. And handle the button when the user tapping.

  • See new toots (Display when timeline auto-refresh bring new toots)
  • Offline (Display when server request failed due to network error)

Add image preview supports

The preview scene needs full-screen displaying for the image when the user taps the image. And the context menu needs pop up when the user long-press the image.

The transitioning for preview scene present and dismiss following the Photo.app transition style if no UX required. And long press when previewing needs prompt a menu for "share" and "save" image.

Update user profile avatar and display name when sign up success

We implement avatar and display name input for the user in #31. According to the doc. The avatar could upload as multipart/form-data without media attachment API.

  1. User sign up success
  2. User confirm register in the email
  3. App confirm the user token valid
  4. App present home scene
  5. App update profile in the background. And retry 3 times if failed

Add toot's poll UI support

The poll needs to display if the toot has one poll. The poll initiate by the user self could not vote. The User only could vote for others' poll.

There are several states for the poll. Make more detail explain when implement.

Update content warning UI and trigger logic

Currently, the content warning for spoiler text and media are separated. The new UX needs to group the behavior for both. And the content warning reveals state needs to take effect across all pages and persist until the next launching.

Update status timestamp update behavior

The timestamp updates every second now.
1s -> 60s then 1m -> 60m and 1h…

Prefer to display "Now" if in the 60s to avoid a countdown timer. Also, i18n needs.

Add user favorite scene

The favorite scene displays favorited statuses for "Me". The timeline always fetches the latest statuses from API. No needs to store the index in the DB.

  1. User enter favorites scene
  2. App displays favorited statuses (displays "No Status Found" when no favorited statuses)

[Task] Profile scene

  • profile display
    • name
    • username
    • lock icon
    • avatar image
    • header image
    • fields
    • bio
    • number for status
    • number for following
    • number for follower
  • edit profile
  • friendship display / actions
    • follow
    • following
    • blocking
    • blocked
    • muted
  • menu / actions
    • mute
    • block
    • report
    • block domain
    • share
    • reply
  • timeline
    • posts
    • replies
    • media

Aysnc loading needs for deeplink via URL.

Add toot's video/GIF support

Add inline video and GIF player for the toot.

Prefer to use the UIKit AVPlayerViewController without any custom to make the feature landing soon.

The home timeline does not fetch latest data after sign in.

The home timeline needs trigger timeline loading after the user login in when the timeline is empty. The same logic is implemented in the Hashtag scene. So just make that feature works for the home scene. The difference is the home scene inits without authentication info.

Also, the auto-refresh logic with a timer or scrolling bahvior needs to be considered.

Add poll supports for compose scene

Allow the user to create a poll with 2~4 options for the post.

Only one of the media and poll exist at the same time. The poll options need reorderable. The keyboard return or taps create poll button to make a new poll option. The delete backward makes the poll option remove and makes the other poll option active.

Onboarding scene

Display Onboarding(a.k.a Splash) page when the app first launches.

  • Server API
  • Welcom UI
  • Server List UI & UX
  • Sign up form UI & UX
  • Sign up email confirm UI & UX
  • Sign in form UI & UX

Search recommend scene i18n issue

The description placeholder for the account section needs to updated to meaningful string. The Zeplin UI string is not actually strings should place here.

[BUG] more robust pick server scene

  • Handle HTML server description
  1. User input the custom server domain. e.g. "mastodon.social"
  2. App displays server description with HTML tags.

Expect:
The description may in HTML format. Needs to filter out the tags.

  • User count label
  1. User input the custom server domain
  2. Tap "See More"
  3. App always display server users count with 0

Expect:
The instance API returns accounts count. So just update the UI.

  • Crash when bad/without network
  1. User input the custom server domain (with the cellular network)
  2. Server slow response or no response
  3. App crash
    testflight_feedback.zip

Expect:
without crash issue. More robust data source design needs.

Compose content view overlap with keyboard when inputting lots of text

The compose scene sets the bottom inset when the keyboard displays. The inset looks different on the iPhone X and the old iPhone. And content still overlaps when the bottom inset set. The poll duration button can not select if input too many texts.

  1. Input lots of text
  2. Create a poll
  3. Can adjust poll duration due to overlap

Expect:
The keyboard does not overlap the content.

Update timeline appearance

The timeline gap has top and bottom tooth saw now. And the cell internal spacing is set to 20pt (top 10pt bottom 10pt). Needs update to follow UI design.

Handle keyboard return button for the form

The onboarding register scene needs handle keyboard "return" to make focus moving to next input filed. And make return key "Done" at the last input field to dismiss keyboard.

UITableView failed to layout after app resume from background

This is an AutoLayout issue for UI components.

  1. Enter Home to make the App enter background
  2. Resume the App and enter the foreground
  3. The table view layout with the wrong frame

Expect:
The table view should keep the correct layout after resuming.

[Task] Home scene

Media:

  • text-only
  • image
  • video #41
  • GIF #41
  • audio #42
  • Poll

Content Warning:

  • spoilter text
  • reblog header
  • in reply to header #44

Toot Content

  • mention redirect
  • hashtag redirect
  • shorten link
  • normal link redirect
  • status link redirect #140
  • custom emojis

Toot action

  • reply
  • reblog #43
  • favorite
  • menu: share link
  • menu: copy link
  • menu: copy text
  • menu: delete

Display in reply to meta for timeline toot

The reblog header is now displayed for the reblogged toot. We use the same header display in-reply-to meta.

The toot contains an in-reply-to mastodon user ID only without the user object. So async API request for that user is required. Also, hide the header and keep the header height before fetched the user meta.

Add context menu for avatar select for sign up page

The context menu should appear when tapping the avatar button.

  • Photo Library
  • Take Photo or Video (Precondition the device has camera capability. Ask permission when choosing this option)
  • Browse (System file manager for image type media)
  • Remove (Display when avatar set)

[Task] Thread scene

Display thread posts.

  • Show thread when tapping post
  • Deep-link support for same domain post via URL
  • Clipped replies tree with "Show more" logic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.