Skip to content

Address validation notes - #3

Merged
bonelifer merged 1 commit into
masterfrom
validation-notes
Oct 20, 2026
Merged

bonelifer merged 1 commit into
masterfrom
validation-notes

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

Fixes the notes from a validation pass in the style of phpBB.com's Customisations Team. The pass found no security issues and nothing that would block approval.

Changes

  • Icon length: the ACP now rejects an icon class longer than 64 characters on the server, not only in the form field, so the value always fits the config table. The form's maxlength comes from the same constant.
  • Template variable names: following the coding guidelines, the board URL is now U_COPYLINKS_BOARD and the on/off switch is S_COPYLINKS_ICON_ENABLE.
  • Magic numbers: the icon switch is read as a boolean instead of ? 1 : 0, and the 50 ms delay before the screen reader message is now a named constant, ANNOUNCE_DELAY.
  • CI: the extension checkout in tests.yml uses actions/checkout@v4, the same version as the phpBB checkout.

Not changed: composer.json keeps version 1.0.0-dev. phpBB.com only accepts stable versions, so it needs a stable number before it's submitted there.

Testing

Claude tested this on seed-forum boards running phpBB 3.3 and phpBB 4.0:

  • The ACP rejected a 65-character icon class and saved nothing.
  • Turning the icon off removed it from board pages; turning it back on brought back fa-clone, and the checkbox showed the saved state.
  • Copied links still use the board URL from the renamed variable, and the screen reader message still appears.
  • PHP lint passed on 7.4 and 8.4 (strict), and the JavaScript syntax check passed.

Investigated and written by Claude on behalf of William Jacoby (bonelifer).

🤖 Generated with Claude Code

- Limit the ACP icon class to 64 characters on the server as well as in
  the form, so it always fits the config value column.
- Name template variables by phpBB's conventions: U_COPYLINKS_BOARD for
  the board URL and S_COPYLINKS_ICON_ENABLE for the on/off switch.
- Use a boolean for the icon switch instead of 1/0, and a named constant
  for the screen reader announcement delay.
- Check out the extension with actions/checkout@v4, like phpBB itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit 3fe1dd1 into master Oct 20, 2026
6 checks passed
@bonelifer
bonelifer deleted the validation-notes branch October 20, 2026 00:17
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.

1 participant