MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / compileSidebarFilterClauseToSQL

Function compileSidebarFilterClauseToSQL

main.js:3313–3390  ·  view source on GitHub ↗

SQL fragment for a sidebar filter serialized into searchTokens ({ t: filter | filterMulti }).

(tok, filters, params)

Source from the content-addressed store, hash-verified

3311 ...(isServerMode ? [] : [{
3312 label: 'Browser Extension',
3313 click: () => mainWindow.webContents.send('open-browser-extension-settings')
3314 }]),
3315 {
3316 label: 'MCP Server',
3317 click: () => {
3318 if (mainWindow && !mainWindow.isDestroyed()) {
3319 mainWindow.webContents.send('open-mcp-server-settings');
3320 }
3321 }
3322 },
3323 { type: 'separator' },
3324 {
3325 label: 'Filament Management',
3326 click: () => mainWindow.webContents.send('open-filament-manager')
3327 },
3328 {
3329 label: 'Tag Manager',
3330 click: () => mainWindow.webContents.send('open-tag-manager')
3331 },
3332 {
3333 label: 'Metadata Manager',
3334 click: () => mainWindow.webContents.send('open-metadata-editor')
3335 },
3336 {
3337 label: 'Backup/Restore',
3338 click: () => mainWindow.webContents.send('open-backup-restore')
3339 },
3340 { type: 'separator' },
3341 {
3342 label: 'Regenerate Thumbnails',
3343 click: () => {
3344 if (isServerMode && global.broadcastEvent) {
3345 global.broadcastEvent('regenerate-thumbnails');
3346 } else {
3347 mainWindow.webContents.send('regenerate-thumbnails');
3348 }
3349 }
3350 },
3351 {
3352 label: 'Generate Missing Thumbnails',
3353 click: () => {
3354 if (isServerMode && global.broadcastEvent) {
3355 global.broadcastEvent('generate-missing-thumbnails');
3356 } else {
3357 mainWindow.webContents.send('generate-missing-thumbnails');
3358 }
3359 }
3360 },
3361 {
3362 label: 'Purge Models',
3363 click: () => mainWindow.webContents.send('open-purge-models')
3364 }
3365 ]
3366 },
3367 {
3368 label: 'Help',
3369 submenu: [
3370 {

Callers 1

parseSearchPrimaryFunction · 0.85

Calls 3

pushTagListSQLFunction · 0.85

Tested by

no test coverage detected