Feature/spa sync from chat 20260224#39
Open
zhiru wants to merge 1 commit into
Open
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
AGENTS.mdto document the SPA sync process fromchat.aireset.com.brtoquepasa, including objectives, checklist, status, and constraints.Environment Configuration Improvements:
src/.env.exampleto provide more secure and developer-friendly defaults:WEBAPIHOST,SIGNING_SECRET,MASTERKEY, and user credentials.MCP_ENABLEDby default and increasedWEBHOOK_TIMEOUTandWEBHOOK_WORKERS.LOGLEVEL,WHATSMEOW_LOGLEVEL,WHATSMEOW_DBLOGLEVEL) toDEBUG.HISTORYSYNCDAYS=1for faster initial sync. [1] [2] [3] [4] [5] [6] [7] [8]API Compatibility and SPA Support:
src/api/api.go:SPAServerHistoryDownloadControllerfor downloading and attaching media from history-sync protocol messages, supporting SPA functionality.Workflow and Notification Cleanup:
Build Process Improvements:
build-debug.batto address Go 1.25 Windows build issues and silence GCC warnings, improving developer experience. [1] [2]Version and Documentation Updates:
README.mdto3.26.0223.1433and updated displayed version accordingly. [1] [2]Most important changes:
SPA Synchronization and API Support
AGENTS.mdand implemented a new controller (SPAServerHistoryDownloadController) to support SPA history media downloads. [1] [2]Environment and Developer Experience
.env.examplewith secure, developer-friendly defaults and improved documentation for easier onboarding and safer local development. [1] [2] [3] [4] [5] [6] [7] [8]Workflow Simplification
Versioning
README.mdto reflect the new release. [1] [2]