@fractal-io-technology/spec 0.0.0-stage → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +165 -2
- package/conformance/1.0/action-cases.json +227 -0
- package/conformance/1.0/bind-cases.json +768 -0
- package/conformance/1.0/cases.json +25139 -0
- package/conformance/1.0/layout/01-onboarding-start.json +95 -0
- package/conformance/1.0/layout/02-home-discover.json +177 -0
- package/conformance/1.0/layout/03-filters.json +186 -0
- package/conformance/1.0/layout/README.md +145 -0
- package/conformance/1.0/layout/REPORT.md +222 -0
- package/conformance/1.0/layout/alert.json +22 -0
- package/conformance/1.0/layout/iphone-14-15-pro-107.json +272 -0
- package/conformance/1.0/layout/live_status_on_its_way_4.ios.json +100 -0
- package/conformance/1.0/layout/lucy-booking-mobile.json +261 -0
- package/conformance/1.0/layout/lucy-booking-tablet.json +817 -0
- package/conformance/1.0/layout/lucy-booking.json +185 -0
- package/conformance/1.0/layout/lucy-header.json +84 -0
- package/conformance/1.0/layout/lucy-welcome-pin-mobile.json +31 -0
- package/conformance/1.0/layout/lucy-welcome-pin.json +31 -0
- package/conformance/1.0/layout/measured/android/01-onboarding-start.json +95 -0
- package/conformance/1.0/layout/measured/android/02-home-discover.json +177 -0
- package/conformance/1.0/layout/measured/android/03-filters.json +186 -0
- package/conformance/1.0/layout/measured/android/alert.json +22 -0
- package/conformance/1.0/layout/measured/android/iphone-14-15-pro-107.json +272 -0
- package/conformance/1.0/layout/measured/android/live_status_on_its_way_4.ios.json +100 -0
- package/conformance/1.0/layout/measured/android/lucy-booking-mobile.json +261 -0
- package/conformance/1.0/layout/measured/android/lucy-booking-tablet.json +817 -0
- package/conformance/1.0/layout/measured/android/lucy-booking.json +185 -0
- package/conformance/1.0/layout/measured/android/lucy-header.json +84 -0
- package/conformance/1.0/layout/measured/android/lucy-welcome-pin-mobile.json +31 -0
- package/conformance/1.0/layout/measured/android/lucy-welcome-pin.json +31 -0
- package/conformance/1.0/layout/measured/android/navigation-bar.json +46 -0
- package/conformance/1.0/layout/measured/android/probe-alert-banner-flutter.json +37 -0
- package/conformance/1.0/layout/measured/android/probe-alert-banner-regression-flutter.json +51 -0
- package/conformance/1.0/layout/measured/android/probe-alert-banner-stack-flutter.json +29 -0
- package/conformance/1.0/layout/measured/android/probe-card.json +35 -0
- package/conformance/1.0/layout/measured/android/probe-check-box-flutter.json +20 -0
- package/conformance/1.0/layout/measured/android/probe-container-height.json +21 -0
- package/conformance/1.0/layout/measured/android/probe-divider.json +55 -0
- package/conformance/1.0/layout/measured/android/probe-dropdown-menu-flutter.json +24 -0
- package/conformance/1.0/layout/measured/android/probe-dropdown-menu-max-lines.json +11 -0
- package/conformance/1.0/layout/measured/android/probe-expanded.json +31 -0
- package/conformance/1.0/layout/measured/android/probe-failed-decode.json +11 -0
- package/conformance/1.0/layout/measured/android/probe-flex.json +43 -0
- package/conformance/1.0/layout/measured/android/probe-grid-flutter.json +78 -0
- package/conformance/1.0/layout/measured/android/probe-grid.json +29 -0
- package/conformance/1.0/layout/measured/android/probe-icon-button-flutter.json +25 -0
- package/conformance/1.0/layout/measured/android/probe-icon-flutter.json +19 -0
- package/conformance/1.0/layout/measured/android/probe-icon-sizing.json +36 -0
- package/conformance/1.0/layout/measured/android/probe-image-flutter.json +24 -0
- package/conformance/1.0/layout/measured/android/probe-list-flutter.json +79 -0
- package/conformance/1.0/layout/measured/android/probe-list-regression-flutter.json +94 -0
- package/conformance/1.0/layout/measured/android/probe-list-row-flutter.json +86 -0
- package/conformance/1.0/layout/measured/android/probe-list-styles.json +45 -0
- package/conformance/1.0/layout/measured/android/probe-pin-input-parity.json +18 -0
- package/conformance/1.0/layout/measured/android/probe-progress-track-flutter.json +41 -0
- package/conformance/1.0/layout/measured/android/probe-progress-track-regression-flutter.json +57 -0
- package/conformance/1.0/layout/measured/android/probe-row-column.json +84 -0
- package/conformance/1.0/layout/measured/android/probe-scroll.json +54 -0
- package/conformance/1.0/layout/measured/android/probe-search-flutter.json +22 -0
- package/conformance/1.0/layout/measured/android/probe-size-constraints.json +20 -0
- package/conformance/1.0/layout/measured/android/probe-spacer.json +43 -0
- package/conformance/1.0/layout/measured/android/probe-stat-progress-track.json +14 -0
- package/conformance/1.0/layout/measured/android/probe-text-button-flutter.json +27 -0
- package/conformance/1.0/layout/measured/android/probe-text-field-flutter.json +28 -0
- package/conformance/1.0/layout/measured/android/probe-text.json +30 -0
- package/conformance/1.0/layout/measured/android/wallet-home.json +127 -0
- package/conformance/1.0/layout/measured/web/01-onboarding-start.json +95 -0
- package/conformance/1.0/layout/measured/web/02-home-discover.json +177 -0
- package/conformance/1.0/layout/measured/web/03-filters.json +186 -0
- package/conformance/1.0/layout/measured/web/alert.json +22 -0
- package/conformance/1.0/layout/measured/web/iphone-14-15-pro-107.json +272 -0
- package/conformance/1.0/layout/measured/web/live_status_on_its_way_4.ios.json +100 -0
- package/conformance/1.0/layout/measured/web/lucy-booking-mobile.json +261 -0
- package/conformance/1.0/layout/measured/web/lucy-booking-tablet.json +817 -0
- package/conformance/1.0/layout/measured/web/lucy-booking.json +185 -0
- package/conformance/1.0/layout/measured/web/lucy-header.json +84 -0
- package/conformance/1.0/layout/measured/web/lucy-welcome-pin-mobile.json +31 -0
- package/conformance/1.0/layout/measured/web/lucy-welcome-pin.json +31 -0
- package/conformance/1.0/layout/measured/web/navigation-bar.json +46 -0
- package/conformance/1.0/layout/measured/web/probe-alert-banner-flutter.json +37 -0
- package/conformance/1.0/layout/measured/web/probe-alert-banner-regression-flutter.json +51 -0
- package/conformance/1.0/layout/measured/web/probe-alert-banner-stack-flutter.json +29 -0
- package/conformance/1.0/layout/measured/web/probe-card.json +35 -0
- package/conformance/1.0/layout/measured/web/probe-check-box-flutter.json +20 -0
- package/conformance/1.0/layout/measured/web/probe-container-height.json +21 -0
- package/conformance/1.0/layout/measured/web/probe-divider.json +55 -0
- package/conformance/1.0/layout/measured/web/probe-dropdown-menu-flutter.json +24 -0
- package/conformance/1.0/layout/measured/web/probe-dropdown-menu-max-lines.json +11 -0
- package/conformance/1.0/layout/measured/web/probe-expanded.json +31 -0
- package/conformance/1.0/layout/measured/web/probe-failed-decode.json +15 -0
- package/conformance/1.0/layout/measured/web/probe-flex.json +43 -0
- package/conformance/1.0/layout/measured/web/probe-grid-flutter.json +78 -0
- package/conformance/1.0/layout/measured/web/probe-grid.json +29 -0
- package/conformance/1.0/layout/measured/web/probe-icon-button-flutter.json +25 -0
- package/conformance/1.0/layout/measured/web/probe-icon-flutter.json +19 -0
- package/conformance/1.0/layout/measured/web/probe-icon-sizing.json +36 -0
- package/conformance/1.0/layout/measured/web/probe-image-flutter.json +24 -0
- package/conformance/1.0/layout/measured/web/probe-list-flutter.json +79 -0
- package/conformance/1.0/layout/measured/web/probe-list-regression-flutter.json +94 -0
- package/conformance/1.0/layout/measured/web/probe-list-row-flutter.json +86 -0
- package/conformance/1.0/layout/measured/web/probe-list-styles.json +45 -0
- package/conformance/1.0/layout/measured/web/probe-pin-input-parity.json +18 -0
- package/conformance/1.0/layout/measured/web/probe-progress-track-flutter.json +41 -0
- package/conformance/1.0/layout/measured/web/probe-progress-track-regression-flutter.json +57 -0
- package/conformance/1.0/layout/measured/web/probe-row-column.json +84 -0
- package/conformance/1.0/layout/measured/web/probe-scroll.json +54 -0
- package/conformance/1.0/layout/measured/web/probe-search-flutter.json +22 -0
- package/conformance/1.0/layout/measured/web/probe-size-constraints.json +20 -0
- package/conformance/1.0/layout/measured/web/probe-spacer.json +43 -0
- package/conformance/1.0/layout/measured/web/probe-stat-progress-track.json +14 -0
- package/conformance/1.0/layout/measured/web/probe-text-button-flutter.json +27 -0
- package/conformance/1.0/layout/measured/web/probe-text-field-flutter.json +28 -0
- package/conformance/1.0/layout/measured/web/probe-text.json +30 -0
- package/conformance/1.0/layout/measured/web/wallet-home.json +127 -0
- package/conformance/1.0/layout/navigation-bar.json +46 -0
- package/conformance/1.0/layout/probe-alert-banner-flutter.json +37 -0
- package/conformance/1.0/layout/probe-alert-banner-regression-flutter.json +51 -0
- package/conformance/1.0/layout/probe-alert-banner-stack-flutter.json +29 -0
- package/conformance/1.0/layout/probe-card.json +35 -0
- package/conformance/1.0/layout/probe-check-box-flutter.json +20 -0
- package/conformance/1.0/layout/probe-container-height.json +21 -0
- package/conformance/1.0/layout/probe-divider.json +55 -0
- package/conformance/1.0/layout/probe-dropdown-menu-flutter.json +24 -0
- package/conformance/1.0/layout/probe-dropdown-menu-max-lines.json +11 -0
- package/conformance/1.0/layout/probe-expanded.json +31 -0
- package/conformance/1.0/layout/probe-failed-decode.json +13 -0
- package/conformance/1.0/layout/probe-flex.json +43 -0
- package/conformance/1.0/layout/probe-grid-flutter.json +78 -0
- package/conformance/1.0/layout/probe-grid.json +29 -0
- package/conformance/1.0/layout/probe-icon-button-flutter.json +25 -0
- package/conformance/1.0/layout/probe-icon-flutter.json +19 -0
- package/conformance/1.0/layout/probe-icon-sizing.json +36 -0
- package/conformance/1.0/layout/probe-image-flutter.json +24 -0
- package/conformance/1.0/layout/probe-list-flutter.json +79 -0
- package/conformance/1.0/layout/probe-list-regression-flutter.json +94 -0
- package/conformance/1.0/layout/probe-list-row-flutter.json +86 -0
- package/conformance/1.0/layout/probe-list-styles.json +45 -0
- package/conformance/1.0/layout/probe-pin-input-parity.json +18 -0
- package/conformance/1.0/layout/probe-progress-track-flutter.json +41 -0
- package/conformance/1.0/layout/probe-progress-track-regression-flutter.json +57 -0
- package/conformance/1.0/layout/probe-row-column.json +84 -0
- package/conformance/1.0/layout/probe-scroll.json +54 -0
- package/conformance/1.0/layout/probe-search-flutter.json +22 -0
- package/conformance/1.0/layout/probe-size-constraints.json +20 -0
- package/conformance/1.0/layout/probe-spacer.json +43 -0
- package/conformance/1.0/layout/probe-stat-progress-track.json +14 -0
- package/conformance/1.0/layout/probe-text-button-flutter.json +27 -0
- package/conformance/1.0/layout/probe-text-field-flutter.json +28 -0
- package/conformance/1.0/layout/probe-text.json +30 -0
- package/conformance/1.0/layout/probes/probe-alert-banner-flutter.json +296 -0
- package/conformance/1.0/layout/probes/probe-alert-banner-regression-flutter.json +1 -0
- package/conformance/1.0/layout/probes/probe-alert-banner-stack-flutter.json +219 -0
- package/conformance/1.0/layout/probes/probe-card.json +252 -0
- package/conformance/1.0/layout/probes/probe-check-box-flutter.json +86 -0
- package/conformance/1.0/layout/probes/probe-container-height.json +147 -0
- package/conformance/1.0/layout/probes/probe-divider.json +469 -0
- package/conformance/1.0/layout/probes/probe-dropdown-menu-flutter.json +293 -0
- package/conformance/1.0/layout/probes/probe-dropdown-menu-max-lines.json +54 -0
- package/conformance/1.0/layout/probes/probe-expanded.json +208 -0
- package/conformance/1.0/layout/probes/probe-failed-decode.json +96 -0
- package/conformance/1.0/layout/probes/probe-flex.json +353 -0
- package/conformance/1.0/layout/probes/probe-grid-flutter.json +584 -0
- package/conformance/1.0/layout/probes/probe-grid.json +209 -0
- package/conformance/1.0/layout/probes/probe-icon-button-flutter.json +143 -0
- package/conformance/1.0/layout/probes/probe-icon-flutter.json +89 -0
- package/conformance/1.0/layout/probes/probe-icon-sizing.json +219 -0
- package/conformance/1.0/layout/probes/probe-image-flutter.json +130 -0
- package/conformance/1.0/layout/probes/probe-list-flutter.json +732 -0
- package/conformance/1.0/layout/probes/probe-list-regression-flutter.json +815 -0
- package/conformance/1.0/layout/probes/probe-list-row-flutter.json +734 -0
- package/conformance/1.0/layout/probes/probe-list-styles.json +332 -0
- package/conformance/1.0/layout/probes/probe-pin-input-parity.json +87 -0
- package/conformance/1.0/layout/probes/probe-progress-track-flutter.json +298 -0
- package/conformance/1.0/layout/probes/probe-progress-track-regression-flutter.json +525 -0
- package/conformance/1.0/layout/probes/probe-row-column.json +784 -0
- package/conformance/1.0/layout/probes/probe-scroll.json +378 -0
- package/conformance/1.0/layout/probes/probe-search-flutter.json +138 -0
- package/conformance/1.0/layout/probes/probe-size-constraints.json +157 -0
- package/conformance/1.0/layout/probes/probe-spacer.json +291 -0
- package/conformance/1.0/layout/probes/probe-stat-progress-track.json +87 -0
- package/conformance/1.0/layout/probes/probe-text-button-flutter.json +163 -0
- package/conformance/1.0/layout/probes/probe-text-field-flutter.json +170 -0
- package/conformance/1.0/layout/probes/probe-text.json +202 -0
- package/conformance/1.0/layout/report/01-onboarding-start.md +49 -0
- package/conformance/1.0/layout/report/02-home-discover.md +98 -0
- package/conformance/1.0/layout/report/03-filters.md +85 -0
- package/conformance/1.0/layout/report/alert.md +27 -0
- package/conformance/1.0/layout/report/iphone-14-15-pro-107.md +47 -0
- package/conformance/1.0/layout/report/live_status_on_its_way_4.ios.md +60 -0
- package/conformance/1.0/layout/report/lucy-booking-mobile.md +81 -0
- package/conformance/1.0/layout/report/lucy-booking-tablet.md +279 -0
- package/conformance/1.0/layout/report/lucy-booking.md +117 -0
- package/conformance/1.0/layout/report/lucy-header.md +64 -0
- package/conformance/1.0/layout/report/lucy-welcome-pin-mobile.md +15 -0
- package/conformance/1.0/layout/report/lucy-welcome-pin.md +11 -0
- package/conformance/1.0/layout/report/navigation-bar.md +23 -0
- package/conformance/1.0/layout/report/probe-alert-banner-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-alert-banner-regression-flutter.md +27 -0
- package/conformance/1.0/layout/report/probe-alert-banner-stack-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-card.md +11 -0
- package/conformance/1.0/layout/report/probe-check-box-flutter.md +17 -0
- package/conformance/1.0/layout/report/probe-divider.md +11 -0
- package/conformance/1.0/layout/report/probe-dropdown-menu-flutter.md +15 -0
- package/conformance/1.0/layout/report/probe-dropdown-menu-max-lines.md +15 -0
- package/conformance/1.0/layout/report/probe-flex.md +23 -0
- package/conformance/1.0/layout/report/probe-grid-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-icon-button-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-icon-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-image-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-list-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-list-regression-flutter.md +27 -0
- package/conformance/1.0/layout/report/probe-list-row-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-pin-input-parity.md +11 -0
- package/conformance/1.0/layout/report/probe-progress-track-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-progress-track-regression-flutter.md +20 -0
- package/conformance/1.0/layout/report/probe-row-column.md +20 -0
- package/conformance/1.0/layout/report/probe-scroll.md +11 -0
- package/conformance/1.0/layout/report/probe-search-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-spacer.md +11 -0
- package/conformance/1.0/layout/report/probe-text-button-flutter.md +22 -0
- package/conformance/1.0/layout/report/probe-text-field-flutter.md +11 -0
- package/conformance/1.0/layout/report/probe-text.md +31 -0
- package/conformance/1.0/layout/report/wallet-home.md +35 -0
- package/conformance/1.0/layout/tolerance.json +12 -0
- package/conformance/1.0/layout/wallet-home.json +127 -0
- package/conformance/1.0/response-cases.json +228 -0
- package/conformance/1.0/screen-cases.json +198 -0
- package/conformance/1.0/screens/01-onboarding-start.json +994 -0
- package/conformance/1.0/screens/02-home-discover.json +2165 -0
- package/conformance/1.0/screens/03-filters.json +2290 -0
- package/conformance/1.0/screens/alert.json +231 -0
- package/conformance/1.0/screens/iphone-14-15-pro-107.json +3149 -0
- package/conformance/1.0/screens/live_status_on_its_way_4.ios.json +1313 -0
- package/conformance/1.0/screens/lucy-booking-mobile.json +3063 -0
- package/conformance/1.0/screens/lucy-booking-tablet.json +10371 -0
- package/conformance/1.0/screens/lucy-booking.json +2130 -0
- package/conformance/1.0/screens/lucy-header.json +1201 -0
- package/conformance/1.0/screens/lucy-welcome-pin-mobile.json +417 -0
- package/conformance/1.0/screens/lucy-welcome-pin.json +409 -0
- package/conformance/1.0/screens/navigation-bar.json +542 -0
- package/conformance/1.0/screens/wallet-home.json +1585 -0
- package/dist/action.d.ts +10616 -0
- package/dist/action.d.ts.map +1 -0
- package/dist/action.js +92 -0
- package/dist/action.js.map +1 -0
- package/dist/bind.d.ts +32 -0
- package/dist/bind.d.ts.map +1 -0
- package/dist/bind.js +102 -0
- package/dist/bind.js.map +1 -0
- package/dist/block-ref.d.ts +17 -0
- package/dist/block-ref.d.ts.map +1 -0
- package/dist/block-ref.js +17 -0
- package/dist/block-ref.js.map +1 -0
- package/dist/block-types.d.ts +26 -0
- package/dist/block-types.d.ts.map +1 -0
- package/dist/block-types.js +39 -0
- package/dist/block-types.js.map +1 -0
- package/dist/block.d.ts +20908 -0
- package/dist/block.d.ts.map +1 -0
- package/dist/block.js +81 -0
- package/dist/block.js.map +1 -0
- package/dist/blocks/display.d.ts +1915 -0
- package/dist/blocks/display.d.ts.map +1 -0
- package/dist/blocks/display.js +433 -0
- package/dist/blocks/display.js.map +1 -0
- package/dist/blocks/input.d.ts +7148 -0
- package/dist/blocks/input.d.ts.map +1 -0
- package/dist/blocks/input.js +855 -0
- package/dist/blocks/input.js.map +1 -0
- package/dist/blocks/layout.d.ts +2482 -0
- package/dist/blocks/layout.d.ts.map +1 -0
- package/dist/blocks/layout.js +266 -0
- package/dist/blocks/layout.js.map +1 -0
- package/dist/blocks/list.d.ts +980 -0
- package/dist/blocks/list.d.ts.map +1 -0
- package/dist/blocks/list.js +286 -0
- package/dist/blocks/list.js.map +1 -0
- package/dist/common.d.ts +958 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +108 -0
- package/dist/common.js.map +1 -0
- package/dist/deprecated.d.ts +11 -0
- package/dist/deprecated.d.ts.map +1 -0
- package/dist/deprecated.js +26 -0
- package/dist/deprecated.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/layout.d.ts +103 -0
- package/dist/layout.d.ts.map +1 -0
- package/dist/layout.js +113 -0
- package/dist/layout.js.map +1 -0
- package/dist/properties.d.ts +787 -0
- package/dist/properties.d.ts.map +1 -0
- package/dist/properties.js +447 -0
- package/dist/properties.js.map +1 -0
- package/dist/screen.d.ts +10494 -0
- package/dist/screen.d.ts.map +1 -0
- package/dist/screen.js +32 -0
- package/dist/screen.js.map +1 -0
- package/package.json +57 -4
- package/schema/1.0/action.json +109 -0
- package/schema/1.0/block.json +5886 -0
- package/schema/1.0/response.json +91 -0
- package/schema/1.0/screen.json +22 -0
- package/src/README.md +135 -0
- package/src/action.ts +119 -0
- package/src/bind.ts +114 -0
- package/src/block-ref.ts +18 -0
- package/src/block-types.ts +55 -0
- package/src/block.ts +116 -0
- package/src/blocks/display.ts +543 -0
- package/src/blocks/input.ts +1031 -0
- package/src/blocks/layout.ts +322 -0
- package/src/blocks/list.ts +355 -0
- package/src/common.ts +133 -0
- package/src/deprecated.ts +40 -0
- package/src/index.ts +31 -0
- package/src/layout.ts +194 -0
- package/src/properties.ts +516 -0
- package/src/screen.ts +39 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Layout conformance (protocol 1.0)
|
|
2
|
+
|
|
3
|
+
The payload suite says whether a screen is valid. This folder says where each block of a valid screen must be drawn: for every sample screen, the frame of every block on a reference device. Each renderer renders the same screens, measures its own frames and compares them with these goldens, so "iOS, Android and the web draw the same layout" is a test result instead of a claim.
|
|
4
|
+
|
|
5
|
+
[`REPORT.md`](REPORT.md) is the latest comparison of every renderer with the goldens.
|
|
6
|
+
|
|
7
|
+
## Files
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
layout/<screen>.json golden frames of screens/<screen>.json or probes/<screen>.json (generated)
|
|
11
|
+
layout/probes/*.json small screens that each isolate one layout rule
|
|
12
|
+
layout/tolerance.json how far a measured frame may be from the golden
|
|
13
|
+
layout/measured/<renderer>/ the latest measured layout of each renderer, input of the report
|
|
14
|
+
layout/REPORT.md, report/ the cross-platform report (generated)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Reference device
|
|
18
|
+
|
|
19
|
+
- 390 × 844 points, light mode, no safe-area insets. The canvas is the whole screen.
|
|
20
|
+
- The renderer proposes the full canvas to the screen's root block, the way a SwiftUI host does. A root smaller than the canvas is centered on both axes.
|
|
21
|
+
- Frames are in points, relative to the canvas's top-left corner. They are not clipped: a block that overflows the canvas, or sits below it in a scroll view at offset 0, keeps its full frame (negative or past 844).
|
|
22
|
+
- The reference renderer is `fractal_core_blocks-ios`. The goldens were recorded on an iOS 26.3 simulator (Xcode 26.3). Text metrics change between iOS releases, so the goldens are re-recorded when the reference toolchain moves.
|
|
23
|
+
|
|
24
|
+
## Block paths
|
|
25
|
+
|
|
26
|
+
A block path names a block by the keys that lead to it from the root block (the screen's `data`). `root` is the root itself. Every other path joins, with dots, the nested-block keys under each block's `data`, and array entries by index. The root's own key is not written.
|
|
27
|
+
|
|
28
|
+
| Path | Block |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `root` | `data` |
|
|
31
|
+
| `child` | `data.data.child` |
|
|
32
|
+
| `child.children.0` | `data.data.child.data.children[0]` |
|
|
33
|
+
| `children.2.start_block` | `data.data.children[2].data.start_block` |
|
|
34
|
+
|
|
35
|
+
The nested-block keys are `child`, `children`, `start_block`, `title_block`, `subtitle_block` and `end_block` (`NESTED_BLOCK_KEYS` in `src/layout.ts`).
|
|
36
|
+
|
|
37
|
+
## Golden format
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"fractal": "1.0",
|
|
42
|
+
"screen": "alert.json",
|
|
43
|
+
"renderer": "ios",
|
|
44
|
+
"device": { "width": 390, "height": 844, "colorScheme": "light" },
|
|
45
|
+
"frames": {
|
|
46
|
+
"root": { "type": "padding", "x": 0, "y": 217.67, "width": 390, "height": 409 },
|
|
47
|
+
"child": { "type": "card", "x": 20, "y": 217.67, "width": 350, "height": 409 }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
- `frames` maps every block path the renderer laid out to its frame, in document order, one per line. Values are rounded to 0.01pt.
|
|
53
|
+
- `type` is the block's `type`, so a reader can apply the right tolerance and spot a block decoded as something else.
|
|
54
|
+
- A block the reference does not lay out (it failed to decode, or a parent drops it) has no entry. A screen that does not decode at all has empty `frames`.
|
|
55
|
+
- A frame is the block's outer box: on iOS the bounds of the block's view as its parent places it, on Android the bounds of the composable with its parent's modifiers, on the web the `[data-block-key]` element's border box.
|
|
56
|
+
- Measured layout files of the other renderers have the same shape, with their own `renderer`.
|
|
57
|
+
|
|
58
|
+
## Tolerance
|
|
59
|
+
|
|
60
|
+
`tolerance.json` holds two classes. A measured frame matches when every field is within its class:
|
|
61
|
+
|
|
62
|
+
| Class | Block types | `x`, `y` | `width`, `height` |
|
|
63
|
+
| --- | --- | --- | --- |
|
|
64
|
+
| `default` | every other type (containers, stacks, icons, ...) | ±1pt | ±1pt |
|
|
65
|
+
| `text` | `text`, `text_button`, `text_field`, `search`, `dropdown_menu`, `alert_banner`, `stat_progress_track` | ±4pt | ±max(4pt, 10% of the golden value) |
|
|
66
|
+
|
|
67
|
+
Text is wider apart because glyph metrics differ between platforms (SF Pro on iOS, the bundled font on Android, the browser's font on the web). A container sized by its text gets no text tolerance: if its text grows, the container really is a different size, and the report shows it.
|
|
68
|
+
|
|
69
|
+
The comparison (`compareLayout` in `src/layout.ts`, exported as `@fractal-io-technology/spec/layout`) gives each block one of: `missing` (the golden has it, the renderer did not lay it out), `extra`, `type`, or `frame`. The report splits `frame` further into `size`, `placement` (same size, different offset inside its parent) and `moved` (it only moved with an ancestor).
|
|
70
|
+
|
|
71
|
+
## Probes
|
|
72
|
+
|
|
73
|
+
The sample screens do not use every layout rule (no `grid`, `list` or failed decode). Each file in `probes/` isolates one rule a renderer is known to get differently:
|
|
74
|
+
|
|
75
|
+
| Probe | Rule |
|
|
76
|
+
| --- | --- |
|
|
77
|
+
| `probe-container-height.json` | `container` without a height, with a height, with `fixed_size` + height, with a width and height |
|
|
78
|
+
| `probe-expanded.json` | `expanded` in a row and a column (`show_max_width` / `show_max_height` are ignored since 2.0) |
|
|
79
|
+
| `probe-flex.json` | `expanded` / `flexible` flex ratios in a row and a column, a loose `flexible` beside an `expanded`, `fit: tight`, an `expanded` around a scroll view |
|
|
80
|
+
| `probe-scroll.json` | `single_child_scroll` hugging a smaller child, a larger child that scrolls, tight vs loose cross axis, a direct column child, inside `expanded`, `padding`, `reverse`, horizontal |
|
|
81
|
+
| `probe-spacer.json` | `spacer` between fixed boxes in a row, next to an `expanded`, `flex` 1 : 2, in a bounded column, in a scroll, outside a row/column |
|
|
82
|
+
| `probe-card.json` | `card` hugging its child with the default margin 4, a sized card with `margin`, a card forced by a tight 300 × 120 container, no child, `alignment_geometry: center`, `clip_behavior` `none` vs `anti_alias` with an overflowing child, the three `variant`s side by side, `shape: circle` in a 100 × 60 size |
|
|
83
|
+
| `probe-divider.json` | `divider` defaults in a column (16 box, 1 line), the old saved `height` 1 and 0.5, `thickness` larger than `height`, `indent` / `end_indent` with `corner_radius`, `thickness` 0 (hairline), a direct `row` child (0 wide), inside `expanded` in a row, `is_vertical` in a row 60 tall |
|
|
84
|
+
| `probe-row-column.json` | `main_axis_alignment` (all six), `main_axis_size` max / min, `alignment` stretch and baseline, `vertical_direction` up, `text_direction` rtl, default spacing 0, overflow past the end, texts around a spacer, a column hugging, `expanded` in a padded row, a vertical divider in a row inside a column (16 × indents) |
|
|
85
|
+
| `probe-text.json` | a text hugging in a column and in a row, `text_alignment` center / end in a sized box, `soft_wrap` false, `max_lines` 2 with clip / ellipsis / fade, `text_width_basis` parent vs longest_line, `style.height` 1.5, `alignment_geometry` in a bounded box |
|
|
86
|
+
| `probe-grid.json` | `grid` columns and the spacing between rows and columns |
|
|
87
|
+
| `probe-grid-flutter.json` | `grid` 2.0 (Flutter `GridView`): `columns` 3 inside `expanded` (fills the share and scrolls), `max_cross_axis_extent` 100, `main_axis_spacing` 8 / `cross_axis_spacing` 4, `child_aspect_ratio` 2, `main_axis_extent` 50 over a ratio, `padding` 8, `shrink_wrap` under a loose height, a direct column child (unbounded: acts as shrink-wrap), `is_vertical` false in a box 100 tall, a last line with fewer children |
|
|
88
|
+
| `probe-list-styles.json` | the four `list_style` values with a `list_section` and `list_row`s |
|
|
89
|
+
| `probe-size-constraints.json` | a fixed `size` larger than the parent offers |
|
|
90
|
+
| `probe-stat-progress-track.json` | `stat_progress_track` labels, short, long and absent |
|
|
91
|
+
| `probe-icon-sizing.json` | `icon` frames per `icon_size` and symbol |
|
|
92
|
+
| `probe-icon-flutter.json` | `icon` 2.0 (Flutter `Icon`): the default 24 square, `icon_size` 40, an icon forced by a tight 60 × 60 `container` (glyph centered), an icon next to a box in a row (not greedy), an empty `system_name` and an unknown name (box kept, nothing drawn), `rotation_degrees` 90 (layout unchanged) |
|
|
93
|
+
| `probe-icon-button-flutter.json` | `icon_button` 2.0 (Flutter `IconButton`): the default (48 × 48 frame around a 40 × 40 visual), `tap_target_size` shrink_wrap (40 × 40), `icon_size` 32 (48), `padding` 16 (56), `size` 60 × 60, `constraints` min 56, `visual_density` compact (40 × 40 frame, 40 × 32 visual), each `variant` (48, layout unchanged), a button next to a box in a row (not greedy), a button forced by a tight 100 × 100 `container` |
|
|
94
|
+
| `probe-image-flutter.json` | `image` 2.0 (Flutter `Image`, `RenderImage`), load-independent cases only (no URL or an invalid URL, so no picture ever loads and the box is `constraints.smallest`): absent URL without `size` (0 × 0), `size` 100 × 60, only `size.width` 80 (80 × 0), an image forced by a tight 120 × 90 `container`, inside `expanded` in a row next to a 90 × 20 box (300 wide, 0 tall), an image next to a 40 × 20 box in a row (0 wide, the box at x 0: not greedy), `size` 200 × 40 under a `container` with `max_width` 100 (clamped to 100 × 40), `shape: circle` with `size` 80 × 40 (the frame stays 80 × 40) |
|
|
95
|
+
| `probe-text-button-flutter.json` | `text_button` 2.0 (Flutter `TextButton` / `ButtonStyleButton`, M3), every label "OK" (label + padding is below the 64 minimum on any font) except one, column with `spacing` 0: the default (64 × 48 frame around a 64 × 40 visual), `tap_target_size` shrink_wrap (64 × 40), `filled`, `filled_tonal`, `elevated` and `outlined` (label + 48 wide, at least 64, × 48: padding 24), an `icon` on a `text` button (12 + 18 + 8 + label + 16 wide, × 48) and on a `filled` one (16 + 18 + 8 + label + 24, × 48), `minimum_size` 100 × 50 (100 × 50), `maximum_size` width 100 with the label "Longer label wraps" (100 wide, the label wraps: 16 + 20 per line tall, at least 56), `size` 200 × 44 (200 × 48, the visual 200 × 44 centered), `visual_density` compact (56 × 40 frame, 56 × 32 visual), a button forced by a tight 150 × 60 `container` (150 × 60), a button next to a 40 × 20 box in a row (64 × 48 at x 0, the box at x 64: not greedy), `alignment_geometry` center_start inside `size` 200 × 44 (200 × 48, the frame is unchanged) |
|
|
96
|
+
| `probe-text-field-flutter.json` | `text_field` 2.0 (Flutter `TextField` / `InputDecorator`, M3), every field empty, column with `alignment` start and `spacing` 0, line = bodyLarge 16 × 1.5 = 24, subtext line = bodySmall 12 × 1.33 = 15.96: the default underline (390 × 48: padding 8 + 24 + 8 = 40, raised to the 48 minimum), `label_text` (390 × 56: floating-label space 4 + 0.75 × 16 = 16, + 8 + 24 + 8), `variant` outline (390 × 56: 20 + 24 + 12, no label space on an outline), `is_dense` (390 × 32: 4 + 24 + 4, no 48 minimum), `max_lines` 3 (390 × 88: 8 + 3 × 24 + 8), `expands` inside a tight 300 × 120 `container` (300 × 120: the parent's max height), `expands` inside a `container` of width 300 and `constraints` max_height 120 (300 × 120; without `expands` it would be 48), `constraints` max_width 200 (200 × 48 at x 0), a field next to a 40 × 20 box in a row with no width limit (0 × 48, the box at x 0: S24 D1), a field in `expanded` next to a 40 × 20 box in a row (350 × 48, the box at x 350), `helper_text` (390 × 67.96: 48 + 15.96 + 4 `subtextGap`), `prefix_icon_name` and `suffix_icon_name` (390 × 48: max(48 icon slots, 40)); y = 0, 48, 104, 160, 192, 280, 400, 520, 568, 616, 664, 731.96 |
|
|
97
|
+
| `probe-dropdown-menu-flutter.json` | `dropdown_menu` 2.0 (Flutter `DropdownMenu`, M3), closed anchors only, column with `alignment` start: the default outlined field 56 tall, intrinsic width = widest of (entry button 12 + 4 + labelLarge label + 12, at least 64; `label` + 8) + the 56 trailing slot + 16 (or leading icon + 16), at least 112, clamped to the parent; `label`, `initial_selection`, `helper_text` and `error_text` (56 + 4 + 15.96), `width` 240, `expanded_insets` empty and horizontal 16 (the parent width minus the insets), a leading icon (+ 24), disabled, `show_trailing_icon` false (112 minimum), a long entry label driving the width, and a dropdown next to a 40 × 20 box in a row (not greedy). Widths depend on the label font: Android Roboto is about 3 narrower |
|
|
98
|
+
| `probe-dropdown-menu-max-lines.json` | `dropdown_menu` `max_lines` (S26, T17 verifier B1): Flutter's `maxLines` locks the field to that many lines, so `max_lines` 2 is 20 + 2 × 24 + 12 = 80 tall and `max_lines` 3 with `request_focus_on_tap` and `enable_filter` (an editable field) is 104; column with `alignment` start |
|
|
99
|
+
| `probe-check-box-flutter.json` | `check_box` 2.0 (Flutter `Checkbox`, M3), column with `alignment` start: an 18 box centered in a 48 frame (default, checked, `tristate` null), 40 with `shrink_wrap` and with `visual_density` compact (48 − 8), a title on the leading and trailing side (48 + the title width, no gap), disabled with a title, and a check_box next to a 40 × 20 box in a row (not greedy). Title widths depend on the font: Android Roboto is about 3 narrower |
|
|
100
|
+
| `probe-search-flutter.json` | `search` 2.0 (Flutter `SearchBar`, M3), column with `alignment` start: 390 × 56 under a bounded 390, 800 alone in a `row` and inside a 1000 container (the default max width), a leading `icon` and a trailing `icon_button` (48 square, no gap), `constraints.max_width` 200 alone (the 56 minimum goes: 200 × 24), `size` 300 × 64 clamped to 360 × 64, a 300 parent (300 × 56), `padding` horizontal 16 vertical 12 with a leading icon (72 tall) and `style.font_size` 40 (60 tall) |
|
|
101
|
+
| `probe-list-flutter.json` | `list` 2.0 (Flutter `ListView`): a bounded 120 main axis fills and scrolls, `separator` and `height_row` (`itemExtent`), `padding`, `shrink_wrap`, and `list_section` header plus rows |
|
|
102
|
+
| `probe-list-row-flutter.json` | `list_row` 2.0 (Flutter `ListTile`, M3): one-, two- and three-line heights (56 / 72 / 88), `dense`, `visual_density`, `content_padding`, `horizontal_title_gap`, `min_leading_width`, `min_vertical_padding`, `title_alignment` and a `start_dimension` slot box |
|
|
103
|
+
| `probe-list-regression-flutter.json` | T22 verifier cases for `list` / `list_section` / `list_row`: overflowing slots (trailing at the tile end, slots overlap), slot widths capped at the inner width, `*_dimension` caps and alignment, text slots at one / two / three lines and dense, compact layout, a section on an unbounded width (header wraps inside the widest child), `height_row` with a separator, sidebar, horizontal grouped, inset_grouped with sections and loose rows, list padding |
|
|
104
|
+
| `probe-alert-banner-flutter.json` | `alert_banner` 2.0 (Flutter `MaterialBanner`, M3): single row with one action (54 tall), two actions below (100), `force_actions_below`, a `leading`, the two text runs and a `content` text with a `text_button`, `elevation` 3 with its bottom 10 margin, `padding` all 8, `min_action_bar_height` 72 |
|
|
105
|
+
| `probe-alert-banner-stack-flutter.json` | `alert_banner` actions that do not fit stack (OverflowBar) placed by `overflow_alignment` start / center / end, no actions (22 tall), a 200-wide parent, a saved 1.x runs-only payload |
|
|
106
|
+
| `probe-alert-banner-regression-flutter.json` | T25 verifier cases for `alert_banner`: three actions that all stack, a tight 50 parent (the surface fills it, the divider stays at the natural bottom), `leading` with `force_actions_below`, a non-text `content`, partial `content_text_style`, empty `padding` / `margin` |
|
|
107
|
+
| `probe-progress-track-flutter.json` | `stat_progress_track` 2.0 (Flutter `LinearProgressIndicator`): default 4 tall, `size.height` 12, a tight 30 parent, `expanded` in a row, `fill_fraction` 0 / 1 / 1.5 / −0.2, `year_2023` false, the label rule (inside the fill at 8, past the fill end, centered at fill 0, in a 0-wide track, at the inclusive boundary) and two `text` labels |
|
|
108
|
+
| `probe-progress-track-regression-flutter.json` | T26 verifier cases for `stat_progress_track`: a loose parent max height caps `size.height`, `constraints.min_height` and a stretched `row` (known gaps, see the T26 advisories), the D4 label rule at its boundaries and with a label wider or taller than the track, `year_2023` false at fill 0 / 0.005 / 0.5 / 1, `corner_radii` per corner and too-big radii, `size.height` 0 and negative, ignored keys |
|
|
109
|
+
| `probe-pin-input-parity.json` | `pin_input` (S6, S25), column with `alignment` start: the default 4 cells 48 × 48 spacing 8 (216), `length` 6 (328), cell 60 × 70 spacing 12 (276), `length` 8 with 56 cells overflowing past the end (504, at x 0), a prefilled `value`, `style` font 24 height 2 (the cell keeps 48), and a pin next to a 40 × 20 box in a row (the cells never shrink) |
|
|
110
|
+
| `probe-failed-decode.json` | an unknown type and payloads that fail to decode (an invalid screen on purpose) |
|
|
111
|
+
|
|
112
|
+
`grid` with `columns` < 1 is not a probe: the payload is invalid and traps on iOS, so there is no reference frame.
|
|
113
|
+
|
|
114
|
+
Probes are valid screens, except those named `probe-failed-decode*`, which must be invalid. `npm run check` checks both.
|
|
115
|
+
|
|
116
|
+
## Running the harnesses
|
|
117
|
+
|
|
118
|
+
Every harness reads this checkout (by default `fractal-spec` next to the renderer's repository, or the directory in `FRACTAL_SPEC_DIR`) and writes its measured layout to `FIO_LAYOUT_OUT` when set.
|
|
119
|
+
|
|
120
|
+
| Renderer | Repository | Command |
|
|
121
|
+
| --- | --- | --- |
|
|
122
|
+
| iOS (reference) | `fractal_core_blocks-ios` | `xcodebuild test -scheme FIOCoreBlocks -destination 'platform=iOS Simulator,name=iPhone 15 Pro' -only-testing:fiocore_blocks-iosTests/FIOCoreLayoutConformanceTests` (environment variables need the `TEST_RUNNER_` prefix) |
|
|
123
|
+
| Android | `fractal_core_blocks-android` | `FIO_LAYOUT_CONFORMANCE=1 ./gradlew :fiocore-blocks:testDebugUnitTest --tests '*LayoutConformanceTest*' --rerun` |
|
|
124
|
+
| Web (composer preview) | `fractal-composer` | `node scripts/check-layout-conformance.ts` |
|
|
125
|
+
|
|
126
|
+
- Record the goldens with the iOS harness and `TEST_RUNNER_FIO_LAYOUT_RECORD=1`. It also writes, with `TEST_RUNNER_FIO_LAYOUT_OUT`, a PNG per screen with every measured frame outlined, to check a golden by eye.
|
|
127
|
+
- Android runs only with `FIO_LAYOUT_CONFORMANCE=1` until it matches, so the ordinary test run stays green.
|
|
128
|
+
- Each repository has a `Layout conformance` workflow that runs its harness against a fractal-spec checkout and uploads the measured layout. The Android and web jobs do not block a pull request until their renderer matches; the iOS job does not block until its runner is pinned to the goldens' toolchain (Xcode 26.3).
|
|
129
|
+
|
|
130
|
+
## Updating the report
|
|
131
|
+
|
|
132
|
+
Copy each renderer's `FIO_LAYOUT_OUT` folder to `measured/<renderer>/` and run:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
npm run layout:report
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
It rewrites `REPORT.md` and `report/`. Generated files are never edited by hand.
|
|
139
|
+
|
|
140
|
+
## Harness decisions
|
|
141
|
+
|
|
142
|
+
- **Root placement.** Android's `FIOCoreScreen` passes its modifier to the root block and leaves the placement to its host. In a top-start host the root of `alert.json` sits at y = 0 instead of the reference's 217.67, which shifts every block. The Android harness centers the root in its 390 × 844 host, like SwiftUI and the composer preview, so the report shows the differences inside the screen. Whether `FIOCoreScreen` should center the root itself is a renderer decision, not measured here.
|
|
143
|
+
- **Images.** No harness loads remote images (Android uses a fake loader). The sample screens have no `image` blocks, only a few background images, which do not change layout.
|
|
144
|
+
- **Fonts.** Each renderer uses its own fonts. The web check uses the machine's fonts: on macOS `-apple-system` is SF, as on iOS; on a Linux CI runner it falls back, and text frames move further apart.
|
|
145
|
+
- **Lazy content.** A renderer that does not lay out off-screen content (a lazy list) reports those blocks as missing. That is a real difference in what is laid out, not a harness error.
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# Layout conformance report (protocol 1.0)
|
|
2
|
+
|
|
3
|
+
Generated by `node scripts/layout-report.ts` from the iOS goldens in `conformance/1.0/layout/` and the measured layouts of: android (`conformance/1.0/layout/measured/android`), web (`conformance/1.0/layout/measured/web`). Do not edit by hand.
|
|
4
|
+
|
|
5
|
+
Tolerance: ±1pt position and ±1pt size for every block, except text-bearing blocks (`text`, `text_button`, `text_field`, `search`, `dropdown_menu`, `alert_banner`, `stat_progress_track`): ±4pt position and ±max(4pt, 10%) size.
|
|
6
|
+
|
|
7
|
+
Each differing block has one class. **size**: width or height out of tolerance. **placement**: same size, different offset inside its parent. **moved**: same size and offset inside its parent, it only moved with an ancestor. **missing** / **extra** / **type**: absent, extra, or another type. Fix the size and placement items first; moved items usually follow.
|
|
8
|
+
|
|
9
|
+
## Summary
|
|
10
|
+
|
|
11
|
+
| Screen | Blocks | android: differ (size / placement / missing / extra / type / moved) | web: differ (size / placement / missing / extra / type / moved) |
|
|
12
|
+
| --- | ---: | --- | --- |
|
|
13
|
+
| `01-onboarding-start.json` | 87 | **31** (21 / 4 / 0 / 0 / 0 / 6) | **5** (5 / 0 / 0 / 0 / 0 / 0) |
|
|
14
|
+
| `02-home-discover.json` | 169 | **69** (48 / 7 / 0 / 0 / 0 / 14) | **32** (18 / 4 / 0 / 0 / 0 / 10) |
|
|
15
|
+
| `03-filters.json` | 178 | **68** (59 / 5 / 0 / 0 / 0 / 4) | **2** (2 / 0 / 0 / 0 / 0 / 0) |
|
|
16
|
+
| `alert.json` | 14 | **4** (2 / 2 / 0 / 0 / 0 / 0) | **6** (2 / 2 / 0 / 0 / 0 / 2) |
|
|
17
|
+
| `iphone-14-15-pro-107.json` | 264 | **33** (15 / 5 / 0 / 0 / 0 / 13) | **8** (6 / 0 / 0 / 0 / 0 / 2) |
|
|
18
|
+
| `live_status_on_its_way_4.ios.json` | 92 | **75** (16 / 6 / 0 / 0 / 0 / 53) | **83** (13 / 4 / 0 / 0 / 0 / 66) |
|
|
19
|
+
| `lucy-booking-mobile.json` | 253 | **30** (25 / 3 / 0 / 0 / 0 / 2) | **198** (26 / 6 / 0 / 0 / 0 / 166) |
|
|
20
|
+
| `lucy-booking-tablet.json` | 809 | **198** (157 / 22 / 0 / 0 / 0 / 19) | **90** (77 / 2 / 0 / 0 / 0 / 11) |
|
|
21
|
+
| `lucy-booking.json` | 177 | **135** (56 / 20 / 0 / 0 / 0 / 59) | **116** (12 / 8 / 0 / 0 / 0 / 96) |
|
|
22
|
+
| `lucy-header.json` | 76 | **45** (15 / 9 / 0 / 0 / 0 / 21) | **43** (13 / 6 / 0 / 0 / 0 / 24) |
|
|
23
|
+
| `lucy-welcome-pin-mobile.json` | 23 | **1** (0 / 1 / 0 / 0 / 0 / 0) | match |
|
|
24
|
+
| `lucy-welcome-pin.json` | 23 | match | match |
|
|
25
|
+
| `navigation-bar.json` | 38 | **29** (5 / 2 / 0 / 0 / 0 / 22) | match |
|
|
26
|
+
| `wallet-home.json` | 119 | **14** (4 / 6 / 0 / 0 / 0 / 4) | **33** (1 / 3 / 0 / 0 / 0 / 29) |
|
|
27
|
+
| `probe-alert-banner-flutter.json` | 29 | match | match |
|
|
28
|
+
| `probe-alert-banner-regression-flutter.json` | 43 | **4** (2 / 1 / 0 / 0 / 0 / 1) | **8** (0 / 3 / 0 / 0 / 0 / 5) |
|
|
29
|
+
| `probe-alert-banner-stack-flutter.json` | 21 | match | match |
|
|
30
|
+
| `probe-card.json` | 27 | match | match |
|
|
31
|
+
| `probe-check-box-flutter.json` | 12 | **3** (3 / 0 / 0 / 0 / 0 / 0) | match |
|
|
32
|
+
| `probe-container-height.json` | 13 | **8** (7 / 0 / 0 / 0 / 0 / 1) | match |
|
|
33
|
+
| `probe-divider.json` | 47 | match | match |
|
|
34
|
+
| `probe-dropdown-menu-flutter.json` | 16 | **1** (0 / 1 / 0 / 0 / 0 / 0) | match |
|
|
35
|
+
| `probe-dropdown-menu-max-lines.json` | 3 | **1** (1 / 0 / 0 / 0 / 0 / 0) | match |
|
|
36
|
+
| `probe-expanded.json` | 23 | **6** (6 / 0 / 0 / 0 / 0 / 0) | match |
|
|
37
|
+
| `probe-failed-decode.json` | 5 | **4** (1 / 1 / 2 / 0 / 0 / 0) | **5** (2 / 1 / 0 / 2 / 0 / 0) |
|
|
38
|
+
| `probe-flex.json` | 35 | **9** (9 / 0 / 0 / 0 / 0 / 0) | match |
|
|
39
|
+
| `probe-grid-flutter.json` | 70 | match | match |
|
|
40
|
+
| `probe-grid.json` | 21 | match | match |
|
|
41
|
+
| `probe-icon-button-flutter.json` | 17 | match | match |
|
|
42
|
+
| `probe-icon-flutter.json` | 11 | match | match |
|
|
43
|
+
| `probe-icon-sizing.json` | 28 | match | match |
|
|
44
|
+
| `probe-image-flutter.json` | 16 | match | match |
|
|
45
|
+
| `probe-list-flutter.json` | 71 | match | match |
|
|
46
|
+
| `probe-list-regression-flutter.json` | 86 | **14** (0 / 3 / 0 / 0 / 0 / 11) | **14** (0 / 3 / 0 / 0 / 0 / 11) |
|
|
47
|
+
| `probe-list-row-flutter.json` | 78 | match | match |
|
|
48
|
+
| `probe-list-styles.json` | 37 | match | match |
|
|
49
|
+
| `probe-pin-input-parity.json` | 10 | match | match |
|
|
50
|
+
| `probe-progress-track-flutter.json` | 33 | match | match |
|
|
51
|
+
| `probe-progress-track-regression-flutter.json` | 49 | **1** (1 / 0 / 0 / 0 / 0 / 0) | **2** (2 / 0 / 0 / 0 / 0 / 0) |
|
|
52
|
+
| `probe-row-column.json` | 76 | **16** (1 / 3 / 0 / 0 / 0 / 12) | match |
|
|
53
|
+
| `probe-scroll.json` | 46 | match | match |
|
|
54
|
+
| `probe-search-flutter.json` | 14 | match | match |
|
|
55
|
+
| `probe-size-constraints.json` | 12 | **1** (1 / 0 / 0 / 0 / 0 / 0) | **1** (1 / 0 / 0 / 0 / 0 / 0) |
|
|
56
|
+
| `probe-spacer.json` | 35 | match | match |
|
|
57
|
+
| `probe-stat-progress-track.json` | 6 | **1** (1 / 0 / 0 / 0 / 0 / 0) | match |
|
|
58
|
+
| `probe-text-button-flutter.json` | 19 | **9** (1 / 5 / 0 / 0 / 0 / 3) | match |
|
|
59
|
+
| `probe-text-field-flutter.json` | 20 | match | match |
|
|
60
|
+
| `probe-text.json` | 22 | **12** (1 / 8 / 0 / 0 / 0 / 3) | **3** (2 / 1 / 0 / 0 / 0 / 0) |
|
|
61
|
+
|
|
62
|
+
- android: 822 of 3373 blocks differ, 20/48 screens match
|
|
63
|
+
- web: 649 of 3373 blocks differ, 31/48 screens match
|
|
64
|
+
|
|
65
|
+
## Known divergences, measured
|
|
66
|
+
|
|
67
|
+
Each probe in `layout/probes/` isolates one rule. Every differing block of a probe is listed, moved ones included.
|
|
68
|
+
|
|
69
|
+
### `probe-container-height.json`
|
|
70
|
+
|
|
71
|
+
`container` height (contract 2.0): without `size.height` the box hugs its child; an exact `size.height`; `fixed_size` (deprecated, ignored) + `size.height`; an exact width and height.
|
|
72
|
+
|
|
73
|
+
- **android**: 8 differences, golden has 13 blocks
|
|
74
|
+
|
|
75
|
+
| Block | Type | Class | iOS (x, y, w×h) | Measured | Delta |
|
|
76
|
+
| --- | --- | --- | --- | --- | --- |
|
|
77
|
+
| `root` | column | size | 80.67, 0, 229×844 | 85.67, 0, 219×844 | Δx +5, Δy 0, Δw -10, Δh 0 |
|
|
78
|
+
| `children.0` | card | size | 131, 0, 128×168 | 133.33, 0, 124×168 | Δx +2.33, Δy 0, Δw -4, Δh 0 |
|
|
79
|
+
| `children.0.child` | container | size | 135, 4, 120×160 | 137.33, 4, 116×160 | Δx +2.33, Δy 0, Δw -4, Δh 0 |
|
|
80
|
+
| `children.1` | card | size | 119, 180, 152×168 | 121.67, 180, 147.33×168 | Δx +2.67, Δy 0, Δw -4.67, Δh 0 |
|
|
81
|
+
| `children.1.child` | container | size | 123, 184, 144×160 | 125.67, 184, 139.33×160 | Δx +2.67, Δy 0, Δw -4.67, Δh 0 |
|
|
82
|
+
| `children.2` | card | size | 80.67, 360, 229×168 | 85.67, 360, 219×168 | Δx +5, Δy 0, Δw -10, Δh 0 |
|
|
83
|
+
| `children.2.child` | container | size | 84.67, 364, 221×160 | 89.67, 364, 211×160 | Δx +5, Δy 0, Δw -10, Δh 0 |
|
|
84
|
+
| `children.2.child.child` | text | moved | 84.67, 364, 221×160 | 89.67, 364, 211×160 | Δx +5, Δy 0, Δw -10, Δh 0 |
|
|
85
|
+
|
|
86
|
+
- **web**: matches iOS
|
|
87
|
+
|
|
88
|
+
### `probe-expanded.json`
|
|
89
|
+
|
|
90
|
+
`expanded` along a row and a column, with `show_max_width` / `show_max_height`.
|
|
91
|
+
|
|
92
|
+
- **android**: 6 differences, golden has 23 blocks
|
|
93
|
+
|
|
94
|
+
| Block | Type | Class | iOS (x, y, w×h) | Measured | Delta |
|
|
95
|
+
| --- | --- | --- | --- | --- | --- |
|
|
96
|
+
| `children.2` | card | size | 112.33, 70, 165.67×308 | 114.33, 69.67, 161.67×308 | Δx +2, Δy -0.33, Δw -4, Δh 0 |
|
|
97
|
+
| `children.2.child` | column | size | 116.33, 74, 157.67×300 | 118.33, 73.67, 153.67×300 | Δx +2, Δy -0.33, Δw -4, Δh 0 |
|
|
98
|
+
| `children.2.child.children.1` | expanded | size | 116.33, 104, 157.67×114 | 118.33, 103.33, 153.67×114.33 | Δx +2, Δy -0.67, Δw -4, Δh +0.33 |
|
|
99
|
+
| `children.2.child.children.1.child` | card | size | 116.33, 104, 157.67×114 | 118.33, 103.33, 153.67×114.33 | Δx +2, Δy -0.67, Δw -4, Δh +0.33 |
|
|
100
|
+
| `children.2.child.children.2` | expanded | size | 153.33, 230, 83.67×114 | 154.33, 229.67, 81.67×114.33 | Δx +1, Δy -0.33, Δw -2, Δh +0.33 |
|
|
101
|
+
| `children.2.child.children.2.child` | card | size | 153.33, 230, 83.67×114 | 154.33, 229.67, 81.67×114.33 | Δx +1, Δy -0.33, Δw -2, Δh +0.33 |
|
|
102
|
+
|
|
103
|
+
- **web**: matches iOS
|
|
104
|
+
|
|
105
|
+
### `probe-grid.json`
|
|
106
|
+
|
|
107
|
+
`grid` columns and spacing between rows and columns (`columns` < 1 is an invalid payload and traps on iOS, so it is not measured).
|
|
108
|
+
|
|
109
|
+
- **android**: matches iOS
|
|
110
|
+
- **web**: matches iOS
|
|
111
|
+
|
|
112
|
+
### `probe-list-styles.json`
|
|
113
|
+
|
|
114
|
+
`list` styles `plain`, `grouped`, `inset_grouped`, `sidebar` with a `list_section` and `list_row`s.
|
|
115
|
+
|
|
116
|
+
- **android**: matches iOS
|
|
117
|
+
- **web**: matches iOS
|
|
118
|
+
|
|
119
|
+
### `probe-size-constraints.json`
|
|
120
|
+
|
|
121
|
+
A fixed `size` larger than the parent offers (`card`, `text_button`, `icon_button`, `search`): iOS keeps the size and overflows, Android lets the parent win.
|
|
122
|
+
|
|
123
|
+
- **android**: 1 differences, golden has 12 blocks
|
|
124
|
+
|
|
125
|
+
| Block | Type | Class | iOS (x, y, w×h) | Measured | Delta |
|
|
126
|
+
| --- | --- | --- | --- | --- | --- |
|
|
127
|
+
| `children.0.child.child` | text | size | 149, 4, 200×40 | 149, 4, 92×40 | Δx 0, Δy 0, Δw -108, Δh 0 |
|
|
128
|
+
|
|
129
|
+
- **web**: 1 differences, golden has 12 blocks
|
|
130
|
+
|
|
131
|
+
| Block | Type | Class | iOS (x, y, w×h) | Measured | Delta |
|
|
132
|
+
| --- | --- | --- | --- | --- | --- |
|
|
133
|
+
| `children.0.child.child` | text | size | 149, 4, 200×40 | 149, 4, 92×40 | Δx 0, Δy 0, Δw -108, Δh 0 |
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### `probe-stat-progress-track.json`
|
|
137
|
+
|
|
138
|
+
`stat_progress_track` with a short label, a label longer than the remaining track, and no label.
|
|
139
|
+
|
|
140
|
+
- **android**: 1 differences, golden has 6 blocks
|
|
141
|
+
|
|
142
|
+
| Block | Type | Class | iOS (x, y, w×h) | Measured | Delta |
|
|
143
|
+
| --- | --- | --- | --- | --- | --- |
|
|
144
|
+
| `children.0.child` | text | size | 8, 4.33, 28.67×15.67 | 8, 4.33, 24.33×15.33 | Δx 0, Δy 0, Δw -4.34, Δh -0.34 |
|
|
145
|
+
|
|
146
|
+
- **web**: matches iOS
|
|
147
|
+
|
|
148
|
+
### `probe-icon-sizing.json`
|
|
149
|
+
|
|
150
|
+
`icon` frames per `icon_size` and SF Symbol.
|
|
151
|
+
|
|
152
|
+
- **android**: matches iOS
|
|
153
|
+
- **web**: matches iOS
|
|
154
|
+
|
|
155
|
+
### `probe-failed-decode.json`
|
|
156
|
+
|
|
157
|
+
Failed decode: a block of an unknown type and blocks whose payload does not decode, between two valid texts (an invalid screen on purpose).
|
|
158
|
+
|
|
159
|
+
- **android**: 4 differences, golden has 5 blocks
|
|
160
|
+
|
|
161
|
+
| Block | Type | Class | iOS (x, y, w×h) | Measured | Delta |
|
|
162
|
+
| --- | --- | --- | --- | --- | --- |
|
|
163
|
+
| `root` | column | size | 0, 0, 390×844 | 173.33, 0, 43.33×844 | Δx +173.33, Δy 0, Δw -346.67, Δh 0 |
|
|
164
|
+
| `children.2` | row | missing | 0, 30, 390×0 | — | |
|
|
165
|
+
| `children.3` | card | missing | 191, 42, 8×8 | — | |
|
|
166
|
+
| `children.4` | text | placement | 179, 62, 32.33×18 | 179.33, 29.67, 31.33×17.67 | Δx +0.33, Δy -32.33, Δw -1, Δh -0.33 |
|
|
167
|
+
|
|
168
|
+
- **web**: 5 differences, golden has 5 blocks
|
|
169
|
+
|
|
170
|
+
| Block | Type | Class | iOS (x, y, w×h) | Measured | Delta |
|
|
171
|
+
| --- | --- | --- | --- | --- | --- |
|
|
172
|
+
| `children.2` | row | size | 0, 30, 390×0 | 0, 30, 390×18 | Δx 0, Δy 0, Δw 0, Δh +18 |
|
|
173
|
+
| `children.3` | card | size | 191, 42, 8×8 | 94.72, 60, 200.55×26 | Δx -96.28, Δy +18, Δw +192.55, Δh +18 |
|
|
174
|
+
| `children.4` | text | placement | 179, 62, 32.33×18 | 178.92, 98, 32.16×18 | Δx -0.08, Δy +36, Δw -0.17, Δh 0 |
|
|
175
|
+
| `children.2.children.0` | text | extra | — | 0, 30, 217.2×18 | |
|
|
176
|
+
| `children.3.child` | text | extra | — | 98.72, 64, 192.55×18 | |
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
## Sample screens
|
|
180
|
+
|
|
181
|
+
Every block whose frame differs, one file per screen:
|
|
182
|
+
|
|
183
|
+
- [`01-onboarding-start.json`](report/01-onboarding-start.md): android 31/87, web 5/87
|
|
184
|
+
- [`02-home-discover.json`](report/02-home-discover.md): android 69/169, web 32/169
|
|
185
|
+
- [`03-filters.json`](report/03-filters.md): android 68/178, web 2/178
|
|
186
|
+
- [`alert.json`](report/alert.md): android 4/14, web 6/14
|
|
187
|
+
- [`iphone-14-15-pro-107.json`](report/iphone-14-15-pro-107.md): android 33/264, web 8/264
|
|
188
|
+
- [`live_status_on_its_way_4.ios.json`](report/live_status_on_its_way_4.ios.md): android 75/92, web 83/92
|
|
189
|
+
- [`lucy-booking-mobile.json`](report/lucy-booking-mobile.md): android 30/253, web 198/253
|
|
190
|
+
- [`lucy-booking-tablet.json`](report/lucy-booking-tablet.md): android 198/809, web 90/809
|
|
191
|
+
- [`lucy-booking.json`](report/lucy-booking.md): android 135/177, web 116/177
|
|
192
|
+
- [`lucy-header.json`](report/lucy-header.md): android 45/76, web 43/76
|
|
193
|
+
- [`lucy-welcome-pin-mobile.json`](report/lucy-welcome-pin-mobile.md): android 1/23, web matches
|
|
194
|
+
- [`lucy-welcome-pin.json`](report/lucy-welcome-pin.md): android matches, web matches
|
|
195
|
+
- [`navigation-bar.json`](report/navigation-bar.md): android 29/38, web matches
|
|
196
|
+
- [`wallet-home.json`](report/wallet-home.md): android 14/119, web 33/119
|
|
197
|
+
- [`probe-alert-banner-flutter.json`](report/probe-alert-banner-flutter.md): android matches, web matches
|
|
198
|
+
- [`probe-alert-banner-regression-flutter.json`](report/probe-alert-banner-regression-flutter.md): android 4/43, web 8/43
|
|
199
|
+
- [`probe-alert-banner-stack-flutter.json`](report/probe-alert-banner-stack-flutter.md): android matches, web matches
|
|
200
|
+
- [`probe-card.json`](report/probe-card.md): android matches, web matches
|
|
201
|
+
- [`probe-check-box-flutter.json`](report/probe-check-box-flutter.md): android 3/12, web matches
|
|
202
|
+
- [`probe-divider.json`](report/probe-divider.md): android matches, web matches
|
|
203
|
+
- [`probe-dropdown-menu-flutter.json`](report/probe-dropdown-menu-flutter.md): android 1/16, web matches
|
|
204
|
+
- [`probe-dropdown-menu-max-lines.json`](report/probe-dropdown-menu-max-lines.md): android 1/3, web matches
|
|
205
|
+
- [`probe-flex.json`](report/probe-flex.md): android 9/35, web matches
|
|
206
|
+
- [`probe-grid-flutter.json`](report/probe-grid-flutter.md): android matches, web matches
|
|
207
|
+
- [`probe-icon-button-flutter.json`](report/probe-icon-button-flutter.md): android matches, web matches
|
|
208
|
+
- [`probe-icon-flutter.json`](report/probe-icon-flutter.md): android matches, web matches
|
|
209
|
+
- [`probe-image-flutter.json`](report/probe-image-flutter.md): android matches, web matches
|
|
210
|
+
- [`probe-list-flutter.json`](report/probe-list-flutter.md): android matches, web matches
|
|
211
|
+
- [`probe-list-regression-flutter.json`](report/probe-list-regression-flutter.md): android 14/86, web 14/86
|
|
212
|
+
- [`probe-list-row-flutter.json`](report/probe-list-row-flutter.md): android matches, web matches
|
|
213
|
+
- [`probe-pin-input-parity.json`](report/probe-pin-input-parity.md): android matches, web matches
|
|
214
|
+
- [`probe-progress-track-flutter.json`](report/probe-progress-track-flutter.md): android matches, web matches
|
|
215
|
+
- [`probe-progress-track-regression-flutter.json`](report/probe-progress-track-regression-flutter.md): android 1/49, web 2/49
|
|
216
|
+
- [`probe-row-column.json`](report/probe-row-column.md): android 16/76, web matches
|
|
217
|
+
- [`probe-scroll.json`](report/probe-scroll.md): android matches, web matches
|
|
218
|
+
- [`probe-search-flutter.json`](report/probe-search-flutter.md): android matches, web matches
|
|
219
|
+
- [`probe-spacer.json`](report/probe-spacer.md): android matches, web matches
|
|
220
|
+
- [`probe-text-button-flutter.json`](report/probe-text-button-flutter.md): android 9/19, web matches
|
|
221
|
+
- [`probe-text-field-flutter.json`](report/probe-text-field-flutter.md): android matches, web matches
|
|
222
|
+
- [`probe-text.json`](report/probe-text.md): android 12/22, web 3/22
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fractal": "1.0",
|
|
3
|
+
"screen": "alert.json",
|
|
4
|
+
"renderer": "ios",
|
|
5
|
+
"device": { "width": 390, "height": 844, "colorScheme": "light" },
|
|
6
|
+
"frames": {
|
|
7
|
+
"root": { "type": "padding", "x": 0, "y": 0, "width": 390, "height": 844 },
|
|
8
|
+
"child": { "type": "card", "x": 20, "y": 0, "width": 350, "height": 844 },
|
|
9
|
+
"child.child": { "type": "padding", "x": 24, "y": 4, "width": 342, "height": 836 },
|
|
10
|
+
"child.child.child": { "type": "column", "x": 54, "y": 34, "width": 282, "height": 776 },
|
|
11
|
+
"child.child.child.children.0": { "type": "card", "x": 166, "y": 34, "width": 58, "height": 58 },
|
|
12
|
+
"child.child.child.children.0.child": { "type": "icon", "x": 170, "y": 38, "width": 50, "height": 50 },
|
|
13
|
+
"child.child.child.children.1": { "type": "padding", "x": 54, "y": 92, "width": 282, "height": 74.67 },
|
|
14
|
+
"child.child.child.children.1.child": { "type": "text", "x": 54, "y": 112, "width": 282, "height": 54.67 },
|
|
15
|
+
"child.child.child.children.2": { "type": "padding", "x": 54, "y": 166.67, "width": 282, "height": 74.33 },
|
|
16
|
+
"child.child.child.children.2.child": { "type": "text", "x": 54, "y": 176.67, "width": 282, "height": 64.33 },
|
|
17
|
+
"child.child.child.children.3": { "type": "padding", "x": 70, "y": 241, "width": 250, "height": 80 },
|
|
18
|
+
"child.child.child.children.3.child": { "type": "text_button", "x": 70, "y": 271, "width": 250, "height": 50 },
|
|
19
|
+
"child.child.child.children.4": { "type": "padding", "x": 70, "y": 321, "width": 250, "height": 70 },
|
|
20
|
+
"child.child.child.children.4.child": { "type": "text_button", "x": 70, "y": 341, "width": 250, "height": 50 }
|
|
21
|
+
}
|
|
22
|
+
}
|