Skip to content

Conversation

@N0stalgiaUltra
Copy link
Contributor

  • Criação do Componente TaskCard com comportamento de expansão
  • Criação de dados fake para o preview do TaskCard (posteriormente será ajustado para utilizar fakes do modelo correto)
  • Inicio da implementação dos modelos originais, com os campos utilizados no backend
  • Adicionados objetos de request para os cards pontuais, diários, semanais e mensais.

LucasOliveiraSimao and others added 30 commits August 2, 2025 15:20
This commit refactors the `InputText` composable:

- Updates padding from `16.sdp` to `16.dp`.
- Modifies `titleText` styling:
    - Removes explicit `start` and `end` padding.
    - Changes text style from `MaterialTheme.typography.bodyMedium` to `MaterialTheme.typography.titleMedium`.
- Adjusts `placeholderText` styling:
    - Sets text color to `ColorCustom.color_placeholder`.
    - Changes text style from a custom `TextStyle` to `MaterialTheme.typography.bodyMedium`.
This commit introduces the `ScreenRegisterTask` composable, a new screen for registering tasks within the application.

Key changes include:
- Addition of `ScreenRegisterTask.kt` file.
- Implementation of the `ScreenRegisterTask` composable function, which includes:
    - A `ScaffoldCustom` for the basic screen structure with a top app bar titled "Nova tarefa" (New Task) and bottom navigation.
    - A `LazyColumn` to display various input fields and components for task registration.
    - `InputText` for the task name.
    - `TextFieldCustom` for the task description and an observation field.
    - `GroupSelectableButton` (functionality not fully detailed in the diff).
    - `PetFilterList` to select a pet associated with the task.
    - `TransactionTypeSelector` to choose between recurrent and one-off task types.
- A `@Preview` function `ScreenRegisterTaskPreview` is included for UI development and testing.
This commit refactors the `InputText` composable:

- Updates padding from `16.sdp` to `16.dp`.
- Modifies `titleText` styling:
    - Removes explicit `start` and `end` padding.
    - Changes text style from `MaterialTheme.typography.bodyMedium` to `MaterialTheme.typography.titleMedium`.
- Adjusts `placeholderText` styling:
    - Sets text color to `ColorCustom.color_placeholder`.
    - Changes text style from a custom `TextStyle` to `MaterialTheme.typography.bodyMedium`.
LucasOliveiraSimao and others added 30 commits October 27, 2025 09:49
- Update ActiveMonthsComponent with better styling
- Enhance DateInputText component layout
- Refactor DropDown component structure
- Remove title text from DualActionButton for cleaner design
- Improve InputText component with better padding and layout
- Update NavigationBarItems styling

These changes enhance the overall UI consistency and user experience.
- Change 'Cadastro Pet' to 'Cadastro' for better UX
- Simplifies the registration screen title
- Replace missing ColorCustom properties with error_color as temporary solution
- Add TODO comments for proper color implementation
- Ensures dialog renders correctly while proper colors are being defined

This is a temporary fix that should be replaced once proper color definitions are available.
- Refactor layout structure with better spacing and padding
- Add navigationBarsPadding for better screen adaptation
- Improve LazyColumn arrangement with consistent spacing
- Add individual title labels for DualActionButton components
- Create comprehensive preview components for all form elements
- Enhance component styling and MaterialTheme usage
- Remove redundant padding and improve component organization

This improves the overall user experience and developer preview capabilities.
- Update NavHostElements route from 'pets/petList' to 'pets/petListScreen'
- Add navigation functionality to PetItemMore component
- Connect pet list screen to register pet screen navigation
- Remove commented navigation route

This ensures proper navigation flow between pet list and registration screens.
- Fix parameter order in InputText test components
- Ensure consistent parameter ordering for better test reliability
- Update test structure to match component interface changes

This improves test consistency and prevents parameter order issues.
# Conflicts:
#	petJournal/app/src/main/java/com/soujunior/petjournal/ui/components/InputText.kt
#	petJournal/app/src/main/java/com/soujunior/petjournal/ui/components/SelectableButtonData.kt
#	petJournal/app/src/main/java/com/soujunior/petjournal/ui/screens_app/screens_pets/registerPetScreen/components/Screen.kt
#	petJournal/app/src/main/java/com/soujunior/petjournal/ui/theme/Color.kt
#	petJournal/app/src/main/res/values/strings.xml
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.

4 participants