pin the app types on the four locked screens that had none
The allow-list existed on fourteen screens and was missing from every other one, which the previous commit turned from fifty lines into one. These four are locked — the user cannot change what is in the panel — so an appType that stops resolving strands them on the empty teal box in PanelSlot with no picker and no way back. Checked against what is actually persisted rather than against the defaults: `screens/desktop` holds `officerdev/desktop` and `screens/files` holds `officerdev/file-browser`, both already inside the list they are now being given. `screens/terminal` and `screens/dashboards` have no row at all — those screens have never been opened on this machine — so they seed from the default, which also matches. Nothing is rewritten by this. Browser and Email stay unguarded on purpose. Their panels resolve through `components`, which PanelSlot keys on the *panel id*, and their layouts carry `appType: null` — the app type is never consulted, so pinning it would pin nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ export const DashboardsScreen = () => {
|
||||
<WorkspaceView
|
||||
workspace={workspace}
|
||||
locked
|
||||
appTypes={{ allowed: ['dashboard-list', 'dashboard-preview'], fallback: 'dashboard-preview' }}
|
||||
mobilePanelId={mobilePanelId}
|
||||
onMobilePanelChange={(id) => {
|
||||
if (!id)
|
||||
|
||||
Reference in New Issue
Block a user