feat(web): fold plan mode and token-by-token output into Legacy features #5664
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/5664/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/web/src/components/settings/SettingsPanels.tsx lines 1529 to 1540Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1506,0 +1514,21 @@1514+]);1515+1516+/**1517+ * Retired features kept only for users who still depend on them. Collapsed by1518+ * default so they stay out of the everyday settings path; a settings-search1519+ * jump to one of the rows unfolds the section.1520+ */1521+function LegacyFeaturesSection() {1522+ const settings = usePrimarySettings();1523+ const updateSettings = useUpdatePrimarySettings();1524+ const [open, setOpen] = useState(false);1525+ const searchTargetId = useSettingsSearchTargetId();1526+ // Unfold once per search jump; tracking the handled id lets the user fold1527+ // the section back up without the still-set target immediately reopening it.1528+ const lastExpandedTargetRef = useRef<string | null>(null);1529+ useEffect(() => {1530+ if (searchTargetId === null || !LEGACY_FEATURE_TARGET_IDS.has(searchTargetId)) return;1531+ if (lastExpandedTargetRef.current === searchTargetId) return;1532+ lastExpandedTargetRef.current = searchTargetId;1533+ setOpen(true);1534+ }, [searchTargetId]);
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:
f1e2bcfd-9164-41e6-836f-1ce5a21a1d02You 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