Closed (fixed)
Project:
Experience Builder
Component:
Page builder
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2024 at 19:37 UTC
Updated:
25 Sep 2024 at 13:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
bnjmnmComment #4
bnjmnmComment #5
kristen pol@bnjmnm Let me know if there is a way to manually test this.
Comment #6
bnjmnmRefer to the new e2e tests in prop-types.cy.js and perform those steps manually
Itpretty much boils down to adding the sdc test all props component, and with the exception of the Media Library/Image widget at the bottom, making a change to each field and confirming there is no crash and the preview updates accordingly. See the e2e test file for limitations we are already aware of and note that no validation (min/max, required, regex) etc is currently in place. This will be added in a separate issue.
Comment #7
kristen polThanks 🙏 I’ll see if someone can jump on this.
Comment #8
wim leersI posted an initial review, but I think this especially needs input from @jessebaker.
Comment #10
wim leersThis is a big leap forward! 👏
In manual testing, this AFAICT does work fine for
type: string, enum: […]too? But I defer to @bnjmnm whether to include or exclude that here.That'd allow #3472176: String props that are integer values aren't treated as strings to be closed too 🤞
Comment #11
bnjmnmThreads addressed, and I'll address #10 in a separate issue - moving off the string assumption requires additional logic not in this issue, and I think it's more likely to get a quality review if it isn't diluted by the many complex changes already in this issue's MR.
Comment #12
kristen polI have just tested this MR branch with our WIP updates from:
https://git.drupalcode.org/project/demo_design_system/-/merge_requests/53
and it doesn't fix the hanging props form (on components with images) that was reported in:
#3472900: XBEndpointRenderer & processResponseAssets() do not support `ajaxPageState` ⇒ duplicate CSS/JS loading
Maybe it shouldn't fix it? There are so many issues bouncing around that it's hard to know.
Comment #13
kristen polI can confirm that this fixes the textarea props.
Comment #14
bnjmnmImages are not single-value props (it is an object with path, alt, width, height) and not covered here. When in doubt (and the doubt is reasonable) look at the e2e tests and if you don't see tests added it's safe to assume it's not in the scope of the issue.
Comment #15
kristen polThanks for the clarification and pointers 👍
Comment #16
jessebaker commentedApproved - and love that this resolves the flakey components-slots test!
-> @wim leers for backend review
Comment #17
wim leersComment #18
wim leersStill needs approval from a
semi-coupled theme enginecode owner.But given this is the #1 priority for #3454094: Milestone 0.1.0: Experience Builder Demo and that @bnjmnm is the primary author of that anyway … I think a +1 from @hooroomoo or @effulgentsia is overkill in this case.
Plus, per #16 the flakey
components-slotsE2E test, so … bypassing the need for that approval 🤓Comment #20
wim leers