Skip to content

Feature/spa sync from chat 20260224#39

Open
zhiru wants to merge 1 commit into
nocodeleaks:developfrom
zhiru:feature/spa-sync-from-chat-20260224
Open

Feature/spa sync from chat 20260224#39
zhiru wants to merge 1 commit into
nocodeleaks:developfrom
zhiru:feature/spa-sync-from-chat-20260224

Conversation

@zhiru
Copy link
Copy Markdown
Contributor

@zhiru zhiru commented Feb 25, 2026

This pull request introduces several significant improvements and updates across the codebase, focusing on enhancing SPA synchronization, environment configuration defaults, API compatibility, and workflow simplification. The changes streamline developer onboarding, improve legacy client support, and clean up notification workflows.

SPA Synchronization and Documentation:

  • Added AGENTS.md to document the SPA sync process from chat.aireset.com.br to quepasa, including objectives, checklist, status, and constraints.

Environment Configuration Improvements:

  • Updated src/.env.example to provide more secure and developer-friendly defaults:
    • Set explicit defaults for WEBAPIHOST, SIGNING_SECRET, MASTERKEY, and user credentials.
    • Enabled MCP_ENABLED by default and increased WEBHOOK_TIMEOUT and WEBHOOK_WORKERS.
    • Set logging levels (LOGLEVEL, WHATSMEOW_LOGLEVEL, WHATSMEOW_DBLOGLEVEL) to DEBUG.
    • Improved migration and app title settings, and set HISTORYSYNCDAYS=1 for faster initial sync. [1] [2] [3] [4] [5] [6] [7] [8]

API Compatibility and SPA Support:

  • Enhanced API route registration in src/api/api.go:
    • Ensured SPA controllers are registered under the API prefix.
    • Added legacy route registration at the root level for backward compatibility with clients using old endpoints.
  • Introduced SPAServerHistoryDownloadController for downloading and attaching media from history-sync protocol messages, supporting SPA functionality.

Workflow and Notification Cleanup:

  • Simplified the Telegram notifications workflow by removing event triggers and handlers for pull requests, issues, and comments, limiting notifications to push, release, and manual dispatch events. [1] [2] [3]

Build Process Improvements:

  • Updated build-debug.bat to address Go 1.25 Windows build issues and silence GCC warnings, improving developer experience. [1] [2]

Version and Documentation Updates:

  • Bumped version in README.md to 3.26.0223.1433 and updated displayed version accordingly. [1] [2]

Most important changes:

SPA Synchronization and API Support

  • Added comprehensive SPA sync documentation in AGENTS.md and implemented a new controller (SPAServerHistoryDownloadController) to support SPA history media downloads. [1] [2]
  • Enhanced API route registration to support both new SPA endpoints and legacy clients, improving backward compatibility.

Environment and Developer Experience

  • Updated .env.example with secure, developer-friendly defaults and improved documentation for easier onboarding and safer local development. [1] [2] [3] [4] [5] [6] [7] [8]
  • Improved Windows build script for Go 1.25 compatibility and reduced build warnings. [1] [2]

Workflow Simplification

  • Removed pull request, issues, and comment notifications from the Telegram workflow to reduce noise and maintenance overhead. [1] [2] [3]

Versioning

  • Updated version references in README.md to reflect the new release. [1] [2]

- Implemented GET /api/server/{token}/messages for retrieving messages with pagination and filtering options.
- Added POST /server/{token}/disable to stop a WhatsApp server instance.
- Added POST /server/{token}/enable to start a WhatsApp server instance.
- Introduced POST /server/{token}/messages/{messageid}/history/download for downloading media from history-sync events.
- Updated command execution endpoint to accept a request body with action and token.
- Enhanced pending messages retrieval with additional filtering options.
- Added new properties for environment settings including branding and login customization options.

fix(webserver): improve SPA serving logic

- Added ServeSPA function to handle serving the frontend application in both development and production modes.
- Implemented reverse proxy for development mode to route requests to the Vite dev server.
- Enhanced static file serving and fallback to index.html for SPA routes.

refactor(whatsapp): extend WhatsappBoolean functionality

- Added ToWhatsappBoolean method to convert WhatsappBooleanExtended to WhatsappBoolean.
Copilot AI review requested due to automatic review settings February 25, 2026 00:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@zhiru zhiru changed the base branch from main to develop February 25, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants