30 Commits

Author SHA1 Message Date
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
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
70e4d84c42 feat(header): use instance logo for header image 2023-04-22 11:50:11 -07:00
8b8f221eb4 Show streamTitle in header if set. Closes #2720 2023-02-22 18:52:25 -08:00
070a9fa675 Tweak offline tag color and cursor 2023-02-20 09:39:54 -08:00
72cc7cb443 Add skip link to offline message 2023-01-29 16:31:52 -08:00
8bacd776bc Remove redundant title attribute from header. Closes #2620 2023-01-24 19:43:17 -08:00
cdaae66e94 Add skip links for content, player and footer. For #1826 2023-01-21 23:22:28 -08:00
d8a5380b7f Fix some React lifecycle and rendering errors that exist in build 2023-01-10 16:39:20 -08:00
73fbb4c075 Use header tag 2023-01-10 01:09:49 -08:00
cfaeda94b0 Lazy load more components. #2167 2023-01-10 00:37:12 -08:00
29882f1291 Lazy load tooltip 2023-01-10 00:37:11 -08:00
0a602edf5e Double scrollbars (#2509)
* hide footer on mobile to avoid double scrollbars

* fix double scrollbars on desktop by removing scroll behaviour from main section

* add scrollbar styles to body and html

* add vertical scrolling back to main section

* prevent header from collapsing and messing around with scrolling

* prevent body from scrolling for main layout

* move tablet breakpoint into breakpoint mixin

* preffify code

* remove js height calc for lower section on mobile and use css

* enable scrolling within a tab on mobile

* remove scrollbar from main section on mobile

* adjust header height on mobile

* add react use to web

* lock body scroll for main layout
2022-12-29 10:14:12 -08:00
53d3a67533 hide user name in user dropdown on mobile (#2512)
* hide user name in user dropdown on mobile

* truncate title in header

* prettify code

* Add line height to prevent cutting of lower length letters
2022-12-26 14:09:52 -08:00
5c01efd3e2 Wrap title in header tag. Do not allow it to wrap. Closes #2474 #2446 2022-12-24 16:45:45 -08:00
c231fd3592 First pass at CSS identifiers + test to verify they are set. For #2193 2022-12-11 21:06:20 -08:00
047e61133a Reduce the height of the header 2022-12-08 14:35:57 -08:00
352447e3d4 Web UI frontend automated browser tests (#2223)
* First pass at basic browser tests for #1926

* Run tests against dev web server not go server

* Bundle the web code into the server before running tests

* Move cypress UI tests into its own npm project + add tests

* Add additional tests + wire up with cypress dashboard

* Limit concurrency of workflow jobs

* Temporarily comment out some tests that do not pass in mobile. Will fix later.
2022-11-04 20:04:13 -07:00
8ee9be5d88 Support disabled chat. Closes #1979 2022-09-10 20:03:58 -07:00
0430adc502 Add mobile-specific tabs+content 2022-09-10 12:08:28 -07:00
d1f3fffe2f reafctor: normalize component formatting (#2082)
* refactor: move/rename BanUserButton file

* refactor: move/rename Chart file

* refactor: update generic component filenames to PascalCase

* refactor: update config component filenames to PascalCase

* refactor: update AdminLayout component filename to PascalCase

* refactor: update/move VideoJS component

* chore(eslint): disable bad react/require-default-props rule

* refactor: normalize ActionButton component

* refactor: normalize ActionButtonRow component

* refactor: normalize FollowButton component

* refactor: normalize NotifyButton component

* refactor: normalize ChatActionMessage component

* refactor: normalize ChatContainer component

* refactor: normalize ChatJoinMessage component

* refactor: normalize ChatModerationActionMenu component

* refactor: normalize ChatModerationDetailsModal component

* refactor: normalize ChatModeratorNotification component

* refactor: normalize ChatSocialMessage component

* refactor: normalize ChatSystemMessage component

* refactor: normalize ChatTextField component

* refactor: normalize ChatUserBadge component

* refactor: normalize ChatUserMessage component

* refactor: normalize ContentHeader component

* refactor: normalize OwncastLogo component

* refactor: normalize UserDropdown component

* chore(eslint): modify react/function-component-definition rule

* refactor: normalize CodecSelector component

* refactor: update a bunch of functional components using eslint

* refactor: update a bunch of functional components using eslint, pt2

* refactor: update a bunch of functional components using eslint, pt3

* refactor: replace all component->component default imports with named imports

* refactor: replace all component-stories->component default imports with named imports

* refactor: remove default exports from most components

* chore(eslint): add eslint config files for the components and pages dirs

* fix: use-before-define error in ChatContainer

* Fix ChatContainer import

* Only process .tsx files in Next builds

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2022-09-07 00:00:28 -07:00
5a51b2d779 Change cursor to pointer 2022-05-26 11:31:45 -07:00
b3407cbdea Remove user menu when chat is not available 2022-05-26 11:08:37 -07:00
7b1667bf6a Refactor app state to be a state machine with access selectors 2022-05-25 21:47:09 -07:00
e0f8a1f702 More accurately hide/show and track chat state 2022-05-13 14:44:16 -07:00
72c01e1b9a Fix web project build errors 2022-05-11 23:31:31 -07:00
00bc662c7f Changed Logo and Header
logo has two variants. Changed story to reflect that. Updated header
2022-05-08 10:45:45 +02:00
93d69a26eb Moved UserDropdown to comps/common/, updated imports, some styling on Header 2022-05-08 09:41:47 +02:00
e5d3b0e4ee More blank components and stories to be filled in 2022-04-28 14:36:05 -07:00
b90eadcb4e restructured components folders and layout (#1886) 2022-04-28 09:54:33 -07:00