Conversation
📝 WalkthroughWalkthroughMakerView.svelte now computes per-category available options from the current selections (passed into getAvailableOptions), updates template logic to disable inputs and change placeholders when a category is empty, and conditions dropdown visibility and option rendering on that availability. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@src/views/MakerView.svelte`:
- Around line 256-264: The option buttons only use on:mousedown|preventDefault
which breaks keyboard activation; keep the existing on:mousedown|preventDefault
on the .row__option to prevent blur but also add an on:click handler that calls
addSelectionFromOption(categoryItem.key, option) so keyboard-enter/space fires
the selection; update the .row__options/.row__option button markup to include
both handlers and ensure available, categoryItem.key and addSelectionFromOption
are used for the click invocation.
- Around line 235-236: The function getAvailableOptions currently declares a
single parameter (key: CategoryKey) but is called with two args (key and
selections); change its signature to accept selections (e.g.,
getAvailableOptions(key: CategoryKey, selections: SelectionsType)) and replace
any closure usage of selections with the new parameter, then update all call
sites that pass selections (the calls that use
getAvailableOptions(categoryItem.key, selections) and the other call in the same
file) so types align and TypeScript arity errors are resolved.
|
CodeRabbit Suggestions implemented |
|
Well, damn! |
Yeah, and your PR does more than mine overall. |
Fascinating... |
Will do...? |
|
Sorry I thought this was somehow a PR into the other branch that was open, now it has merge conflicts |
|
All good, that PR was open in the other Jeccoman's fork, ill open it here now since his changes are merged now. |
Fixes #15
Makes selecting something from the dropdown remove it from the displayed options without having to reselect the dropdown. Also makes the dropdown not appear if there are no more options to select.
Summary by CodeRabbit