From 05afa0061383877bb06b14f48546c1fea209ca12 Mon Sep 17 00:00:00 2001 From: Alberto Vena Date: Mon, 11 Aug 2025 16:48:16 +0200 Subject: [PATCH] Add liquid documentation for account actions snippet Follows instructions at https://github.com/Shopify/horizon/blob/5127759ceafb1f340cd3e53c76854653bb60e682/.cursor/rules/sections.mdc --- snippets/account-actions.liquid | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/snippets/account-actions.liquid b/snippets/account-actions.liquid index 803f80f34..b1058fcec 100644 --- a/snippets/account-actions.liquid +++ b/snippets/account-actions.liquid @@ -1,3 +1,26 @@ +{% doc %} + Account Actions Component + + Renders the account actions panel with customer information, login options, and navigation links. + Displays personalized content for logged-in customers or login options for guests. + + @param autofocus_enabled - {Boolean} Enable autofocus on interactive elements (default: false) + + @example + {% render 'account-actions', autofocus_enabled: true %} + + @notes + - Automatically detects customer login state + - Shows personalized greeting with customer name if available + - Displays customer email or phone number + - Provides login options for guests + - Includes navigation to orders and profile pages +{% enddoc %} + +{% liquid + assign autofocus_enabled = autofocus_enabled | default: false +%} +