Skip to content

Conversation

@Williamrai
Copy link
Collaborator

What does this do?

Adds a dev View to test categories functionality. To access go to developer settings and search "category" or scroll down to the bottom.

Preview

@Williamrai Williamrai added Minor Minor stuff Experimental Experiments and prototypes labels Apr 25, 2025
@Williamrai Williamrai changed the base branch from main to locally-track-categories April 25, 2025 14:00
@cooltey
Copy link
Collaborator

cooltey commented Apr 25, 2025

This works for me, and the good thing is that this was created using Compose. Please fix the single-line issue in the input fields.

…rack-categories

# Conflicts:
#	app/src/main/java/org/wikipedia/settings/dev/playground/CategoryDeveloperPlayGroundViewModel.kt
Copy link
Collaborator

@cooltey cooltey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good, some minor improvements can be made:

  1. When it's in landscape mode, the screen is not scrollable.
  2. Can we have default values in the input fields (Year: 2025, Number of Rows: 5...etc)

@cooltey cooltey merged commit f742fe8 into locally-track-categories May 7, 2025
1 check passed
@cooltey cooltey deleted the dev-playground-locally-track-categories branch May 7, 2025 23:51
dbrant pushed a commit that referenced this pull request May 8, 2025
* -  creates a new category table and adds entity and DAO class
- adds logic to insertOrIncrement category count and deleteAll categories
- adds migration logic for db
- adds a new service call for fetching categories

* - fixes lint issues

* - adds room transaction to insert or increment the count
- adds a query to get yearly categories by count descending order
- updates category date column to year

* - adds developer preference for categories

* - updates database
- code fixes
- adds recurring task to delete Category data older than two years every six month
- removes developer preferences

* - removes unused class and dev print statement

* - code fixes

* - lint fixes

* - schema revert

* - code fixes

* - code fixes

* Dev playground locally track categories (#5501)

* - adds playground for categories

* - update copy

* - code fixes

* - adds scroll support by adding a dynamic fix height to table and adds default value to year outline Text Field

* - lint fixes

* - capitalizes table name in sql migration query

* Follow up: Category dev playground (#5526)

* WikiGames: Database table for the game history (#5510)

* WikiGames: Database table for the game history

* Lint

* Create enum classes

* last game

* Update package

* Code tuned up and migration

* Lint

* Add preference for first played snackbar

* Lint

* Refine migration

* Clear old preference after migration

* Fix db migration

---------

Co-authored-by: Cooltey Feng <cfeng@wikimedia.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Experimental Experiments and prototypes Minor Minor stuff

Development

Successfully merging this pull request may close these issues.

2 participants