mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
fix: downgrade @modelcontextprotocol/sdk to version 1.25.0 in package.json
This commit is contained in:
@@ -39,36 +39,26 @@ export function useProjectSettingsLoader() {
|
|||||||
|
|
||||||
if (result.success && result.settings?.boardBackground) {
|
if (result.success && result.settings?.boardBackground) {
|
||||||
const bg = result.settings.boardBackground;
|
const bg = result.settings.boardBackground;
|
||||||
|
const projectPath = currentProject.path;
|
||||||
|
|
||||||
// Update store with loaded settings (without triggering server save)
|
// Update store with loaded settings (without triggering server save)
|
||||||
setBoardBackground(currentProject.path, bg.imagePath);
|
setBoardBackground(projectPath, bg.imagePath);
|
||||||
|
|
||||||
if (bg.cardOpacity !== undefined) {
|
const settingsMap = {
|
||||||
setCardOpacity(currentProject.path, bg.cardOpacity);
|
cardOpacity: setCardOpacity,
|
||||||
|
columnOpacity: setColumnOpacity,
|
||||||
|
columnBorderEnabled: setColumnBorderEnabled,
|
||||||
|
cardGlassmorphism: setCardGlassmorphism,
|
||||||
|
cardBorderEnabled: setCardBorderEnabled,
|
||||||
|
cardBorderOpacity: setCardBorderOpacity,
|
||||||
|
hideScrollbar: setHideScrollbar,
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
for (const [key, setter] of Object.entries(settingsMap)) {
|
||||||
|
const value = bg[key as keyof typeof bg];
|
||||||
|
if (value !== undefined) {
|
||||||
|
(setter as (path: string, val: typeof value) => void)(projectPath, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bg.columnOpacity !== undefined) {
|
|
||||||
setColumnOpacity(currentProject.path, bg.columnOpacity);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bg.columnBorderEnabled !== undefined) {
|
|
||||||
setColumnBorderEnabled(currentProject.path, bg.columnBorderEnabled);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bg.cardGlassmorphism !== undefined) {
|
|
||||||
setCardGlassmorphism(currentProject.path, bg.cardGlassmorphism);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bg.cardBorderEnabled !== undefined) {
|
|
||||||
setCardBorderEnabled(currentProject.path, bg.cardBorderEnabled);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bg.cardBorderOpacity !== undefined) {
|
|
||||||
setCardBorderOpacity(currentProject.path, bg.cardBorderOpacity);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bg.hideScrollbar !== undefined) {
|
|
||||||
setHideScrollbar(currentProject.path, bg.hideScrollbar);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -186,7 +186,11 @@ test.describe('Board Background Persistence', () => {
|
|||||||
|
|
||||||
// CRITICAL: Wait for settings to be loaded (useProjectSettingsLoader hook)
|
// CRITICAL: Wait for settings to be loaded (useProjectSettingsLoader hook)
|
||||||
// This ensures the background settings are fetched from the server
|
// This ensures the background settings are fetched from the server
|
||||||
await page.waitForTimeout(2000);
|
await page.waitForResponse(
|
||||||
|
(resp) =>
|
||||||
|
resp.url().includes('/api/settings/project') &&
|
||||||
|
resp.request().postData()?.includes(projectAPath) === true
|
||||||
|
);
|
||||||
|
|
||||||
// Check if background settings were applied by checking the store
|
// Check if background settings were applied by checking the store
|
||||||
// We can't directly access React state, so we'll verify via DOM/CSS
|
// We can't directly access React state, so we'll verify via DOM/CSS
|
||||||
@@ -235,7 +239,11 @@ test.describe('Board Background Persistence', () => {
|
|||||||
).toBeVisible({ timeout: 5000 });
|
).toBeVisible({ timeout: 5000 });
|
||||||
|
|
||||||
// CRITICAL: Wait for settings to be loaded again
|
// CRITICAL: Wait for settings to be loaded again
|
||||||
await page.waitForTimeout(2000);
|
await page.waitForResponse(
|
||||||
|
(resp) =>
|
||||||
|
resp.url().includes('/api/settings/project') &&
|
||||||
|
resp.request().postData()?.includes(projectAPath) === true
|
||||||
|
);
|
||||||
|
|
||||||
// Verify that the settings API was called for project A (at least twice - initial load and switch back)
|
// Verify that the settings API was called for project A (at least twice - initial load and switch back)
|
||||||
const projectASettingsCalls = settingsApiCalls.filter((call) =>
|
const projectASettingsCalls = settingsApiCalls.filter((call) =>
|
||||||
@@ -370,7 +378,11 @@ test.describe('Board Background Persistence', () => {
|
|||||||
await expect(page.locator('[data-testid="board-view"]')).toBeVisible({ timeout: 15000 });
|
await expect(page.locator('[data-testid="board-view"]')).toBeVisible({ timeout: 15000 });
|
||||||
|
|
||||||
// Wait for settings to load
|
// Wait for settings to load
|
||||||
await page.waitForTimeout(2000);
|
await page.waitForResponse(
|
||||||
|
(resp) =>
|
||||||
|
resp.url().includes('/api/settings/project') &&
|
||||||
|
resp.request().postData()?.includes(projectPath) === true
|
||||||
|
);
|
||||||
|
|
||||||
// Verify that the settings API was called for this project
|
// Verify that the settings API was called for this project
|
||||||
const projectSettingsCalls = settingsApiCalls.filter((call) => call.body.includes(projectPath));
|
const projectSettingsCalls = settingsApiCalls.filter((call) => call.body.includes(projectPath));
|
||||||
|
|||||||
7
package-lock.json
generated
7
package-lock.json
generated
@@ -20,7 +20,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"husky": "9.1.7",
|
"husky": "9.1.7",
|
||||||
"lint-staged": "16.2.7",
|
"lint-staged": "16.2.7",
|
||||||
"prettier": "3.7.4"
|
"prettier": "3.7.4",
|
||||||
|
"vitest": "4.0.16"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.0.0 <23.0.0"
|
"node": ">=22.0.0 <23.0.0"
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
"apps/server": {
|
"apps/server": {
|
||||||
"name": "@automaker/server",
|
"name": "@automaker/server",
|
||||||
"version": "0.7.3",
|
"version": "0.8.0",
|
||||||
"license": "SEE LICENSE IN LICENSE",
|
"license": "SEE LICENSE IN LICENSE",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@anthropic-ai/claude-agent-sdk": "0.1.76",
|
"@anthropic-ai/claude-agent-sdk": "0.1.76",
|
||||||
@@ -78,7 +79,7 @@
|
|||||||
},
|
},
|
||||||
"apps/ui": {
|
"apps/ui": {
|
||||||
"name": "@automaker/ui",
|
"name": "@automaker/ui",
|
||||||
"version": "0.7.3",
|
"version": "0.8.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "SEE LICENSE IN LICENSE",
|
"license": "SEE LICENSE IN LICENSE",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user