Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(teamLogo): ✨ Add the logos on the scoreboard #36

Merged
merged 50 commits into from
May 11, 2023
Merged

Conversation

lucafano04
Copy link
Member

@lucafano04 lucafano04 commented Mar 31, 2023

Logo Support

In this PR we add the logo support for the team's logo, it could be any image file type.
The image will be re-factored to a cropped 1:1 focused on the centre if the ratio is different than a 1:1
Edited the control-center.html to support uploading the logo, remotion and a small preview.

Short Name introduced

Added a new parameter Short Name a short version of the team name used on the scoreboard.html and inning.html scoreboards. This short name has a limitation of 3 characters.
Edited the control-center.html to support one more input

WBSC update added

Added the WBSC data override to synchronize your overlay with the official situation. #54

Corrected on some bugs on the new features into the Front-End and the Back-End Javascript
Co-authored-by:: The_TecnoKing <75082274+TheTecnoKing@users.noreply.github.com>
TheTecnoKing and others added 7 commits April 2, 2023 02:11
- Finished the frontend bits for team logos and added a new default one, courtesy of Flaticon. It's only visible in the main scoreboard right now, but it'll probably be shown in all other scoreboards in the near future as well.
- Updated all license key links, now redirecting to our own platform instead of OpenCollective.
- Minor bug fixes.
Made the update of the teams logo work on the main scoreboard `app/scoreboard.html`. Prefeard for other scoreboard if used the same query selector `.teamLogo#home>img` @TheTecnoKing
Refactored to improve maintainability score and trying finxing 7 codeclimate issues
Refactored to improve maintainability score and trying finxing one last codeclimate issues
- Team logos are now available on all scoreboards.
- Animations have also been added, although they require some touchups.
- Added outlines to logo previews in the Control Center. This should make image resizing and positioning easier to understand.
- Changed the way logos take up space. They'll now keep their original aspect ratio, while trying to fill most of the area they have.
- Fixed a few bugs here and there.
Fixed some loading bugs on `app/control-center.html`, `app/staff.html` and `app/settings.html` and made all work at the first load.
Added new parateter `obj.Team.{Home|Away}.Short` to `app/json/data.json` to display the short name of the team. Influencing changes:
- Changed the displayed name on `app/scoreboard.html` and `app/innings.html` from `obj.Team.{Home|Away}.Name` to `obj.Team.{Home|Away}.Short`. Making it more readable and professional.
- Added field `Short Name` to `app/control-center.html` between `Name` and `Color` to set the short name of the team. Limited to 3 characters.
- Eddited default values of `app/json/data.json` and changed reset default on `socket.js` and `updateData.js`
@lucafano04 lucafano04 changed the title feat(teamLogo): 🚧 Add the layground for logo support feat(teamLogo): ✨ Add the logos on the scoreboard Apr 3, 2023
TheTecnoKing and others added 25 commits April 16, 2023 20:07
- Added a new "Custom scaling" option in the streaming resolution setting. Currently disabled, will be enabled later on when this feature has had more work done to it
- Changed color scheme for the "Blacken last inning" toggle
- Made the "Add new user" area take up less space by moving and changing the "Add user" button
- Redid the first panel's layout, with items now "squeezed" against each other to take all the available horizontal space between breakpoints
Added the possibility to update the scoreboard according the official box score from the official federation website. For working you must provide the brodcasting ID founded on the URL of the box-score when live. (Tested only with FIBS games)
Addded WSBC data override controls on `settings.html` page (to be rewieved @TheTecnoKing)
Added new field on `app/json/settings.json` for the toggle and the gameID taken from WSBC.
Tested all the code with varius WSBC games from different situations and it works fine. (network required)
- Added a new "Custom scaling" option in the streaming resolution setting. Currently not working, will be used later on when this feature has had more work done to it
- Changed color scheme for the "Blacken last inning" toggle
- Made the "Add new user" area take up less space by moving and changing the "Add user" button
- Redid the first panel's layout, with items now "squeezed" against each other to take all the available horizontal space between breakpoints
- Differentiated between full names and short names in control-center.html
- Updated the username's breakpoints in all.js
- You can use "Enter" to add users in settings.html instead of being forced to use the dedicated button
Reverted a change done to all.js in the latest commit
Live Updates from WBSC (MyBallClub)
Adjusted footer on all pages

Co-authored-by: TheTecnoKing <75082274+TheTecnoKing@users.noreply.github.com>
Copy link
Collaborator

@TheTecnoKing TheTecnoKing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lucafano04 lucafano04 merged commit 7503927 into main May 11, 2023
@lucafano04 lucafano04 deleted the team-logo branch May 11, 2023 13:05
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.

2 participants