Skip to content

feat(SHPD-9928): Display bullet-delivery-tag on store header - #1034

Merged
sallainternalbot[bot] merged 7 commits into
masterfrom
feature/SHPD-9928-display-quick-delivery-tag-on-storefront-homepage
Aug 19, 2026
Merged

feat(SHPD-9928): Display bullet-delivery-tag on store header#1034
sallainternalbot[bot] merged 7 commits into
masterfrom
feature/SHPD-9928-display-quick-delivery-tag-on-storefront-homepage

Conversation

@adelelshafey

@adelelshafey adelelshafey commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

What

Mounts <salla-quick-delivery-tag> in the storefront top navbar, beside the delivery-location (scopes) control — the Quick Delivery homepage tag (توصيل خلال ساعتين / Delivery within 2 hours).

How

  • Placed directly in header.twig (the raed header is composed of direct component tags, not hooks — this matches salla-localization-modal, salla-search, etc.).
  • Gated with {% if is_page('index') %} — the header is global, and the ticket scopes the tag to the homepage.
  • The component (in twilight) self-gates on store.settings.quick_delivery_eligible, so it renders only for eligible stores and fails safe to hidden otherwise. Styling ships per-component from twilight (PR #2107) — no app.css change.

Testing

  • Verified the component renders as a green pill beside the scopes control on the homepage when the eligibility flag is true.

Depends on

  • SallaApp/twilight#2176 (the salla-quick-delivery-tag component)

Jira: https://salla-dev.atlassian.net/browse/SHPD-9928

screenshot

image

Mount <salla-quick-delivery-tag> beside the delivery-location (scopes) control
in the top navbar, gated to the homepage via is_page('index'). The component
self-gates on store.settings.quick_delivery_eligible, so it renders only for
eligible stores.
@sallainternalbot
sallainternalbot Bot marked this pull request as draft August 16, 2026 11:24
@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

adelelshafey and others added 2 commits August 16, 2026 14:30
…e gate)

The ACs gate the tag on eligibility only (store.settings.quick_delivery_eligible),
not on page; the header is global, so drop the is_page('index') guard and let the
tag render wherever the header shows for eligible stores.
@PHPFouda
PHPFouda marked this pull request as ready for review August 18, 2026 08:01
@PHPFouda PHPFouda changed the title feat(SHPD-9928): display quick delivery tag in storefront header feat(SHPD-9928): Determine Bullet Delivery Tag Eligibility on Storefront Aug 18, 2026
@adelelshafey adelelshafey changed the title feat(SHPD-9928): Determine Bullet Delivery Tag Eligibility on Storefront feat(SHPD-9928): Display bullet-delivery-tag on store header Aug 18, 2026
Adds a second lg:hidden instance of salla-bullet-delivery-tag above the top
nav for its own full-width row on mobile (Figma 'Mobile version'). The
existing inline pill next to scopes is now desktop-only (hidden lg:block).
Both self-gate on the same backend flag, so at most one renders at a time.
Matches Figma order — the tag comes before the branch/scope selector in
document order, not after.
@ashrafreda

Copy link
Copy Markdown
Collaborator

/merge

@sallainternalbot

Copy link
Copy Markdown
Contributor

⏳ Enqueued for Merge

Your pull request has been added to the merge queue. It will be merged automatically once it reaches the front of the queue ✅


🔄 Queue Status

🚦 Queue

The queue is empty. Good luck!

🧬 PR's Dependencies

├── sallaapp/theme-raed#1034

@sallainternalbot

Copy link
Copy Markdown
Contributor

🔄 Merge In Progress

This pull request has reached the front of the queue and is now being processed for merge.

@sallainternalbot
sallainternalbot Bot merged commit a50219c into master Aug 19, 2026
1 check passed
@sallainternalbot
sallainternalbot Bot deleted the feature/SHPD-9928-display-quick-delivery-tag-on-storefront-homepage branch August 19, 2026 11:19
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.

3 participants