Commit Graph

45 Commits

Author SHA1 Message Date
ryan 8cd277d66a feat(item_list): Added active cell tracking with position updates for popup rendering. 2024-12-27 03:01:03 +03:00
ryan 9f28d30d48 feat(list): Add initial empty row and auto-add new row on editing last row 2024-12-24 15:26:52 +03:00
ryan 863f05f8bc fix(nostr): stop connection to public relay 2024-12-24 14:28:12 +03:00
ryan 9da8b03de2 feat(maintain focus on cells): maintain focus while typing in cells; in progress 2024-12-24 14:27:32 +03:00
ryan 8b89b635a8 feat(items-list): enhance Wikidata integration with auto-fill functionality 2024-12-23 22:54:51 +03:00
ryan 359012c250 Merge branch 'main' of forge.ftt.gmbh:ryanmwangi/Compware into main 2024-12-23 22:53:20 +03:00
ryan f1544850a0 git commit -m "build(git): ignore .idea folder" 2024-12-23 22:52:35 +03:00
ryanmwangi d6d40247f6 Merge pull request 'editable-cells-wiki' (#1) from editable-cells-wiki into main
Reviewed-on: #1
2024-12-23 15:01:23 +00:00
ryan e9b4c12a6d feat(autocomplete name): autofill name with wikidata suggestions 2024-12-23 17:56:34 +03:00
ryan 22e6ae38d4 fix(form_list): fix mismatched parenthesis on lift_form.rs 2024-12-23 14:49:12 +03:00
Ryan Mwangi 16b04fcc1e feat(cells): make cells editable (debugging) 2024-12-20 18:24:20 +03:00
Ryan Mwangi 23b63ebecd feat(list): make spreadsheet like ui 2024-12-20 02:56:42 +03:00
Ryan Mwangi cd7ad8d140 docs(README): document the next steps for the project 2024-12-19 15:33:38 +03:00
Ryan Mwangi 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
Ryan Mwangi 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
Ryan Mwangi 6947d58c7c feat(form): add form validation for name and description fields 2024-12-18 14:52:30 +03:00
Ryan Mwangi a08e501baf style(comparison table): add styling to comparison table 2024-12-17 16:15:57 +03:00
Ryan Mwangi e8fd578b77 feat(comparison table): add comparison table to compare checked items. 2024-12-17 16:14:49 +03:00
Ryan Mwangi e90866fbd9 feat(rating): add rating system 1-5 2024-12-17 13:39:41 +03:00
Ryan Mwangi 66aae845ea fix(reviews): handle reviews on the same form as the other items 2024-12-17 13:06:25 +03:00
Ryan Mwangi 36064e6721 fix(reviews): handle reviews submission 2024-12-17 02:31:35 +03:00
Ryan Mwangi bbc4f9a2cd fix(reviews): handle review item_id to stop panic while serving 2024-12-16 22:16:55 +03:00
Ryan Mwangi b42afb0bfc fix(reviews): debug to align with leptos syntax 2024-12-16 21:38:24 +03:00
Ryan Mwangi a0978e30f9 fix(reviews): debug errors linked to the reviews 2024-12-16 20:47:24 +03:00
Ryan ccd23654e3 feat(reviews): add reviews section 2024-12-16 19:06:33 +03:00
Ryan 06bd46c40c test(nostr): add log messages 2024-12-16 13:31:11 +03:00
Ryan Mwangi a73e7c1d68 feat(nostr): upgrade to recent nostr version and add error handling 2024-12-13 13:56:55 +03:00
Ryan Mwangi 86680d9c21 fix(nostr): debugging nostr after version update(in progress) 2024-12-12 23:24:23 +03:00
Ryan Mwangi 2414eec8ba build(nostr-sdk): update nostr-sdk version 2024-12-11 23:33:28 +03:00
Ryan Mwangi 2d9c3e23eb build(dependencies): update dependencies 2024-12-11 22:47:31 +03:00
Ryan Mwangi d246bd4ded build(toolchain): add rust-toolchain.toml for version consistency 2024-12-11 22:46:29 +03:00
Ryan Mwangi f1acae1af5 docs(README): update nostr progress 2024-12-10 22:31:19 +03:00
Ryan Mwangi dc2e91313f build(nostr): add nostr related dependencies 2024-12-10 22:29:31 +03:00
Ryan Mwangi eb0d678521 feat(nostr): integrate nostr 2024-12-10 22:28:38 +03:00
Ryan Mwangi 893c2d9ea7 feat(style): add stying 2024-12-10 18:35:39 +03:00
Ryan Mwangi 47905ca764 feat: add tags functionality 2024-12-10 15:15:34 +03:00
Ryan Mwangi d9b60fb9f1 fix(item list): make item list reactive. 2024-12-10 14:49:45 +03:00
Ryan Mwangi 4137ded856 build: add necessary dependencies 2024-12-09 19:29:15 +03:00
Ryan Mwangi ba95f7b914 docs(README): edit README.md to clarify the project. 2024-12-09 19:26:53 +03:00
Ryan Mwangi 58e8faa11c refactor(comments): add comments to files 2024-12-09 19:24:46 +03:00
Ryan Mwangi 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
Ryan Mwangi 8c03fa35a1 fix: fix App component signal handling and on_submit prop
- Replaced incorrect path statement in `add_item` with proper use of `set_items.update` for signal mutation.
- Fixed dynamic dispatch for `on_submit` by boxing the `add_item` closure.
- Simplified `items_signal` usage by removing unnecessary `.clone()`.
- Improved code consistency and alignment with the latest Leptos updates.
2024-12-09 14:58:05 +03:00
Ryan Mwangi fca8c6fa2f fix(app): enhance signal management in App component
- Switched from `create_signal` to a tuple-based signal declaration using `(items_signal, set_items)` for improved clarity.
- Replaced `items.update` with a closure-based update approach for `set_items`.
- Added `Box::new` to `ItemForm`'s `on_submit` to properly handle the function's lifetime and scope.
- Removed unused imports for `leptos_meta` and `leptos_router` to clean up the code.
2024-12-09 13:56:39 +03:00
Ryan Mwangi 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
Ryan Mwangi 9afc89833a feat: update leptos to newest version 2024-12-06 14:45:14 +03:00