Commit graph

645 commits

Author SHA1 Message Date
Gabe Kangas
eaa6418e1c
Add ComponentError UI for #2811 2023-03-12 21:53:15 -07:00
Nathan
17afdb1997
fix: #2755 clicking more details on un-registered chat user throws exception (#2809)
Co-authored-by: thisProjects <wibbet@wobbet.com>
2023-03-12 19:40:39 -07:00
Nathan
84a0c2f169
fix: #1904 CSS Improvements on Admin Page (#2790)
* fix: #1904 CSS Improvements on Admin Page

* Prettified Code!

---------

Co-authored-by: thisProjects <wibbet@wobbet.com>
Co-authored-by: thisprojects <thisprojects@users.noreply.github.com>
2023-03-11 12:16:35 -08:00
Pranav Joglekar
b1f8ee5f94
feat: show a friendlier error msg in admin panel when unable to connect to Owncast Service (#2786)
* feat: handle 'failed to fetch' error and set error state

* feat: display alert error to user if failed to connect to backend
2023-03-11 11:38:29 -08:00
Nathan
32f8c06390
fix: #2779 - strip trailing slash on s3 endpoint (#2788)
Co-authored-by: thisProjects <wibbet@wobbet.com>
2023-03-10 14:05:54 -08:00
Gabe Kangas
a3e10152c8
Additional difThreshold tweaks for UI tests comparison 2023-03-09 02:40:18 -08:00
Dhanu Saputra
7e7d655615
Corner radius slider no longer slides (#2784)
* Corner radius slider no longer slides

* revert

* add optional chaining
2023-03-08 15:00:10 -08:00
Gabe Kangas
b5cc183a3c
Continue to bump diff threshold so UI tests do not register as changed 2023-03-08 14:49:50 -08:00
Pranav Joglekar
e80db09ab1
fix: Prevent color selector from closing on choosing a color (#2783)
* improv: wrap ColorPicker in memo to prevent unnecessary rerenders

* improv appearance: wrap updateColor in useCallback to prevent unnecessary rerenders due to changing reference to the func

* improv: define ColorCollection Component as top level, and modify it to prevent unnecessary rerenders
2023-03-08 12:13:57 -08:00
Pranav Joglekar
f6a2e8d3a2
UI: Make the Admin menu sidebar colors on hover consistent (#2778)
* ui: overwrite default antd menu-item hover colors for consistency

* ui fix: make the hover color of icon and text consistent in admin sidebar

* fix: make the 'followers'  menuitem icon consistent with other sidebar icons
2023-03-05 20:46:31 -08:00
Gabe Kangas
aa05ad6369
Fix loading state when chat is disabled in mobile. Closes #2753 2023-03-05 17:47:59 -08:00
Dhanu Saputra
ccd78c3c4d
Chat join message for users with moderator flag is misaligned (#2774) 2023-03-05 15:59:31 -08:00
Gabe Kangas
c4f057eded
Make testing for moderator state centralized in User class 2023-03-03 21:55:02 -08:00
Gabe Kangas
1536e4a04d
Show moderator message mid-chat session. Closes #2762 2023-03-03 19:49:58 -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
Gabe Kangas
5b1f36c314
Revert "Add the Client-side Input Validators for Stream Keys and the Admin Password (#2619)"
This reverts commit 3653db3a6a.
2023-03-03 14:43:56 -08:00
Jambaldorj Ochirpurev
3653db3a6a
Add the Client-side Input Validators for Stream Keys and the Admin Password (#2619)
* add the minimum stream key complexity rules on the client side

* add an admin password validator

* merge TextField and TextFieldAdmin components

* update Input Validators for Streak Keys and Admin Password

* fix a small regex typo

* code cleanup

* update Textfield and TextFieldWithSubmit

* Prettified Code!

* update the TextFieldWithSubmit component

* correct the admin password endpoind API

* refactor the Admin Password Input field and add a new boolean field for it

* refactor the Form Input field name from adminPassword to InputFieldPassword

* put password regex rules into config-constants.tsx

* regex constant typo fix

* change the boolean variable isAdminPwdField to hasComplexityRequirements

* fix a merge conflict

* Prettified Code!

---------

Co-authored-by: dorj222 <dorj222@users.noreply.github.com>
2023-03-02 21:20:53 -08:00
Gabe Kangas
4a0476b237
Add support for disabled chat state in the chat input field. Closes #2761 2023-03-01 16:22:10 -08:00
Gabe Kangas
38a52c501c
Do not show custom page content sections if it is empty. Closes #2752 2023-02-27 17:39:53 -08:00
Gabe Kangas
23a721857f
Do not support stream key UI or any persisted stream keys when overridden via cli flag. Closes #2749 2023-02-27 17:08:52 -08:00
Gabe Kangas
b7132eeaa5
Remove marquee tag as it throws off the UI tests 2023-02-27 15:45:45 -08:00
Gabe Kangas
ed2dc00345
Remove unused imports 2023-02-26 18:12:44 -08:00
Bennett B Madavana
5e155179ef
Fixed #2734 (#2742)
* Fixed #2734

* Prettified Code!

---------

Co-authored-by: bennett1412 <bennett1412@users.noreply.github.com>
2023-02-26 18:09:24 -08:00
Michael David Kuckuk
b38df2fbe3
Create stories for layout testing (#2722)
* Inject services with useContext

* Extract service for video settings

* Create mock factories for services

* Create test data for chat history

* Add story to visualize different layouts

* Fix renaming mistake

* Add landscape and portrait viewports

* Add landscape stories

---------

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-02-26 16:54:28 -08:00
Gabe Kangas
b1cc8c6f12
Increase diffThreshold again for chat text field UI test 2023-02-26 15:44:18 -08:00
Gabe Kangas
f76f7fbaf0
Only use username half of account as fallback value 2023-02-22 22:08:07 -08:00
Gabe Kangas
701e57a580
Fix CPU usage descripting mapping. Fixes #2682 2023-02-22 21:56:55 -08:00
Gabe Kangas
8b8f221eb4
Show streamTitle in header if set. Closes #2720 2023-02-22 18:52:25 -08:00
Gabe Kangas
e522bddf53
Add some slight side margin to offline banner for mobile 2023-02-22 18:07:12 -08:00
Gabe Kangas
9744d4680c
Fix disabled browser notifications showing up. Closes #2726 2023-02-22 18:04:11 -08:00
Gabe Kangas
e8ef6433e5
Addition bottom page content layout tweaks 2023-02-22 09:40:56 -08:00
Dhanu Saputra
0a653aaba7
Remove usage of the PropTypes dependency (#2723)
* Remove usage of the PropTypes dependency

* Prettified Code!

---------

Co-authored-by: dhanusaputra <dhanusaputra@users.noreply.github.com>
2023-02-22 09:21:00 -08:00
Gabe Kangas
3bb73af1c2
Standardize bottom section background + fix mobile tabs not hiding. Closes #2685 2023-02-21 16:15:09 -08:00
Gabe Kangas
d2a3e718e4
Continue to bump the diff threshold 2023-02-21 09:31:57 -08:00
Gabe Kangas
61b78b8f1b
Limit the number of chat messages that can collapse in a row 2023-02-20 12:00:59 -08:00
Gabe Kangas
8f2a345594
Reduce the time we allow message collapsing 2023-02-20 09:39:55 -08:00
Gabe Kangas
070a9fa675
Tweak offline tag color and cursor 2023-02-20 09:39:54 -08:00
Mohammad Yasir
87cdbebcc5
This commit suggests that if there is no name then the username will… (#2700)
* This commit suggests that if there is no name then the username will come in place of a name

* Unnecessary comments has been removed also,revert changes in package-lock.json

* Remove White Spaces

* File has been restored to its original version .

* Followed some checks description to improve code
2023-02-20 07:19:27 -08:00
Gabe Kangas
534a7dcb67
Remove log 2023-02-19 18:43:17 -08:00
Gabe Kangas
05a06796e2
Break out name change message to own component + fix text color. Closes #2718 2023-02-19 16:20:11 -08:00
Gabe Kangas
12b4452220
Support the HTML tags that are sent for message body. Closes #2717 2023-02-19 15:31:39 -08:00
Gabe Kangas
529a4c7d84
Allow social chat events to fit content. Use text fallback in avatar. Closes #2719 2023-02-19 14:57:44 -08:00
Gabe Kangas
564d058e2e
Improve chat container bottom scrolling handling. Closes #2342 2023-02-18 11:58:52 -08:00
Jacob Wrenn
591ead0064
fix placeholder styling (fixes #2677) (#2709)
* fix placeholder styling

* Prettified Code!

* fix code style

---------

Co-authored-by: JacobWrenn <JacobWrenn@users.noreply.github.com>
2023-02-14 09:24:29 -08:00
Philipp
a290770ac9
Allow embedding HTML for external actions (#2693)
* Admin UI: implement HTML embeds

* Admin UI External Actions: set correct useHTML on edits

* Admin UI: edit by index, not URL

* External Actions: render HTML on stream frontend

* Don't open embeds externally

* Remove TODO comment

* Add HTML as unique action key

* Admin UI: Actions: use CodeMirror editor, dropdown
2023-02-14 09:08:54 -08:00
Gabe Kangas
61c8f075cb
Update spacing in custom page content component 2023-02-13 22:19:17 -08:00
Gabe Kangas
60f5b41a3d
Fix the incorrect header spacing across all text 2023-02-13 22:00:53 -08:00
Gabe Kangas
9f735d3c5d
Increase diff threshold for UI test. Hopefully helps #2629 2023-02-12 17:12:03 -08:00
Gabe Kangas
323fe65e58
Split out desktop and mobile layouts to make it easier to work on them 2023-02-12 16:55:52 -08:00
Gabe Kangas
903cc41d58
Remove htmlcomment as it gets stripped in build time 2023-02-10 17:52:28 -08:00