feat: add evolution-go provider support + design-system UI refactor#26
Open
nickoliveira23 wants to merge 3 commits intoEvolutionAPI:developfrom
Open
feat: add evolution-go provider support + design-system UI refactor#26nickoliveira23 wants to merge 3 commits intoEvolutionAPI:developfrom
nickoliveira23 wants to merge 3 commits intoEvolutionAPI:developfrom
Conversation
Introduce a provider abstraction (api | go) so the manager can talk to either evolution-api or evolution-go backends, selected at login time. - Provider selector on Login page persisted via localStorage - Auth verification split per provider (api: /verify-creds, go: /server/ok) - Fixed axios interceptor to use headers.has() instead of property access, preventing explicit apikey headers from being silently overwritten - Dispatcher pattern in src/lib/queries/* that routes each hook to the matching implementation under src/lib/queries/go/ when provider=go - GO adapters for instance (list, info, create, connect, pair, restart, logout, delete, advanced-settings), proxy, and webhook, including shape translation between GO responses and v2's Instance/Settings types - Feature-flag table (src/lib/provider/features.ts) + ProtectedRoute gating; sidebar/router hide modules unavailable on GO (Chat, Websocket, RabbitMQ, SQS, all API-exclusive integrations) - Dedicated GO UI: GoNewInstance (name + optional token UUID + proxy), GoQrCodeModal (base64 image + polling + pairing code input), GoSendMessageModal (/send/text) - Webhook page adapted: GO-specific event list (14 events incl. SEND_MESSAGE), byEvents/base64 hidden, enabled toggle hidden - Proxy page adapted: enabled toggle hidden; host+port presence drives save vs delete - Dashboard list polls every 5s for GO (matches go-manager UX) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Migrate to Tailwind v4 and the @evoapi/design-system package, adopting the evo-crm-community identity across layout, sidebar, dashboard, chat, and instance screens. Adds IntegrationGuard fallbacks for disabled backend features, local forwardRef wrappers (Dialog/Input/Textarea) to bypass design-system ref warnings, and skip-4xx retry logic in React Query. Completes i18n coverage for chat dates, Go-specific modals (send message, QR code, new instance), data-table placeholders, and header/sidebar labels across pt-BR, en-US, es-ES, fr-FR.
There was a problem hiding this comment.
Sorry @nickoliveira23, your pull request is larger than the review limit of 150000 diff characters
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.
Summary
Two related changes that together let the manager talk to either
evolution-apiorevolution-gowhile modernizing the UI:1. Evolution-go provider support (b0cb59a)
api|go) selected at login, persisted in localStorage.api → /verify-creds,go → /server/ok.src/lib/queries/*routes each hook tosrc/lib/queries/go/when the active provider isgo. GO adapters cover instance (list/info/create/connect/pair/restart/logout/delete/advanced-settings), proxy, and webhook, with shape translation between GO responses and v2'sInstance/Settingstypes.src/lib/provider/features.ts) +ProtectedRoutegating; sidebar and router hide modules GO doesn't support (Chat, Websocket, RabbitMQ, SQS, API-exclusive integrations).GoNewInstance(name + optional token UUID + proxy),GoQrCodeModal(base64 image + polling + pairing-code input),GoSendMessageModal(/send/text).SEND_MESSAGE);byEvents/base64/enabledtoggles hidden.enabledhidden; host+port presence drives save vs delete.headers.has()so explicitapikeyheaders aren't silently overwritten.2. UI/UX refactor with @evoapi/design-system (6ef1fe3)
@evoapi/design-system, adopting the evo-crm-community identity across layout, sidebar, dashboard, chat, and instance screens.IntegrationGuardfallbacks for disabled backend features.forwardRefwrappers (Dialog/Input/Textarea) to bypass design-system ref warnings.3. Chore (bb4cdfd)
pnpm-lock.yaml,yarn.lock,bun.lockb); project stays on npm.Test plan
apiprovider → existing flows unchanged (instance CRUD, chat, integrations, webhook, websocket, rabbitmq, sqs).goprovider → only GO-supported modules visible in sidebar./send/text.