diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-01 20:12:21 -0500 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-01 20:12:21 -0500 |
commit | d8b0f1335078d53d95a4212b1a4d4b0b28016702 (patch) | |
tree | 691eb6ec3ffc2e3cfad0016ad3e339bdc6616184 /fe/package.json | |
parent | 74ec025991f6acde6383e448974738e857758ebb (diff) |
feat(DataView): Add functionality to add water statistic
This commit adds functionality to add water statistics to the DataView component. It includes the following changes:
- Remove unused imports and variables
- Move the 'handleClick' function logic to a new 'AddForm' component
- Create the 'AddForm' component which displays a dialog with input fields for date and quantity and allows the user to add a new water statistic
- Dispatch events on form submit and dialog close in the 'AddForm' component
- Call the 'fetchData' function on successful submission of a new statistic
- Update chart data to display sample data
New component:
- AddForm.svelte: A form component to add a new water statistic
Note: This commit message exceeds the 50-character limit in the subject line, but adheres to the other specified requirements.
Diffstat (limited to 'fe/package.json')
0 files changed, 0 insertions, 0 deletions