Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Support NEW_TAB for extension target & add new mounting points (#17780)
Lukasz Ostrowskia9e79dac40a2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 426473b285..dcd612c02a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -19,3 +19,5 @@ All notable, unreleased changes to this project will be documented in this file.- deps: upgraded urllib3 from v1.x to v2.x- Fix PAGE_DELETE webhook to include pageType in payload - #17697 by @Jennyyyy0212 and @CherineCho2016- Stripe Plugin has been deprecated. It will be removed in the future. Please use [the Stripe App](https://docs.saleor.io/developer/app-store/apps/stripe/overview) instead+- App Extensions: Added new allowed extension target: NEW_TAB. Once handled in the Dashboard, an extension will be able to open a link in new tab+- App Extensions: New mount points for Dashboard categories, collections, gift cards, draft orders, discounts, vouchers, pages, pages types and menusdiff --git a/saleor/app/manifest_validations.py b/saleor/app/manifest_validations.pyindex 4b0277b5a5..bc1e0258bd 100644--- a/saleor/app/manifest_validations.py+++ b/saleor/app/manifest_validations.py@@ -47,6 +47,8 @@ def _clean_extension_url_with_only_path():if target == AppExtensionTarget.APP_PAGE:return+ if target == AppExtensionTarget.NEW_TAB:+ raise ValidationError("NEW_TAB target should be absolute path")if manifest_data["appUrl"]:_clean_app_url(manifest_data["appUrl"])else:@@ -58,7 +60,7 @@ def _clean_extension_url_with_only_path(raise ValidationError(msg)-def clean_extension_url(extension: dict, manifest_data: dict):+def _clean_extension_url(extension: dict, manifest_data: dict):"""Clean assigned extension url.Make sure that format of url is correct based on the rest of manifest fields.@@ -88,7 +90,7 @@ def clean_manifest_url(manifest_url):raise ValidationError({"manifest_url": ValidationError(msg, code=code)}) from e-def clean_permissions(+def _clean_permissions(required_permissions: list[str], saleor_permissions: Iterable[Permission]) -> list[Permission]:missing_permissions = []@@ -110,7 +112,7 @@ def clean_permissions(def clean_manifest_data(manifest_data, raise_for_saleor_version=False):errors: T_ERRORS = defaultdict(list)- validate_required_fields(manifest_data, errors)+ _validate_required_fields(manifest_data, errors)try:if "tokenTargetUrl" in manifest_data:@@ -124,14 +126,14 @@ def clean_manifest_data(manifest_data, raise_for_saleor_version=False):)try:- manifest_data["requiredSaleorVersion"] = clean_required_saleor_version(+ manifest_data["requiredSaleorVersion"] = _clean_required_saleor_version(manifest_data.get("requiredSaleorVersion"), raise_for_saleor_version)except ValidationError as e:errors["requiredSaleorVersion"].append(e)try:- manifest_data["author"] = clean_author(manifest_data.get("author"))+ manifest_data["author"] = _clean_author(manifest_data.get("author"))except ValidationError as e:errors["author"].append(e)@@ -144,7 +146,7 @@ def clean_manifest_data(manifest_data, raise_for_saleor_version=False):formatted_codename=Concat("content_type__app_label", Value("."), "codename"))try:- app_permissions = clean_permissions(+ app_permissions = _clean_permissions(manifest_data.get("permissions", []), saleor_permissions)except ValidationError as e:@@ -163,8 +165,8 @@ def clean_manifest_data(manifest_data, raise_for_saleor_version=False):))if not errors:- clean_extensions(manifest_data, app_permissions, errors)- clean_webhooks(manifest_data, errors)+ _clean_extensions(manifest_data, app_permissions, errors)+ _clean_webhooks(manifest_data, errors)if errors:raise ValidationError(errors)@@ -173,7 +175,7 @@ def clean_manifest_data(manifest_data, raise_for_saleor_version=False):def _clean_extension_permissions(extension, app_permissions, errors):permissions_data = extension.get("permissions", [])try:- extension_permissions = clean_permissions(permissions_data, app_permissions)+ extension_permissions = _clean_permissions(permissions_data, app_permissions)except ValidationError as e:if e.params is None:e.params = {}@@ -192,7 +194,7 @@ def _clean_extension_permissions(extension, app_permissions, errors):extension["permissions"] = extension_permissions-def clean_extension_enum_field(enum, field_name, extension, errors):+def _clean_extension_enum_field(enum, field_name, extension, errors):if extension[field_name] in [code.upper() for code, _ in enum.CHOICES]:extension[field_name] = getattr(enum, extension[field_name])else:@@ -204,17 +206,18 @@ def clean_extension_enum_field(enum, field_name, extension, errors):)-def clean_extensions(manifest_data, app_permissions, errors):+def _clean_extensions(manifest_data, app_permissions, errors):extensions = manifest_data.get("extensions", [])for extension in extensions:if "target" not in extension:extension["target"] = AppExtensionTarget.POPUPelse:- clean_extension_enum_field(AppExtensionTarget, "target", extension, errors)- clean_extension_enum_field(AppExtensionMount, "mount", extension, errors)+ _clean_extension_enum_field(AppExtensionTarget, "target", extension, errors)++ _clean_extension_enum_field(AppExtensionMount, "mount", extension, errors)try:- clean_extension_url(extension, manifest_data)+ _clean_extension_url(extension, manifest_data)except (ValidationError, AttributeError):errors["extensions"].append(ValidationError(@@ -222,10 +225,11 @@ def clean_extensions(manifest_data, app_permissions, errors):code=AppErrorCode.INVALID_URL_FORMAT.value,))+_clean_extension_permissions(extension, app_permissions, errors)-def clean_webhooks(manifest_data, errors):+def _clean_webhooks(manifest_data, errors):webhooks = manifest_data.get("webhooks", [])async_types = {@@ -305,7 +309,7 @@ def clean_webhooks(manifest_data, errors):)-def validate_required_fields(manifest_data, errors):+def _validate_required_fields(manifest_data, errors):manifest_required_fields = {"id", "version", "name", "tokenTargetUrl"}extension_required_fields = {"label", "url", "mount"}webhook_required_fields = {"name", "targetUrl", "query"}@@ -341,11 +345,11 @@ def validate_required_fields(manifest_data, errors):)-def parse_version(version_str: str) -> Version:+def _parse_version(version_str: str) -> Version:return Version(version_str)-def clean_required_saleor_version(+def _clean_required_saleor_version(required_version,raise_for_saleor_version: bool,saleor_version=__version__,@@ -357,7 +361,7 @@ def clean_required_saleor_version(except Exception as e:msg = "Incorrect value for required Saleor version."raise ValidationError(msg, code=AppErrorCode.INVALID.value) from e- version = parse_version(saleor_version)+ version = _parse_version(saleor_version)satisfied = spec.match(version)if raise_for_saleor_version and not satisfied:msg = f"Saleor version {saleor_version} is not supported by the app."@@ -365,7 +369,7 @@ def clean_required_saleor_version(return {"constraint": required_version, "satisfied": satisfied}-def clean_author(author) -> str | None:+def _clean_author(author) -> str | None:if author is None:return Noneif isinstance(author, str):diff --git a/saleor/app/migrations/0031_alter_appextension_mount_alter_appextension_target.py b/saleor/app/migrations/0031_alter_appextension_mount_alter_appextension_target.pynew file mode 100644index 0000000000..c74f0412ea--- /dev/null+++ b/saleor/app/migrations/0031_alter_appextension_mount_alter_appextension_target.py@@ -0,0 +1,109 @@+# Generated by Django 5.2.1 on 2025-06-04 08:53++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("app", "0030_alter_app_metadata_alter_app_private_metadata"),+ ]++ operations = [+ migrations.AlterField(+ model_name="appextension",+ name="mount",+ field=models.CharField(+ choices=[+ ("category_overview_create", "category_overview_create"),+ (+ "category_overview_more_actions",+ "category_overview_more_actions",+ ),+ ("category_details_more_actions", "category_details_more_actions"),+ ("collection_overview_create", "collection_overview_create"),+ (+ "collection_overview_more_actions",+ "collection_overview_more_actions",+ ),+ (+ "collection_details_more_actions",+ "collection_details_more_actions",+ ),+ ("gift_card_overview_create", "gift_card_overview_create"),+ (+ "gift_card_overview_more_actions",+ "gift_card_overview_more_actions",+ ),+ (+ "gift_card_details_more_actions",+ "gift_card_details_more_actions",+ ),+ ("customer_overview_create", "customer_overview_create"),+ (+ "customer_overview_more_actions",+ "customer_overview_more_actions",+ ),+ ("customer_details_more_actions", "customer_details_more_actions"),+ ("product_overview_create", "product_overview_create"),+ ("product_overview_more_actions", "product_overview_more_actions"),+ ("product_details_more_actions", "product_details_more_actions"),+ ("navigation_catalog", "navigation_catalog"),+ ("navigation_orders", "navigation_orders"),+ ("navigation_customers", "navigation_customers"),+ ("navigation_discounts", "navigation_discounts"),+ ("navigation_translations", "navigation_translations"),+ ("navigation_pages", "navigation_pages"),+ ("order_details_more_actions", "order_details_more_actions"),+ ("order_overview_create", "order_overview_create"),+ ("order_overview_more_actions", "order_overview_more_actions"),+ (+ "draft_order_details_more_actions",+ "draft_order_details_more_actions",+ ),+ ("draft_order_overview_create", "draft_order_overview_create"),+ (+ "draft_order_overview_more_actions",+ "draft_order_overview_more_actions",+ ),+ ("discount_details_more_actions", "discount_details_more_actions"),+ ("discount_overview_create", "discount_overview_create"),+ (+ "discount_overview_more_actions",+ "discount_overview_more_actions",+ ),+ ("voucher_details_more_actions", "voucher_details_more_actions"),+ ("voucher_overview_create", "voucher_overview_create"),+ ("voucher_overview_more_actions", "voucher_overview_more_actions"),+ ("page_details_more_actions", "page_details_more_actions"),+ ("page_overview_create", "page_overview_create"),+ ("page_overview_more_actions", "page_overview_more_actions"),+ ("page_type_overview_create", "page_type_overview_create"),+ (+ "page_type_overview_more_actions",+ "page_type_overview_more_actions",+ ),+ (+ "page_type_details_more_actions",+ "page_type_details_more_actions",+ ),+ ("menu_overview_create", "menu_overview_create"),+ ("menu_overview_more_actions", "menu_overview_more_actions"),+ ("menu_details_more_actions", "menu_details_more_actions"),+ ],+ max_length=256,+ ),+ ),+ migrations.AlterField(+ model_name="appextension",+ name="target",+ field=models.CharField(+ choices=[+ ("popup", "popup"),+ ("app_page", "app_page"),+ ("new_tab", "new_tab"),+ ],+ default="popup",+ max_length=128,+ ),+ ),+ ]diff --git a/saleor/app/tests/test_validators.py b/saleor/app/tests/test_validators.pyindex 96d1d2b992..393a1da157 100644--- a/saleor/app/tests/test_validators.py+++ b/saleor/app/tests/test_validators.py@@ -5,10 +5,12 @@ from ... import __version__from ...app.validators import AppURLValidatorfrom ..error_codes import AppErrorCodefrom ..manifest_validations import (- clean_author,- clean_required_saleor_version,- parse_version,+ _clean_author,+ _clean_extension_url,+ _clean_required_saleor_version,+ _parse_version,)+from ..types import AppExtensionTargetfrom ..validators import brand_validator@@ -26,7 +28,7 @@ def test_validate_invalid_url():def test_parse_version():- assert str(parse_version(__version__)) == __version__+ assert str(_parse_version(__version__)) == __version__@pytest.mark.parametrize(@@ -41,12 +43,12 @@ def test_parse_version():],)def test_clean_required_saleor_version(required_version, version, satisfied):- cleaned = clean_required_saleor_version(required_version, False, version)+ cleaned = _clean_required_saleor_version(required_version, False, version)assert cleaned == {"constraint": required_version, "satisfied": satisfied}def test_clean_required_saleor_version_optional():- assert clean_required_saleor_version(None, False) is None+ assert _clean_required_saleor_version(None, False) is None@pytest.mark.parametrize(@@ -54,13 +56,13 @@ def test_clean_required_saleor_version_optional():)def test_clean_required_saleor_version_with_invalid_range(required_version):with pytest.raises(ValidationError) as error:- clean_required_saleor_version(required_version, False, "3.12.1")+ _clean_required_saleor_version(required_version, False, "3.12.1")assert error.value.code == AppErrorCode.INVALID.valuedef test_clean_required_saleor_version_raise_for_saleor_version():with pytest.raises(ValidationError) as error:- clean_required_saleor_version("^3.13", True, "3.12.1")+ _clean_required_saleor_version("^3.13", True, "3.12.1")assert error.value.code == AppErrorCode.UNSUPPORTED_SALEOR_VERSION.value@@ -68,7 +70,7 @@ def test_clean_required_saleor_version_raise_for_saleor_version():("author", "cleaned"), [(None, None), (" Acme Ltd ", "Acme Ltd")])def test_clean_author(author, cleaned):- assert clean_author(author) == cleaned+ assert _clean_author(author) == cleaneddef test_brand_validator_required_fields():@@ -89,3 +91,15 @@ def test_brand_validator_with_invalid_logo_url(url):with pytest.raises(ValidationError) as error:brand_validator({"logo": {"default": url}})assert error.value.code == AppErrorCode.INVALID_URL_FORMAT.value+++def test_clean_extensions_new_tab_valid_relative_url(app_manifest):+ extension = {+ "url": "/relative/path",+ "target": AppExtensionTarget.NEW_TAB,+ }++ with pytest.raises(ValidationError) as error:+ _clean_extension_url(extension, app_manifest)++ assert error.value.message == "NEW_TAB target should be absolute path"diff --git a/saleor/app/types.py b/saleor/app/types.pyindex 57ef20c677..e44bf86cfe 100644--- a/saleor/app/types.py+++ b/saleor/app/types.py@@ -8,6 +8,18 @@ class AppType:class AppExtensionMount:"""All places where app extension can be mounted."""+ CATEGORY_OVERVIEW_CREATE = "category_overview_create"+ CATEGORY_OVERVIEW_MORE_ACTIONS = "category_overview_more_actions"+ CATEGORY_DETAILS_MORE_ACTIONS = "category_details_more_actions"++ COLLECTION_OVERVIEW_CREATE = "collection_overview_create"+ COLLECTION_OVERVIEW_MORE_ACTIONS = "collection_overview_more_actions"+ COLLECTION_DETAILS_MORE_ACTIONS = "collection_details_more_actions"++ GIFT_CARD_OVERVIEW_CREATE = "gift_card_overview_create"+ GIFT_CARD_OVERVIEW_MORE_ACTIONS = "gift_card_overview_more_actions"+ GIFT_CARD_DETAILS_MORE_ACTIONS = "gift_card_details_more_actions"+CUSTOMER_OVERVIEW_CREATE = "customer_overview_create"CUSTOMER_OVERVIEW_MORE_ACTIONS = "customer_overview_more_actions"CUSTOMER_DETAILS_MORE_ACTIONS = "customer_details_more_actions"@@ -27,7 +39,40 @@ class AppExtensionMount:ORDER_OVERVIEW_CREATE = "order_overview_create"ORDER_OVERVIEW_MORE_ACTIONS = "order_overview_more_actions"+ DRAFT_ORDER_DETAILS_MORE_ACTIONS = "draft_order_details_more_actions"+ DRAFT_ORDER_OVERVIEW_CREATE = "draft_order_overview_create"+ DRAFT_ORDER_OVERVIEW_MORE_ACTIONS = "draft_order_overview_more_actions"++ DISCOUNT_DETAILS_MORE_ACTIONS = "discount_details_more_actions"+ DISCOUNT_OVERVIEW_CREATE = "discount_overview_create"+ DISCOUNT_OVERVIEW_MORE_ACTIONS = "discount_overview_more_actions"++ VOUCHER_DETAILS_MORE_ACTIONS = "voucher_details_more_actions"+ VOUCHER_OVERVIEW_CREATE = "voucher_overview_create"+ VOUCHER_OVERVIEW_MORE_ACTIONS = "voucher_overview_more_actions"++ PAGE_DETAILS_MORE_ACTIONS = "page_details_more_actions"+ PAGE_OVERVIEW_CREATE = "page_overview_create"+ PAGE_OVERVIEW_MORE_ACTIONS = "page_overview_more_actions"++ PAGE_TYPE_OVERVIEW_CREATE = "page_type_overview_create"+ PAGE_TYPE_OVERVIEW_MORE_ACTIONS = "page_type_overview_more_actions"+ PAGE_TYPE_DETAILS_MORE_ACTIONS = "page_type_details_more_actions"++ MENU_OVERVIEW_CREATE = "menu_overview_create"+ MENU_OVERVIEW_MORE_ACTIONS = "menu_overview_more_actions"+ MENU_DETAILS_MORE_ACTIONS = "menu_details_more_actions"+CHOICES = [+ (CATEGORY_OVERVIEW_CREATE, "category_overview_create"),+ (CATEGORY_OVERVIEW_MORE_ACTIONS, "category_overview_more_actions"),+ (CATEGORY_DETAILS_MORE_ACTIONS, "category_details_more_actions"),+ (COLLECTION_OVERVIEW_CREATE, "collection_overview_create"),+ (COLLECTION_OVERVIEW_MORE_ACTIONS, "collection_overview_more_actions"),+ (COLLECTION_DETAILS_MORE_ACTIONS, "collection_details_more_actions"),+ (GIFT_CARD_OVERVIEW_CREATE, "gift_card_overview_create"),+ (GIFT_CARD_OVERVIEW_MORE_ACTIONS, "gift_card_overview_more_actions"),+ (GIFT_CARD_DETAILS_MORE_ACTIONS, "gift_card_details_more_actions"),(CUSTOMER_OVERVIEW_CREATE, "customer_overview_create"),(CUSTOMER_OVERVIEW_MORE_ACTIONS, "customer_overview_more_actions"),(CUSTOMER_DETAILS_MORE_ACTIONS, "customer_details_more_actions"),@@ -43,6 +88,24 @@ class AppExtensionMount:(ORDER_DETAILS_MORE_ACTIONS, "order_details_more_actions"),(ORDER_OVERVIEW_CREATE, "order_overview_create"),(ORDER_OVERVIEW_MORE_ACTIONS, "order_overview_more_actions"),+ (DRAFT_ORDER_DETAILS_MORE_ACTIONS, "draft_order_details_more_actions"),+ (DRAFT_ORDER_OVERVIEW_CREATE, "draft_order_overview_create"),+ (DRAFT_ORDER_OVERVIEW_MORE_ACTIONS, "draft_order_overview_more_actions"),+ (DISCOUNT_DETAILS_MORE_ACTIONS, "discount_details_more_actions"),+ (DISCOUNT_OVERVIEW_CREATE, "discount_overview_create"),+ (DISCOUNT_OVERVIEW_MORE_ACTIONS, "discount_overview_more_actions"),+ (VOUCHER_DETAILS_MORE_ACTIONS, "voucher_details_more_actions"),+ (VOUCHER_OVERVIEW_CREATE, "voucher_overview_create"),+ (VOUCHER_OVERVIEW_MORE_ACTIONS, "voucher_overview_more_actions"),+ (PAGE_DETAILS_MORE_ACTIONS, "page_details_more_actions"),+ (PAGE_OVERVIEW_CREATE, "page_overview_create"),+ (PAGE_OVERVIEW_MORE_ACTIONS, "page_overview_more_actions"),+ (PAGE_TYPE_OVERVIEW_CREATE, "page_type_overview_create"),+ (PAGE_TYPE_OVERVIEW_MORE_ACTIONS, "page_type_overview_more_actions"),+ (PAGE_TYPE_DETAILS_MORE_ACTIONS, "page_type_details_more_actions"),+ (MENU_OVERVIEW_CREATE, "menu_overview_create"),+ (MENU_OVERVIEW_MORE_ACTIONS, "menu_overview_more_actions"),+ (MENU_DETAILS_MORE_ACTIONS, "menu_details_more_actions"),]@@ -55,5 +118,6 @@ class AppExtensionTarget:POPUP = "popup"APP_PAGE = "app_page"+ NEW_TAB = "new_tab"- CHOICES = [(POPUP, "popup"), (APP_PAGE, "app_page")]+ CHOICES = [(POPUP, "popup"), (APP_PAGE, "app_page"), (NEW_TAB, "new_tab")]diff --git a/saleor/graphql/app/tests/mutations/test_app_fetch_manifest.py b/saleor/graphql/app/tests/mutations/test_app_fetch_manifest.pyindex 8e292bd3aa..4d26070009 100644--- a/saleor/graphql/app/tests/mutations/test_app_fetch_manifest.py+++ b/saleor/graphql/app/tests/mutations/test_app_fetch_manifest.py@@ -438,6 +438,11 @@ def test_app_fetch_manifest_extensions_incorrect_enum_values(("/app", AppExtensionTargetEnum.APP_PAGE.name, ""),("/app", AppExtensionTargetEnum.APP_PAGE.name, "https://www.example.com/app"),("/app", AppExtensionTargetEnum.POPUP.name, "https://www.example.com/app"),+ (+ "https://app-absolute-url.com",+ AppExtensionTargetEnum.NEW_TAB.name,+ "https://www.example.com/app",+ ),],)def test_app_fetch_manifest_extensions_correct_url(@@ -492,6 +497,7 @@ def test_app_fetch_manifest_extensions_correct_url(("www.example.com/app", AppExtensionTargetEnum.POPUP.name),("https://www.example.com/app", AppExtensionTargetEnum.APP_PAGE.name),("http://www.example.com/app", AppExtensionTargetEnum.APP_PAGE.name),+ ("/relative-app-url", AppExtensionTargetEnum.NEW_TAB.name),],)def test_app_fetch_manifest_extensions_incorrect_url(diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 731f799248..aa6ec72d8e 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -2946,6 +2946,15 @@ type AppExtension implements Node @doc(category: "Apps") {"""All places where app extension can be mounted."""enum AppExtensionMountEnum @doc(category: "Apps") {+ CATEGORY_OVERVIEW_CREATE+ CATEGORY_OVERVIEW_MORE_ACTIONS+ CATEGORY_DETAILS_MORE_ACTIONS+ COLLECTION_OVERVIEW_CREATE+ COLLECTION_OVERVIEW_MORE_ACTIONS+ COLLECTION_DETAILS_MORE_ACTIONS+ GIFT_CARD_OVERVIEW_CREATE+ GIFT_CARD_OVERVIEW_MORE_ACTIONS+ GIFT_CARD_DETAILS_MORE_ACTIONSCUSTOMER_OVERVIEW_CREATECUSTOMER_OVERVIEW_MORE_ACTIONSCUSTOMER_DETAILS_MORE_ACTIONS@@ -2961,6 +2970,24 @@ enum AppExtensionMountEnum @doc(category: "Apps") {ORDER_DETAILS_MORE_ACTIONSORDER_OVERVIEW_CREATEORDER_OVERVIEW_MORE_ACTIONS+ DRAFT_ORDER_DETAILS_MORE_ACTIONS+ DRAFT_ORDER_OVERVIEW_CREATE+ DRAFT_ORDER_OVERVIEW_MORE_ACTIONS+ DISCOUNT_DETAILS_MORE_ACTIONS+ DISCOUNT_OVERVIEW_CREATE+ DISCOUNT_OVERVIEW_MORE_ACTIONS+ VOUCHER_DETAILS_MORE_ACTIONS+ VOUCHER_OVERVIEW_CREATE+ VOUCHER_OVERVIEW_MORE_ACTIONS+ PAGE_DETAILS_MORE_ACTIONS+ PAGE_OVERVIEW_CREATE+ PAGE_OVERVIEW_MORE_ACTIONS+ PAGE_TYPE_OVERVIEW_CREATE+ PAGE_TYPE_OVERVIEW_MORE_ACTIONS+ PAGE_TYPE_DETAILS_MORE_ACTIONS+ MENU_OVERVIEW_CREATE+ MENU_OVERVIEW_MORE_ACTIONS+ MENU_DETAILS_MORE_ACTIONS}"""@@ -2972,6 +2999,7 @@ All available ways of opening an app extension.enum AppExtensionTargetEnum @doc(category: "Apps") {POPUPAPP_PAGE+ NEW_TAB}"""Represents the app's brand data."""