feedback_os_flutter 0.1.2
feedback_os_flutter: ^0.1.2 copied to clipboard
Flutter SDK for integrating FeedbackOS in mobile applications. Collect user feedback, trigger forms, and manage feedback submissions.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.2 - 2026-11-25 #
Added #
- Live notifications over a WebSocket (
GET /v1/sdk/me/stream), gated by the newrealtime.enabledfield in the SDK config (treated as disabled when absent):FeedbackOS.instance.events: a broadcastStream<FeedbackOSEvent>(ReplyReceived,StatusChanged) that survives reconnects.FeedbackOS.instance.unreadCount(ValueListenable<int>), reconciled with the server on every (re)connect and after threads are read.FeedbackOS.instance.isLiveConnected(ValueListenable<bool>).- Lifecycle-aware connection (foreground only), a 45s text ping, and exponential backoff with jitter (1s to 5min; 5min on HTTP 503/401).
- Optional in-app banner (
showInAppNotificationBanner, defaultfalse). Tapping it opens the thread.
- New options:
liveNotifications(defaulttrue),showInAppNotificationBanner(defaultfalse),navigatorKey. SdkRealtimeConfigonSdkConfig.realtime, and a newMyItemsRefreshedthreads event for silent list refreshes.
Changed #
- An open thread now refreshes on live events. The
threadPollingIntervalpolling only runs while the live socket is disconnected or disabled. - Blocs created internally by
openContainer/openThreadDetailare closed when their route is popped.
Removed #
FeedbackOSOptions.baseUrl. The SDK always connects to the FeedbackOS API (the field had no effect in 0.1.1).
Fixed #
- README snippets now match the actual API (
showFeedback(initialType:),FeedbackSubmitStatus,getUnreadCount()returning anint, and theopen*screen helpers).
0.1.1 - 2026-11-08 #
Added #
- Unified Feedback Container (
FeedbackContainerView):- Consolidated community board, roadmap, and user threads into a unified 3-tab segmented interface (
Board|Roadmap|My requests). - Added persistent '+ New request' floating action button to submit feedback from any tab.
- Updated facade methods
openBoard(),openRoadmap(), andopenFeedbackDashboard()to route directly into the container at the appropriate tab, eliminating repetitive route stacking.
- Consolidated community board, roadmap, and user threads into a unified 3-tab segmented interface (
- Modern Design & Theming:
- Centralized typography and styling in
AppStyles(lib/core/theme/styles.dart). - Added cohesive status color system across dots, badges, and steppers (
Open: #8A8F98,Planned: #4DA7FC,In progress: #F1CA4B,Shipped: #26A644,Closed: #62666D). - Refined default dark mode styling and theme tokens for cards, surfaces, and accents.
- Centralized typography and styling in
- Screenshot Attachments & Smart Compression:
- Added screenshot attachment support in feedback form with thumbnail previews and removal (up to 3 images).
- Implemented client-side compression that strictly guarantees file size under 256 KB while preserving native image resolution.
- Integrated presigned upload pipeline to obtain upload reference IDs prior to submitting feedback.
- Real-Time Thread Polling & Discussion Timeline:
- Modernized
ThreadDetailViewwith chat bubble timeline and 4-step progress stepper (Open->Planned->In progress->Shipped). - Added lifecycle-aware short polling for active thread discussions (default 4 seconds, configurable via
threadPollingInterval), pausing when backgrounded and resuming when foregrounded. - Added pull-to-refresh (
RefreshIndicator) onMyFeedbackListView. - Added optimistic local unread badge clearing when opening feedback threads.
- Modernized
Changed #
- Modal Feedback Form:
showFeedbacknow opens as a modern modal bottom sheet (FeedbackFormSheet) with feedback type selection (Report bug/Idea or request) and a dedicated confirmation screen ("Thanks, we got it").- Added
PopScopeand tap-to-dismiss behavior for smooth keyboard dismissal.
- Ownership Verification on Taps:
- Restricted thread detail screen navigation in Board and Roadmap views strictly to items owned by the current user (
item.isMine).
- Restricted thread detail screen navigation in Board and Roadmap views strictly to items owned by the current user (
- Configuration & Facade Cleanup:
- Simplified
FeedbackOSOptionswithconstconstructor, removing redundant environment URL boilerplate. - Streamlined
FeedbackOS.instancesurface, keeping public APIs focused on headless functions and direct UI invocations.
- Simplified
Fixed #
- Fixed bug where "New reply" badge persisted on
MyFeedbackListViewafter viewing the thread. - Fixed repetitive route stacking loops between
RoadmapViewandBoardView. - Fixed null exception on status color getters when resolving colors from stale theme instances.
0.1.0 - 2026-10-14 #
Added #
- Core SDK Infrastructure:
FeedbackOS.instancefacade with thread-safe lifecycle and configuration caching.- Secure persistent device UUIDv4 generation via
flutter_secure_storagewith in-memory test fallbacks. - Device and app metadata collection (
device_info_plus,package_info_plus). - Standardized error envelope handling (
invalid_request,unauthorized,rate_limited,upload_not_found, etc.).
- Feedback & Identity:
- Developer-triggered dialog form (
showFeedback) supporting bug reports and feature requests. - Programmatic submission API (
submitFeedback) returning typed statuses (sent,queued,failed). - Identity management (
identify,clearIdentity) with queue snapshot serialization.
- Developer-triggered dialog form (
- Durable Offline Queue:
- SQLite persistent queue (
sqflite) persisting submissions before network delivery. - Exponential backoff with jitter and
Retry-Afterheader respect. - Mutex-protected serialized sync triggers on app lifecycle resume and connectivity restoration.
- SQLite persistent queue (
- Screenshots & Attachments:
- Presigned direct-to-storage upload pipeline (
POST /v1/sdk/uploadsreservation -> directPUTto R2). - Strict client-side validation against MIME types and config size limits.
- Expired upload renewal during offline queue replay.
- Presigned direct-to-storage upload pipeline (
- Community Board & Product Roadmap:
- Typed endpoints for
GET /v1/sdk/board,POST /v1/sdk/items/{id}/vote, andDELETE /v1/sdk/items/{id}/vote. BoardViewandRoadmapViewpresentation widgets with BLoC state management (BoardBloc).GET /v1/sdk/roadmapcategorized by Planned, In Progress, and Shipped.
- Typed endpoints for
- Feedback Threads & Discussions:
- Typed endpoints for
GET /v1/sdk/me/unread,GET /v1/sdk/me/items,GET /v1/sdk/me/items/{id},POST /v1/sdk/me/items/{id}/replies, andPOST /v1/sdk/me/items/{id}/read. MyFeedbackListViewandThreadDetailViewpresentation widgets withThreadsBloc.
- Typed endpoints for
- Example App:
- Comprehensive Flutter example application built with
go_routerand BLoC demonstrating full feature set.
- Comprehensive Flutter example application built with