Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken or missing JavaScript leads to unusable resource registry. #3942

Open
thet opened this issue Apr 24, 2024 · 1 comment
Open

Broken or missing JavaScript leads to unusable resource registry. #3942

thet opened this issue Apr 24, 2024 · 1 comment
Labels
01 type: bug 41 lvl: easy 99 tag: bssp Potential task for the Buschenschanksprint

Comments

@thet
Copy link
Member

thet commented Apr 24, 2024

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

The resource registry has all it's bundles collpapsed in an bootstrap accordion element.

When JavaScript cannot be loaded (e.g. by providing it via webpack dev server or if it is broken), then the resource registry has all it's resource tabs are closed and cannot be opened and thus are not interactable.

See:

grafik

What I did:

  • Remove the plone bundle by deleting the entry or disabling it.

What I expect to happen:

In http://localhost:8080/Plone/@@resourceregistry-controlpanel I'd expect all the resource bundle entries to be un-collapsed and the form fields being shown.

What actually happened:

All the resource entries are collapsed and the resource registry is not interactable.

What version of Plone/ Addons I am using:

Plone 6.1.0a3.dev0 (6102)
CMF 3.3
Zope 5.9
Python 3.12.2 (main, Mar 17 2024, 12:06:58) [GCC 13.2.0]
PIL 10.2.0 (Pillow)
WSGI: On
Server: waitress 2.1.2

Proposal to fix this

The HTML element details is widely available and provides content collapsing without JavaScript being necessary.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

@thet thet added 01 type: bug 41 lvl: easy 99 tag: bssp Potential task for the Buschenschanksprint labels Apr 24, 2024
@petschki
Copy link
Member

petschki commented May 8, 2024

If you deactivate JS in your browser the collapsibles will be open ... but this could be solved better definitely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 type: bug 41 lvl: easy 99 tag: bssp Potential task for the Buschenschanksprint
Projects
None yet
Development

No branches or pull requests

2 participants