feat: Corrections tab — SFT candidate import, review, and JSONL export #15

Merged
pyr0ball merged 99 commits from feat/sft-corrections into main 2026-04-08 22:19:01 -07:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit e16ea95dcc - Show all commits

View file

@ -59,4 +59,10 @@ describe('SftCorrectionArea', () => {
await w.find('textarea').trigger('keydown', { key: 'Enter', ctrlKey: true })
expect(w.emitted('submit')).toBeFalsy()
})
it('omits aria-describedby when describedBy prop is not provided', () => {
const w = mount(SftCorrectionArea)
const textarea = w.find('textarea')
expect(textarea.attributes('aria-describedby')).toBeUndefined()
})
})

View file

@ -10,7 +10,7 @@
class="correction-textarea"
aria-label="Write corrected response"
aria-required="true"
:aria-describedby="describedBy"
:aria-describedby="describedBy || undefined"
placeholder="Write the response this model should have given..."
rows="4"
@keydown.escape="$emit('cancel')"