Skip to content

Commit 2592a6c

Browse files
Remove (BETA) label from Left Sidebar feature (#1024)
* Remove (BETA) label from Left Sidebar feature Co-authored-by: Michael Gartner <mdroidian@users.noreply.github.com> * Keep (BETA) as key in config lookups, only change UI display - Reverted changes to discourseConfigRef.ts, initializeObserversAndListeners.ts, and registerCommandPaletteCommands.ts - Added comments explaining that BETA is used as a key and will be removed with settings migration - Only GeneralSettings.tsx UI title is changed to remove (BETA) label --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Michael Gartner <mdroidian@users.noreply.github.com>
1 parent 327fabc commit 2592a6c

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/roam/src/components/settings/GeneralSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const DiscourseGraphHome = () => {
4141
parentUid={settings.settingsUid}
4242
/>
4343
<FeatureFlagPanel
44-
title="(BETA) Left Sidebar"
44+
title="Left Sidebar"
4545
description="Whether or not to enable the left sidebar."
4646
initialValue={settings.leftSidebarEnabled.value}
4747
featureKey="Enable left sidebar"

apps/roam/src/utils/discourseConfigRef.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const getFormattedConfigTree = (): FormattedConfigTree => {
7373
}),
7474
suggestiveMode: getSuggestiveModeConfigAndUids(configTreeRef.tree),
7575
leftSidebar: getLeftSidebarSettings(configTreeRef.tree),
76+
// BETA used as key, will be removed with settings migration
7677
leftSidebarEnabled: getUidAndBooleanSetting({
7778
tree: configTreeRef.tree,
7879
text: "(BETA) Left Sidebar",

apps/roam/src/utils/initializeObserversAndListeners.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ export const initObservers = async ({
248248
className: "starred-pages-wrapper",
249249
callback: (el) => {
250250
void (async () => {
251+
// BETA used as key, will be removed with settings migration
251252
const isLeftSidebarEnabled = getUidAndBooleanSetting({
252253
tree: configTree,
253254
text: "(BETA) Left Sidebar",

apps/roam/src/utils/registerCommandPaletteCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ export const registerCommandPaletteCommands = (onloadArgs: OnloadArgs) => {
332332
void addCommand("DG: Query block - Create", createQueryBlock);
333333
void addCommand("DG: Query block - Refresh", refreshCurrentQueryBuilder);
334334

335+
// BETA used as key, will be removed with settings migration
335336
const leftSidebarEnabled = getUidAndBooleanSetting({
336337
tree: discourseConfigRef.tree,
337338
text: "(BETA) Left Sidebar",

0 commit comments

Comments
 (0)