Skip to content

Conversation

@LucasOliveiraSimao
Copy link
Contributor

Task registration screen was created and UI tests were implemented

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.
LucasOliveiraSimao and others added 30 commits October 23, 2025 15:58
# Conflicts:
#	petJournal/app/src/main/res/values/strings.xml
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.
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants