Skip to content

Feat/import and manipulate image scans - #2

Merged
Aymericr merged 15 commits into
mainfrom
feat/import-scans
Oct 23, 2025
Merged

Aymericr merged 15 commits into
mainfrom
feat/import-scans

Conversation

@Aymericr

Copy link
Copy Markdown
Member

No description provided.

@vercel

vercel Bot commented Oct 23, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
editor Ready Ready Preview Comment Oct 23, 2025 7:56pm

@Aymericr
Aymericr merged commit 4c68f97 into main Oct 23, 2025
@Aymericr
Aymericr deleted the feat/import-scans branch October 27, 2025 13:41
gsigrupa added a commit to gsigrupa/editor that referenced this pull request May 23, 2026
User request pascalorg#1 + pascalorg#2:
1. Domyslna jednostka cm (zamiast m) — wszystkie formatery dlugosci
   konwertuja value*100 → "Math.round(cm)" + suffix "cm"
2. Usuniete imperial/ft — toggle button hidden, zostawiony statyczny
   label "cm" jako info-only

Zmienione formatMeasurement w 4 plikach:
- packages/editor/src/components/editor/wall-measurement-label.tsx
- packages/editor/src/components/editor/site-edge-labels.tsx
- packages/nodes/src/wall/tool.tsx (drafting)
- packages/nodes/src/fence/tool.tsx (drafting)

floorplan-panel.tsx area formatter:
- powierzchnia zostawiona w m² (czytelniejsze dla podłóg)
- usuniety imperial branch

apps/editor/components/viewer-toolbar.tsx UnitToggle:
- button onClick + setUnit usunięty
- pokazuje statycznie "cm" z tooltip "Centymetry"
- store viewer.unit pozostaje 'metric' (transparent dla user'a)

User request pascalorg#3 (SketchUp-style numeric input 105 cm + Enter podczas
rysowania ściany) wymaga przepisania state machine wall/tool.tsx
(~300 lin + keyboard listener + UI feedback). Osobna sesja.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
gsigrupa added a commit to gsigrupa/editor that referenced this pull request May 23, 2026
…g#330, pascalorg#332)

Sync z pascalorg/editor main po 2 commitach upstream:

- bb5ce68 Viewer render modes (Solid/Rendered + textures + surface-role
  clay + scene themes + edges) — PR pascalorg#332
- 87384cf feat(roof-system): 6 roof-accessory kinds (chimney, dormer,
  skylight, solar-panel, ridge-vent, box-vent) — PR pascalorg#330

Konflikty (4) rozwiazane manualnie z zachowaniem naszych GSI customizations:

1. use-placement-coordinator.tsx — upstream sam naprawil bug (PR pascalorg#332
   zawiera identyczny useCallback fix jak nasz 7102269); wezmy upstream

2. site-edge-labels.tsx — zachowane: lengthUnit z useViewer (nasze
   formatMeasurement obsluguje m/cm/mm); dodane: isNight z nowego
   getSceneTheme(state.sceneTheme).appearance

3. wall-measurement-label.tsx — analogicznie do pascalorg#2

4. structure-tools.tsx — zachowane PL labels (Ściana/Drzwi/Okno/Schody/
   Dach dwuspadowy/Ogrodzenie/Słup/Winda/Płyta podłogowa/Sufit/Strefa/
   Punkt startowy/Półka); dodany upstream'owy komentarz o roof accessories
   (chimney/dormer/skylight/solar-panel/ridge-vent/box-vent intentionally
   NOT w top palette — wejscie przez roof inspector)

Migracja theme API (upstream rename `theme` → `sceneTheme` w ViewerState):
- editor/index.tsx body.dark sync przelaczony na getSceneTheme(state.sceneTheme).appearance === 'dark'

PL translations nowe nodes (6):
- chimney → Komin
- ridge-vent → Wywietrznik kalenicowy
- box-vent → Wywietrznik kostkowy
- solar-panel → Panel słoneczny
- skylight → Świetlik
- dormer → Lukarna
+ shortcuts: 'Left click' → 'Lewy klik', 'Place X on roof' → 'Umieść X
  na dachu', 'Cancel' → 'Anuluj' (10 plików)

TS: 0 errors w core/viewer/editor/nodes/mcp i apps/editor.
gsigrupa added a commit to gsigrupa/editor that referenced this pull request May 23, 2026
Bug: cascade rename "Pomieszczenie 1" → "Kuchnia" nie aktualizowal slab/
ceiling names mimo poprawnej implementacji. Root cause:

  initSpaceDetectionSync mial JEDEN subscriber z `if (pauseDepth > 0) return`
  na poczatku. Pascal pauseuje history podczas placement tools / initial
  scene load → subscriber early returns BEZ aktualizacji cache previousZoneNames.
  Potem user rename zone → fire pascalorg#2, cache pusty, prev=undefined → changedZones
  zawsze pusty → cascade nigdy nie odpala.

Fix: rozdzielenie na dwa osobne subscribery:
  1. unsubscribeDetection — wall snapshot diff (z pauseDepth guard, jak wczesniej)
  2. unsubscribeZoneRename — TYLKO zone name diff, BEZ pauseDepth guard
     (cascade rename to lightweight op, niezalezna od historii sceny)

Subscriber zone rename ZAWSZE aktualizuje cache na koncu fire — niezaleznie
od tego czy zmiana wystapila. To gwarantuje ze drugi fire (po user rename)
ma poprawny snapshot poprzednich nazw do porownania.

Debug window.__zoneDebug zaktualizowany o firstPoint polygonu zone (do
weryfikacji czy polygon match z slab/ceiling polygon dziala).
leapar added a commit to leapar/pascaleditor that referenced this pull request Aug 31, 2026
…ascalorg#3, pascalorg#6

- pascalorg#1: FitSceneButton now calls useTranslations() (was throwing
  ReferenceError on render).
- pascalorg#2: Command palette group keys use dotted form (commands.group.scene)
  to match the i18n catalog; previously used the flat form
  (commands.groupScene) which produced undefined labels.
- pascalorg#3: save-button.tsx migrated from the bespoke messages[] lookup to
  useTranslations() with save.* keys, removing the unprefixed key leak
  into the global namespace and matching the rest of the codebase.
- pascalorg#6: Added missing catalog keys with full en/zh parity:
    sidebar.build, sidebar.settings
    editor.openSavedScenes, editor.rotate, editor.place,
    editor.forcePlace, editor.guidedConstraintsBypassed

Skipped pascalorg#4 (resolveBaseUrl) and pascalorg#5 (editor-layout-v2 toolbar) — those
predate this branch and are out of scope for the i18n restore PR.

This branch was successfully deployed

1 active deployment
Preview — aa305e95 Deployed Oct 23, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant