Commit Graph

262 Commits

Author SHA1 Message Date
Jeremy Kahn
d4213cec13 chore(deps): use trystero@0.20 2024-07-27 12:34:48 -05:00
Jeremy Kahn
dc78137702 refactor(shell): move theme definition to its own file 2024-06-10 08:29:00 -05:00
Jeremy Kahn
56dbbf2665 fix(media): [closes #311] don't attempt to render unsupported media 2024-06-08 11:20:07 -05:00
Jeremy Kahn
ff03190bf5 feat(config): use expressturn TURN server 2024-06-07 08:33:34 -05:00
Jeremy Kahn
a8dff459f3 feat(file-sharing): [closes #308] scale shared images to fit 2024-06-05 08:10:27 -05:00
Jeremy Kahn
677b13f47c feat(closes #274): add private room password visibility toggle 2024-05-28 08:11:44 -05:00
Jeremy Kahn
3b24c5275d feat(#274): add back button to password prompt 2024-05-28 08:11:44 -05:00
Jeremy Kahn
6c434f84ab
refactor(styling): Remove Tailwind (#253)
* refactor(css): replace Tailwind classes with MUI sx
* chore(deps): remove classnames
* refactor(css): inline link baseline style
* feat(css): use modern-normalize
* chore(deps): remove tailwind
* refactor(css): inline all Sass files
* chore(deps): remove sass
2024-04-09 20:54:41 -05:00
Jeremy Kahn
7556d491f3 chore(deps): update prettier 2024-04-07 16:59:49 -05:00
Jeremy Kahn
05b4615af9
feat(audio) [closes #230] Screenshare audio control (#248)
* feat(ui): present mic volume icon

* feat(ui): improve mic volume display

* refactor(ui): nest mic audio as a channel

* fix(ui): prevent volume control from reappearing for returning peers

* refactor(audio): update specific audio channel states

* refactor(audio): use enum for audio channel name

* refactor(types): improve audio type names

* feat(audio): wire up screen share audio

* refactor(networking): always provide stream metadata

* fix(audio): remove screen audio when stream ends

* fix(audio): stop audio when removing it

* feat(audio): show appropriate icon for channel

* fix(audio): clean up audio for leaving peers consistently

* fix(audio): use up-to-date peerAudios reference

* refactor(audio): simplify audio state updating

* refactor(audio): use functional setState to update peer list

* refactor(variables): rename peerAudios to peerAudioChannels

* refactor(types): consolidate stream types

* refactor(types): require stream type metadata
2024-04-01 21:25:12 -05:00
Sinisha
89abe718db
chore(networking): update TURN server credentials (#246)
updated server IP address
2024-04-01 17:24:25 -05:00
Jeremy Kahn
d81e930da6 chore(deps): upgrade to Trystero@0.18.0 2024-03-14 21:35:51 -05:00
Jeremy Kahn
ea34058fa7
chore: Migrate from Create React App to Vite (#231)
* chore(vite): use vite

* fix(vite): alias lib directory

* chore(vite): set type: module

* chore: update vite and MUI

* fix(vite): make MUI components load

* fix: use node path resolution

* chore(vite): add svg support

* fix(vite): polyfill global

* fix(vite): use import.meta

* fix(vite): use correct svg module resolution

* chore(vite): migrate to vitest

* fix(vite): remove PUBLIC_URL

* fix(tests): mock audio service

* chore(deps): upgrade to react test library 14

* refactor(tests): simplify room test setup

* refactor(tests): make Date.now() mockable

* refactor(vite): remove bootstrap shim

* chore(deps): drop react-scripts

* chore(deps): remove source-map-explorer

Source maps do not currently work with MUI and Vite:
https://github.com/vitejs/vite/issues/15012

Because of this, source map utilities are currently removed.

* refactor(vite): use TypeScript for Vite config

* chore(actions): update actions config for new paths

* fix(service-worker): use VITE_HOMEPAGE for service worker resolution

* fix(vercel): use quotes for build command

* fix(vite): use import.meta.env.MODE

* fix(service-worker): use correct definition for publicUrl

* feat(vite): use vite-plugin-pwa

* fix(pwa): make update prompt work

* fix(types): use vite/client types

* docs(readme): update building instructions

* refactor(vite): simplify theme loading workaround

* refactor(vite): use manifest object

* docs(readme): update tool references

* chore(deps): run `npm audit fix`

* fix(vite): make syntax highlighter work consistently

See: https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/513

* fix(pwa): remove manifest.json references

* refactor(deps): remove jest references

* refactor(types): remove react-scripts reference

* chore(deps): use TypeScript 5

* refactor(tests): improve persisted storage mocking
2024-03-12 21:44:43 -05:00
Jeremy Kahn
94a4b2fb2e
refactor(services): Standardize services and lib organization (#226)
* refactor(Notification): use instance methods
* refactor(Audio): move to lib layer
* refactor(EncryptionService): rename instance to encryption
* refactor(ConnectionTest): move to lib
* refactor(FileTransfer): move to lib
* refactor(PeerRoom): move to lib
* refactor(sleep): move to lib
* refactor(type-guards): move to lib
* refactor(SerializationService): use standard instance name
* refactor(SettingsService): use standard instance name
2024-01-28 20:46:59 -06:00
Jeremy Kahn
d546fef71c
fix(service-worker): Install service worker correctly (#222)
* fix(service-worker): register service worker immediately
2023-12-11 19:27:19 -06:00
Jeremy Kahn
d697aa0482
feat(performance): Show loading indicator while app loads (#221)
* feat(performance): lazy-load bootstrap
2023-12-11 17:19:31 -06:00
Jeremy Kahn
e962c403a5
feat(profile) [closes #219] Import and export user profile (#220)
* feat(profile): implement profile export
* feat(profile): load user-selected file
* feat(profile): import loaded profile
* feat(profile): validate public/private keys
* refactor(settings): remove unnecessary theme functions
* refactor(settings): use theme hook
* feat(settings): show error alert if profile export fails
2023-12-10 19:43:32 -06:00
Jeremy Kahn
15142f9328
fix(ui): [fixes #217] Give volume slider full width of peer list (#218)
* fix(ui): give volume slider full width of peer list
* refactor(PeerListItem): improve variable name
2023-12-09 20:04:44 -06:00
Jeremy Kahn
6cbfaacf1a
feat(verification): [closes #209] Verified peers (#216)
* refactor(bootstrap): add BootstrapShim
* feat(security): [#209] generate public/private keys
* refactor(encryption): move encryption utils to a service
* feat(encryption): [wip] implement convertCryptoKeyToString
* fix(user-settings): serialize crypto keys to strings
* feat(user-settings): deserialize user settings from IndexedDB
* feat(user-settings): upgrade persisted settings on boot
* feat(user-settings): automatically migrate persisted user settings
* refactor(encryption): simplify CryptoKey stringification
* refactor(encryption): DRY up EncryptionService
* feat(verification): send public key to new peers
* refactor(encryption): use class instance
* refactor(serialization): use class instance
* refactor(verification): [wip] create usePeerVerification hook
* feat(verification): encrypt verification token
* feat(verification): send encrypted token to peer
* feat(verification): verify peer
* refactor(verification): use enum for verification state
* feat(verification): expire verification requests
* fix(updatePeer): update with fresh state data
* feat(verification): display verification state
* refactor(usePeerVerification): store verification timer in Peer
* feat(verification): present tooltips explaining verification state
* feat(ui): show full page loading indicator
* feat(init): present bootup failure reasons
* refactor(init): move init to its own file
* feat(verification): show errors upon verification failure
* refactor(verification): move workaround to usePeerVerification
* feat(verification): present peer public keys
* refactor(verification): move peer public key rendering to its own component
* refactor(verification): only pass publicKey into renderer
* feat(verification): show user's own public key
* refactor(naming): rename Username to UserInfo
* refactor(loading): encapsulate height styling
* feat(verification): improve user messaging
* refactor(style): improve formatting and variable names
* feat(verification): add user info tooltip
* docs(verification): explain verification
2023-12-09 17:47:05 -06:00
Jeremy Kahn
826f53fb45 feat(ui): show full room name in tooltip 2023-11-23 15:26:32 -06:00
Jeremy Kahn
b9ec16ad4d feat(ui): show divider in app bar 2023-11-23 15:26:32 -06:00
Jeremy Kahn
35e0b88cbe fix(sdk): prevent lack of parent domain from throwing error 2023-11-23 15:14:55 -06:00
Jeremy Kahn
7bceba5acb
feat(ui) [closes #160] Move transcript scrollbar to content window edge (#212)
* feat(ui): [closes #160] move transcript scrollbar to edge of container
* feat(ui): prevent controls from obscuring transcript
* feat(ui): hide unnecessary hide controls button
2023-11-23 12:26:07 -06:00
Jeremy Kahn
1cf4b50ac2 chore(deps): use trystero@0.15.0 2023-11-20 19:07:36 -06:00
Jeremy Kahn
3a97ee2cbf
feat(audio) [closes #180] Mute own screen stream (#200)
* refactor: remove redundant function calls

* feat(video): [closes #180] mute self screen stream audio
2023-11-04 00:54:59 -05:00
Jeremy Kahn
54f7b2dd93
fix(deps): [fixes #185] Upgrade vulnerable versions and remove ipfs-core (#193)
* fix(deps): omit ipfs-core
* fix(deps): use @svgr/plugin-svgo/nth-check@2.0.1
* fix(deps): use resolve-url-loader/postcss@8.4.31
* chore(deps): rebuild package-lock.json
* chore(actions): update actions
2023-10-29 14:49:49 -05:00
Jeremy Kahn
b9b452167b feat(sdk): improve embedding instructions 2023-10-28 17:49:58 -05:00
Jeremy Kahn
f6a3e30da2
feat(sdk): Implement Chitchatter SDK (#183)
* feat(sdk): render iframe in chat-room component
* fix(ci): install optional dependencies
* feat(sdk): allow subset of attributes
* feat(sdk): accept root-domain attribute
* feat(sdk): accept custom room name or use sane default
* feat(sdk): set allowed features
* feat(sdk): add sdk instructions to embed code dialog
* fix(sdk): use dynamic rootUrl
* fix(sdk): use static defaultRoot
* feat(sdk): send config from SDK to chat
* fix(sdk): expire poller
* fix(sdk): pass parent domain to iframe via query param
* refactor(sdk): type message event data
* feat(sdk): send user id to chat frame
* feat(sdk): handle some attribute updates
* chore(package): add build:sdk:watch script
* refactor(sdk): move more code to updateIframeAttributes
* feat(sdk): support changing rooms
* feat(sdk): support more user settings
* docs(sdk): add SDK section to README
* feat(sdk): render root-url in embed code if necessary
* refactor(sdk): use map for chat room attributes
* fix(sdk): unbind event listener when chat-room is disconnected
* fix(sdk): properly tear down receipt listener
* fix(sdk): send config when frame reloads
* feat(sdk): listen for config updates
* feat(sdk): request config from sdk instead of sending it repeatedly
* refactor(sdk): use type guard for config message
* fix(sdk): use settings from SDK when there is no preexisting persisted data
* fix(sdk): observe all iframe attributes
* refactor(sdk): simplify bootup logic
* feat(sdk): improve embed code display
2023-10-28 11:42:58 -05:00
Jeremy Kahn
44cbfa2005 feat(shell): improve chitchatter link styling 2023-10-12 20:48:57 -05:00
Jeremy Kahn
6ab7a3e8d9 feat(shell): show chitchatter link in embedded environments 2023-10-12 10:02:52 -05:00
Jeremy Kahn
92c04d2872 fix(shell): remove extraneous Divider 2023-10-12 09:54:16 -05:00
Jeremy Kahn
37ed65df9a refactor(shell): de-DRY DrawerHeader 2023-10-12 09:52:38 -05:00
Jeremy Kahn
257737c65c refactor(shell): move more logic to PeerListHeader 2023-10-12 09:18:16 -05:00
Jeremy Kahn
dfd4131959 refactor(shell): move MuiDrawer out of PeerList 2023-10-12 09:03:38 -05:00
Jeremy Kahn
c170edb692
feat(ui): Add copy button for code (#178)
* feat(ui): stand up CopyableBlock component
* feat(ui): implement clipboard writing
* feat(ui): make code blocks copyable
* refactor(imports): use SyntaxHighlighter directly
* feat(ui): make copy button slightly transparent
* feat(ui): tweak copy alert text
2023-10-11 21:18:28 -05:00
Jeremy Kahn
ff988d9da5 feat(syntax-hightlighting): lazy load language files 2023-10-11 09:47:11 -05:00
Jeremy Kahn
b82e339f86 refactor(imports): use default MUI component imports 2023-10-10 09:51:01 -05:00
Jeremy Kahn
1370b9d197 feat(embed): enable fullscreen 2023-10-09 09:42:12 -05:00
Jeremy Kahn
0911c29729 refactor(EmbedCodeDialog): don't use markdown renderer 2023-10-08 16:58:29 -05:00
Jeremy Kahn
7a7ddf80fc refactor(home): move EmbedCodeDialog to its own file 2023-10-08 16:54:49 -05:00
Jeremy Kahn
cbd0da50f6 fix(embed): [#92] improve embedded display on wider screens 2023-10-08 13:51:49 -05:00
Jeremy Kahn
7acf267558
feat(embed): [closes #92] Embed support (#177)
* feat(embed): [#92] hide unnecessary UI when embedded
* feat(embed): [#92] provide embed code
2023-10-08 13:19:46 -05:00
Jeremy Kahn
f150915170
fix(routing): [for #168] set router basename (#169) 2023-09-28 20:57:49 -05:00
bharat
3fe80f58fd
feat(media): [closes #165] Hide media control selectors when not in use (#166) 2023-09-16 10:04:58 -05:00
Jeremy Kahn
29a20a930e
feat(media): [closes #157] Improve media button styling (#164) 2023-09-12 09:35:32 -05:00
Jeremy Kahn
d06bbcf0f4
feat(shell): [closes #155] Handle unsupported environments (#161)
* feat(shell): [#155] show error in unsupported environment
* feat(shell): [#155] show details about unsupported environment
2023-09-07 09:28:29 -05:00
Jeremy Kahn
6b942c1025 feat(connectivity): increase trackerRedundancy to 4 2023-08-21 20:53:03 -05:00
Jeremy Kahn
5f7b8b2ffc fix(typing-indicator): send typing status to peers upon joining 2023-07-28 10:07:17 -05:00
Jeremy Kahn
3413f37d8c feat(typing-indicator): add setting to disable typing indicator 2023-07-28 09:50:03 -05:00
Jeremy Kahn
e597a667a1
feat(chat): [closes #13] Active typing indicators (#133)
* feat(typing-indicator): wire up handleMessageChange
* feat(typing-indicator): send typing: true status
* feat(typing-indicator): expire typing state
* feat(typing-indicator): update typing state received from peers
* refactor(shell): add updatePeer utility
* feat(typing-indicator): display peer typing status
* feat(typing-indicator): reset typing status when a message is sent
* feat(typing-indicator): move indicator below message form
* feat(typing-indicator): keep status text to one line
2023-07-27 21:06:35 -05:00