This commit enhances the UI of the application with the following changes:
- Adds sentiment selection via `FilterChip` components with leading icons and friendly names for each `Sentiment` option.
- Introduces a `TextField` for user comments.
- Implements feedback submission, which resets the selected sentiment and clears the comment field upon clicking the button.
- Shows a snackbar to display feedback success after the button is clicked.
- Improves `FilterChip` styling with `ChipDefaults` properties and uses larger font size.
- Uses `Scaffold` to provide a structure for the app.
Closes#4
Reviewed-on: #17
Co-authored-by: Ben Martin <ben.martin@sky.uk>
Co-committed-by: Ben Martin <ben.martin@sky.uk>
This commit makes the following improvements to the comment submission UI:
- Wraps the UI in a `Box` to center the content.
- Pads `Row` components.
- Adds an `Icon` in the submit button.
- Makes `TextField` fill available width and height.
These changes affect `App.kt`.
Closes#6
Reviewed-on: #15
Co-authored-by: Ben Martin <ben.martin@sky.uk>
Co-committed-by: Ben Martin <ben.martin@sky.uk>
- Adds a `Sentiment` enum with friendly names and leading icons for `HAPPY`, `NEUTRAL`, and `SAD`.
- Replaces the previous `Greeting` class with this new `Sentiment` based approach.
- Updates the main UI (`App`) to use `FilterChip` for sentiment selection.
- Adds a `TextField` for user comments and a "Submit" button.
Closes#1
Reviewed-on: #14
Co-authored-by: Ben Martin <ben.martin@sky.uk>
Co-committed-by: Ben Martin <ben.martin@sky.uk>