Skip to content

feat(web): default deco.cx imports to {slug}.deco.site preview with chat closed - #6699

Merged
guitavano merged 1 commit into
mainfrom
guitavano/import-defaults-deco-site
Aug 28, 2026
Merged

feat(web): default deco.cx imports to {slug}.deco.site preview with chat closed#6699
guitavano merged 1 commit into
mainfrom
guitavano/import-defaults-deco-site

Conversation

@guitavano

@guitavano guitavano commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Two changes to the Import from deco.cx flow (apps/web/src/components/import-from-deco-dialog.tsx):

  • Preview server now defaults to https://<sitename>.deco.site (built from the site slug) instead of picking the site's real production/custom domain from site.domains. productionUrl is still dual-written to the same value for rollback compatibility.
  • Show chat now defaults to closed on import — chatDefaultOpen: false in the created space's metadata.ui.layout (was true).

Notes

  • pickProductionDomain remains imported; it's still used elsewhere in the dialog for display.
  • Behavior change: sites running on a custom domain will now default their preview server to <slug>.deco.site rather than the custom domain. Users can edit the Preview server field afterward.

Testing

  • bun run fmt passes clean.

🤖 Generated with Claude Code


Summary by cubic

Changes Import from deco.cx so the preview server defaults to https://<slug>.deco.site instead of the site's real production or custom domain, and new spaces start with the chat panel closed. productionUrl is still dual-written to the same value so a rollback to an older app version keeps working.

Sites on a custom domain will now see the deco.site host as the preview server by default; the field can still be edited after import.

Written for commit 3d4dc2e. Summary will update on new commits.

Review in cubic

…hat closed

Import from deco.cx now defaults the preview server to
https://<sitename>.deco.site and starts new spaces with the chat panel
closed (chatDefaultOpen: false).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added the claude PR authored by a coding agent label Aug 28, 2026
@guitavano
guitavano merged commit 81eb292 into main Aug 28, 2026
34 checks passed
@guitavano
guitavano deleted the guitavano/import-defaults-deco-site branch August 28, 2026 16:11
decocms Bot pushed a commit that referenced this pull request Aug 28, 2026
PR: #6699 feat(web): default deco.cx imports to {slug}.deco.site preview with chat closed
Bump type: minor

- decocms (apps/api/package.json): 4.294.4 -> 4.295.0
- @decocms/native (apps/native/package.json): 4.294.4 -> 4.295.0

Deploy-Scope: web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude PR authored by a coding agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant