Skip to content

Conversation

@SajeeTechi
Copy link
Contributor

@SajeeTechi SajeeTechi commented Dec 19, 2025

"plugins": [
      {
        "name": "Offoard",
        "icon": "https://assets.citizenwallet.xyz/wallet-config/_images/bread2.png",
        "url": "https://my.citizenwallet.xyz/onramp",
        "launch_mode": "webview",
        "signature": true,
        "action": "offboard",
        "meta": {
          "title": "Offoard title",
          "desc": "Offoard description",
          "button":"Offoard button"
        }
      }
    ],

Introduces the `EventServiceState.closed` state to manage permanent connection termination scenarios, preventing unnecessary reconnection attempts.

Key Changes:
* **Events Service (`events.dart`):**
    * Adds `EventServiceState.closed` to the enum.
    * Modifies the connection error handling (`connect`) to check for a `WebSocketException` containing "404". If a 404 is detected, the service transitions to `closed` state and aborts reconnection.
* **Wallet Logic (`logic.dart`):**
    * Adds a check in `handleInitialLoad` to immediately transition to `EventServiceState.closed` if the loaded `communityConfig.community.hidden` flag is true, preventing the service from attempting to connect to a hidden community.
* **UI Cleanup (`screen.dart`):**
    * Removes unused state variable `eventServiceIntentionalDisconnect`.
    * Updates logic to calculate `isClosed` based on the new state.
- Enhanced Drag-to-Dismiss Experience
- Responsive Dragging
- Smooth Snap-Back/Dismissal:
- Reduced Dismissal Threshold:
- Layout Fix
@SajeeTechi SajeeTechi requested a review from kevtechi December 19, 2025 09:37
@SajeeTechi SajeeTechi self-assigned this Dec 19, 2025
…nner text

- Add optional 'meta' field to PluginConfig class to store custom metadata
- Update CommunityClosedBanner to accept PluginConfig and use meta values
- Support custom title, description, and button text from plugin meta
- Refactor banner layout for improved centering and visual hierarchy
- Remove Stack-based layout in favor of cleaner Column structure
- Add SingleChildScrollView for better overflow handling
- Fall back to localized text when meta values are not provided

This enables communities to customize the closed banner messaging
through the offboard plugin configuration without code changes.
Add new offboard plugin to wallet.pay.brussels community configuration to enable users to migrate their balance to the Citizen Pay App. The plugin launches a webview to the migration page with appropriate metadata including title, description, and button text.
@SajeeTechi SajeeTechi merged commit 12de9b2 into release/2.0.31 Jan 6, 2026
1 check failed
@SajeeTechi SajeeTechi deleted the feat/community-closed-message branch January 8, 2026 04:19
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