Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drastic refactor + message formatting #137

Merged
merged 44 commits into from
Sep 8, 2022
Merged

Drastic refactor + message formatting #137

merged 44 commits into from
Sep 8, 2022

Conversation

voltangle
Copy link
Collaborator

@voltangle voltangle commented Aug 26, 2022

In short

This PR does a lot of work under the hood, which aims to make the codebase more maintainable and easier to interact with, like reorganizing views, splitting large views into smaller ones, rewriting some old parts of the code that were written a long ago, when I was at the start of my journey into Swift and Apple development at large

Task list

  • Make services stateless
  • Rewrite services API in general, it's pretty average tbh
  • Reorganize and split up large views into multiple views to make them more readable and maintainable
  • Refactor Caching so it's more like just an in-app database (so make it Storage)
  • Refactor the account settings tab UI
  • Implement message formatting

@voltangle voltangle added enhancement New feature or request ui UI(User Interface) stuff OS: all Related to all operating systems (macOS and iPadOS) internal Internal things ux UX(User Experience) stuff drastic An issue is about a drastic change and/or a rewrite of smth labels Aug 26, 2022
@voltangle voltangle added this to the Stage 2: Media empire milestone Aug 26, 2022
@voltangle voltangle self-assigned this Aug 26, 2022
@voltangle voltangle linked an issue Aug 26, 2022 that may be closed by this pull request
* feat: first work in completely redesigning the service system

* feat: that's a large one
- Fully rewritten ChatService API
- Made TdApi shared property not an array
- General refactors

* refactor: done TdMainService refactor
also touched slightly the Caching module

* refactor: LoginService done

* fix: removed unused TODO

* feat: reimplemented a part of the code in update(chat:) in ChatViewModel, but still left some things to do

* fix: added db migration to fix crash on startup with old databases

* refactor: AccountsPrefService
@voltangle voltangle linked an issue Aug 30, 2022 that may be closed by this pull request
@voltangle voltangle linked an issue Aug 31, 2022 that may be closed by this pull request
@voltangle voltangle changed the title Drastic refactor Drastic refactor + message formattibg Sep 6, 2022
@voltangle voltangle changed the title Drastic refactor + message formattibg Drastic refactor + message formatting Sep 6, 2022
@voltangle voltangle merged commit ac8d460 into master Sep 8, 2022
@voltangle voltangle deleted the drastic-refactor branch September 8, 2022 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drastic An issue is about a drastic change and/or a rewrite of smth enhancement New feature or request internal Internal things OS: all Related to all operating systems (macOS and iPadOS) ui UI(User Interface) stuff ux UX(User Experience) stuff
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Rework how the UI works Migrate from custom Message models to TDLib ones
1 participant