The staff-report iframe is expanded to full content height (no nested scrollbar), so a modal <dialog> centered in its viewport landed in the middle of the whole document and sat off-screen unless the parent page was scrolled there. Cross-origin means the iframe can't read the parent's scroll position itself. Tab.tpl now broadcasts the iframe's visible slice (webform-mw-viewport, rAF-throttled on scroll/resize/load and after each height change), and AttachmentLightbox pins to that slice and fills its height. Falls back to a fixed box when no viewport message arrives (older extension), and standalone mode keeps native centering at a taller 85vh. Extension bumped to 0.3.1 (template change -> re-copy + cv flush on prod). PRODUCTION_CUTOVER.md change log updated.
37 lines
1.1 KiB
XML
37 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
<extension key="webform-mw" type="module">
|
|
<file>webform_mw</file>
|
|
<name>WebForm-mw</name>
|
|
<description>
|
|
Adds an "Engagement Report" tab to Organization contact pages that embeds
|
|
the FCI Co-op Survey staff report (the WebForm-mw Next.js app) for the
|
|
organization. Read-only; the embedded app handles its own auth via a
|
|
shared staff secret.
|
|
</description>
|
|
<license>AGPL-3.0</license>
|
|
<maintainer>
|
|
<author>Food Co-op Initiative</author>
|
|
<email>survey@fci.coop</email>
|
|
</maintainer>
|
|
<urls>
|
|
<url desc="Main Extension Page">https://github.com/joelbrock/WebForm-mw</url>
|
|
</urls>
|
|
<releaseDate>2026-06-05</releaseDate>
|
|
<version>0.3.1</version>
|
|
<develStage>beta</develStage>
|
|
<compatibility>
|
|
<ver>5.50</ver>
|
|
</compatibility>
|
|
<comments>
|
|
Configuration is via PHP constants in civicrm.settings.php (or
|
|
environment variables on the CiviCRM server). See README.md.
|
|
</comments>
|
|
<classloader>
|
|
<psr0 prefix="CRM_" path=""/>
|
|
</classloader>
|
|
<civix>
|
|
<namespace>CRM/WebformMw</namespace>
|
|
<format>22.05.0</format>
|
|
</civix>
|
|
</extension>
|