From fe727d5abbf61d10c63fd8864a48458710055620 Mon Sep 17 00:00:00 2001
From: Mashbean
Date: Wed, 17 Jun 2026 12:12:19 +0800
Subject: [PATCH] fix(circle-sunset): re-hide circle entry on (aside) user
profile
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The circle widget entry on both the user profile and aside user profile
was accidentally re-enabled by 4acdd2035 ("Display carbon based badge").
That Codex-generated commit rewrote these two files from a pre-sunset
view and un-commented the CircleWidget import / circles var / render,
reopening the circle (圍爐) entrance that the sunset series (ed1108cea /
814c776d3) had intentionally hidden.
Re-apply the sunset comments to all three spots in both files while
keeping the CarbonBasedBadge additions intact. Present on both develop
and master, so this also needs to reach master.
Co-Authored-By: Claude Opus 4.8
---
src/views/User/UserProfile/AsideUserProfile/index.tsx | 11 +++++++----
src/views/User/UserProfile/index.tsx | 11 +++++++----
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/views/User/UserProfile/AsideUserProfile/index.tsx b/src/views/User/UserProfile/AsideUserProfile/index.tsx
index 3c3bc349d0..58e2e410cd 100644
--- a/src/views/User/UserProfile/AsideUserProfile/index.tsx
+++ b/src/views/User/UserProfile/AsideUserProfile/index.tsx
@@ -37,7 +37,8 @@ import {
SeedBadge,
TraveloggersBadge,
} from '../Badges'
-import CircleWidget from '../CircleWidget'
+// FEATURE IS SUNSETTING: circle entry on aside user profile is hidden
+// import CircleWidget from '../CircleWidget'
import DropdownActions from '../DropdownActions'
import { FollowersDialog } from '../FollowersDialog'
import { FollowingDialog } from '../FollowingDialog'
@@ -114,7 +115,8 @@ export const AsideUserProfile = () => {
}
const badges = user.info.badges || []
- const circles = user.ownCircles || []
+ // FEATURE IS SUNSETTING: circle entry on aside user profile is hidden
+ // const circles = user.ownCircles || []
const hasSeedBadge = badges.some((b) => b.type === 'seed')
const hasArchitectBadge = badges.some((b) => b.type === 'architect')
const hasGoldenMotorBadge = badges.some((b) => b.type === 'golden_motor')
@@ -374,11 +376,12 @@ export const AsideUserProfile = () => {
)}
- {isInUserPage && (
+ {/* FEATURE IS SUNSETTING: circle entry on aside user profile is hidden */}
+ {/* {isInUserPage && (
- )}
+ )} */}
)
}
diff --git a/src/views/User/UserProfile/index.tsx b/src/views/User/UserProfile/index.tsx
index a06a4fcdce..9d0bcc82a6 100644
--- a/src/views/User/UserProfile/index.tsx
+++ b/src/views/User/UserProfile/index.tsx
@@ -28,7 +28,8 @@ import { UserProfileUserPublicQuery } from '~/gql/graphql'
import UserTabs from '../UserTabs'
import { Badges } from './Badges'
import { BadgesDialog } from './BadgesDialog'
-import CircleWidget from './CircleWidget'
+// FEATURE IS SUNSETTING: circle entry on user profile is hidden
+// import CircleWidget from './CircleWidget'
import DropdownActions from './DropdownActions'
import { FollowersDialog } from './FollowersDialog'
import { FollowingDialog } from './FollowingDialog'
@@ -102,7 +103,8 @@ export const UserProfile = () => {
}
const badges = user.info.badges || []
- const circles = user.ownCircles || []
+ // FEATURE IS SUNSETTING: circle entry on user profile is hidden
+ // const circles = user.ownCircles || []
const hasSeedBadge = badges.some((b) => b.type === 'seed')
const hasArchitectBadge = badges.some((b) => b.type === 'architect')
const hasGoldenMotorBadge = badges.some((b) => b.type === 'golden_motor')
@@ -306,12 +308,13 @@ export const UserProfile = () => {
-
+ /> */}