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

feat: cleanup #424

Merged
merged 81 commits into from Aug 30, 2023
Merged

feat: cleanup #424

merged 81 commits into from Aug 30, 2023

Conversation

GeopJr
Copy link
Owner

@GeopJr GeopJr commented Aug 2, 2023

I want to go through as much as I can and clean up, optimize & simplify anything I find

Especially:

  • Move complicated UIs to Builder files
  • Convert Builder files to Blueprint since they are getting too complicated
  • Remove as many lambdas as possible
  • Remove widgets that are obsolete
  • Avoid abusing bindings and signals
  • Simplify views, functions, widgets etc
  • Make sure nothing is leaking
  • Fix any potential segfaults
  • Remove unused options
  • Reorganize options
  • Docs

fix: #57
close: #128
fix: #179
fix: #313 (?)

warning: libxml2 does not support HTML5 yet
using on_activate_link does an extra request, this should be faster as it avoids resolving the account
it's useless then, it's only used on manual auth
this used to be needed to avoid segfaults, it has been fixed however
this skips resolving the account, should be faster
ListStore needs objects so we can't create a const array of structs

instead of converting a Locale[] to Gee.ArrayList<Locale> on start and then appending each one individually to a liststore every time we need to use them, create a list store of all of them (using splice) on construct and call construct on boot
instead of passing the whole media viewer to every item
cache can cause urls to be wrong - even when keys are the same
@GeopJr
Copy link
Owner Author

GeopJr commented Aug 28, 2023

ListView needs some fixes still:

  • Sometimes start and end are cropped
  • Scroll to doesnt always scroll
  • Some widgets do not open
  • STYLES STYLES STYLES

With ListViews we no longer have access to the widgets so we have to think of other ways to dynamically modify them - like for thread lines, it has to be saved in API.Status but only be visible in threads and when it's not expanded.

edit:

Additionally the style of the rows had to change to a card-like one which matches #228

@GeopJr
Copy link
Owner Author

GeopJr commented Aug 30, 2023

Profiles are a bit weird. I have to use the header factory for the cover however it doesn't play well with pull to refresh :/

@GeopJr
Copy link
Owner Author

GeopJr commented Aug 30, 2023

I need to merge this as is and continue on the rest as individual PRs as I need the new widgets to continue.

If you are a user, the nightlies from now until GNOME 45 will depend on the master runtime.

@GeopJr GeopJr marked this pull request as ready for review August 30, 2023 10:17
@GeopJr GeopJr merged commit 0e3c469 into main Aug 30, 2023
4 checks passed
@GeopJr GeopJr deleted the feat/cleanup branch August 30, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant