evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "Evaluates how the solution leverages PrimeVue selection and suggestion components (Dropdown, MultiSelect, AutoComplete) to satisfy the travel selector behaviors. Checks correct binding, filtering, and empty-state handling rather than general code quality. Scoring rewards proper use of package props, slots, and events to mirror the spec.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Dropdown binding",
"description": "Uses PrimeVue `Dropdown` with `options`/`optionLabel`/`optionValue` bound to destinations, `optionDisabled` for blocked entries, and `placeholder` set to \"Select a destination\" with `v-model` syncing the destination in `modelValue`.",
"max_score": 20
},
{
"name": "MultiSelect chips",
"description": "Uses PrimeVue `MultiSelect` with `v-model` bound to `modelValue.interests`, supplying `options` with `optionLabel`/`optionValue`, and chip-style selection (via `display=\"chip\"` or a selection slot) so each picked interest renders as a removable tag in selection order.",
"max_score": 25
},
{
"name": "AutoComplete filtering",
"description": "Implements PrimeVue `AutoComplete` with `v-model` on the hotel text, `suggestions` driven by a `completeMethod` that performs case-insensitive filtering after at least two characters, and selecting a suggestion updates the model and emits the `select-hotel` payload.",
"max_score": 25
},
{
"name": "No-match slot",
"description": "Uses the PrimeVue `AutoComplete` `empty` slot or `emptyMessage` to display \"No matches\" when no suggestions are available while leaving any previously chosen hotel value untouched.",
"max_score": 10
},
{
"name": "Reset sync",
"description": "Clear/reset action drives `v-model` updates so the `Dropdown`, `MultiSelect`, and `AutoComplete` all return to empty states (placeholder visible, no chips, blank input) using built-in clear props or model resets, and emits the reset/update events expected from these PrimeVue components.",
"max_score": 20
}
]
}