Skip to content

feat(console): Appwrite push provider behind appwritePush flag - #14532

Merged
ArnabChatterjee20k merged 7 commits into
mainfrom
feat-appwrite-push-provider
Oct 15, 2026
Merged

ArnabChatterjee20k merged 7 commits into
mainfrom
feat-appwrite-push-provider

Conversation

@ArnabChatterjee20k

Copy link
Copy Markdown
Member

What does this PR do?

Ports appwrite/vibes#563 into apps/console and puts it behind a new appwritePush console feature flag (off by default in both profiles; toggle in Debug → Flags → Products).

  • Create wizard: Appwrite push provider with QoS (subscriber choice / 0 / 1) and message expiry.
  • Provider settings: edit QoS and expiry; clearing either sends null so the stored value resets.
  • Shared parsing in src/lib/messaging/appwrite-push.ts; patchMessagingProvider handles appwrite.
  • he / ja translations.

With the flag off, the provider is hidden from the wizard and its settings fields are not rendered.

Test Plan

  • bun test tests/unit/appwrite-push-provider.test.ts (10 pass)
  • Toggle the flag in the Debug menu and check the wizard and provider settings page.

Related PRs and Issues

  • appwrite/vibes#563

🤖 Generated with Claude Code

@luxor-code-review

luxor-code-review Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Review complete. No issues found.


This PR introduces the Appwrite push notification provider across the console: a shared parse/format helper library, a patch builder that distinguishes omitted values from explicit null resets, wizard and provider-settings UI with QoS and expiry inputs, and the supporting flag wiring, icon, translations, and unit tests. Cross-file contracts against the server endpoints (param names, Range(0, 604800) limit, null reset semantics) were verified and hold.

Files Change
apps/console/src/lib/messaging/appwrite-push.ts, patch-messaging-provider.ts New provider option parsing and update-payload builder with explicit-null reset semantics
apps/console/src/components/.../providers/$providerId/View.tsx, create/CreateProviderWizardView.tsx Provider settings and creation wizard UI with QoS select, expiry input, and flag gating
apps/console/src/lib/console-profiles.ts, DebugMenu.tsx, MessagingProviderIcon.tsx appwritePush feature flag wiring and provider icon
apps/console/src/lib/i18n/dictionaries/{he,ja}/project-misc.ts Hebrew and Japanese translations for the new UI strings
apps/console/tests/unit/appwrite-push-provider.test.ts Unit tests for the new parsing helper

Reviewed commit: 4e71d56

@ghost

ghost commented Oct 15, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The incremental changes only improve typing for existing provider options and tests, and introduce no issues needing a fix.

Adds an opt-in Appwrite push provider to the messaging wizard, with QoS and message-expiry controls on creation and provider settings pages. Shared parsing and update dispatch support validation and explicit resets, while the appwritePush flag defaults off; Hebrew and Japanese translations and unit coverage are included.

Latest changes: The newest commits add a shared AppwritePushOptions type for provider option reads and use a local nullable update-argument type in tests to represent reset payloads.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 10
File Change
apps/console/src/components/global/providers/DebugMenu.tsx Adds the Appwrite push product flag to the debug menu.
apps/console/src/components/global/shared/MessagingProviderIcon.tsx Maps Appwrite push providers to their icon.
apps/console/src/components/pages/projects/$projectId/messaging/providers/$providerId/View.tsx Adds feature-gated QoS and expiry settings, typed provider option reads, and update handling.
apps/console/src/components/pages/projects/$projectId/messaging/providers/create/CreateProviderWizardView.tsx Adds the Appwrite push setup flow with QoS and expiry inputs.
apps/console/src/lib/console-profiles.ts Defines the Appwrite push feature flag and disables it by default in both profiles.
apps/console/src/lib/i18n/dictionaries/he/project-misc.ts Adds Hebrew translations for Appwrite push and its settings.
apps/console/src/lib/i18n/dictionaries/ja/project-misc.ts Adds Japanese translations for Appwrite push and its settings.
apps/console/src/lib/messaging/appwrite-push.ts Provides shared QoS and expiry parsing, the seven-day cap, and the Appwrite provider options type.
apps/console/src/lib/messaging/patch-messaging-provider.ts Adds Appwrite provider update dispatch with nullable QoS and expiry handling.
apps/console/tests/unit/appwrite-push-provider.test.ts Tests parsing, update payloads, nullable resets, and the expiry boundary.

Reviewed the commits since dc97440 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Tier A · See the inline comments. Summary

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

@ArnabChatterjee20k
ArnabChatterjee20k merged commit e73faf7 into main Oct 15, 2026
33 checks passed
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.

1 participant