Commit graph

67 commits

Author SHA1 Message Date
16b04fcc1e feat(cells): make cells editable (debugging) 2024-12-20 18:24:20 +03:00
23b63ebecd feat(list): make spreadsheet like ui 2024-12-20 02:56:42 +03:00
2733fc958b feat(items): integrate Wikidata API for external data enrichment
- Added functionality to fetch additional attributes for selected items from Wikidata.
- Defined structures for handling Wikidata API responses.
- Incorporated async data fetching using futures and `gloo_net::http::Request`.
- Enhanced the UI with a button to fetch external data for comparison.
- Updated the comparison table to include external descriptions retrieved from Wikidata.
2024-12-18 21:49:26 +03:00
da720a48d3 refactor(item_list): Refactor ItemsList component to improve readability and reuse.
- Extracted item selection toggle logic into a dedicated `toggle_selection` function.
- Simplified access to item properties in views by using references (`&`).
- Improved code clarity and maintainability by reducing inline complexity.
2024-12-18 16:00:40 +03:00
6947d58c7c feat(form): add form validation for name and description fields 2024-12-18 14:52:30 +03:00
e8fd578b77 feat(comparison table): add comparison table to compare checked items. 2024-12-17 16:14:49 +03:00
e90866fbd9 feat(rating): add rating system 1-5 2024-12-17 13:39:41 +03:00
66aae845ea fix(reviews): handle reviews on the same form as the other items 2024-12-17 13:06:25 +03:00
b42afb0bfc fix(reviews): debug to align with leptos syntax 2024-12-16 21:38:24 +03:00
a0978e30f9 fix(reviews): debug errors linked to the reviews 2024-12-16 20:47:24 +03:00
ccd23654e3 feat(reviews): add reviews section 2024-12-16 19:06:33 +03:00
47905ca764 feat: add tags functionality 2024-12-10 15:15:34 +03:00
d9b60fb9f1 fix(item list): make item list reactive. 2024-12-10 14:49:45 +03:00
58e8faa11c refactor(comments): add comments to files 2024-12-09 19:24:46 +03:00
82b8b447dc fix(item-form): update tag handling to support key-value pairs
- Changed `tags` signal type from `Vec<String>` to `Vec<(String, String)>` for richer data representation.
- Updated `on_submit` callback to align with the new `tags` structure.
- Modified form submission logic to accommodate changes in tag handling.
2024-12-09 19:20:18 +03:00
de6559e5e4 fix: resolve compilation issues in ItemForm component
- Updated signal declarations to use tuple destructuring for clarity and consistency.
- Corrected event type in `handle_submit` to `SubmitEvent` and added `prevent_default` to prevent page reload on form submission.
- Adjusted the `tags` signal to use `Vec<String>` for improved type safety.
- Fixed signal updates post-submission to ensure values are reset properly.
- Enhanced readability by explicitly referencing signal getters in `view!`.

This ensures the `ItemForm` component compiles and functions as intended.
2024-12-06 16:08:21 +03:00
9afc89833a feat: update leptos to newest version 2024-12-06 14:45:14 +03:00