Skip to content

Commit 4a30be5

Browse files
committed
refactor: update VSCode settings and enhance SongThumbnailInput component with NoteQuadTree import
1 parent 4d71486 commit 4a30be5

File tree

2 files changed

+36
-10
lines changed

2 files changed

+36
-10
lines changed

.vscode/settings.json

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
{
2-
"editor.formatOnSave": true,
3-
"eslint.validate": ["typescript"],
4-
"eslint.run": "onType",
5-
"eslint.format.enable": true,
6-
"mdx.server.enable": true,
7-
"editor.codeActionsOnSave": {
8-
"source.fixAll": "explicit"
9-
}
10-
}
2+
"editor.formatOnSave": true,
3+
"eslint.validate": [
4+
"typescript"
5+
],
6+
"eslint.run": "onType",
7+
"eslint.format.enable": true,
8+
"mdx.server.enable": true,
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll": "explicit"
11+
},
12+
"workbench.colorCustomizations": {
13+
"activityBar.activeBackground": "#fac977",
14+
"activityBar.background": "#fac977",
15+
"activityBar.foreground": "#15202b",
16+
"activityBar.inactiveForeground": "#15202b99",
17+
"activityBarBadge.background": "#069a62",
18+
"activityBarBadge.foreground": "#e7e7e7",
19+
"commandCenter.border": "#15202b99",
20+
"sash.hoverBorder": "#fac977",
21+
"statusBar.background": "#f8b646",
22+
"statusBar.foreground": "#15202b",
23+
"statusBarItem.hoverBackground": "#f6a315",
24+
"statusBarItem.remoteBackground": "#f8b646",
25+
"statusBarItem.remoteForeground": "#15202b",
26+
"titleBar.activeBackground": "#f8b646",
27+
"titleBar.activeForeground": "#15202b",
28+
"titleBar.inactiveBackground": "#f8b64699",
29+
"titleBar.inactiveForeground": "#15202b99"
30+
},
31+
"peacock.color": "#f8b646"
32+
}

apps/frontend/src/modules/song/components/client/SongThumbnailInput.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
import { useSongProvider } from './context/Song.context';
1313
import { EditSongForm, UploadSongForm } from './SongForm.zod';
1414
import { ThumbnailRendererCanvas } from './ThumbnailRenderer';
15+
import { NoteQuadTree } from '@nbw/song';
1516

1617
const formatZoomLevel = (zoomLevel: number) => {
1718
const percentage = 100 * Math.pow(2, zoomLevel - 3);
@@ -155,7 +156,10 @@ export const SongThumbnailInput = ({
155156
/>
156157

157158
{song && notes && (
158-
<ThumbnailRendererCanvas notes={notes} formMethods={formMethods} />
159+
<ThumbnailRendererCanvas
160+
notes={notes as unknown as NoteQuadTree} //TODO: fix this bizarre type cast
161+
formMethods={formMethods}
162+
/>
159163
)}
160164

161165
{/* Background Color */}

0 commit comments

Comments
 (0)