Skip to content

Activity Link Preview 1.7.6 - #5

Merged
vapvarun merged 9 commits into
mainfrom
v1.7.6
Nov 3, 2026
Merged

vapvarun merged 9 commits into
mainfrom
v1.7.6

Conversation

@vapvarun

@vapvarun vapvarun commented Nov 3, 2026

Copy link
Copy Markdown
Member

Release branch for 1.7.6. Changelog: see the 1.7.6 section of readme.txt.

Release gates run on this branch:

  • PHP lint (8.2, 8.5), PHPCompatibility 8.1+, WPCS: clean
  • Plugin Check on the built zip (pristine Docker, WP 7.1.4): 0 errors; 2 warnings inherited from 1.7.5 (trademarked_term, load_plugin_textdomain)
  • Security sweep vs v1.7.5: no CRITICAL patterns
  • Browser smoke on pristine Docker: live preview, saved post card, saved comment card, 390px with no horizontal overflow
  • Zip: 20 files, no .wordpress-org, docs, audit or dev files

Includes a fix found during the smoke: saved previews dropped the link description (also present in 1.7.5).

Twitter/X and Facebook previews were initialised only inside an
ajaxComplete handler gated to activity_filter / post_update /
new_activity_comment. BuddyPress Nouveau AJAX-loads the activity
directory so it worked there, but any server-rendered view - an activity
permalink, or a theme that paints the stream directly - left the
container an empty 52px box with nothing logged. The loop is now a named
function called on $(document).ready() as well, with a twttr.ready()
second pass for a slow widgets.js. The widget id is also claimed only
once the SDK is confirmed present, so a slow SDK can no longer retire a
container permanently.

Composer layout: the image nav was absolutely positioned but its wrapper
was static, so it escaped to .activity-link-preview-container and centred
across the whole card - at 1280px the arrows sat 331px from the 160px
thumbnail. The float and positioning context now live on
#activity-url-scrapper-img-holder, and the small-screen stack rule and
RTL flip were updated to match.

Also: tweet theme follows data-bx-mode instead of a hard-coded 'light';
close controls moved to top-right at all widths and raised to 40px touch
targets (32px for the thumbnail overlay, which now has a scrim so it is
visible over light images); the 40px composer well no longer trails every
saved preview; 11 PHPStan level 5 findings cleared; dead CSS and unused
JS variables removed.

Verified in the browser at 1280 / 390 / 375px in light and dark on
WordPress 7.0.4, BuddyPress 14.4.0, Reign 8.0.4, PHP 8.2.
The four live pages on docs.wbcomdesigns.com were last updated
2025-04-24, roughly sixteen months and five releases stale, and had never
been in version control. Migrated to docs/website/ and re-verified every
claim against the 1.7.6 source. Three needed correcting:

- Both the Introduction and Features pages advertised "specialized
  support for Facebook, Twitter, YouTube, and LinkedIn". LinkedIn support
  has never existed; the social embed list is x.com, twitter.com and
  facebook.com. readme.txt dropped the claim in 1.7.4, the docs did not.
- No page documented a single filter, even though this plugin has no
  admin UI and filters are its only configuration surface. All seven are
  now documented with signatures and worked examples.
- The REST page covered bp_activity_link but not
  bp_activity_comment_link. The bp_activity_link key itself was verified
  correct and carried over unchanged.

Nothing is published or synced from here - GitHub only, per the docs
policy.

CLAUDE.md: corrected 1033 lines / 20 functions to the actual 1275 / 23,
re-verified every entry-point line reference (all six had drifted), and
removed the Recent-changes table - readme.txt owns the changelog and
Basecamp owns bug status, so a duplicate here only goes stale.

manifest.json: bumped to 1.7.6, corrected the line and function counts,
and rewrote static_analysis.real_type_debt, which recorded count 0 while
11 PHPStan findings were open on the board. Also recorded that the CI
phpstan and wpcs jobs cannot fail a build, and that Twitter/Facebook
previews are the one render path with no PHP fallback.
…olours; bare-domain links

- Tweet embeds: each container remembers the theme it was rendered in, instead
  of a page-lifetime Set of ids. Containers AJAX swaps in on a filter change
  render again, and a light/dark switch (data-bx-mode, watched) re-renders
  them in the new theme. Stale widgets from a mid-load switch are dropped.
- Colours: --bpalp-* tokens read --bx-color-* -> --reign-* -> theme.json
  presets (light only) -> literal, the Member Reviews chain. Buttons read only
  real button tokens. Light literals for text and muted now pass WCAG AA.
- Composer: bare domains with a path or subdomain (en.wikipedia.org/wiki/X)
  are previewed over https; a guess that cannot be previewed fails silently.
- Single-label hosts (https://www/, intranet names) are refused by the
  preview endpoint's host guard.
createTweet resolves without a widget when the post is gone; the container kept its border with nothing inside. The link stays in the post text.
…m paragraphs

BuddyX Pro's .buddypress-wrap .activity-inner p adds 15px side padding on phones, so wrapped excerpt lines started indented under the image.
# Conflicts:
#	docs/website/developer-guide/filters.md
#	docs/website/docs_config.json
#	docs/website/getting-started/introduction.md
The default preview template emitted url, title and image hidden fields
but no description, so posts and comments saved an empty description
unless the member changed the preview image first (that re-render did
include it). Same in 1.7.5.
- .wordpress-org/ icon, banners and screenshot, excluded from the zip
- readme: Tested up to 7.1, Requires PHP 8.1, docs hub links, More from
  Wbcom Designs, changelog ordered by action prefix
- manifest delta: line refs recomputed, init listener and
  negative_cache_ttl filter added
- docs: PHP 8.1 floor, tested up to 7.1
@vapvarun
vapvarun merged commit c45b2da into main Nov 3, 2026
6 checks passed
@vapvarun
vapvarun deleted the v1.7.6 branch November 4, 2026 10:06
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