From b5408784450903b9b17c184baafa3c45626553b7 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Wed, 31 Dec 2025 20:58:44 +0100 Subject: [PATCH] fix: rename billingData to vendorBilling for JS-003 rule compliance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The JS-003 architecture rule only matches function names starting with admin*, vendor*, or shop*. Renamed billingData() to vendorBilling() to follow the vendor JS naming convention and ensure future violations are caught by architecture validation. Also added currentPage: 'billing' for JS-004 compliance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/templates/vendor/billing.html | 2 +- static/vendor/js/billing.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/templates/vendor/billing.html b/app/templates/vendor/billing.html index 67d15d27..f88da332 100644 --- a/app/templates/vendor/billing.html +++ b/app/templates/vendor/billing.html @@ -3,7 +3,7 @@ {% block title %}Billing & Subscription{% endblock %} -{% block alpine_data %}billingData(){% endblock %} +{% block alpine_data %}vendorBilling(){% endblock %} {% block content %}
diff --git a/static/vendor/js/billing.js b/static/vendor/js/billing.js index 500cabdf..41e655d2 100644 --- a/static/vendor/js/billing.js +++ b/static/vendor/js/billing.js @@ -3,10 +3,11 @@ const billingLog = window.LogConfig?.createLogger('BILLING') || console; -function billingData() { +function vendorBilling() { return { // Inherit base data (dark mode, sidebar, vendor info, etc.) ...data(), + currentPage: 'billing', // State loading: true,