- Issue created by @effulgentsia
- ๐บ๐ธUnited States q0rban Atlanta, GA
Would you like the demo_design_system theme to be the default theme, or just installed and available?
- ๐บ๐ธUnited States cosmicdreams Minneapolis/St. Paul
It certainly is nice to have really good looking components to use while demonstrating why this is an interesting thing to new eyes.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Note, the dev guide has all the install steps:
https://www.drupal.org/community-initiatives/starshot-demo-design-system... โ
- ๐ฎ๐ณIndia guptahemant
I think its useful to include SDDS as well along with tugboat previews but we also need to call out that SDDS design system is being included with this preview for testing purposes.
- Merge request !323#3475652: enable civictheme and set as default on Tugboat previews โ (Merged) created by q0rban
- Status changed to Needs work
3 months ago 2:48pm 20 September 2024 - ๐บ๐ธUnited States q0rban Atlanta, GA
I made an MR for this, but the preview gives a WSOD. The error is:
Uncaught PHP Exception Twig\\Error\\LoaderError: "Template "starshot_demo:starshot-hero" is not defined in "themes/contrib/demo_design_system/starshot_demo/templates/page--front.html.twig" at line 4." at /var/www/drupal/vendor/twig/twig/src/Loader/ChainLoader.php line 111
Any ideas?
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Interestingโฆ Iโll try to look today because I fly out tomorrow
- ๐บ๐ธUnited States q0rban Atlanta, GA
Okay, interesting. I don't see a "civic" theme in there. Should I use the "starshot_demo" theme?
- ๐บ๐ธUnited States effulgentsia
I think so. Per step 4 in https://www.drupal.org/community-initiatives/starshot-demo-design-system... โ .
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Sorryโฆ havenโt gotten to computer today but will try from the airport
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Whoops! DrupalCon happened and then a week off... hmm... but, yes, you should enable starshot_demo.
Please see the steps here:
https://www.drupal.org/community-initiatives/starshot-demo-design-system... โ
Note: we are working today on getting rid of the components module dependency so that should be fixed soon.
- ๐บ๐ธUnited States q0rban Atlanta, GA
Thank you, that did the trick.
Updated MR.
Note, this increases the build time to about 10 minutes.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Looks like it has everything. How do we test?
- ๐บ๐ธUnited States q0rban Atlanta, GA
@kristen at the top of this issue, you will see a "View live preview" button, and if you click that button, you can test there. Credentials are admin/admin.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Thanks!
It does "work":
https://mr323-zbzg3fgtmxhjnhiibdr2ns38ldwjk3r8.tugboatqa.com/
and the components show up in XB, but some reasons the props form isn't working... so not sure what has changed since Barcelona. SDDS hasn't had any commits since then, so I assume it's something in XB... but one of our devs rebuilt his local yesterday with XB+SDDS and it's all working so then it seems like it's just the Tugboat environment :shrug:
Only errors I see are a 404 for:
/themes/contrib/demo_design_system/starshot_demo/components/03-organisms/starshot-case-study/assets/starshot/starshot_banner_frame.svg
But the component images are showing up so :shrug:
- ๐บ๐ธUnited States q0rban Atlanta, GA
I wonder if this is a permissions issue. I've just pushed up a change that might fix that. Can you test again, Kristen?
Thank you!
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Same issue... only happens when there's a component on the page with an image.
I don't think it's on our end as one of our devs has been working with it since last week without issue, but :shrug:
- ๐บ๐ธUnited States q0rban Atlanta, GA
Thank you for the video, that was very helpful in replicating the issue!
It seems that this is an issue with Apache rejecting the response due to response headers being too large:
[Sat Oct 12 18:34:23.700729 2024] [proxy_http:warn] [pid 26575:tid 26588] (28)No space left on device: [client 10.0.0.52:49552] AH10124: header size is over the limit allowed by ResponseFieldSize (8192 bytes). Bad response header: 'Attach-Settings: {"ajaxPageState":{"theme":"stark","theme_token"[...]\\u0022storage\\u0022:{\\u0022target_type\\u0022:\\u0022media\\u0022},', referer: https://mr323-zbzg3fgtmxhjnhiibdr2ns38ldwjk3r8.tugboatqa.com/xb/node/1/component/d81c9a76-cd42-4297-bda1-d669d7e26d3a
While the HTTP spec doesn't specifically limit the size of headers, it is common for many proxies to limit header sizes to 8KB. For that reason, it might be best to transfer any data in the response itself, rather than in headers.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Thanks for debugging. Not sure what I we can do on the SDDS end... anything?
- ๐บ๐ธUnited States q0rban Atlanta, GA
Thanks for debugging. Not sure what I we can do on the SDDS end... anything?
I'm not sure! Do you know what is setting those response headers? Is it coming from SDDS or Experience Builder? Or something else?
- ๐บ๐ธUnited States effulgentsia
It's an XB issue. I'll open an issue for it when I have a spare moment. Thanks for discovering it!
- ๐บ๐ธUnited States effulgentsia
- ๐บ๐ธUnited States q0rban Atlanta, GA
Do we consider ๐ XBEndpointRenderer adds response headers that sometimes exceed common server limits Active a blocker to this issue?
- ๐บ๐ธUnited States q0rban Atlanta, GA
@kristen-pol, now that ๐ XBEndpointRenderer adds response headers that sometimes exceed common server limits Active is in, I've recreated the Tugboat Preview here. I tried to replicate the issue we were encountering before, but it seems like enough has changed that I'm not sure how to do so. Can you take a look to see if you can replicate? Thank you!
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Let me take a look :)
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
I'm having the same issue I was having on my local a couple days ago... my understanding is there was a bug that has been fixed since then... I'm unclear how we can get the preview to update to the latest code.
Here's a video of the issue (it's uploading now)... you can't drag anything into the desktop area... there were no related errors.
- ๐บ๐ธUnited States q0rban Atlanta, GA
I have rebuilt the Tugboat Preview. I also rebased from 0.x.
Even though [#381343] is in, it seems like we are still getting a response header over 8kb.
[Fri Nov 15 21:04:29.268970 2024] [proxy_http:warn] [pid 498:tid 508] (28)No space left on device: [client 10.0.0.109:36628] AH10124: header size is over the limit allowed by ResponseFieldSize (8192 bytes). Bad response header: 'Attach-Settings: {"ajaxPageState":{"theme":"xb_stark","theme_tok[...]refix":"","currentPath":"xb-field-form\\/node\\/1","currentPathIsA', referer: https://mr323-wxhia2wxtwznpslehfq0oh9fqczoqr9s.tugboatqa.com/xb/node/1/component/ea7bb6e5-fbf8-481c-9e7e-1200d1d739f7 [Fri Nov 15 21:04:29.269211 2024] [proxy_http:warn] [pid 498:tid 508] [client 10.0.0.109:36628] AH01106: bad HTTP/1.1 header returned by /xb-field-form/node/1 (GET), referer: https://mr323-wxhia2wxtwznpslehfq0oh9fqczoqr9s.tugboatqa.com/xb/node/1/component/ea7bb6e5-fbf8-481c-9e7e-1200d1d739f7
I reopened [#381343] since it seems like the MR didn't get merged in.
- ๐บ๐ธUnited States q0rban Atlanta, GA
@kristen-pol, looks like ๐ XBEndpointRenderer adds response headers that sometimes exceed common server limits Active is in properly now, and I think our issue is fixed! Can you confirm?
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Actually... there's no live preview button.
- ๐บ๐ธUnited States q0rban Atlanta, GA
Sorry, it must have expired. I closed and reopened the MR, so it's building again. It will last 5 days.
- Status changed to RTBC
about 1 month ago 5:03am 20 November 2024 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Sorry, I should have remembered that by now o_O
It's working as expected! Thanks!
Video is currently uploading:
-
effulgentsia โ
committed 2a600041 on 0.x authored by
q0rban โ
#3475652: enable civictheme and set as default on Tugboat previews
-
effulgentsia โ
committed 2a600041 on 0.x authored by
q0rban โ
Automatically closed - issue fixed for 2 weeks with no activity.