feat: Enhance campaign terms management with keyword addition and match type change functionality
- Added a toolbar for adding keywords in the campaign terms view. - Implemented match type change functionality with a confirmation dialog. - Added delete functionality for keywords with confirmation. - Updated styles for new buttons and icons in the campaign terms view. - Enhanced product view with warning icons for product alerts and corresponding modal display. - Updated product table to include a new column for warnings and adjusted column visibility settings. - Documented project overview, code style conventions, suggested commands, and task completion checklist.
This commit is contained in:
26
.serena/memories/project_overview.md
Normal file
26
.serena/memories/project_overview.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# adsPRO - Project Overview
|
||||
|
||||
## Purpose
|
||||
PHP SaaS application for managing Google Ads campaigns, products, and clients. Integrates with Google Ads API, OpenAI, and Claude AI for AI-powered ad optimization. UI language: Polish.
|
||||
|
||||
## Tech Stack
|
||||
- PHP (custom MVC framework, no Composer)
|
||||
- MySQL via Medoo ORM (`global $mdb`)
|
||||
- Frontend: jQuery 3.6, DataTables 2.1, Bootstrap 4, Select2, Highcharts, Font Awesome 6.5
|
||||
- SASS for styles (compiled by VS Code Live Sass Compiler)
|
||||
- Deployment: FTP auto-upload via VS Code FTP-Kr
|
||||
|
||||
## Architecture
|
||||
- Controllers: `autoload/controls/class.*.php` (namespace `\controls`)
|
||||
- Factories: `autoload/factory/class.*.php` (namespace `\factory`)
|
||||
- Views: `autoload/view/class.*.php` (namespace `\view`)
|
||||
- Services: `autoload/services/class.*.php` (namespace `\services`)
|
||||
- Templates: `templates/` (variables via `$this->varName`)
|
||||
- Routing: `index.php`, URL `/module/action/` → `\controls\Module::action()`
|
||||
|
||||
## Entry Points
|
||||
- `index.php` - Main app (routing + auth)
|
||||
- `ajax.php` - AJAX requests (authenticated)
|
||||
- `api.php` - Public API
|
||||
- `cron.php` - Background jobs
|
||||
- `install.php` - Database migration runner
|
||||
9
.serena/memories/style_conventions.md
Normal file
9
.serena/memories/style_conventions.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Code Style & Conventions
|
||||
|
||||
- Spaces inside parentheses: `if ( $x )`, `function( $a, $b )`
|
||||
- Braces on new line for classes/functions
|
||||
- 4-space indent in classes, 2-space in templates
|
||||
- All controller/factory methods: `static public function`
|
||||
- JSON endpoints: `echo json_encode([...]); exit;`
|
||||
- Classes PascalCase, methods/variables/columns snake_case
|
||||
- Commit messages in Polish, prefixed with `feat:`, `fix:`, etc.
|
||||
19
.serena/memories/suggested_commands.md
Normal file
19
.serena/memories/suggested_commands.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Suggested Commands
|
||||
|
||||
## Database Migrations
|
||||
```bash
|
||||
php install.php # Run migrations
|
||||
php install.php --force # Force re-run all
|
||||
```
|
||||
|
||||
## System Utils (Windows/Git Bash)
|
||||
- `git` - version control
|
||||
- `ls` - list files (Git Bash)
|
||||
- `grep` - search (Git Bash)
|
||||
- `find` - find files (Git Bash)
|
||||
|
||||
## No build/test/lint commands
|
||||
- No Composer, no package.json
|
||||
- SASS compiled by VS Code Live Sass Compiler
|
||||
- Deployment via FTP-Kr extension (auto-upload)
|
||||
- No automated test suite
|
||||
7
.serena/memories/task_completion.md
Normal file
7
.serena/memories/task_completion.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Task Completion Checklist
|
||||
|
||||
1. Verify PHP syntax (no parse errors)
|
||||
2. Test in browser if possible
|
||||
3. Check SQL migrations if DB changes needed (add to `migrations/`)
|
||||
4. Files auto-deploy via FTP-Kr on save
|
||||
5. No automated tests to run
|
||||
Reference in New Issue
Block a user