mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
e2784fa6f79a12b8293c905f00c8d66ca7798cd0
20
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
89ca46cd7f |
fix: Improve floating surface and menu selection contrast (#6670)
## Problem Autocomplete suggestions were hard to distinguish in dark mode. Dropdowns and dialogs did not have a clear depth order, and Select opened against its trigger. ## Result Floating surfaces become slightly darker in light mode and lighter in dark mode. Select opens 4 px below its control. Highlighted rows, intent colors, and disabled states remain distinguishable on the new surfaces. The theme still uses nine live inputs. Shared color recipes and a smaller CSS reader replace repeated calculations and authoring-policy checks. Missing references, cycles, duplicate definitions, and selector ownership are still checked during type generation. Components keep the same generated semantic color types. ## Plan and todos 1. [x] Define floating surface levels from the existing theme colors for both modes. 2. [x] Apply them to dialogs, menus, nested menus, popovers, commands, canvas controls, arrows, and borders. 3. [x] Keep highlighted menu, command, and inset-list rows visible. 4. [x] Remove the Builder spacing popover's base-background override. 5. [x] Add Storybook examples for dropdown over dialog, canvas toolbar, and badge. 6. [x] Add a 4 px gap to the shared Select used by Position and Display. 7. [x] Check primary, secondary, accent, error, and status contrast on floating levels. 8. [x] Document the palette rule in the design-system color guide. 9. [x] Review the selected light and dark stories listed in earlier validation. This was not an exhaustive UI-state audit. 10. [x] Run design-system tests, relevant typechecks, lint, formatting, package boundaries, and diff checks. 11. [x] Fix the audit's text, destructive-control, style-source, disabled-hover, and vivid-theme contrast failures. 12. [x] Review product documentation and fixture impact. 13. [ ] Monitor CI for the current commit and complete visual-difference approval. 14. [x] Replace floating-only intent colors with shared semantic colors. 15. [x] Make InsetList selection follow its actual containing surface. 16. [x] Consolidate color recipes and contrast-pair definitions while preserving rendered colors. 17. [x] Simplify CSS parsing and verify all nine theme controls in both modes. 18. [x] Remove redundant declaration collection while retaining exact validation behavior. 19. [x] Reproduce and fix the Grid generator contrast and CSS value footer reports in real Storybook compositions, cover missing open/hover/selected states in both modes, and record actual audit coverage and remaining gaps. 20. [ ] Audit every Builder, Dashboard, and design-system interface in light and dark mode: inventory components and reachable states, render all stories, exercise hover/focus/active/selected/disabled/open/error/loading/empty states, add missing compositions, inspect screenshots and actual contrast, and publish findings with evidence and unresolved coverage gaps. 21. [x] Soften floating-surface contrast in light and dark themes, align the Grid generator's preview outline with its grid lines, and verify focused stories, regression checks, and documentation impact. 22. [x] Make shared popover headers and bodies use one background color, check Grid settings and other callers in both themes, add regression coverage, and review documentation impact. 23. [x] Reduce the shared Grid generator and selector line contrast in both themes, keep the preview outline matched, verify visibility and Storybook states, and review documentation impact. ## Validation Palette-refactor validation below applies to `07d11239f5`. The Storybook coverage follow-up is `e38d25537d`. - All 284 design-system tests passed, plus design-system typecheck, focused lint, formatting, and diff checks. - A Chromium comparison found identical rendered RGBA values for 1,312 samples across both modes and 16 theme configurations before and after the recipe refactor. - All 50 contrast contracts remain. The new theme-control checks cover every generated public theme input in both modes. - Deliberate temporary mutations confirmed the new checks fail when the protected behavior breaks. - Independent Astra reviews found no new defects. The final cleanup matched exact outputs or errors for 167 valid and invalid parser inputs. - Current parsed source output and generated token types are unchanged. - Earlier Builder typechecks and package-boundary checks passed. This refactor changes no public component API. - No fixture inputs or generated fixture bundles are affected. The design-system README was updated; the product Craft documentation still matches the behavior. The latest commit removes 342 net implementation lines, excluding tests and documentation. The color parser is 152 lines, the stylesheet 253, and the contrast helper 127. CSS still performs all runtime color calculation; the parser supports type generation and Storybook. All non-visual CI checks passed for this commit. The visual-regression job was cancelled before producing its comparison report, so visual CI is not complete. The visual approval label has not been applied. ## Visual coverage correction The previous palette tests and selected screenshots did not establish that every Builder interface and state had been inspected. The Grid generator had no direct story, and the CSS fragment story did not open the dialog or render its shortcut footer. Both reported defects were reproduced in new open stories in light and dark mode. Both fixes are verified locally and included in `e38d25537d`. Grid open, selected, hover, preset-hover, and keyboard-focus states were captured; the CSS dialog was captured normal and maximized in both modes. The grid's weakest measured outline contrast is 3.176:1, up from about 1.1:1 against the panel. The footer no longer paints a base-surface strip inside the floating dialog. All 11 focused browser tests, Builder typecheck, six-file lint, formatting, and diff checks passed. Temporary old-style mutations made all four new light/dark regression cases fail; restoring the fixes made them pass. Independent review found no remaining defects in these fixes. Runtime code grows by five net lines; stories add 110 lines, including shared-store setup and restoration for repeatable rendering. No fixture bundles or product documentation are affected. The follow-up adds 217 story cases, including actual dialogs, canvas overlays, collection and resource loading/error states, confirmations, and editor states. Stories use real components and local HTTP responses. Builder and design-system typechecks, focused lint, formatting, and diff checks pass. No published-project fixture inputs or generated bundles are affected. The broader contrast audit remains in progress. Its source inventory covers 416 JSX interface files; the current Storybook scope is 427 stories in both themes. Render captures and interaction-state probes are tracked separately. Confirmed remaining problems include error-page heading contrast, collaborator labels, grid guides over different canvas colors, position dots, keyboard hints, pressed secondary labels, editor punctuation, and color-picker unit labels/surfaces. These findings are not fixed by this commit. Task 20 remains open until the remaining interactions and evidence review are complete. CI for `bd1d6349bc` is running; task 13 remains open pending required checks and visual review. ## Contrast follow-up Floating surfaces are softer in both themes, especially light mode, while keeping the intended light and dark surface directions. The Grid preview outline matches its internal lines except during visible keyboard focus. New browser regressions failed before the fix and pass afterward in both modes. Storybook captures of the open Grid generator and dialog with dropdown were reviewed in light and dark mode. Design-system tests (284), focused Builder tests (2), both package typechecks, focused lint, formatting, and diff checks pass. The Craft docs and design-system color guide still describe this behavior; no documentation or fixture input/output changes are needed. These changes are included in `5558d2ab12`, and task 21 is complete. ## Popover surface follow-up The Style panel passes its primary section background and sticky header setting into portalled Grid settings. The shared floating panel now marks its surface, and Builder sections inside it use the same floating background as the panel title and body. The Grid settings Storybook story reproduces the real Style panel context. New light and dark browser regressions failed before the fix and pass afterward. Reviewed Grid settings, a plain FloatingPanel, and a titled Popover in both modes; direct Popover keeps its raised surface. Design-system tests (284), focused Builder tests (4), both package typechecks, focused lint, formatting, and diff checks pass. No product documentation or fixture inputs/outputs change. These changes are included in `6839897bb2`, and task 22 is complete. ## Grid line contrast follow-up The shared Grid line mix is reduced from 75% to 60% foreground-secondary. In Chromium, gray selector and preset-cell borders now measure 2.323:1 in light mode and 2.550:1 in dark mode against their cell fills, down from 3.134:1 and 3.415:1. The preview line measures 2.803:1 and 2.964:1 against its surrounding body surface; its outer outline uses the exact same color. Selected and hover focus-color cues remain unchanged. These gray strokes are softer and remain visible, but their cell-border ratios are below the Craft guide's 3:1 target for meaningful non-text graphics. The focused browser regressions failed before the edit and pass afterward in both themes. Grid generator and selector Storybook states were reviewed in light and dark mode. Builder typecheck, focused lint, formatting, and diff checks pass. Product documentation and fixture inputs/outputs are unaffected. This change is included in `bd1d6349bc`, and task 23 is complete. |
||
|
|
c389cd3bb2 |
fix: classify errors with structured codes and types (#6539)
Invalid or revoked share links now return an actionable 401 response instead of an unexpected server error. Missing project and workspace records receive distinct responses at their lookup sites. Token, project, and workspace lookups use `.maybeSingle()` and rely on database uniqueness. Missing projects have an explicit `ProjectNotFoundError`; the loader no longer interprets `PGRST116`. The API preserves `UNAUTHORIZED` and `INVALID_AUTH_TOKEN` when authorization fails during context creation, so CLI and MCP clients can offer relinking guidance without inspecting error text. Tokens without API access carry `API_ACCESS_DISABLED`. A repository audit replaces error-message matching with typed errors, stable codes, or structured diagnostics in CLI argument/configuration handling, session conflicts, preview cleanup, import retries, domain unpublishing, asset validation, JSX/expression diagnostics, CSS validation, and publish diagnostics. `AGENTS.md` now explicitly prohibits message-based error classification and recovery. The existing build-permission preflight now advertises structured import-error support. Clients upload assets before importing into older servers that do not advertise it; newer servers keep selective retries using structured missing-file details. The internal template-validation error class remains outside public JSX bindings and input descriptions. Shared Builder `parseError` normalizes tRPC and local validation errors, so UI components only add display context instead of decoding transport payloads. Simplification removes three redundant error classes, catch-and-ignore handlers, an unused formatter, and nested loader error handling. Unpublishing an already unpublished domain succeeds after authorization. CLI configuration failures use the existing shared error handling, and plan parsing catches only JSON parsing failures. Validation: affected suites passed (271 tests across 8 suites in the latest simplification checks), affected package typechecks passed, and lint, package-boundary checks, and `git diff --check` passed. The audit replaced synthetic parser branches and private-method assertions with actual tRPC round trips, PostgREST responses, and public VM behavior. Controlled regressions confirmed that removing serialized validation details and exposing the internal JSX error class both fail the revised tests. Astra reviewed the production changes at medium effort; its compatibility finding and the GitHub JSX-binding comment are fixed, and follow-up review found no remaining substantive issues. |
||
|
|
d4b1994a6a |
fix: Improve editor selection and project tag contrast (#6302)
Closes #6301 ## Summary - Restore Dashboard project tags to the pre-color-refactor treatment: fixed white text over a 30% black scrim in both application themes. - Use one high-contrast text-selection treatment across native inputs, textareas, contenteditable fields, and every shared CodeMirror editor. - Preserve the existing subtle selection treatment for Navigator, Project Settings, command menus, Dashboard navigation, and other selected controls. - Add direct Storybook coverage for the CSS fragment editor. - Simplify chromatic color derivation from 571 to 329 lines without changing computed colors. ## Technical choices - Keep project tags independent from application-theme polarity because they overlay arbitrary thumbnail artwork. - Keep the existing `selectionBackground` control-state export unchanged at its original 12% light / 20% dark accent blend. - Define separate `--background-text-selection` and `--foreground-on-text-selection` tokens exclusively for selected text. - Use the bounded accent in light mode and a luminance-lifted accent in dark mode so selected text remains distinct even with extreme custom theme colors. - Style CodeMirror through its existing selection layer and `::selection` CSS hooks; no selection tracking or editor-state logic is added. - Leave canvas rich-text selection independent: authored canvas documents do not load the Builder UI theme stylesheet. - Replace five duplicated XYZ clamp formulas with the exact upper-luminance cap they reduce to. The removed lower-bound and white-mixing branches were unreachable because the minimum was fixed at zero. ## Todo - [x] Restore the original project-tag scrim and foreground in both themes. - [x] Inventory native, CodeMirror, and canvas rich-text selection paths. - [x] Unify native and shared CodeMirror text-selection colors. - [x] Keep text selection independent from selected control and navigation states. - [x] Add the missing CSS fragment editor story. - [x] Add light- and dark-mode browser regressions and confirm they fail before the fix. - [x] Enforce 4.5:1 selected-text contrast and 3:1 highlight-to-surface contrast across supported theme inputs. - [x] Remove duplicated and unreachable chromatic color derivation while preserving outputs. - [x] Review documentation impact; the design-system color-token reference is updated, with no user-facing product documentation change required. - [x] Verify fixture impact; no fixture inputs or generated outputs are affected. ## Verification - `pnpm --filter @webstudio-is/design-system test` — 227 tests passed, including the control/text separation regression, Navigator tree interaction, default-palette comparisons, and the full supported-theme contrast sweep - `pnpm --filter @webstudio-is/design-system typecheck` - `pnpm --filter @webstudio-is/builder exec vitest run app/shared/code-editor-base.browser.test.tsx --project app-browser-shared` - `pnpm --filter @webstudio-is/builder exec vitest run app/dashboard/projects/project-card.browser.test.tsx --project app-browser-canvas-dashboard` - `pnpm --filter @webstudio-is/builder typecheck` - Targeted `oxlint`, formatting, and `git diff --check` - Live dark-mode Dashboard verification of the restored subtle navigation selection - Storybook visual checks for the full color system and input/CodeMirror selection in light and dark modes |
||
|
|
f953d1be37 |
fix: Restore the login background gradient (#6286)
## Summary Restores the original Webstudio login gradient after the color-system migration added a dark scrim over it. Fixed Webstudio identity artwork now belongs to the Design System, while generic surfaces, content, translucency, and overlays use the semantic color system instead of a Builder-local brand color bag. ## Architecture - The Design System exports only the fixed Webstudio background gradient, progress gradient, and progress shadow as brand artwork. - Generic black, white, translucent panel, and scrim entries were removed rather than moved. - Login and error surfaces use semantic light/dark pairings. - Project-card tags derive their local 30% scrim from the semantic overlay color. ## Todo - [x] Restore the original login gradient without a scheme-dependent scrim. - [x] Move fixed identity artwork into the Design System package. - [x] Remove the Builder-local brand color registry. - [x] Replace generic fixed colors with semantic colors or local derivations. - [x] Add explicit dark-mode Storybook coverage for the login screen. - [x] Run Design System and Builder typechecks. - [x] Run Design System tests, scoped lint, formatting, and package-boundary validation. - [x] Review documentation impact and document ownership in the Design System color README. ## Verification - Design System tests: 222 passed. - Design System and Builder typechecks: passed. - Scoped Oxlint and formatting: passed. - Package-boundary validation: passed. - Focused visual regression: 23 affected stories compared; the newly added dark login story is the only difference. - Fixture impact: no fixture inputs or generated outputs are affected. Ref #3818 |
||
|
|
f6c524572d |
feat: add Builder dark theme and rebuild colors
## Summary
Rebuilds Webstudio’s color system, migrates the entire Builder to it,
and introduces a complete dark theme.
A small set of theme colors and contrast controls now drives the
interface through relative CSS colors:
```text
Theme colors and contrast
↓
Light/dark derivation bounds
↓
Derived color families
↓
Reusable semantic colors
↓
Component composition
↓
Builder interface
```
CSS is the runtime source of truth. Light and dark modes share the same
theme inputs, so changing a theme color automatically updates its
surfaces, content, borders, states, and component presentation. The
refactor turns dark mode into a first-class Builder theme rather than a
separately maintained palette.
This is an atomic migration. Legacy color names and compatibility
aliases will not remain after all consumers have moved.
## Scope
- The color source, derivation model, semantic vocabulary, validation,
typing, and Storybook overview.
- Every design-system component.
- Builder, dashboard, authentication, shared UI, Query Builder, stories,
and tests that consume the legacy color scale.
- Removal of the legacy Stitches color scale after its final consumer is
migrated.
- A complete dark theme across application UI while keeping authored
canvas content independent.
- Complete light and dark visual verification.
- Unified browser-test infrastructure: Vitest Browser Mode for Design
System browser contracts and standard Playwright Test for all Builder
E2E workflows.
Literal colors remain only where color is the actual content or belongs
to a deliberately separate system, such as user-authored values,
external previews, brand artwork, data visualization, functional canvas
overlays, and source assets. Every remaining exception must have an
explicit owner.
## Architecture decisions
- Theme authors control six color families and three bounded contrast
controls.
- Relative CSS colors derive the rest of the system.
- Dark mode changes derivation bounds instead of maintaining a second
independent palette.
- Components consume a small reusable semantic vocabulary.
- Component states and exceptional presentation are composed inside
components.
- Builder-specific categorical meaning uses focused composite recipes,
not intent semantics or a larger global vocabulary.
- TypeScript validates public semantic CSS-variable names but does not
generate runtime colors.
- No token-manager dependency, compatibility aliases, or
component-specific public color tokens.
- A new semantic or theme variable is added only when existing semantics
and local composition cannot represent a reusable cross-feature
decision.
## Todo
### Color-system foundation
- [x] Establish direct CSS as the runtime source of truth.
- [x] Define bounded theme colors and contrast controls.
- [x] Derive light and dark modes from the same theme inputs.
- [x] Reduce the semantic inventory to reusable decisions and explicit
accessibility pairs.
- [x] Generate only TypeScript names for public semantic CSS variables.
- [x] Validate layers, references, cycles, consumption, naming,
generated types, and browser-computed contrast.
- [x] Add the Storybook color-system overview and theme controls.
- [x] Document the architecture and its relationship to the public Craft
specification.
### Design-system migration
- [x] Replace every active legacy color consumer in design-system
components and Storybook chrome.
- [x] Compose component states locally without component-specific public
tokens.
- [x] Preserve intentional preview and sample-content colors.
- [x] Add complete positive, negative, warning, informative, and accent
accessibility pairings.
- [x] Validate light and dark scheme-bound references independently.
- [x] Verify the design-system package with typecheck, lint, formatting,
Storybook, and 222 tests.
### Inventory and contract
- [x] Inventory all 319 legacy references across 107 Builder, Query
Builder, story, test, and design-system files.
- [x] Classify every reference as a direct semantic replacement, local
composite recipe, documented literal exception, or removable code.
- [x] Record the intentional authored-content, external-preview,
functional-preview, data-visualization, brand, and source-asset
exceptions.
- [x] Treat the public semantic vocabulary as closed by default and
justify any proposed addition by cross-feature reuse and accessibility
need.
- [x] Keep Builder code limited to typed public variables accepted by
`cssVar()`.
### Theme infrastructure
- [x] Add `system` (default), `light`, and `dark` application
preferences.
- [x] Persist the preference in existing client settings and resolve
`system` through `matchMedia`.
- [x] Apply the resolved scheme before paint and respond to
operating-system changes.
- [x] Expose the persisted theme control under **View → Color scheme**.
- [x] Keep authored canvas documents independent from the application
theme.
- [x] Ensure portals, overlays, embedded surfaces, and third-party
controls receive the correct interface scheme.
### Generic interface migration
- [x] Migrate shared dialogs, project settings, notifications, controls,
and Query Builder.
- [x] Migrate dashboard, authentication, publishing, and shared
application UI.
- [x] Migrate the Builder loading state, topbar, sidebars, navigator,
workspace, footer, settings, pages, alerts, and menus.
- [x] Replace fixed interface literals alongside their owning surfaces.
- [x] Remove the old scrollbar variable and hardcoded loading color.
### Style panel and style-source recipes
- [x] Migrate ordinary style-panel inputs, labels, layouts, spacing,
alignment, menus, property states, and value editors.
- [x] Model style-source provenance, kind, interaction, and error as
separate axes.
- [x] Compose categorical style-source colors from neutral and
accent-relative colors.
- [x] Use negative semantics only for actual errors, not overwritten
provenance.
- [x] Reuse one feature-owned recipe across style-source controls,
badges, menus, and values without adding global tokens.
### Canvas and editors
- [x] Migrate canvas selection, reusable outlines, grid guides, resize
handles, labels, badges, and overlays.
- [x] Keep collaborator colors as data visualization while guaranteeing
readable labels.
- [x] Prevent Builder theme values from leaking into authored content.
- [x] Migrate editor surfaces, selections, autocomplete, lint states,
and tooltips.
- [x] Derive syntax visualization from neutral and accent-relative
colors; reserve intent colors for diagnostics.
### Explicit color domains
- [x] Isolate external search and social previews from the application
scheme.
- [x] Preserve user-authored CSS values, functional color previews, and
checkerboards.
- [x] Review brand surfaces independently in both schemes.
- [x] Document every retained literal in the exception ledger.
### Stories, tests, and legacy removal
- [x] Migrate all affected Builder stories and tests.
- [x] Replace the design-system test that intentionally references the
legacy scale.
- [x] Add theme-preference and scheme-resolution behavior tests.
- [x] Remove the legacy `design-tokens.color` registry.
- [x] Remove the Stitches `colors` scale and `rawTheme.colors`.
- [x] Remove color-name conversion code that exists only for the legacy
scale.
- [x] Add a focused repository check that rejects legacy references.
- [x] Confirm no compatibility mappings or deprecated aliases remain.
### Browser-test infrastructure
- [x] Run pure Design System tests in Node and browser-dependent tests
in Vitest Browser Mode with Playwright Chromium.
- [x] Migrate all 79 Builder E2E workflows from the custom harness to
standard Playwright Test.
- [x] Replace filename-based shard discovery with standard Playwright
sharding.
- [x] Preserve clean-backend shard retries and upload Playwright failure
artifacts in CI.
- [x] Remove the custom runner, registry, and timeout infrastructure.
### Verification and documentation
- [x] Compare light-mode visual regressions directly with `main`; review
every difference rather than accepting snapshots wholesale.
- [x] Add representative dark coverage for dashboard, Builder shell,
style panel, dialogs, editors, canvas tools, and status states.
- [x] Test default and extreme custom-theme presets.
- [x] Verify semantic and categorical-recipe contrast.
- [x] Test first paint, persistence, system changes, portals, and canvas
isolation.
- [x] Run affected tests, typechecks, lint, formatting, and Storybook
checks.
- [x] Review fixture impact; no fixture inputs or generated outputs are
affected.
- [x] Review authoritative `docs/` content and update it where needed.
- [x] Review the final diff and make this checklist reflect delivered
scope.
## Current verification
- Design-system typecheck and generated-type freshness: passed.
- Design-system tests: 222 passed, including the full theme-parameter
contrast sweep and browser component coverage.
- Builder typecheck and production build: passed.
- Theme preference and scheme-resolution tests: 10 passed.
- Scoped Oxlint, formatting, and diff checks: passed.
- Design-system Storybook build and representative light/dark visual
review: passed.
- Builder E2E: 80/80 Playwright entries passed (setup plus 79
workflows).
Ref #3818
Closes #6267
|
||
|
|
82c3d83fd1 |
fix: optimize CLI import for large data amount (#5831)
## Summary - Add CLI project import support from synced `.webstudio/data.json` into another project via a destination share link. - Move project bundle import/export contract into `@webstudio-is/protocol`, including bundle versioning, staged upload constants, schema validation, and fixture coverage. - Upload project bundle data through staged TUS upload before calling the import RPC to avoid request body limits. - Upload referenced assets as binary files through the existing asset upload route before importing asset rows. - Add `--skip-assets` and `--ignore-version-check` import options. - Add retry handling for transient missing imported asset files by re-uploading only the reported missing assets. - Share missing-asset import error formatting/parsing through protocol to avoid duplicated string contracts. - Preserve browser asset upload behavior while adding API upload support. - Normalize schema naming across the branch to lower-case names without `Schema` suffix. |
||
|
|
91d2136921 | refactor(stories): consolidate exports, add StorySection/StoryGrid everywhere, remove argTypes/args | ||
|
|
2216adf4f0 |
fix: expand story coverage and apply sentence case to all story titles
- Add new story variants across ~100 files covering previously untested props - Fix all story titles to use sentence case per UI label guidelines - Consolidate duplicate card, thumbnail, and value-text stories into parent files - Add interactive/controlled variants for checkbox, radio, switch, select, etc. - Add style source, disabled, icon, placeholder, unit options variants to CssValueInput - Add sub-menu, radio group, destructive, and disabled variants to dropdown/context menus - Add dialog resize, maximize, actions, and non-draggable variants - Add popover title, actions, and side placement variants - Add tooltip side placements and content variant stories |
||
|
|
f62a34bbff | fix: resolve naming conflicts in story exports and fix TS errors\n\nAlias component imports to avoid conflicts with story export names\n(e.g., import { Card as CardComponent }). Fix unused imports/variables\nin about.stories.tsx and css-value-input.stories.tsx. Fix CssProperty\ntype, help-center icon, and typeof self-references. | ||
|
|
64e5c17129 |
fix: stories render open by default, remove Demo nesting, use data URLs for images
- Make interaction-requiring stories render content immediately: - import-redirects-dialog: render dialog open directly - context-menu: use DropdownMenu with defaultOpen - enhanced-tooltip: add defaultOpen prop - tooltip: add open prop, pre-populate error state - command-panel: call openCommandPanel() on mount - toast: remove interactive InAction story - Rename single 'Demo' exports to match component names, eliminating redundant navigation nesting in Storybook (e.g. 'Search Preview / Demo' → 'Search Preview') - Replace external image URLs with inline data:image/svg+xml: - avatar: pravatar.cc → inline SVG - marketplace/card: placehold.co → inline SVG - search-preview: favicon.ico → inline SVG - animate-children-scroll: unsplash → inline gradient SVG - toast: Blob/createObjectURL → inline data URL |
||
|
|
8292755fb6 | fix: remove redundant title prefixes and use design system wrappers in stories\n\n- Remove redundant Builder/ prefix from 9 builder story titles (titlePrefix already adds it)\n- Remove redundant Design System/ prefix from 6 design-system story titles\n- Replace raw <div style={}> with Box/Flex and theme tokens in dashboard card/thumbnail stories | ||
|
|
a06bedb8fc | feat: add visual regression stories for style panel, dashboard, and design system components | ||
|
|
29e455a9b7 |
fix: remove Text Content property from Image component (#5195)
Was accidentally added when rewriting content model. Also fixed two other issues - user can override text color in error boundary with global root - text content property now have tooltip with description and it can be reset <img width="320" alt="Screenshot 2025-05-10 at 18 14 19" src="https://github.com/user-attachments/assets/ffb16efc-e7b5-44d1-a214-0a9251e9eb9d" /> |
||
|
|
8f3592d594 |
feat: Login and error page redesign (#4777)
## Description <img width="1512" alt="image" src="https://github.com/user-attachments/assets/c61e93e0-f981-428d-8d8f-7101cdf43c2b" /> <img width="449" alt="image" src="https://github.com/user-attachments/assets/f030d9c2-ddaf-481d-9292-d2e5619939b7" /> <img width="1507" alt="image" src="https://github.com/user-attachments/assets/14bc4742-5d87-47f7-8704-db83674b115e" /> 1. What is this PR about (link the issue and add a short description) ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file |
||
|
|
f653a116e7 |
chore: Update fixtures date (#4138)
## Description 1. What is this PR about (link the issue and add a short description) ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file |
||
|
|
8b05d2c7f1 |
chore: Fast project opening (on subsequent openings) (#4100)
## Description https://fast-open.development.webstudio.is/error?development-error=0 https://fast-open.development.webstudio.is/error?development-error=1 https://fast-open.development.webstudio.is/error?development-error=2 https://fast-open.development.webstudio.is/error?development-error=3 https://fast-open.development.webstudio.is/error?development-error=4 https://fast-open.development.webstudio.is/error?development-error=5 ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file |
||
|
|
0b0707e61f |
chore: Project login (#3990)
## Description New Project login without any automation or link changes. corresponding PR https://github.com/webstudio-is/webstudio-saas/pull/319 ## Steps for reproduction - Goto [Tmp/Login manul page](https://oauth.staging.webstudio.is/tmp/login) - Manually login/logout to project domains ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file |
||
|
|
a65ab3379f |
build: forbid unused parameters (#3732)
Enabled flag in tsconfig to forbid unused parameters. |
||
|
|
d1469f9e1d |
feat: Add ability to disable clone and copy for view links (#2983)
## Description ### HAS MIGRATION, CAN'T BE TESTED ONLINE Pro users can add additional permissions to auth tokens <img width="358" alt="image" src="https://github.com/webstudio-is/webstudio/assets/5077042/df294ac3-e98c-465d-8115-f74ff075ff2d"> In case of cloning is disabled user will see <img width="448" alt="image" src="https://github.com/webstudio-is/webstudio/assets/5077042/c77e5598-ba0a-4a40-82fc-3aab7c1d107f"> In case of copying <img width="506" alt="image" src="https://github.com/webstudio-is/webstudio/assets/5077042/a92ec66f-0b7a-4666-aa20-911de51c9d28"> ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env.example` and the `builder/env-check.js` if mandatory |
||
|
|
ac413cdd5f | rename designer to builder |