Skip to content

feat: implement supporting web chat - #95

Merged
ThinhKimVo merged 10 commits into
masterfrom
integrate-web-chat-proj
May 20, 2026
Merged

ThinhKimVo merged 10 commits into
masterfrom
integrate-web-chat-proj

Conversation

@ThinhKimVo

Copy link
Copy Markdown
Contributor

No description provided.

@ThinhKimVo ThinhKimVo changed the title Integrate web chat proj feat: implement supporting web chat Apr 16, 2026
@ThinhKimVo

ThinhKimVo commented Apr 16, 2026 •

Copy link
Copy Markdown
Contributor Author

web-expo:

Screenshot 2026-04-16 at 11 42 55

vite:

Screenshot 2026-04-22 at 10 59 16

@ThinhKimVo
ThinhKimVo force-pushed the integrate-web-chat-proj branch 5 times, most recently from 0517660 to c48787a Compare April 21, 2026 06:58
danhmaisgt
danhmaisgt previously approved these changes Apr 21, 2026
@danhmaisgt
danhmaisgt dismissed their stale review April 22, 2026 03:43

There is new commits, i need to re-check

@ThinhKimVo
ThinhKimVo force-pushed the integrate-web-chat-proj branch from 2dd46ef to 223443d Compare April 22, 2026 04:57
@ThinhKimVo

Copy link
Copy Markdown
Contributor Author
Screenshot 2026-04-22 at 17 34 32

@ThinhKimVo
ThinhKimVo force-pushed the integrate-web-chat-proj branch from 27c70a4 to c21932e Compare April 23, 2026 03:27
ThinhKimVo and others added 5 commits April 24, 2026 10:50
- Add web entry point (src/web.ts) with React web chat components
- Add WebChatProvider, ChatScreen, ChatList, MessageInput, ChatHeader,
  ChatNewModal, UserAvatar, TypingIndicator, ConnectionStatus components
- Add web services: firebase (web SDK), chat, user
- Add web hooks: useChat, useMessages, useTyping, useChatSelector, useDebounce
- Add web addons: fileUpload, gallery
- Fix CSS import paths for ChatScreen.css in ChatScreen and ChatList
- Fix ButtonMaterialIcon to use material-icons class and font
- Fix ChatProvider to not pass undefined avatar to Firestore
- Fix ChatService to only write initiator's user document (not partner's)
- Fix tsconfig.build.json to emit declarations to lib/typescript correctly
- Update package.json exports with ./web and ./web/styles.css entries
- Update prepare script to use root tsc for declaration generation
- Add example App.web.tsx and example/src/web/ for web demo
- Remove camera addon from RN src (moved to web/addons/camera)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add .d.ts files for shared package types used by the web build
(constants, encryption, and domain types).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Move example/ → apps/example/ and add new apps/web-vite/ Vite demo
- Update pnpm-workspace.yaml to use apps/* glob
- Update root package.json scripts to reference apps/example
- Update typecheck:example script path in rn-firebase-chat package.json
- Fix apps/example/tsconfig.json path depth for packages/
- Add web-only installation docs and Vite config guide to README
- Fix useFileUpload.ts importing from wrong Firebase service path

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…depth

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Create @saigontechnology/chat-storage-providers workspace package with
Cloudinary, Firebase (RN), and Web Firebase storage implementations.
Remove the built-in storage helpers from rn-firebase-chat; consumers
now inject a provider via ChatProvider/WebChatProvider.

Wire example apps (RN, Expo web, Vite web) to the new package and move
Cloudinary credentials out of source into .env (gitignored), with
placeholders in .env.example.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ThinhKimVo
ThinhKimVo force-pushed the integrate-web-chat-proj branch 6 times, most recently from f4c4585 to f6c2f98 Compare April 24, 2026 09:27
@ledutu2

ledutu2 commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

素晴らしい

@ThinhKimVo ThinhKimVo self-assigned this Apr 24, 2026
@ThinhKimVo
ThinhKimVo force-pushed the integrate-web-chat-proj branch 3 times, most recently from 0424094 to b29318b Compare April 25, 2026 08:01
@ThinhKimVo
ThinhKimVo force-pushed the integrate-web-chat-proj branch from b29318b to a40cc46 Compare April 25, 2026 08:04
- Add bundledDependencies for shared and storage-providers in both published packages
- Add firebase.json with Firestore rules and indexes paths
- Update firestore.indexes.json to v2 API format
- Add Firebase deployment and npm publishing docs to README
- Remove unused randomcolor dependency
- Downgrade react-native-worklets to 0.7.0
- Replace SafeAreaView with View in ChatScreen
- Add *.tgz to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ThinhKimVo
ThinhKimVo force-pushed the integrate-web-chat-proj branch from 85e7f2b to 976dac6 Compare May 4, 2026 07:45
@ThinhKimVo

Copy link
Copy Markdown
Contributor Author

passed on legacy apps

Screen.Recording.2026-05-04.at.14.46.17.mov

… fetching ran in two independent useEffect hooks
Comment thread packages/storage-providers/package.json
hoangSTS and others added 2 commits May 18, 2026 13:20
* chore: update example app setup and dependencies

- Add a detailed Getting Started guide for the mobile example app in `apps/example/GETTING_STARTED.md`.
- Update `README.md` to include instructions for running the example app.
- Modify `package.json` in the example app to include a prebuild script.
- Upgrade `react-native-worklets` to version 0.8.1 and adjust related dependencies in `pnpm-lock.yaml`.
- Fix paths in `Podfile.lock` for `react-native-aes-crypto` to ensure correct linking.
- Update iOS `Info.plist` for consistency and clarity.

* chore: fix typescript config for eslint

* docs: update README and add Getting Started guide for web example app

- Change section title in README from "Running the Example App" to "Running the Example Apps" and specify mobile and web instructions.
- Add a new Getting Started guide for the Vite + React web example app in `apps/web-vite/GETTING_STARTED.md`, detailing prerequisites, installation, configuration, and usage instructions.

* fix: firestore update user looping
@ledutu2

ledutu2 commented May 20, 2026

Copy link
Copy Markdown
Contributor

LGTM

@ledutu2

ledutu2 commented May 20, 2026

Copy link
Copy Markdown
Contributor

I cannot review more

@ThinhKimVo
ThinhKimVo merged commit 5aedfdc into master May 20, 2026
3 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.

5 participants