Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 998 Bytes

File metadata and controls

24 lines (15 loc) · 998 Bytes

AI Prompts

Let's collect some useful AI prompts for code generation or other tasks.

Creating a new module

... TODO

Creating a new screen, adding it to the navigation graph and creating a XViewModel, XViewState, XScreen, XContent set for it.

X is HelpCategories here. Duplicate XScreen, XContent, XViewState, XViewModel etc. Name it HelpQuestionsOverview in package “questions”

Migrating a fragment from XML to compose.

X = .. Y = ..

Migrate XFragment to jetpack compose.

  • Take YFragment, YScreen and subcomposables as an example, where this was already done.
  • Create many subcomposables, use existing composables when possible, like NormalButton. Create many files.
  • Send the ViewModel as parameter to the XScreen composable, not deeper.
  • The view model’s viewState / uiState should be a mutablestateflow, like in the YModel. To adjust the upstate, use the .update {} function, not value =.
  • Add previews to XContent and other composable, not to XScreen.