| created | status |
|---|---|
| 2026-05-08 | approved |
Improve the “Add Ratio” modal in UserRatioSection: select channel first, then pick a model from that channel’s supported models via dropdown instead of manual text input.
Single file: web/src/components/table/users/modals/UserRatioSection.jsx
No backend changes — the existing /api/channel/ endpoint already returns the models field (comma-separated string) for each channel.
loadChannels() fetches channel list, stores two things:
channelOptions: [{ label, value }] for the channel dropdown (existing)channelMap: { [channelId]: channelObject } for looking up models by channel ID (new)channel.models by comma into an arraymodelOptions to [{ label: model, value: model }] for each modelmodelOptions with filter and showClear, disabled when no channel is selectedmodel_name, channel_id, ratio)