Skip to content

Feat/v2 migration - #39

Merged
rickypid merged 9 commits into
insideapp-srl:mainfrom
rickypid:feat/v2-migration
Oct 21, 2026
Merged

rickypid merged 9 commits into
insideapp-srl:mainfrom
rickypid:feat/v2-migration

Conversation

@rickypid

Copy link
Copy Markdown
Contributor

What does it do?

Describe the technical changes you did.

Why is it needed?

Describe the issue you are solving.

How to test it?

Provide information about the environment and the path to verify the behavior.

Related issues/PRs

Let us know if this is related to any issue/pull request.

rickypid and others added 9 commits March 9, 2026 16:31
…, and updated project schema

**Enhancements**
- Replaced logo assets: removed `logo.svg`, added `flyer-chat-logo-light.svg`.
- Updated iOS `Info.plist` to include microphone usage description.
- Upgraded Docusaurus to `^3.10.2` and refined `docusaurus.config.ts`:
  - Dynamic dark/light theme logo switching.
  - Added `apple-touch-icon`.

**Documentation**
- Updated README to reflect `flutter_chat_core` package migration and `Supabase` setup improvements.
- Linked migration guide for transitioning from 1.x to 2.x.

**Database**
- Removed deprecated schema functions and re-implemented member-based checks using `chats.room_members`.
- Added policies for `room_members` table (`create`, `read`, `delete`).
- Extended support for sending and managing audio messages.
Move the package to flutter_chat_core/flutter_chat_ui 2.x and redesign
the database, keeping a 1.x database migratable with the same scripts.

- Dart API: ChatRoom/ChatUser models, SupabaseChatController as a
  flutter_chat_core ChatController, SupabaseChatRoomsController, injectable
  client, typed exceptions, scoping hooks to keep workspaces apart.
- Telegram-like features: read receipts and unread counts, replies,
  reactions, editing, pinned messages, search, pinned and muted rooms,
  group roles, optimistic sending with retry, voice messages.
- Database: uuid v7 ids, timestamptz dates, room_members, weekly
  partitioned messages, RPCs for room creation and cross-user updates,
  message changes over private Realtime Broadcast channels, typing
  indicator on Broadcast (fixes insideapp-srl#38), stricter RLS, policies and functions
  hardened after the Supabase advisors.
- Migration from 1.x: roles normalized, replies remapped, attachments moved
  to the uuid folders by migrate_storage_uuids.sh/.ps1.
- cleanup-media Edge Function for the files of deleted messages.
- Telegram-like example app, README, MIGRATION, CHANGELOG and docs site
  rewritten; unit, integration and pgTAP tests, verified on a local stack
  and on Supabase cloud (fresh install and 1.x migration).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Load the first and older message pages without animations: animating
  every item broke Flutter's SliverAnimatedList ("AnimationController
  disposed more than once") as soon as another change landed meanwhile
- Example: microphone next to the send button, browser context menu off
  while a room is open, room tile time aligned on the right, swipe to reply
  controller created in initState
- Demo GIF of the example on Supabase cloud in the README and the docs,
  InsideApp footer
- tool/seed_demo.sh seeds a cloud project too (--project-ref)
- CI: run the unit tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps the 2.0.0-rc.1 versions and Docusaurus 3.10.2; adds the 1.6.2 changelog section and the serialize-javascript override from insideapp-srl#36.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rickypid
rickypid marked this pull request as ready for review October 21, 2026 13:51
@rickypid
rickypid merged commit 18921e1 into insideapp-srl:main Oct 21, 2026
1 check passed
@rickypid
rickypid deleted the feat/v2-migration branch October 21, 2026 13:58
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