{"id":48746722,"url":"https://github.com/minhtrung0110/wp-test-tool","last_synced_at":"2026-04-16T08:03:25.336Z","repository":{"id":350830251,"uuid":"1208032988","full_name":"minhtrung0110/wp-test-tool","owner":"minhtrung0110","description":"WP Test Tool - Modern desktop application for WordPress testing \u0026 management built with Electron 34, React 19, Tailwind CSS v4 and TypeScript","archived":false,"fork":false,"pushed_at":"2026-04-12T10:33:09.000Z","size":4237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T11:13:33.344Z","etag":null,"topics":["ai","ai-agents","app-desktop","claude-code","claude-skills","design","electron","electron-app","electron-vite-react","stitch","testing","tool","vide-coding"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minhtrung0110.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-11T18:18:44.000Z","updated_at":"2026-04-12T10:33:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/minhtrung0110/wp-test-tool","commit_stats":null,"previous_names":["minhtrung0110/wp-test-tool"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/minhtrung0110/wp-test-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhtrung0110%2Fwp-test-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhtrung0110%2Fwp-test-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhtrung0110%2Fwp-test-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhtrung0110%2Fwp-test-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minhtrung0110","download_url":"https://codeload.github.com/minhtrung0110/wp-test-tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhtrung0110%2Fwp-test-tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31876852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-agents","app-desktop","claude-code","claude-skills","design","electron","electron-app","electron-vite-react","stitch","testing","tool","vide-coding"],"created_at":"2026-04-12T12:04:51.785Z","updated_at":"2026-04-16T08:03:25.330Z","avatar_url":"https://github.com/minhtrung0110.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"assets/icon.png\" alt=\"WP Test Tool\" width=\"88\" /\u003e\n\n# WP Test Tool\n\n**A desktop app for WordPress developers to verify CSS \u0026 layout changes across all pages after every merge — without touching a browser.**\n\n[![Release](https://img.shields.io/github/v/release/minhtrung0110/wp-test-tool?style=flat-square\u0026color=4d8ef5\u0026label=release)](https://github.com/minhtrung0110/wp-test-tool/releases)\n[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey?style=flat-square)](https://github.com/minhtrung0110/wp-test-tool/releases)\n[![Electron](https://img.shields.io/badge/Electron-34-47848f?style=flat-square\u0026logo=electron\u0026logoColor=white)](https://www.electronjs.org/)\n[![React](https://img.shields.io/badge/React-19-61dafb?style=flat-square\u0026logo=react\u0026logoColor=white)](https://react.dev/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.8-3178c6?style=flat-square\u0026logo=typescript\u0026logoColor=white)](https://www.typescriptlang.org/)\n[![License](https://img.shields.io/github/license/minhtrung0110/wp-test-tool?style=flat-square)](LICENSE)\n\n\u003c/div\u003e\n\n---\n\n## Overview\n\nAfter merging CSS or layout changes to a WordPress project, manually opening each page in a browser to check for regressions is slow and error-prone. **WP Test Tool** gives you a focused, keyboard-friendly workspace: maintain a curated list of test pages, preview them in an embedded browser at any viewport width, take screenshots, write notes on issues found, and export a full test report — all from a single window.\n\n---\n\n## Features\n\n| Feature                    | Description                                                                   |\n| -------------------------- | ----------------------------------------------------------------------------- |\n| **Multi-viewport Preview** | Switch instantly between Desktop, Tablet (768 px), and Mobile (375 px)        |\n| **Page Management**        | Add, edit, and delete pages with title, slug, and category                    |\n| **Category Filtering**     | Pill-style category tabs to focus on one section at a time                    |\n| **404 / HTTP Checker**     | HEAD-checks every page URL and flags non-2xx responses in the sidebar         |\n| **Screenshot Capture**     | `capturePage()` saves PNGs locally; thumbnail gallery in the bottom panel     |\n| **Per-page Notes**         | Write error notes per page (Ctrl+Enter to save); auto-marks the page as Error |\n| **Progress Tracking**      | Live progress bar showing Tested / Error / Untested counts                    |\n| **Import / Export**        | Import a JSON page list; export to JSON or a formatted `.txt` report          |\n| **Theme Support**          | Light, dark, and system-aware themes — persisted across sessions              |\n| **Domain Management**      | Set a base domain once; all slugs are resolved against it automatically       |\n| **Keyboard Shortcuts**     | `Ctrl+N` new page · `Ctrl+R` reload · `Ctrl+Enter` save note                  |\n\n---\n\n## Installation\n\nDownload the latest installer for your platform from the [**Releases**](https://github.com/minhtrung0110/wp-test-tool/releases) page.\n\n| Platform | Installer                      |\n| -------- | ------------------------------ |\n| Windows  | `WP.Test.Tool-Setup-1.0.4.exe` |\n| macOS    | `WP.Test.Tool-1.0.4.dmg`       |\n| Linux    | `WP.Test.Tool-1.0.4.AppImage`  |\n\n\u003e **macOS note:** The app is not notarized. Right-click → **Open** to bypass Gatekeeper on first launch, or run:\n\u003e\n\u003e ```sh\n\u003e xattr -cr \"/Applications/WP Test Tool.app\"\n\u003e ```\n\n\u003e **Linux note:** Make the AppImage executable before running:\n\u003e\n\u003e ```sh\n\u003e chmod +x WP.Test.Tool-*.AppImage\n\u003e ```\n\n---\n\n## Tech Stack\n\n| Layer         | Library                                                                                            |\n| ------------- | -------------------------------------------------------------------------------------------------- |\n| Shell         | [Electron 34](https://www.electronjs.org/)                                                         |\n| UI Framework  | [React 19](https://react.dev/)                                                                     |\n| Language      | [TypeScript 5.8](https://www.typescriptlang.org/) — strict mode                                    |\n| Styling       | [Tailwind CSS v4](https://tailwindcss.com/)                                                        |\n| State         | [Zustand 5](https://zustand-demo.pmnd.rs/)                                                         |\n| Persistence   | [electron-store 8](https://github.com/sindresorhus/electron-store)                                 |\n| UI Primitives | [Radix UI](https://www.radix-ui.com/)                                                              |\n| Notifications | [Sonner](https://sonner.emilkowal.ski/)                                                            |\n| Icons         | [Lucide React](https://lucide.dev/)                                                                |\n| Build         | [electron-vite 5](https://electron-vite.org/) + [electron-builder 25](https://www.electron.build/) |\n\n---\n\n## Development\n\n### Prerequisites\n\n- Node.js ≥ 20\n- npm ≥ 10\n\n### Getting Started\n\n```sh\ngit clone https://github.com/minhtrung0110/wp-test-tool.git\ncd wp-test-tool\nnpm install\nnpm run dev\n```\n\n### Scripts\n\n```sh\nnpm run dev          # Development server with hot reload\nnpm run typecheck    # TypeScript check across all three tsconfigs\nnpm run lint         # ESLint\nnpm run format       # Prettier\nnpm run build        # Production build (electron-vite)\nnpm run build:win    # Windows NSIS installer  →  dist/\nnpm run build:mac    # macOS DMG               →  dist/\nnpm run build:linux  # Linux AppImage          →  dist/\n```\n\n---\n\n## Architecture\n\n```\nsrc/\n├── main/                   Electron main process (Node.js)\n│   ├── index.ts            Window lifecycle, splash screen, WebContentsView\n│   ├── ipc.ts              IPC handlers + layout constants\n│   └── store.ts            electron-store initialization\n├── preload/\n│   └── index.ts            Context bridge — exposes window.api to the renderer\n└── renderer/\n    ├── splash-main.tsx     Loading screen entry point\n    └── src/\n        ├── App.tsx         Root layout (Header · Sidebar · Toolbar · Preview · BottomPanel)\n        ├── store/index.ts  Zustand store — all runtime state\n        ├── index.css       Tailwind v4 @theme tokens + dark mode overrides\n        └── components/\n            ├── Sidebar.tsx                Page list, progress bar, category pills\n            ├── WebviewToolbar.tsx         URL bar, viewport switcher, screenshot button\n            ├── BottomPanel.tsx            Notes \u0026 screenshot tabs\n            ├── AddPageModal.tsx           Add / edit page dialog\n            ├── ManageCategoriesModal.tsx  Category CRUD dialog\n            ├── ThemeSelectionModal.tsx    First-launch theme picker\n            ├── LoadingScreen.tsx          Splash screen UI\n            └── ConfirmDialog.tsx          Generic confirm dialog\n```\n\n### Key Patterns\n\n- **IPC-only Node access** — the renderer has no direct Node.js access; all privileged operations go through `window.api.*` defined in the context bridge.\n- **WebContentsView overlay** — the live preview is a native `WebContentsView` (not the deprecated `\u003cwebview\u003e` tag) positioned by the main process above the HTML layer, enabling true browser rendering.\n- **Dual-layer viewport visual** — in Tablet/Mobile mode the renderer shows distinct gutter areas alongside the native overlay, giving immediate visual confirmation of the active viewport width.\n- **Two-gate splash** — the main window only appears after _both_ the minimum splash duration (2 s) and the renderer's `app-ready` IPC signal are satisfied.\n\n---\n\n## Releasing\n\nCreate and push a semver tag to trigger the GitHub Actions release workflow, which builds installers for all three platforms in parallel and publishes them to a GitHub Release automatically:\n\n```sh\ngit tag v1.0.0\ngit push origin v1.0.0\n```\n\n---\n\n## Author\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/minhtrung0110\"\u003e\n        \u003cimg src=\"https://github.com/minhtrung0110.png\" width=\"80\" alt=\"Nguyen Duc Minh Trung\" /\u003e\u003cbr /\u003e\u003cbr /\u003e\n        \u003cstrong\u003eNguyen Duc Minh Trung\u003c/strong\u003e\n      \u003c/a\u003e\u003cbr /\u003e\n      \u003ca href=\"mailto:minhtrung4367@gmail.com\"\u003eminhtrung4367@gmail.com\u003c/a\u003e\u003cbr /\u003e\n      \u003ca href=\"https://github.com/minhtrung0110\"\u003e@minhtrung0110\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\nMade with ♥ for the WordPress developer community\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhtrung0110%2Fwp-test-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminhtrung0110%2Fwp-test-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhtrung0110%2Fwp-test-tool/lists"}