93 Commits

Author SHA1 Message Date
3a756201ea chore(css): run stylelint 2025-10-24 00:15:12 -07:00
4b9845c7c8 Format sass files 2025-10-24 00:08:29 -07:00
c7d78f4224 Use updated sass import syntax 2025-10-23 23:27:10 -07:00
cc9286416c Update storybook to v9 (#4645)
* chore: Update storybook to v9

* Pin next-export-i18n + remove outdated mock library

* Replace old mocking library with MSW

* Resolve knip unused code warnings
2025-10-20 21:26:32 -07:00
2e8e61309a Remove use of default props (#4118)
* refactor: replace defaultProps with function parameters in Modal, Statusbar, ChatContainer, and CrossfadeImage components

* New commit for Default properties of React components after syncing fork and rebasing

* fix: fix linter warning

---------

Co-authored-by: swarup <swarupnarkhede999@gmail.com>
2025-01-15 16:12:54 -08:00
5a145eb407 Fixes for aria-live bugs (#3694)
* make the aria-live text adhere to the last message's username

* Wrap lastMessage in an Interweave to handle pre-encoded characters properly

---------

Co-authored-by: Muaz Ahmad <mahmad2000@protonmail.com>
2024-04-14 18:06:29 -07:00
1ddba0118e State-changed events modified to be in aria live region (#3469)
* Made changes to chatcontainer, still facing issue with only reading out the newest message

* Added accessibility measure for chat to allow for latest message to be read by screen reader

* Fixed linting errors

* Fixed linting errors pt. 2

* Fixed linting errors, the finale?

* Ok this is actually it i promise

* add username to be read out by screenreader

* fix string concat linter issue

* fix linting indexing issue

* remove test mp4 files

---------

Co-authored-by: melghali <melghali@andrew.cmu.edu>
2024-03-05 22:02:58 -08:00
4f078e1ee4 Migrated Storybook notation from CSF2 to CSF3 (#3412)
* Migrate web action-buttons directory to CSF3 notation

* Migrate web chat directory to CSF3 notation

* Migrate web common directory to CSF3 notation

* Migrate web layout directory to CSF3 notation

* Migrate web modals directory to CSF3 notation

* Migrate web ui directory to CSF3 notation

* Migrate web video directory to CSF3 notation

* Migrate web stories directory to CSF3 notation
2023-11-06 19:35:05 -08:00
169c11596c feat(chat): add support for chat part messages. Closes #3201 (#3291) 2023-09-10 10:58:11 -07:00
14baef4e36 remove excess resize event listeners (#3169)
We add a resize handler to the window when the ChatContainer is created. If a
second ChatContainer is created due to React redrawing, remove the old handler.

Co-authored-by: janWilejan <>
2023-07-13 12:36:21 -07:00
101174f71e replace margins with padding in the chat container (#3165)
Virtuoso can't calculate the size of elements that have margins. This causes
strange behaviour with scrolling in chat.

Co-authored-by: janWilejan <>
2023-07-11 13:07:58 -07:00
3f4887020d Add resize handle to chat (#3157)
* add resize handle to chat

* Add chat resize functionality

* window resize only causes chat resize on desktop

* fix parseFloat invocation

* desktop is optional attribute of ChatContainer

---------

Co-authored-by: janWilejan <>
2023-07-10 23:00:28 -07:00
2d72935564 change chat from a sidebar to a column (#3113)
* change chat from a sidebar to a column

Using a 2-column layout prevents the chat scrollbar from overlapping the page
scrollbar. Also, it no longer needs to calculate extra padding for elements.

* remove unused Sidebar.tsx

* fix css for chat column

* re-center "Go to last message" button

* main content column always uses maximum height

* lint

* re-hide scrollbars in mainContent on chromium

* fix chat column width when input is over-full

* chat is only fixed-width in desktop

---------

Co-authored-by: janWilejan <>
2023-07-09 14:07:35 -07:00
74ad8d5e18 Fix chat flicker / Usernames collapse in order (#3135)
Co-authored-by: janWilejan <>
2023-07-05 11:51:16 -07:00
1f755cb0ba fix(chat): do not allow chat scrolling to impact page scrolling. Closes #3109 2023-06-27 16:11:07 -07:00
7924a561b2 fix(chat): update scroll to bottom button text color 2023-06-21 14:26:57 -07:00
ccb9b5d075 chore: run stylelint on our css files 2023-06-20 20:58:00 -07:00
58f2d09815 fix(chat): try to improve auto scroll to bottom. Closes #3029 2023-06-12 15:47:41 -07:00
2046e4999f feat(chat): decrease msg collapse timeout + add spacing. Closes #3062 2023-06-02 19:48:07 -07:00
6d30de19f6 fix(chat): cleanup of moderator flag check 2023-05-31 16:54:30 -07:00
71703f2245 fix(chat): fix bot status not showing. Closes #3046 2023-05-31 13:54:03 -07:00
69f217f758 Refactor mobile chat into modal (#3038)
* feat(mobile): refactor mobile chat into modal

- Make page always scrollable
- Move mobile chat into a standalone modal

* fix(test): split out mobile browser test specs

* fix(mobile): force chat button to render on top of footer

* fix: some small updates from review

* fix: hide/show hide chat menu option based on width

* fix: chat button icon getting cut off

* chore(tests): add browser tests for mobile chat modal

* chore(tests): add story for ChatModal component

* fix(test): quiet shellcheck

* fix: remove unused import

* fix(tests): silence storybook linting warning

* fix(ui): reposition chat modal button icon with transform
2023-05-22 18:56:44 -07:00
cfdfdf5f49 fix(chat): add slight spacing via margin below bottom chat message 2023-05-08 19:29:00 -07:00
722d11307a feat(ui): add id to scroll to bottom button 2023-05-08 09:44:39 -07:00
a9a2ad5487 fix(chat): tweak auto scrolling on message logic to reduce scroll to bottom button showing 2023-05-07 20:29:29 -07:00
32c3f6a9b6 fix: #2668 Page Vertical Spacing Issues (#2863)
* fix: #2668 Page Vertical Spacing Issues

* Update test to reflect mobile work

* chore: refactor action buttons

---------

Co-authored-by: thisProjects <wibbet@wobbet.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-04-26 15:31:23 -07:00
44483a45d3 some webv2 UI polish (#2940)
* style tweaks for Action Button, UserMenu, Modal

* a bunch of misc polish; some around chat

* Prettified Code!

* cleanup

* fix formatting

* Reduce content padding a bit

* some stylesheet cleanup

* fix action button sizing

* Remove action button height completely

---------

Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-04-24 10:58:57 -07:00
4192482a4c Add error boundary to chat. For #2811 2023-03-12 21:57:04 -07:00
c4f057eded Make testing for moderator state centralized in User class 2023-03-03 21:55:02 -08:00
Naz
3629f318e8 removed timers from component in favor of css transition (#2769)
* removed timers from component in favor of css transition

* removed semibold text

---------

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-03-03 15:25:22 -08:00
4a0476b237 Add support for disabled chat state in the chat input field. Closes #2761 2023-03-01 16:22:10 -08:00
61b78b8f1b Limit the number of chat messages that can collapse in a row 2023-02-20 12:00:59 -08:00
8f2a345594 Reduce the time we allow message collapsing 2023-02-20 09:39:55 -08:00
534a7dcb67 Remove log 2023-02-19 18:43:17 -08:00
05a06796e2 Break out name change message to own component + fix text color. Closes #2718 2023-02-19 16:20:11 -08:00
564d058e2e Improve chat container bottom scrolling handling. Closes #2342 2023-02-18 11:58:52 -08:00
313a81359a Add Fediverse event chat views. Closes #2679 2023-02-05 19:58:38 -08:00
1ee71aecaa Add bot user badge. Closes #2681 2023-02-05 15:37:16 -08:00
de20b2cc11 Increase diff threshold for UI tests: #2292 #2630 #2629 2023-01-30 14:46:34 -08:00
a1a3272031 Hide scrollbars 2023-01-18 19:18:29 -08:00
6fbd6cbbcf Lazy load every instance of using ant icons. Closes #2583 2023-01-15 22:31:36 -08:00
bb9b8a8123 Use own scroll to bottom function instead of built-in. Closes #2500 2023-01-11 00:53:18 -08:00
b989e9a462 Remove chat container bottom margin 2023-01-11 00:52:03 -08:00
81c505d731 Hack to force scroll to very bottom at mount. For #2500 2023-01-05 02:16:37 -08:00
31f77cf1f0 Tweaks to chat bottom handling for #2342 2022-12-20 00:37:22 -08:00
890ebdfff6 Tweak style of scroll to bottom button 2022-12-14 12:54:31 -08:00
8a14173066 Increase the bottom threshold for chat container. Closes #2342 2022-12-01 19:26:16 -08:00
ce1c564797 Add margin under bottom chat message 2022-11-19 12:56:38 -08:00
d2f65380a1 Fix issue when trying to collapse non-user message 2022-11-13 14:49:49 -08:00
769f05db2c Allow for custom scrollbar styling 2022-11-13 12:37:31 -08:00