Skip to content

Fast-forward main#44

Merged
Megadash452 merged 133 commits intomainfrom
dev
Apr 22, 2026
Merged

Fast-forward main#44
Megadash452 merged 133 commits intomainfrom
dev

Conversation

@Megadash452
Copy link
Copy Markdown
Collaborator

No description provided.

Megadash452 and others added 30 commits January 4, 2026 01:43
 * One uses a query to load pages, so it takes a queryState and the getPage callback has a CharSequence parameter.
 * The other does not use a query, so it only takes a getPage callback that does not have a query parameter.
Updated CONTRIBUTING.md wot include the use of Github tags/labels.
 * Tests passing, except for `pageByPageTest` because the android Pager wants to reload already loaded pages every time `scrollTo()` is called.
 * `load()` did not return empty page if `loadSize` was < 0, did not run on worker thread, and did not ignore extra items when using `NoQuery` type.
 * `runWork()` did not set worker thread ID in execute.
…nted android tests (#14)

* setup: local Android UI tests + GitHub CI for unit tests and instrumented android tests

* fix: CI script bug on line 18 and made sure to use java@v4 + JDK 17

* fix: fix CI

* fix: fix CI

* fix: fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI

* fix CI
 * `runWork()` now catches  its **task**'s Exceptions and returns a `Result`.
 * Using `TestPager` instead of normal `Pager`.
 * Previously, in `pageByPageTest`, each successive page load reloaded previous pages, but this doesn't happen with `TestPager`.
 * Instead of expecting a *1-dimensional* list of items (`Int`), tests now expect a *2-dimensional* list (pages of items). This is because we can get the currently loaded pages from `TestPager`.
 * `genList()` now takes a `maxItem` argument instead of `numPages` to allow returning incomplete pages.
> Note: Going forward, all Composables that are UI components in the app must go in the `ui` module.

 * Moved `PlainToolTipBox` and `PlainSearchBar` from `/Utils.kt` to `/ui/utils/Common.kt`
   * Also added doc comments for those items.
 * Moved `NewTransactionForm` to the `ui` module.
 * Moved the code for the **paged** items in the `LocationPickerDialog` out of `NewTransactionForm.kt` and into `/ui/utils/List.kt`.
   * Split the `LazyColumn` into 2 components: `ListColumn` and `PagedListColumn`. The former is a light wrapper around `LazyColumn` but with a customized style, and the latter is a `ListColumn` for use with a `Pager`.
   * The `PagedListColumn` is generic, so the old code can now be used with any `Pager`.
     * It also has a `PagerController` that allows constructing the pager within the function call while being able to call `refresh()` form anywhere.
… be PagerGetter that handles an empty query.
…ngContent and errorContent. This is useful to assign test tags to these items.
 * Gradle can run pre-build rust script automatically on build (wish it was on sync, but I'll take it).
 * Added new border style (dashed).
 * Added all user icons (about 170 of them).
 * Icon picker dialog and color picker button + dialog are done.
 * Added `UserIcons` object to access the *usericon_\** drawables.
   * The backing field is safely initialized using a Mutex, and the code runs in the WORKER_THREAD so that the UI thread is not blocked.
 * `rememberWork()` can take a **`key`** argument to rerun the work if the **`key`** changes.
 * When user long-presses on a TagFrame, a DropdownMenu pops up with **Edit** and **Delete** actions.
   * Added edit and delete icons for those menu items.
 * Changed `TagCreatorDialog` to `TagEditorDialog`.
 * Tag operations is now only handled by the ViewModel.
   * `selectedTags` should only contain tag ID info.
 * Fixed UserIcons not loading in previews or tests; They should be loaded by the composables that use it instead.
 * Fixed miscellaneous visual effects.
…query. Also, NewLocationDialog can show the NearbyLocationsDialog with Addresses (not implemented).
…control what is shown at any stage of picking a location.
@Megadash452 Megadash452 merged commit 6f12e24 into main Apr 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants