fix(mobile): hide inapplicable model settings in the picker #6426
ClosedSergeSerb2(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/6426/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -556,7 +571,15 @@556571557- <View style={{ paddingBottom: insets.bottom + 12 }}>558- {descriptorTemplate.map((entry) => {559- const live = displayedDescriptors.find(560- (descriptor) => descriptor.label === entry.label,561- );562- if ((live?.type ?? entry.type) === "select") {572+ <View className="pt-1" style={{ paddingBottom: insets.bottom + 12 }}>573+ {visibleDescriptors.map((descriptor) => {574+ if (descriptor.type === "select") {575+ if (usesInlineSelectChoices(descriptor)) {576+ const currentValue = getProviderOptionCurrentValue(descriptor);577+ return (578+ <ChoiceChipRow579+ key={descriptor.id}580+ label={descriptor.label}581+ selectedId={typeof currentValue === "string" ? currentValue : undefined}582+ choices={selectableChoices(descriptor).map((choice) => ({583+ id: choice.id,584+ label: choice.label,585+ }))}
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
04ed932e-553e-47ae-ab4c-b97505a7fa5dYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
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.
❤️ Share