Skip to content

Commit 88ac477

Browse files
committed
removed traces of left side menu
1 parent 1d15ef1 commit 88ac477

5 files changed

Lines changed: 1 addition & 800 deletions

File tree

README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -91,34 +91,4 @@ We have added comments in the code to make it explicit which parts are 100% writ
9191

9292
* Raptor mini: Update the code to use the new solid-ui-header component. Keep in mind the log in and sign up are wired in specific ways.
9393

94-
* Auto: change the menu to fill up the menu items like in the code: async function getMenuItems (outliner: any) {
95-
const items = await outliner.getDashboardItems()
96-
return items.map((element) => {
97-
return {
98-
label: element.label,
99-
onclick: () => openDashboardPane(outliner, element.tabName || element.paneName)
100-
}
101-
})
102-
}
103-
104-
* Auto: each #sym:MenuItem has an icon which i want displayed on the left side of each menu item when rendered
105-
106-
* Auto: don't add each menu item in a button looking border. Simply list them.
107-
Upon hover apply background color e6dcff and selected or active to be background color: cbb9ff
108-
109-
* Raptor mini: the menu dissapears when on mobile. That is great.
110-
I want the menu to have a tiny button on the bottom margin left with an arrow to the left or right for expanding the menu or for making it small. This is only for web. When we make it small it folds and only displays the icons of teh menu items, when it is expanded it should also add the labels to the menu items.
111-
112-
* Raptor mini: i want to imporve the left side menu on mobile. When the menu is visible it should be higher, the top part should be on top of the header, folding out and in with the rest of the menu. It should have an x close button and it should say menu. The locor of that top line of the header should be the color of the header 332746
113-
114-
* Raptor mini: the menu, on desktop, has a button to fold in or out. I want the same behavior to occur also when i simply click the folded in menu: it should expend. Not just when i click the dedicated button
115-
116-
* Raprot mini: instead of this code (index.ts of footer), I want to make use of a new footer web component with the readme: # solid-ui-footer component
117-
118-
* Raptor mini: The footer created should actually be part of the left side menu only. Should be displayed inside it and should collaps and expand as the menu.
119-
120-
* Raptor mini: the footer should completely dissapear when menu folded up.
121-
122-
* Raptor mini: Please always keep the footer at the bottom of the menu
123-
12494
* GPT-5.4 Model: Add a compatibility shim in the form pane for mixed `ui:Group` plus field typing.

src/mainPage/header.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { authn } from 'solid-logic'
22
import { html, render } from 'lit-html'
33
import type { AccountMenuItem } from 'solid-ui/components/account'
4-
5-
import { setActiveMenuPane } from './menu'
64
import type { OutlineManager } from '../outline/manager'
75

86
import '~icons/lucide/user'
@@ -29,7 +27,6 @@ export async function createHeader (outliner: OutlineManager) {
2927

3028
if (currentUser) {
3129
outliner.showDashboard(currentUser, { pane: 'profile' })
32-
setActiveMenuPane('profile')
3330
}
3431
}
3532
},
@@ -40,7 +37,6 @@ export async function createHeader (outliner: OutlineManager) {
4037

4138
if (currentUser) {
4239
outliner.showDashboard(currentUser, { pane: 'social' })
43-
setActiveMenuPane('social')
4440
}
4541
}
4642
},
@@ -51,7 +47,6 @@ export async function createHeader (outliner: OutlineManager) {
5147

5248
if (currentUser) {
5349
outliner.showDashboard(currentUser, { pane: 'folder' })
54-
setActiveMenuPane('folder')
5550
}
5651
}
5752
},
@@ -62,7 +57,6 @@ export async function createHeader (outliner: OutlineManager) {
6257

6358
if (currentUser) {
6459
outliner.showDashboard(currentUser, { pane: 'home' })
65-
setActiveMenuPane('home')
6660
}
6761
}
6862
},
@@ -73,7 +67,6 @@ export async function createHeader (outliner: OutlineManager) {
7367

7468
if (currentUser) {
7569
outliner.showDashboard(currentUser, { pane: 'basicPreferences' })
76-
setActiveMenuPane('basicPreferences')
7770
}
7871
}
7972
},

src/mainPage/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { LiveStore, NamedNode } from 'rdflib'
77
import type { RenderEnvironment } from 'pane-registry'
88
import { getOutliner, OutlineManager } from '../index'
99
import { createHeader } from './header'
10-
import { createLeftSideMenu, refreshMenu } from './menu'
1110

1211
// Symbol used to stash the last render-relevant env snapshot on the outliner
1312
// so refreshUI can skip a full GotoSubject re-render when nothing changed.
@@ -18,8 +17,6 @@ function renderEnvSignature (env?: RenderEnvironment): string {
1817
return [env.layout, env.theme, env.inputMode].join('|')
1918
}
2019

21-
export { refreshMenu as updateMenuLayout } from './menu'
22-
2320
function ensureMainContent () {
2421
let main = document.getElementById('MainContent') as HTMLElement | null
2522
if (!main) {
@@ -46,8 +43,7 @@ export async function initMainPage (
4643
outliner.GotoSubject(subject, true, undefined, true, undefined)
4744

4845
const header = await createHeader(outliner)
49-
const menu = createLeftSideMenu(subject, outliner)
50-
return Promise.all([header, menu])
46+
return Promise.all([header])
5147
}
5248

5349
export async function refreshUI (outliner: OutlineManager) {
@@ -67,6 +63,4 @@ export async function refreshUI (outliner: OutlineManager) {
6763
outliner.GotoSubject(store.sym(subjectUri), true, pane, true, undefined)
6864
;(outliner as any)[LAST_RENDER_ENV_KEY] = currentSignature
6965
}
70-
71-
refreshMenu(outliner.context.environment?.layout === 'mobile' ? 'mobile' : 'desktop')
7266
}

src/mainPage/menu.css

Lines changed: 0 additions & 243 deletions
This file was deleted.

0 commit comments

Comments
 (0)