Skip to content

Release: merge develop into main - #30

Merged
SidTGV merged 25 commits into
mainfrom
develop
Nov 28, 2026
Merged

SidTGV merged 25 commits into
mainfrom
develop

Conversation

@SidTGV

@SidTGV SidTGV commented Nov 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Add .github/workflows/release.yml: deploys to WordPress.org (SVN) when a GitHub release is published. Fails unless the tag matches the plugin Version and readme Stable tag. Uses SVN_NAME / SVN_SECRET secrets.
  • Add the intro video above "Why AllFeedback?" in readme.txt.

🤖 Generated with Claude Code

Sid Sharma and others added 22 commits November 19, 2026 17:09
- Show pages as capsule tabs with one page visible at a time; rename
  section actions to page and drop page titles and collapse.
- Edit questions inline in the field row as plain text; remove the
  rich-text toolbar and the separate question area.
- Merge each field into a single card; Enter/Escape ends editing in all
  builder inputs; only one field expanded at a time.
- Preview defaults to Widget view with the page pager under the widget,
  a 60/40 builder/preview split, and two-way page sync with the builder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- JS filters: allfeedback.builder.fieldExtensions (field panels, header badges, warning outline) and allfeedback.form.visibleSections (widget + preview)
- PHP filters: allfeedback_admin_script_dependencies / allfeedback_frontend_script_dependencies so add-on scripts load first
- Field settings added by extensions are saved and loaded untouched
- Builder UI components shared on window.AllFeedback for add-ons

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Builder saves the add-on features a form uses in form_schema.requires (extensions declare feature + isUsedBy)
- New allfeedback_active_features filter; Survey::isLive() = published and every required feature active
- Widget, shortcode, block, public REST read, state and submit endpoints only serve live forms
- Builder banner, publish toast and forms-list "Inactive" badge explain why and how to fix it
- Saved status is untouched, so reactivating the add-on brings the form back automatically

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- allfeedback.settings.advancedSections filter adds sections to the bottom of Settings → Advanced
- Switch shared with add-ons on window.AllFeedback.components
- CLAUDE.md: "form" and "survey" mean the same thing; say survey in new work

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…utton

- Sections added via allfeedback.settings.advancedSections get the saved settings, their staged patch and setPatch()
- Staged patches mark the page unsaved and are merged into Save like free's own fields

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New "Email" field in the builder (placeholder like text fields)
- Widget and builder preview check the address format before moving on
- Submissions with an invalid address in an email question are rejected on the server (is_email)
- Dev-tools sample responses fill email questions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Selecting an empty page now shows an empty-page state in the preview,
Reset returns the builder to page 1 too, and the preview width default
is shared between the builder and its loading screen. Adds the
form-builder e2e spec covering page sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le tag

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rote the query

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… titles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Surveys taken offline because their add-on features are inactive no
longer count as targeting conflicts. Publishing over one moves it to
draft, so the new survey stays live when the add-on comes back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New surveys start with auto-show off and only appear where they are
embedded with the shortcode or block. Trigger and Frequency & Limits
are hidden while it is off. Embed-only surveys never cause targeting
conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…widget

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Multiple unresolved critical and moderate issues block approval, including invalid default settings persistence, broken navigation/submission state, and unsanitized survey labels that can expose XSS risks.

9 open issues
What changed in this PR

This release merge upgrades AllFeedback to 1.1.0, adding WordPress.org deployment automation alongside substantial survey-builder, frontend, REST API, validation, and add-on integration changes.

Changes:

  • Added release packaging and WordPress.org SVN deployment triggered by published GitHub releases.
  • Added survey lifecycle gating, targeting updates, email fields, response validation, analytics rate limiting, and add-on extension hooks.
  • Added builder page synchronization, import/export tooling, UI refinements, and regression coverage.
File Description
tests/​e2e/​specs/​building-forms/​form-builder.spec.ts Adds builder and preview page synchronization tests.
tests/​e2e/​specs/​building-forms/​block-embed.spec.ts Converts block rendering checks into active regression tests.
src/​Infrastructure/​Database/​Repositories/​WpdbSurveyRepository.php Sanitizes survey field labels before persistence.
src/​Frontend/​TargetingEngine.php Excludes inactive and embed-only surveys from automatic targeting.
src/​Frontend/​FrontendServiceProvider.php Applies live-status checks and frontend script dependencies.
src/​Frontend/​Blocks/​SurveyBlock.php Fixes repository lookup and applies live-status checks.
src/​Domain/​Survey/​Survey.php Adds required-feature and live-survey state handling.
src/​Core/​Constants.php Updates the plugin version to 1.1.0.
src/​Application/​Response/​Pipes/​ValidateSurveyIsActive.php Prevents responses to inactive surveys.
src/​Application/​Response/​Pipes/​ValidateResponseData.php Adds server-side email answer validation.
src/​API/​RestController.php Centralizes client IP and trusted-proxy resolution.
src/​API/​Controllers/​V1/​SurveyStateController.php Restricts user state updates to live surveys.
src/​API/​Controllers/​V1/​SurveysController.php Adds import/export endpoints and live-status conflict handling.
src/​API/​Controllers/​V1/​SubmitController.php Uses centralized IP handling and supports inactive admin previews.
src/​API/​Controllers/​V1/​LogsController.php Separates an inline assignment from its documentation comment.
src/​API/​Controllers/​V1/​DevToolsController.php Generates valid sample email responses.
src/​API/​Controllers/​V1/​ContentSearchController.php Restricts searches to post titles and protects query arguments.
src/​API/​Controllers/​V1/​AnalyticsController.php Adds live-survey checks and IP-based analytics rate limiting.
src/​Admin/​AdminServiceProvider.php Adds admin script dependency extension hooks.
resources/​styles/​admin.pcss Adjusts question-editor styling.
resources/​scripts/​shared/​validation.ts Adds shared email validation.
resources/​scripts/​shared/​formPreview.ts Supports email fields in static previews.
resources/​scripts/​shared/​FieldPreview.tsx Renders email inputs in shared previews.
resources/​scripts/​shared/​extensions.ts Adds frontend extension filters and conditional-page helpers.
resources/​scripts/​lib/​utils.ts Removes executable and style content when converting HTML to text.
resources/​scripts/​frontend/​types.ts Adds email fields and extension settings types.
resources/​scripts/​frontend/​components/​SurveyForm.tsx Adds conditional visibility and email validation to live submissions.
resources/​scripts/​admin/​routes/​builder.index.tsx Reuses shared preview-width initialization.
resources/​scripts/​admin/​routes/​_app/​tools.import-export.tsx Registers the import/export route.
resources/​scripts/​admin/​pages/​tools/​Tools.tsx Adds import/export navigation.
resources/​scripts/​admin/​pages/​tools/​ImportExport.tsx Implements survey import and export UI.
resources/​scripts/​admin/​pages/​settings/​AdvancedSettings.tsx Renders add-on advanced settings sections.
resources/​scripts/​admin/​pages/​forms/​inactiveForm.ts Defines the inactive-survey notice.
resources/​scripts/​admin/​pages/​forms/​FormBuilder.tsx Adds required features, synchronized pages, and preview sizing.
resources/​scripts/​admin/​pages/​forms/​builder/​types.ts Adds email fields, extension settings, and embed-only targeting.
resources/​scripts/​admin/​pages/​forms/​builder/​SettingsPanel.tsx Adds automatic-display controls and embed-only mode.
resources/​scripts/​admin/​pages/​forms/​builder/​SectionCard.tsx Refactors page navigation and field expansion.
resources/​scripts/​admin/​pages/​forms/​builder/​previewWidth.ts Centralizes preview-pane width persistence.
resources/​scripts/​admin/​pages/​forms/​builder/​PreviewPanel.tsx Adds synchronized preview navigation and conditional pages.
resources/​scripts/​admin/​pages/​forms/​builder/​fieldTypes.tsx Registers the email field type.
resources/​scripts/​admin/​pages/​forms/​builder/​FieldEditor.tsx Refactors field editing and extension panels.
resources/​scripts/​admin/​pages/​forms/​builder/​extensions.ts Defines builder extension APIs and feature detection.
resources/​scripts/​admin/​pages/​forms/​builder/​BuilderCanvas.tsx Adds page tabs and active-page synchronization.
resources/​scripts/​admin/​pages/​forms/​AllForms.tsx Displays inactive-survey status indicators.
resources/​scripts/​admin/​index.tsx Exposes shared admin components and utilities to add-ons.
resources/​scripts/​admin/​globals.d.ts Types the shared add-on admin API.
resources/​scripts/​admin/​components/​ContentPicker.tsx Adds content-search error feedback.
resources/​scripts/​admin/​api/​surveys.ts Adds import/export API types and methods.
readme.txt Updates the stable tag and adds the introductory video.
package.json Updates the package version to 1.1.0.
CLAUDE.md Updates terminology and removes the fixed block bug documentation.
allfeedback.php Updates the plugin version to 1.1.0.
.themegrill-qa/​knowledge.md Records the Gutenberg block fix and updated regression status.
.github/​workflows/​release.yml Builds and deploys tagged releases to WordPress.org.

Review effort: Lite

Comment on lines +139 to +142
target_pages:
s.targetPages === 'all' || s.targetPages === 'none'
? s.targetPages
: 'specific',
Comment on lines +55 to +62
const sections = activeSections( filterVisibleSections( allSections, fieldValues ) );
const totalSteps = sections.length;

if ( sections.length === 0 ) {
return <p className="allfb-panel__placeholder">This survey has no questions yet.</p>;
}

const isLastStep = stepIndex === totalSteps - 1;
const currentSection = sections[ stepIndex ];
const currentSection = sections[ Math.min( stepIndex, totalSteps - 1 ) ];

$styling = $survey->getStyling();
$styling = $survey->getStyling();
$form_schema = $this->sanitizeFormSchema( $survey->getFormSchema() );
Comment on lines +355 to +356
private function sanitizeFormSchema( array $schema ): array {
$normalised = json_decode( (string) wp_json_encode( $schema ), true );
Comment on lines +595 to 600
const targetStep = steps.findIndex((s) => s.id === targetId);
if (targetStep >= 0 && targetStep !== currentStep) {
setFieldErrors({});
setLastConfirmed(false);
setCurrentStep(targetStep);
}
Comment on lines +74 to +79
const ExportSection = () => {
const { data, isPending } = useQuery(surveysQuery({ per_page: 100 }));
const surveys = useMemo(
() => (data?.surveys ?? []).filter((s) => s.status !== 'trashed'),
[data],
);
Comment on lines +63 to +64
foreach ( (array) ( $context->survey->getFormSchema()['sections'] ?? [] ) as $section ) {
foreach ( (array) ( $section['fields'] ?? [] ) as $field ) {
Comment on lines +68 to +69
$value = $data[ (string) ( $field['id'] ?? '' ) ] ?? '';
if ( is_string( $value ) && '' !== trim( $value ) && ! is_email( trim( $value ) ) ) {

/** Shown when a form uses add-on features that aren't active, so it's offline. */
export const INACTIVE_FORM_MESSAGE = __(
'Some Pro features are used in this form, so it is currently inactive. Create a new form or reactivate AllFeedback Pro for this form to start working again.',
@github-actions

Copy link
Copy Markdown

QA suite — failed ❌

1 of 76 checks failed. The rest passed.

75 passed · 1 failed · 0 skipped · 0 flaky · 577s


What failed

1. a subscriber logged into wp-admin cannot reach the AllFeedback screen

What happened: the check did not pass. The technical detail is below.

Why this matters: Tests the page rather than the API, which is the boundary a real low-privilege user actually walks into.

This was retried 1 time and failed every time.

2 screenshots and 1 trace of this failure are in the report linked at the bottom.

Technical detail

Location: tests/e2e/specs/permissions/role-boundaries.spec.ts:168

Area: permissions

Likely cause: the element never appeared, so the test gave up waiting for it. Check the selector at tests/e2e/specs/permissions/role-boundaries.spec.ts:168. Either this change altered the markup it looks for, or the page needs a state (a menu, a widget, demo content) that a fresh site never seeds.

Expected: 0
Received: 1
  166 |
  167 | 		// WordPress refuses the page outright; the SPA never mounts.
> 168 | 		await expect(page.locator('#ALLFB-Admin-Root')).toHaveCount(0);
      | 		                                                ^
  169 | 		await expect(
  170 | 			page.getByText(
  171 | 				/not allowed to access this page|Sorry, you are not allowed/i,

See it for yourself

Download the full report (qa-suite-allfeedback-30.zip). Unzip it and open qa-report.html in any browser — it shows each failure with screenshots of the page at the moment it broke, and what the run did and did not check.

Replaying a failure step by step (developers)

The archive also carries a Playwright trace — every click, the page at each step, network and console. From the unzipped folder:

npx playwright show-report playwright-report

It needs that command rather than opening the file directly: a trace viewer cannot start from a file:// page.

Automated check — no AI involved. It runs the tests in this branch.

Sid Sharma and others added 3 commits November 28, 2026 15:34
…s in as admin

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@SidTGV

SidTGV commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Looks good to me!
image

@SidTGV
SidTGV merged commit e88e2d0 into main Nov 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants