Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 0 additions & 105 deletions i18n/literal-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -808,52 +808,6 @@
"Style",
"Width"
],
"packages/nodes/src/dormer/panel-actions-section.tsx": [
"Actions",
"Delete",
"Duplicate",
"Move"
],
"packages/nodes/src/dormer/panel-position-section.tsx": [
"Position",
"Rotation"
],
"packages/nodes/src/dormer/panel-windows-section.tsx": [
"Add Window",
"Edit window",
"Edit {?}",
"Increase the dormer width to add another window.",
"Move",
"Move window",
"Move {?}",
"No windows",
"Window {?}",
"Windows ({length})",
"front"
],
"packages/nodes/src/dormer/panel.tsx": [
"Depth",
"Dimensions",
"Dormer",
"Dormer",
"Dutch",
"Flat",
"Gable",
"Gambrel",
"Hip",
"Mansard",
"Pitch Direction",
"Pitch Rise",
"Rise Back",
"Rise Front",
"Roof Height",
"Roof Type",
"Section",
"Shed",
"Wall Height",
"Width",
"Windows"
],
"packages/nodes/src/downspout/inspector-editors.tsx": [
"Position"
],
Expand Down Expand Up @@ -1021,65 +975,6 @@
"Skip",
"· segment"
],
"packages/nodes/src/skylight/panel.tsx": [
"Actions",
"Along X",
"Along Z",
"Bottom",
"Curb",
"Cutout Offset",
"Delete",
"Depth",
"Dimensions",
"Frame",
"Glass Thickness",
"Height",
"Height",
"Lantern Height",
"Left",
"Motor",
"Motor Housing",
"No",
"No Motor",
"Open",
"Open",
"Opening Angle",
"Position",
"Right",
"Rotation",
"Skylight",
"Thickness",
"Top",
"Top Scale",
"Track Width",
"Type",
"Width",
"Yes"
],
"packages/nodes/src/solar-panel/panel.tsx": [
"Actions",
"Array",
"Auto-fit to roof",
"Columns",
"Custom — dimensions don't match any preset",
"Delete",
"Flip orientation",
"Flush",
"Frame depth",
"Frame thickness",
"Gap X",
"Gap Y",
"Height",
"Mounting",
"Panel",
"Preset",
"Rows",
"Solar Panel",
"Standoff",
"Tilt angle",
"Tilted",
"Width"
],
"packages/nodes/src/spawn/panel.tsx": [
"Actions",
"Delete",
Expand Down
41 changes: 41 additions & 0 deletions i18n/pseudo-surfaces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Page } from 'playwright-core'
import { DormerNode, SkylightNode, SolarPanelNode } from '../packages/core/src/schema'
import type { SceneGraph } from '@pascal-app/core/clone-scene-graph'
import { template as twoBedroom } from '../packages/mcp/src/templates/two-bedroom'
import { pseudoLocalize } from '../scripts/i18n'
Expand Down Expand Up @@ -210,6 +211,25 @@ export async function openInEditor(page: Page, name: string): Promise<void> {
await page.waitForTimeout(500)
}

/** The furnished scene plus a dormer, a skylight and a solar panel on the roof segment. */
function roofFeaturesScene() {
const graph = furnishedScene() as unknown as {
nodes: Record<string, { children?: string[] }>
}
const onRoof = { parentId: 'rseg_audit', roofSegmentId: 'rseg_audit' }
const features = [
DormerNode.parse({ id: 'dormer_audit', ...onRoof, position: [0, 0, -1.5] }),
SkylightNode.parse({ id: 'skylight_audit', ...onRoof, position: [-1, 0, 1.5] }),
SolarPanelNode.parse({ id: 'solarpanel_audit', ...onRoof, position: [1, 0, -1.5] }),
]
for (const node of features) graph.nodes[node.id] = node
graph.nodes.rseg_audit?.children?.push(...features.map((node) => node.id))
return graph as unknown as SceneGraph
}

const roofFeaturesPath = async (base: string) =>
`/project/${await auditScene(base, 'roof-features', roofFeaturesScene())}`

export const surfaces: PseudoSurface[] = [
{ name: 'home', path: '/', data: ['Project #1'] },
{ name: 'settings', path: '/settings' },
Expand Down Expand Up @@ -501,4 +521,25 @@ export const surfaces: PseudoSurface[] = [
},
scope: '[role="dialog"]',
},
{
name: 'dormer-panel',
path: roofFeaturesPath,
steps: (page) => openLayer(page, 'Dormer'),
scope: '[data-editor-inspector]',
data: furnishedData,
},
{
name: 'skylight-panel',
path: roofFeaturesPath,
steps: (page) => openLayer(page, 'Skylight'),
scope: '[data-editor-inspector]',
data: furnishedData,
},
{
name: 'solar-panel-panel',
path: roofFeaturesPath,
steps: (page) => openLayer(page, 'Solar Panel'),
scope: '[data-editor-inspector]',
data: furnishedData,
},
]
2 changes: 1 addition & 1 deletion packages/editor/src/i18n/locales/en-XA/messages.ts

Large diffs are not rendered by default.

Loading
Loading