Skip to content

Commit

Permalink
chore: add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kseghair committed Jan 22, 2025
1 parent 1fe8051 commit c0fa589
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
17 changes: 17 additions & 0 deletions _dev/apps/verification-tag/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Verification Tag

The verification tag app is a crucial component of the PS Marketing module that handles Google site verification for PrestaShop stores.
A verification tag is an HTML meta tag used to confirm ownership of a website with Google services. It appears in the `<head>` section of your website's HTML and looks like this:

```html
<meta name="google-site-verification" content="your_verification_code" />
```

## Core Functionality

The verification tag app manages the verification process through several steps:

1. **Token Retrieval**: The app fetches a site verification token from PS Marketing API
2. **Token Storage**: Stores the verification token in the PrestaShop shop configuration
3. **Verification Process**: Handles the verification process with Google through PS Marketing API
4. **Website Claiming**: Claims the website with Google (with safety checks to prevent overwriting existing claims) through PS Marketing API
39 changes: 39 additions & 0 deletions _dev/apps/warning-messages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Warning Messages Application

## Overview
The Warning Messages application is a component of the PS Marketing module for PrestaShop. It provides merchants with real-time notifications about their configuration status directly in their BackOffice Dashboard.

### Purpose
- Notify merchants about configuration issues that need attention
- Provide actionable insights for account improvement
- Display clear, user-friendly warning messages with action buttons
- Help maintain optimal account configuration

### Tech Stack
- TypeScript
- Webpack
- Jest for testing
- Sentry for error tracking
- Integration with PS Marketing onboarding API

### Core Components
- `WarningElement`: Creates and manages warning message UI components
- Warning message generator
- Onboarding client integration
- Sentry error tracking

## Usage

The warning system automatically initializes when the merchant accesses their BackOffice Dashboard. It:
1. Checks for configuration issues
2. Displays relevant warning messages
3. Provides action buttons when applicable
4. Updates dynamically as configurations change

### Example Warning Message
```typescript
buildWarningMessages(["IT_APPEARS_THAT_YOU_HAVE_NOT_FINALISED_YOUR_CONFIGURATION"],{
isoCode: "en",
link: "configuration-page"
});
```

0 comments on commit c0fa589

Please sign in to comment.