Skip to content

Commit b845160

Browse files
claudeJulusian
authored andcommitted
feat(webui): show deprecation on the module manage panel
The panel a user opens to manage a module's versions said nothing about the module itself being deprecated - only its versions table hinted at anything, and then only per version. Put the same notice at the top of the body, where it is the first thing read. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAxrCHCfp9TKnaeZHPzt3v
1 parent 2082f09 commit b845160

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎webui/src/Modules/ModuleManagePanel.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { WindowLinkOpen } from '~/Helpers/Window.js'
1515
import { CloseButton } from '~/Layout/PanelIcons.js'
1616
import { RootAppStoreContext } from '~/Stores/RootAppStore.js'
1717
import { LastUpdatedTimestamp } from './LastUpdatedTimestamp.js'
18+
import { ModuleDeprecationAlert, useModuleDeprecation } from './ModuleDeprecation.js'
1819
import { ModuleVersionsTable } from './ModuleVersionsTable.js'
1920
import { RefreshModuleInfo } from './RefreshModuleInfo.js'
2021
import { useModuleStoreInfo } from './useModuleStoreInfo.js'
@@ -66,6 +67,9 @@ const ModuleManagePanelInner = observer(function ModuleManagePanelInner({
6667
const moduleStoreInfo = useModuleStoreInfo(moduleType, moduleId)
6768
const navigate = useNavigate()
6869

70+
// This panel covers the module as a whole, so no single version is in context here
71+
const deprecation = useModuleDeprecation(moduleType, moduleId, null)
72+
6973
const baseInfo = moduleInfo || moduleStoreBaseInfo
7074

7175
const doCloseModule = useCallback(() => {
@@ -93,6 +97,8 @@ const ModuleManagePanelInner = observer(function ModuleManagePanelInner({
9397
</div>
9498
</div>
9599
<div className="secondary-panel-simple-body">
100+
{deprecation && <ModuleDeprecationAlert deprecation={deprecation} />}
101+
96102
<div className="refresh-and-last-updated">
97103
<RefreshModuleInfo moduleType={moduleType} moduleId={moduleId} />
98104
<LastUpdatedTimestamp timestamp={moduleStoreInfo?.lastUpdated} />

0 commit comments

Comments
 (0)