Nik Clayton
467ae349b7
fix(l10n): Update Irish translation ( #1095 )
...
Originally from https://github.com/aindriu80 , but had some formatting
placeholder errors that broke lint.
2024-11-13 23:10:23 +01:00
Nik Clayton
710e209e34
refactor: Ongoing work to remove the `activeAccount` idiom ( #964 )
...
Continue the work to remove the "activeAccount" idiom.
- Uses a new PachliAccount type through most of the app. This holds
information that was previously accessed separately (e.g., content
filters, lists) in one place. The information is loaded when the app
launches or the active account switches.
- Fetching data when the account is switched / loaded simplifies error
handling, as more code can now assume the data has already been loaded.
If it hasn't the code path is simply unreachable.
- This opens up the possibility of "acting as one account while logged
in as another". E.g., have two accounts, and be logged in to one account
and boost a post you've seen from your other account.
- Add a database migration to populate existing accounts with default
data when the user updates the app.
- Refactor code that used those list and filter repositories to get the
data from the PachliAccount instead. New local and remote data sources
are implemented, and the list and filter repositories mediate between
those sources.
- Start a ViewModel for MainActivity, which includes:
- Sending user actions as UiAction objects
- Providing a flow of uiState for MainActivity to react to
- Remove most uses of SharedPreferencesRepository from MainActivity
- Show messages about errors that occur when logging in
- Refactor intent routing in MainActivity to make the logic clearer.
- Add new `core.data` types to push more `core.network` types out of the
UI code
- `core.data.model.MastodonList` for `core.network.model.MastoList`
- `core.data.model.Server` for `core.network.model.Server`
- Continue the work to send the Pachli account ID to the code that uses
it.
- Most view models now get the account ID via assisted injection.
- QueuedMedia now includes the AccountEntity so it can operate with any
account. Modify the `uploadMedia` API call to include explicit
authentication details.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-13 11:45:16 +01:00
Weblate (bot)
c437722c1c
fix(l10n): Translations update from Hosted Weblate ( #1077 )
...
Translations update from [Hosted Weblate](https://hosted.weblate.org )
for [Pachli/Fastlane
Metadata](https://hosted.weblate.org/projects/pachli/fastlane-metadata/ ).
It also includes following components:
* [Pachli/App :
Main](https://hosted.weblate.org/projects/pachli/app-main/ )
* [Pachli/Core/Data :
Main](https://hosted.weblate.org/projects/pachli/coredata-main/ )
* [Pachli/Core/Activity :
Orange](https://hosted.weblate.org/projects/pachli/coreactivity-orange/ )
* [Pachli/App :
Fdroid](https://hosted.weblate.org/projects/pachli/app-fdroid/ )
* [Pachli/Core/Preferences :
Main](https://hosted.weblate.org/projects/pachli/corepreferences-main/ )
* [Pachli/Core/Activity :
Main](https://hosted.weblate.org/projects/pachli/coreactivity-main/ )
* [Pachli/Feature/Suggestions :
Main](https://hosted.weblate.org/projects/pachli/featuresuggestions-main/ )
* [Pachli/Feature/Lists :
Main](https://hosted.weblate.org/projects/pachli/featurelists-main/ )
* [Pachli/Feature/About :
Main](https://hosted.weblate.org/projects/pachli/featureabout-main/ )
* [Pachli/Core/Network :
Main](https://hosted.weblate.org/projects/pachli/corenetwork-main/ )
* [Pachli/Core/Designsystem :
Main](https://hosted.weblate.org/projects/pachli/coredesignsystem-main/ )
* [Pachli/App :
Google](https://hosted.weblate.org/projects/pachli/app-google/ )
*
[Pachli/Feature/Login](https://hosted.weblate.org/projects/pachli/featurelogin/ )
* [Pachli/Core/Ui :
Main](https://hosted.weblate.org/projects/pachli/coreui-main/ )
Current translation status:
![Weblate translation
status](https://hosted.weblate.org/widget/pachli/fastlane-metadata/horizontal-auto.svg )
2024-11-04 12:16:37 +01:00
Nik Clayton
8b192ab18d
change: Bump compileSdk to 35 ( #1070 )
2024-10-31 19:38:22 +01:00
Weblate (bot)
04d98ae616
fix(l10n): Translations update from Hosted Weblate ( #1056 )
...
Translations update from [Hosted Weblate](https://hosted.weblate.org )
for [Pachli/Fastlane
Metadata](https://hosted.weblate.org/projects/pachli/fastlane-metadata/ ).
It also includes following components:
* [Pachli/App :
Main](https://hosted.weblate.org/projects/pachli/app-main/ )
* [Pachli/App :
Fdroid](https://hosted.weblate.org/projects/pachli/app-fdroid/ )
* [Pachli/Core/Activity :
Main](https://hosted.weblate.org/projects/pachli/coreactivity-main/ )
* [Pachli/Core/Data :
Main](https://hosted.weblate.org/projects/pachli/coredata-main/ )
* [Pachli/App :
Google](https://hosted.weblate.org/projects/pachli/app-google/ )
* [Pachli/Core/Ui :
Main](https://hosted.weblate.org/projects/pachli/coreui-main/ )
* [Pachli/Core/Network :
Main](https://hosted.weblate.org/projects/pachli/corenetwork-main/ )
* [Pachli/Feature/About :
Main](https://hosted.weblate.org/projects/pachli/featureabout-main/ )
* [Pachli/Core/Preferences :
Main](https://hosted.weblate.org/projects/pachli/corepreferences-main/ )
* [Pachli/Core/Activity :
Orange](https://hosted.weblate.org/projects/pachli/coreactivity-orange/ )
* [Pachli/Feature/Suggestions :
Main](https://hosted.weblate.org/projects/pachli/featuresuggestions-main/ )
*
[Pachli/Feature/Login](https://hosted.weblate.org/projects/pachli/featurelogin/ )
* [Pachli/Feature/Lists :
Main](https://hosted.weblate.org/projects/pachli/featurelists-main/ )
* [Pachli/Core/Designsystem :
Main](https://hosted.weblate.org/projects/pachli/coredesignsystem-main/ )
Current translation status:
![Weblate translation
status](https://hosted.weblate.org/widget/pachli/fastlane-metadata/horizontal-auto.svg )
---------
Co-authored-by: Vaclovas Intas <Gateway_31@protonmail.com>
2024-10-29 15:43:23 +01:00
Juan M Sevilla
0ea7ad5601
fix(l10n): Update Spanish translations
...
Currently translated at 100.0% (17 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/es/
2024-10-23 16:00:27 +02:00
Nik Clayton
850b702092
change: Use checkboxes to show whether an account is a member of a list ( #1036 )
...
User reports suggested that the "x" / "+" icons used to add / remove
accounts from lists could be difficult to visually distinguish.
Replace with checkboxes. Checked indicates the account is in the list,
unchecked indicates it isn't. Clicking the checkbox to change state
changes the presence in the list.
Fixes #812
2024-10-22 16:57:03 +02:00
Nik Clayton
ffb585b349
fix: Ensure suggested account information is not cut off ( #1030 )
...
Previous layout didn't constraint the metadata elements to the parent's
edge, so could run off the screen if the content was too long.
Constrain them so the content wraps correctly.
Fixes #876
2024-10-19 14:20:51 +02:00
Vaclovas Intas
52e66c11e0
fix(l10n): Update Lithuanian translations
...
Currently translated at 11.7% (2 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/lt/
2024-10-12 20:49:52 +02:00
Weblate (bot)
0cf50524f2
fix(l10n): Translations update from Hosted Weblate ( #995 )
...
Translations update from [Hosted Weblate](https://hosted.weblate.org )
for [Pachli/Fastlane
Metadata](https://hosted.weblate.org/projects/pachli/fastlane-metadata/ ).
It also includes following components:
* [Pachli/App :
Main](https://hosted.weblate.org/projects/pachli/app-main/ )
* [Pachli/App :
Fdroid](https://hosted.weblate.org/projects/pachli/app-fdroid/ )
*
[Pachli/Feature/Login](https://hosted.weblate.org/projects/pachli/featurelogin/ )
* [Pachli/Feature/Suggestions :
Main](https://hosted.weblate.org/projects/pachli/featuresuggestions-main/ )
* [Pachli/Feature/Lists :
Main](https://hosted.weblate.org/projects/pachli/featurelists-main/ )
* [Pachli/Core/Ui :
Main](https://hosted.weblate.org/projects/pachli/coreui-main/ )
* [Pachli/App :
Google](https://hosted.weblate.org/projects/pachli/app-google/ )
* [Pachli/Core/Designsystem :
Main](https://hosted.weblate.org/projects/pachli/coredesignsystem-main/ )
* [Pachli/Core/Data :
Main](https://hosted.weblate.org/projects/pachli/coredata-main/ )
* [Pachli/Core/Activity :
Main](https://hosted.weblate.org/projects/pachli/coreactivity-main/ )
* [Pachli/Feature/About :
Main](https://hosted.weblate.org/projects/pachli/featureabout-main/ )
* [Pachli/Core/Preferences :
Main](https://hosted.weblate.org/projects/pachli/corepreferences-main/ )
* [Pachli/Core/Activity :
Orange](https://hosted.weblate.org/projects/pachli/coreactivity-orange/ )
* [Pachli/Core/Network :
Main](https://hosted.weblate.org/projects/pachli/corenetwork-main/ )
Current translation status:
![Weblate translation
status](https://hosted.weblate.org/widget/pachli/fastlane-metadata/horizontal-auto.svg )
---------
Co-authored-by: Vaclovas Intas <vaclovas1999@gmail.com>
Co-authored-by: Languages add-on <noreply-addon-languages@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Co-authored-by: LibreTranslate <noreply-mt-libretranslate@weblate.org>
2024-10-10 21:42:59 +02:00
Nik Clayton
e307796251
refactor: Provide properties for more shared preferences ( #992 )
...
Continues the work of providing properties with accessors for specific
shared preferences.
2024-10-10 13:12:56 +02:00
Nik Clayton
21ff45ac34
refactor: Update ListsViewModel to use OperationCounter ( #990 )
2024-10-09 11:45:13 +02:00
Nik Clayton
59a0e3087c
refactor: Pass the active account ID to activities, fragments, etc ( #982 )
...
Previous code assumed the active account could always be determined from
the account manager.
This causes a few problems.
1. The account manager has to handle the case where there is no active
account (e.g., the user is logging out of the last account). This meant
the `activeAccount` property had to be nullable, so every consumer of
that property either used it with a `let` or `!!` expression.
2. The active account can change over the life of the UI component, for
example, when the user is switching accounts. There's a theoretical race
condition where the UI component has started an operation for one
account, then the account changes and the network authentication code
uses the new account.
3. All operations assume they operate on whatever the active account is,
making it difficult to provide any features that allow the user to
temporarily operate as another account ("Boost as...", etc).
This "ambient account" was effectively global mutable state, with all
the problems that can cause.
Start to fix this. The changes in this commit do not fix the problem
completely, but they are some progress.
Each activity (except LoginActivity) is expected to be launched with an
intent that includes the ID of the Pachli account it defaults to
operating with. This is `pachliAccountId`, and is the *database ID*
(not the server ID) of the account. This is non-null, which removes one
class of bugs.
This account is passed to each fragment and any piece of code that has
to perform an operation on behalf of this account. It's not used in
most of those places yet, that will be done over a number of followup
PRs as part of modernising each module.
2024-10-07 15:56:37 +02:00
Languages add-on
1b28d7bae9
feat(l10n): Added Burmese translation
2024-10-06 19:08:25 +02:00
Languages add-on
e2f2778bf9
feat(l10n): Added Burmese translation
2024-10-06 19:08:25 +02:00
Languages add-on
828e131803
feat(l10n): Added Burmese translation
2024-10-06 19:08:25 +02:00
Languages add-on
414d0cb04d
feat(l10n): Added Burmese translation
2024-10-06 19:08:25 +02:00
Nik Clayton
cdbd0efe11
refactor: Extract operation counter to a class ( #977 )
2024-10-03 22:21:27 +02:00
Nik Clayton
0d5d118267
refactor: Move AccountManager to core.data.repository ( #976 )
2024-10-03 21:28:01 +02:00
Nik Clayton
8b498c0a56
chore(deps): Update AGP to 8.7.0, lint to 31.7.0 ( #970 )
...
Quiet one lint error.
There's a false positive MissingSuperCall, see
https://issuetracker.google.com/issues/371019875
2024-10-03 14:44:05 +02:00
Nik Clayton
c30a2ea137
refactor: Implement AppTheme with PreferenceEnum ( #951 )
...
Provde an `appTheme` property in `SharedPreferenceRepository` to manage
read access, simplifying calling code.
Update `PreferenceEnum.from` to check the `value` property of the enum
first.
Fixes #950
2024-09-26 22:54:42 +02:00
Weblate (bot)
5505180868
fix(l10n): Translations update from Hosted Weblate ( #933 )
...
Translations update from [Hosted Weblate](https://hosted.weblate.org )
for [Pachli/Fastlane
Metadata](https://hosted.weblate.org/projects/pachli/fastlane-metadata/ ).
It also includes following components:
* [Pachli/Core/Activity :
Main](https://hosted.weblate.org/projects/pachli/coreactivity-main/ )
* [Pachli/App :
Google](https://hosted.weblate.org/projects/pachli/app-google/ )
* [Pachli/Feature/Suggestions :
Main](https://hosted.weblate.org/projects/pachli/featuresuggestions-main/ )
* [Pachli/Core/Designsystem :
Main](https://hosted.weblate.org/projects/pachli/coredesignsystem-main/ )
* [Pachli/Core/Network :
Main](https://hosted.weblate.org/projects/pachli/corenetwork-main/ )
*
[Pachli/Feature/Login](https://hosted.weblate.org/projects/pachli/featurelogin/ )
* [Pachli/Core/Ui :
Main](https://hosted.weblate.org/projects/pachli/coreui-main/ )
* [Pachli/Core/Activity :
Orange](https://hosted.weblate.org/projects/pachli/coreactivity-orange/ )
* [Pachli/Feature/About :
Main](https://hosted.weblate.org/projects/pachli/featureabout-main/ )
* [Pachli/Core/Data :
Main](https://hosted.weblate.org/projects/pachli/coredata-main/ )
* [Pachli/App :
Main](https://hosted.weblate.org/projects/pachli/app-main/ )
* [Pachli/App :
Fdroid](https://hosted.weblate.org/projects/pachli/app-fdroid/ )
* [Pachli/Feature/Lists :
Main](https://hosted.weblate.org/projects/pachli/featurelists-main/ )
Current translation status:
![Weblate translation
status](https://hosted.weblate.org/widget/pachli/fastlane-metadata/horizontal-auto.svg )
---------
Co-authored-by: sunniva <schildkroteskoldpadda@gmail.com>
Co-authored-by: LibreTranslate <noreply-mt-libretranslate@weblate.org>
Co-authored-by: ButterflyOfFire <boffire@users.noreply.hosted.weblate.org>
2024-09-20 15:53:28 +02:00
Nik Clayton
9e1f5b426d
fix(l10n): Update Galician translations
...
Currently translated at 100.0% (17 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/gl/
2024-09-09 10:06:19 +02:00
Nik Clayton
fb7cc6f22f
fix(l10n): Update Gaelic translations
...
Currently translated at 100.0% (17 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/gd/
2024-09-09 10:06:19 +02:00
josé m
e5b87a0421
fix(l10n): Update Galician translations
...
Currently translated at 100.0% (62 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/gl/
2024-09-09 10:06:19 +02:00
josé m
95c9ba7f96
fix(l10n): Update Galician translations
...
Currently translated at 100.0% (17 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/gl/
2024-09-09 10:06:19 +02:00
Aindriú Mac Giolla Eoin
bc896d1ee8
fix(l10n): Update Irish translations
...
Currently translated at 100.0% (17 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/ga/
2024-09-09 10:06:19 +02:00
Weblate (bot)
1473561e6d
fix(l10n): Translations update from Hosted Weblate ( #929 )
...
Translations update from [Hosted Weblate](https://hosted.weblate.org )
for [Pachli/Fastlane
Metadata](https://hosted.weblate.org/projects/pachli/fastlane-metadata/ ).
It also includes following components:
* [Pachli/App :
Fdroid](https://hosted.weblate.org/projects/pachli/app-fdroid/ )
* [Pachli/Feature/About :
Main](https://hosted.weblate.org/projects/pachli/featureabout-main/ )
* [Pachli/App :
Google](https://hosted.weblate.org/projects/pachli/app-google/ )
* [Pachli/Feature/Suggestions :
Main](https://hosted.weblate.org/projects/pachli/featuresuggestions-main/ )
* [Pachli/Core/Data :
Main](https://hosted.weblate.org/projects/pachli/coredata-main/ )
* [Pachli/Core/Activity :
Orange](https://hosted.weblate.org/projects/pachli/coreactivity-orange/ )
* [Pachli/Feature/Lists :
Main](https://hosted.weblate.org/projects/pachli/featurelists-main/ )
* [Pachli/Core/Activity :
Main](https://hosted.weblate.org/projects/pachli/coreactivity-main/ )
* [Pachli/Core/Ui :
Main](https://hosted.weblate.org/projects/pachli/coreui-main/ )
* [Pachli/Core/Designsystem :
Main](https://hosted.weblate.org/projects/pachli/coredesignsystem-main/ )
* [Pachli/App :
Main](https://hosted.weblate.org/projects/pachli/app-main/ )
* [Pachli/Core/Network :
Main](https://hosted.weblate.org/projects/pachli/corenetwork-main/ )
*
[Pachli/Feature/Login](https://hosted.weblate.org/projects/pachli/featurelogin/ )
Current translation status:
![Weblate translation
status](https://hosted.weblate.org/widget/pachli/fastlane-metadata/horizontal-auto.svg )
2024-09-04 15:15:46 +02:00
Weblate (bot)
b40e2c5f98
fix(l10n): Translations update from Hosted Weblate ( #919 )
...
Translations update from [Hosted Weblate](https://hosted.weblate.org )
for [Pachli/Fastlane
Metadata](https://hosted.weblate.org/projects/pachli/fastlane-metadata/ ).
It also includes following components:
* [Pachli/App :
Google](https://hosted.weblate.org/projects/pachli/app-google/ )
* [Pachli/Core/Activity :
Main](https://hosted.weblate.org/projects/pachli/coreactivity-main/ )
* [Pachli/Feature/Suggestions :
Main](https://hosted.weblate.org/projects/pachli/featuresuggestions-main/ )
* [Pachli/Core/Data :
Main](https://hosted.weblate.org/projects/pachli/coredata-main/ )
* [Pachli/App :
Fdroid](https://hosted.weblate.org/projects/pachli/app-fdroid/ )
* [Pachli/Core/Activity :
Orange](https://hosted.weblate.org/projects/pachli/coreactivity-orange/ )
* [Pachli/Feature/Lists :
Main](https://hosted.weblate.org/projects/pachli/featurelists-main/ )
* [Pachli/App :
Main](https://hosted.weblate.org/projects/pachli/app-main/ )
* [Pachli/Core/Network :
Main](https://hosted.weblate.org/projects/pachli/corenetwork-main/ )
* [Pachli/Feature/About :
Main](https://hosted.weblate.org/projects/pachli/featureabout-main/ )
* [Pachli/Core/Ui :
Main](https://hosted.weblate.org/projects/pachli/coreui-main/ )
*
[Pachli/Feature/Login](https://hosted.weblate.org/projects/pachli/featurelogin/ )
* [Pachli/Core/Designsystem :
Main](https://hosted.weblate.org/projects/pachli/coredesignsystem-main/ )
Current translation status:
![Weblate translation
status](https://hosted.weblate.org/widget/pachli/fastlane-metadata/horizontal-auto.svg )
---------
Co-authored-by: LibreTranslate <noreply-mt-libretranslate@weblate.org>
Co-authored-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com>
Co-authored-by: Yuri <trans.late@onionmail.org>
Co-authored-by: Juan M Sevilla <jumase@disroot.org>
Co-authored-by: josé m <correoxm@disroot.org>
Co-authored-by: Nik Clayton <nik@ngo.org.uk>
2024-09-03 16:35:54 +02:00
Nik Clayton
c9cf078939
change: Drop any mention of account creation ( #907 )
...
The help text used to mention that an account could be created at the
user's server. This was not done in Pachli, but could confuse reviewers
into thinking it was.
Drop the reference to prevent this confusion.
2024-08-28 17:45:52 +02:00
josé m
3138df3374
fix(l10n): Update Galician translations
...
Currently translated at 27.4% (17 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/gl/
2024-08-28 14:47:27 +02:00
josé m
9ed7ef9cac
fix(l10n): Update Galician translations
...
Currently translated at 100.0% (18 of 18 strings)
Translation: Pachli/Feature/Suggestions : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featuresuggestions-main/gl/
2024-08-26 14:28:42 +02:00
josé m
9e42d29ba9
fix(l10n): Update Galician translations
...
Currently translated at 100.0% (21 of 21 strings)
Translation: Pachli/Feature/Lists : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelists-main/gl/
2024-08-26 14:28:42 +02:00
Juan M Sevilla
8c6a985920
fix(l10n): Update Spanish translations
...
Currently translated at 100.0% (18 of 18 strings)
Translation: Pachli/Feature/Suggestions : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featuresuggestions-main/es/
2024-08-11 16:20:31 +02:00
Ricky From Hong Kong
e8e2b0d99b
fix(l10n): Update Chinese (Traditional) translations
...
Currently translated at 14.5% (9 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/zh_Hant/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
c25d80a14f
fix(l10n): Update Chinese (Simplified) (zh_MO) translations
...
Currently translated at 11.2% (7 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/zh_MO/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
ad7058f4ad
fix(l10n): Update Chinese (Traditional, Hong Kong) translations
...
Currently translated at 14.5% (9 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/zh_Hant_HK/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
1f90fc9157
fix(l10n): Update Chinese (Simplified) translations
...
Currently translated at 24.1% (15 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/zh_Hans/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
d81fdcd24f
fix(l10n): Update English (United Kingdom) translations
...
Currently translated at 3.2% (2 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/en_GB/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
b041f9f787
fix(l10n): Update Chinese (Traditional) translations
...
Currently translated at 94.1% (16 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/zh_Hant/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
2858882787
fix(l10n): Update Chinese (Simplified) (zh_MO) translations
...
Currently translated at 64.7% (11 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/zh_MO/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
f0dd53e533
fix(l10n): Update Chinese (Traditional, Hong Kong) translations
...
Currently translated at 64.7% (11 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/zh_Hant_HK/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
5e16d10dd0
fix(l10n): Update Chinese (Simplified) translations
...
Currently translated at 100.0% (17 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/zh_Hans/
2024-07-28 15:57:29 +02:00
Ricky From Hong Kong
f1f0999ead
fix(l10n): Update English (United Kingdom) translations
...
Currently translated at 47.0% (8 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/en_GB/
2024-07-28 15:57:29 +02:00
Nik Clayton
63809b5868
fix(l10n): Update Latvian translations
...
Currently translated at 12.9% (8 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/lv/
2024-07-27 19:17:30 +02:00
Nik Clayton
00a2cd32d3
change: Implement more of FiltersRepository ( #816 )
...
The previous code had a number of problems, including:
- Calls to the filters API were scattered through UI and viewmodel code.
- Repeated places where the differences between the v1 and v2 Mastodon
filters API had to be handled.
- UI and viewmodel code using the network filter classes, which tied
them to the API implementation.
- Error handling was inconsistent.
Fix this.
## FiltersRepository
- All filter management now goes through `FiltersRepository`.
- `FiltersRepository` exposes the current set of filters as a
`StateFlow`, and automatically updates it when the current server
changes or any changes to filters are made. This makes
`FilterChangeEvent` obsolete.
- Other operations on filters are exposed through `FiltersRepository` as
functions for viewmodels to call.
- Within the bulk of the app a new `Filter` class is used to represent a
filter; handling the differences between the v1 and v2 APIs is
encapsulated in `FiltersRepository`.
- Represent errors when handling filters as subclasses of `PachliError`,
and use `Result<V, E>` throughout, including using `ApiResult` for all
filter API results.
- Provide different types to distinguish between new-and-unsaved
filters, new-and-unsaved keywords, and in-progress edits to filters.
## Editing filters
- Accept an optional complete filter, or filter ID, as parameters in the
intent that launches `EditFilterActivity`. Pass those to the viewmodel
using assisted injection so the viewmodel has the info immediately.
- In the viewmodel use a new `FilterViewData` type to model the data
used to display and edit the filter.
- Start using the UiSuccess/UiError model. Refrain from cutting over to
full the action implementation as that would be a much larger change.
- Use `FiltersRepository` instead of making any API calls directly.
## Listing filters
- Use `FiltersRepository` instead of making any API calls directly.
## EventHub
- Remove `FilterChangedEvent`. Update everywhere that used it to use the
flow from `FiltersRepository`.
2024-07-14 15:36:52 +02:00
Aindriú Mac Giolla Eoin
4642031ddd
fix(l10n): Update Irish translations
...
Currently translated at 100.0% (18 of 18 strings)
Translation: Pachli/Feature/Suggestions : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featuresuggestions-main/ga/
2024-07-13 09:43:18 +02:00
Aindriú Mac Giolla Eoin
a66e905692
fix(l10n): Update Irish translations
...
Currently translated at 100.0% (21 of 21 strings)
Translation: Pachli/Feature/Lists : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelists-main/ga/
2024-07-13 09:43:18 +02:00
Aindriú Mac Giolla Eoin
e0ce148a88
fix(l10n): Update Irish translations
...
Currently translated at 100.0% (17 of 17 strings)
Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/ga/
2024-07-13 09:43:18 +02:00
Aindriú Mac Giolla Eoin
f9434b04d4
fix(l10n): Update Irish translations
...
Currently translated at 100.0% (62 of 62 strings)
Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/ga/
2024-07-13 09:43:18 +02:00