Problem/Motivation

The Horizon Aid "Share" list (LinkedIn/Facebook/X icons next to articles, events, etc.) doesn't match its Figma design's platforms and order, and the recipe's existing webshare.settings: buttons.* config can't fix that: it's only a pre-seed fallback Webshare stops consulting once its own install seeds the webshare_platforms table.

Third round on this thread. !18 added the buttons.* fallback config and flagged the table-seeding limitation. !31 pulled a broken Instagram attempt back out, asking for platforms to be declarable from configuration. This issue is that resolution.

Steps to reproduce

1. Install the Horizon Aid site template.

2. Open any article/event page with a Share block.

3. Observe: LinkedIn, Facebook, X in that order, no Instagram, and the recipe has no working way to change it.

Proposed resolution

Dead end recorded first: webshare.settings: simpleConfigUpdate on buttons.*.weight looks like it should reorder the list, but doesn't — once the webshare_platforms table has rows, that config is never consulted again for rendering. Confirmed by testing directly; removed instead of left in as dead weight.

Real fix: Webshare 2.0.0-beta2 (issue #3591909) added config actions so recipes can manage platforms declaratively. This recipe now declares the rail with one setSocialPlatforms action: exactly Facebook, Instagram, LinkedIn, X, in the design's order, everything else disabled. Instagram renders as a plain link like the other platforms.

No composer change: drupal/webshare already arrives via the required Varbase Blog Base and Varbase Events Base recipes.

Verified live on a Varbase 11 test site in a real browser: the rail renders Facebook, Instagram, LinkedIn, X, enabled and in order, all as normal links.

AI-Generated: Yes

Remaining tasks

✅ File an issue

✅ Addition/Change/Update/Fix

✅ Testing to ensure no regression

➖ Automated unit testing coverage

➖ Automated functional testing coverage

➖ UX/UI designer responsibilities

➖ Readability

➖ Accessibility

➖ Performance

➖ Security

➖ Developer Documentation

➖ User Guide Documentation

❌ Reviewed by human

❌ Code review by maintainers

❌ Full testing and approval

❌ Credit contributors

❌ Review with the product owner

➖ Release notes snippet

❌ Release

User interface changes

The Share list matches the design's platforms and order: Facebook, Instagram, LinkedIn, X.

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

Issue fork horizonaid-3615293

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Match the Share rail's platforms and order to the design, and add Instagram » Match the Share rail's platforms and order to the design
Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed 638eb654 on 1.0.x
    fix: #3615293 Match the Share rail's platforms and order to the design,...
rajab natshah’s picture

Assigned: Unassigned » josebc
Status: Active » Needs review
Issue tags: +horizonaid-1.0.0-alpha1
rajab natshah’s picture

Assigned: josebc » mohammed j. razem
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.