Skip to content

Commit d1d4e10

Browse files
MetalSyntaxclaude
andcommitted
fix(onboarding): correct SHOPPING_LIST id mismatch in navbar favorites
The Shopping List option in the onboarding menu was saved with id 'SHOPPING' but NAV_ICON_MAP and ProfileView use 'SHOPPING_LIST', causing the navbar to filter it out and show only 3 items despite the profile reporting 4/4. Also changes the 4th default favorite from ANALYSIS to SCHEDULED, and adds a Cypress regression test that verifies onboarding completes with 4 visible navbar items including the Shopping List selection. Includes the initial Tauri desktop app scaffold (apps/desktop) and root workspace scripts for desktop dev/build/install. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 376a79c commit d1d4e10

68 files changed

Lines changed: 5343 additions & 13 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/desktop/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

apps/desktop/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Tauri + Vanilla TS
2+
3+
This template should help get you started developing with Tauri in vanilla HTML, CSS and Typescript.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)

apps/desktop/install.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import fs from 'fs';
2+
import path from 'path';
3+
import { fileURLToPath } from 'url';
4+
5+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
6+
const appPath = path.join(__dirname, 'src-tauri/target/release/bundle/macos/PARITY.app');
7+
const destPath = '/Applications/PARITY.app';
8+
9+
console.log('Checking built application...');
10+
if (!fs.existsSync(appPath)) {
11+
console.error(`Error: PARITY.app not found at: ${appPath}`);
12+
console.error('Please run "pnpm desktop:build" first to compile the release version.');
13+
process.exit(1);
14+
}
15+
16+
console.log(`Copying PARITY.app to ${destPath}...`);
17+
try {
18+
// Remove existing app if present
19+
if (fs.existsSync(destPath)) {
20+
console.log('Removing old version from /Applications...');
21+
fs.rmSync(destPath, { recursive: true, force: true });
22+
}
23+
24+
fs.cpSync(appPath, destPath, { recursive: true });
25+
console.log('Successfully installed PARITY.app to /Applications!');
26+
} catch (error) {
27+
console.error('Failed to copy application:', error.message);
28+
process.exit(1);
29+
}

apps/desktop/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "@parity/desktop",
3+
"private": true,
4+
"version": "0.1.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "tauri dev",
8+
"build": "tauri build",
9+
"install-app": "node install.js",
10+
"tauri": "tauri"
11+
},
12+
"dependencies": {
13+
"@tauri-apps/api": "^2",
14+
"@tauri-apps/plugin-opener": "^2"
15+
},
16+
"devDependencies": {
17+
"@tauri-apps/cli": "^2"
18+
}
19+
}

apps/desktop/src-tauri/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+
5+
# Generated by Tauri
6+
# will have schema files for capabilities auto-completion
7+
/gen/schemas

0 commit comments

Comments
 (0)