Git Product home page Git Product logo

league-page's Introduction

League Page logo

(Unofficial) Sleeper League Page Template

Generate a custom league page for your Sleeper fantasy football league in just a few steps
GitHub node GitHub top language Lines of code GitHub forks GitHub pull requests GitHub issues

League Page demo




If you and your league like League Page, please consider starring the repo and donating (and encouraging your league-mates to too!)
Buy Me A Coffee




Features

  • Up-to-date league information
  • Easy to navigate trade and waiver history
  • Awards and accolades
  • Records and rankings for every season
  • Current season power rankings
  • Previous drafts and upcoming draft preview
  • Season matchups
  • Manager bio pages
  • League constitution
  • Helpful fantasy football resources and news

  • Built using Svelte and SvelteKit
  • Desktop, Mobile and PWA compatible
  • League information generated from Sleeper API

Roadmap

  • Add integration tests
  • Cleanup repo
  • Test redraft leagues
  • Playoff matchups and current bracket
  • Dynasty power rankings
  • Hyperlink all manager references
  • Fix all css issues when actively resizing the window

Some real-life League Pages

Setup your own League Page

If you've never touched a line of code, use the Training Wheels Guide instead

  • Fork this repo
  • Go to /src/lib/utils/leagueInfo.js and replace your_league_id (line 2) and your_league_name (line 3) with your Sleeper league ID and league name. (Optionally, also fill out the dues, and dynasty fields): league ID instructions
  • Write your homepage text (league intro/bio) /src/lib/utils/leagueInfo.js (lines 9-14) homepage text
  • Next, fill out and uncomment (delete the // at the beginning of each line) the managers' object (lines 27 - 92), also located in /src/lib/utils/leagueInfo.js, there should be one object for each manager. The structure may change in the future (it has already 😅). The source of truth is down at the bottom, lines 104-126 (for assistance, consult the Training Wheels guide). manager object manager rendering
  • Add corresponding images for managers to the /static/managers/ directory and make the sure the name matches with what was provided above
  • If you run into trouble adding managers, reference the Training Wheels' Manager section
  • Add blog capabilities with contenful
    • Make a free contentful account
    • Click on Content model in the top bar and create Blog Post (id: blog_post) and Blog Comment (id: blog_comment) content models that matches the specs below (All fields are required): content model comment model
      • Use sleeper your sleeper username for the author field when creating posts
    • Create a Content Management API key
    • For local development add a .env file to the root of your project and add the following variables
      • VITE_CONTENTFUL_ACCESS_TOKEN with the corresponding value obtained from contenful
      • VITE_CONTENTFUL_SPACE with your space ID, obtained from contenful
    • Create a Content Delivery / Preview API key
    • For local development add the following variable to your .env file
      • VITE_CONTENTFUL_CLIENT_ACCESS_TOKEN with the Content Delivery API - access token from contenful
    • To add the variables for production, go to your project settings and add the corresponding keys (using the same names as above) to the environment variables section
    • For more detailed instructions, follow the Training Wheels blog instructions
    • Finally, set enableBlog to true in src/lib/utils/leagueInfo.js
  • Customize your league constitution /src/routes/constitution/index.svelte (remember to adjust the table of contents accordingly)

For local developing npm:

npm install
npm run dev --
npm run dev -- --host (to test on other devices locally)

For local developing with a container

npm run docker-run

To deploy on Vercel for free:

league-page's People

Contributors

1600dolo avatar dependabot[bot] avatar jcordell avatar nmelhado avatar nmelhado2 avatar oldnewsblues-2 avatar scottiegarcia avatar sdcalmes avatar shanetj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

league-page's Issues

[BUG] The managers page is not currently loading

Describe the bug
When clicking on a manager from the managers page, the manager indefinitely loads.

Your League ID
Applies to all leagues

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'managers'
  2. Click on any manager
  3. See error

Expected behavior
Manager page should load

Screenshots
image

[ENHANCEMENT]

I suggest implementing Standings into the website. It would be nice to see every teams current record and standing against the league

[BUG] Leaving manager info null fails for detail page

Describe the bug
If you leave certain manger infos null, the displaying on the mangers detail page get's a little messy. The specific fields are:

  • Location
  • Fantasy since
  • Preferred contact
  • Favorite team
  • Team philosophy
  • Desire to trade

Expected behavior
The displaying of the properties should either be suppressed completely or a fallback placeholder should be displayed.

Direct link to manager from Roster page

Is your feature request related to a problem? Please describe.
Clicking on Manager name on Roster page currently does not lead to that Manager's page.

Describe the solution you'd like
Not a big thing by any means, but would save a click to be able to click on Manager name or icon and go to their page directly. Would save a click. But just a small suggestion and nothing urgent at all.

Thanks!

[BUG] Awards from most recent completed season don't show.

Describe the bug
When looking at awards/the current champion on the homepage, it will show up to the "previous" season. This isn't quite right, as if your current season ID is a "completed" season, it should also include that. This is for leagues that haven't started back up yet, but the season is over.

Your League ID
716721398717947904

To Reproduce
Steps to reproduce the behavior:

  1. Set your league ID to your current league id (the league also needs to not have been started for the next season)
  2. Run the app (i'm running locally in dev)
  3. Check awards for the most recent season winner. You should see "2021 Champion", but you will not.

Expected behavior
Awards for the most recently completed season show correctly.

[BUG] importing into vercel

this new update wouldnt let me update the fork so i had to delete everything and re do it all. When i try to redo the site thru vercel it gives me this error when its building/importing the repo.

14:59:44.243

[email protected] build /vercel/path0
14:59:44.243
svelte-kit build
14:59:44.243
14:59:44.660
vite v2.5.7 building for production...
14:59:44.815
transforming...
14:59:48.028
✓ 43 modules transformed.
14:59:48.028
[rollup-plugin-dynamic-import-variables] Unexpected token (4:36)
14:59:48.028
file: /vercel/path0/src/lib/utils/leagueInfo.js:4:36
14:59:48.029
Unexpected token (4:36)
14:59:48.031
SyntaxError: Unexpected token (4:36)
14:59:48.031
at Parser.pp$4.raise (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:16958:13)
14:59:48.031
at Parser.pp.unexpected (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:14466:8)
14:59:48.031
at Parser.pp.semicolon (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:14443:64)
14:59:48.031
at Parser.pp$1.parseExpressionStatement (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:14924:8)
14:59:48.031
at Parser.pp$1.parseStatement (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:14659:24)
14:59:48.031
at Parser.pp$1.parseTopLevel (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:14523:21)
14:59:48.031
at Parser.parse (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:14315:15)
14:59:48.032
at Function.parse (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:14346:35)
14:59:48.032
at Graph.contextParse (/vercel/path0/node_modules/rollup/dist/shared/rollup.js:20344:38)
14:59:48.032
at Object.transform (/vercel/path0/node_modules/vite/dist/node/chunks/dep-63d4bd14.js:43069:27)
14:59:48.046
npm ERR! code ELIFECYCLE
14:59:48.046
npm ERR! errno 1
14:59:48.050
npm ERR! [email protected] build: svelte-kit build
14:59:48.050
npm ERR! Exit status 1
14:59:48.050
npm ERR!
14:59:48.050
npm ERR! Failed at the [email protected] build script.
14:59:48.050
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
14:59:48.062
14:59:48.062
npm ERR! A complete log of this run can be found in:
14:59:48.062
npm ERR! /vercel/.npm/_logs/2021-09-13T18_59_48_051Z-debug.log
14:59:48.083
Error: Command "npm run build" exited with 1

[BUG] Records - Single Week Scoring (both All-Time and every Year) - incorrect weeks displayed & problems after switching pages

Both bugs in the Records tab

  1. While the rankings and points are correct, they have the wrong Week listed with them. And it looks like the discrepancy is due to the week # being calculated in inverse order (from the last regular season game played). For example (with my league with years 2019-2021, 13 game regular season in 19/20 and 14 in 21):

2021 - Top "Week 1" scores actually happened in Week 2, and vice versa. (Obviously, we don't know how Week 3 scores will be reflected yet, but I suspect that top Week 3 scores will be displayed as "Week 1", vice versa w/ top Week 1 scores, and Week 2 scores will "correctly" be displayed as "Week 2" - but only because it's the middle week of 3 played weeks)

2020 - "Week 8" scores should be Week 6. "Week 2" scores should be Week 12. "Week 10" scores should be Week 4. "Week 7" scores ARE "correctly" displayed as Week 7 (but again, probably only because it's the middle week of 13 played weeks)

2019 - "Week 6" scores should be Week 8. "Week 9" scores should be Week 5. "Week 5" scores should be Week 9. "Week 13" should be Week 1.

And this occurs in both the All-Time and the 2021/2020/2019 tables (i.e. same top scores show the same incorrect weeks).

[[[POSSIBLE SOURCE OF BUG - but ignore if it doesn't help - I'm just a novice coder]]]: I'm assuming the problem has something to do with how you're assigning the "week" variable in src/lib/utils/helperFunctions/leagueRecords.js.

You start by assigning it to "nflState.week - 1" if NFL is in regular season and 18 if NFL is in the post season. And for "complete" leagues (i.e. past seasons), you assign it to "leagueData.settings.playoff_week_start - 1".

Then you fetch the Sleeper data in inverse week order - i.e. it starts at either "nflState.week - 1" or "leagueData.settings.playoff_week_start - 1" and works backward until week "0"

But then when you process the matchup data, you assign "matchupWeek" to 0 and have it work UPWARD to "matchupsData.length", with each cycle re-assigning "week" to "matchupWeek + 1". And this appears to be the week # that is ultimately displayed.


  1. This bug appears in the "Total Points" column in both the All-Time and Yearly top week scores tables. When the Records tab first loads, the points are shown correctly. Now switch to any different tab. Now switch back to the Records tab. The points are still shown correctly, but any totals ending in something like "150.3" now show "150.30". Now switch to any different tab again. Now switch back to the Records tab. All entries in the "Total Points" column now display "NaN". Now, switching tabs will not bring the scores back. Only refreshing will (which then repeats the above cycle).

[[[by the way, I'd prefer if the 2 decimal digits were always displayed - i.e. "150.3" is always "150.30"]]]


League ID: 725417455366799360
(but your demo/personal league page has the same bugs, or at least the one with switching pages)

Desktop:
macOS Catalina 10.15.7
Chrome Version 93.0.4577.63


By the way, I have a feature request for the Records tab: Could we get an option (on the page) to have these rankings display for "Regular Season", "Playoffs", or "Both", with the Playoffs reflecting only the playoff bracket games (i.e. not the losing bracket/toilet bowl games) (or at least the option in the CODE to exclude toilet bowl games)?

[BUG] League Page not responding

I had to delete my old page and re-fork this one and add my info back to it cuz it would not let me merge the updates, however upon doing this my page is now unresponsive. Nothing loads and the clickables aren't working

[BUG] Home screen frozen with blogs activated

Describe the bug
If blogs are enabled, you can't navigate to any of the tabs (trades/waivers, open league info drop down, etc.) on the home screen. The tabs show up and you can click on them, but the pages will not load. There is a workaround to where if you click on a tab (i.e. matchups) and refresh the page it'll load and the drop downs will work properly, but you can't physically get to any of the pages from the home screen.

Your League ID
784484879164362752

To Reproduce
Steps to reproduce the behavior:

  1. Go to home page (draftdaydynasty.vercel.app)
  2. Attempt to click on any of the above tabs (matchups, trades & waivers, league info, etc.)
  3. See error

Expected behavior
When I click on the matchups tab from home page, I expect the matchups page to load. If I click on league info from home page, I expect a drop-down menu.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacBook Pro
  • Browser Chrome
  • Version 96.0.4664.131

Smartphone (please complete the following information):

  • Device: iPhone 13 Pro Max
  • OS: iOS 15.1

[ENHANCEMENT]

Is your feature request related to a problem? Please describe.
Would just like to add resources.

Describe the solution you'd like
Be able to add links in the resources tab.

Describe alternatives you've considered
Tried adding in Constitution, but didn't work.

784479282343895040
Please provide your league ID in case the feature is not applicable to all league types

Additional context
Add any other context or screenshots about the feature request here.

Dynasty Power Rankings

I just copied and pasted my same post from reddit....

I've been maintaining records for my league for going on year 13 now and I have it all maintained on a google sheet (here is an old mock up I've shared) that obviously doesn't look anywhere near as nice as this (i'm not a coder by any means). But maybe there's some ideas that you can take from it and use on the site. Some other records we keep track of that I didn't see for you are Closest Matchups, Biggest blowouts, Highest/Lowest Scoring Matching ups, and Longest Winning/Losing Streaks. I saw Dynasty Power Rankings on your road map, I have a tab in the sheet that does just that with a formula I put together. It normalizes the following variables and then weights them with the following:

Championships Won - 25%

Lifetime Win% - 20%

Championship Appearances - 15%

Average Points per Week - 15%

Playoff Appearances - 10%

Season Volatility (number that compares a teams best and worst seasons) - 10%

Ave likelihood to win - 5%

But I love the Lineup IQ and would love to factor that in too (maybe a 5 or 10% weight). Anyways, feel free to DM me if you have any questions about any of this. Would love to help out with the project in any way, but it'd probably be in an idea stand point than the actual coding since what you've done is already way beyond me.

[ENHANCEMENT] Bench spots are not really readable in dark mode

Is your feature request related to a problem? Please describe.
Since introduction of the dark layout, the bench spots are still background white and therefore nearly not readable.

Describe the solution you'd like
Either change the background color or the text color to enhance contrast and readability.

[ENHANCEMENT] Discord as additional Contact Source

My Leaguemates are communicating mostly over Discord. I uploaded a Discord.png to /static/ and tried out if its working that simple by just typing "Discord" in the /src/routes/managers/managers.rs. Working like a charm, so I suggest you could also update your template (I'm new to github and don't know how everything works here exactly)

You can use this .png
Discord

grafik
grafik

[BUG]

No Power Rankings on home screen
There are no power rankings being shown on my home screen which doesn't allow me to make a managers page.

784479282343895040
In many cases, the bug maybe related to something not yet accommodated for in League Page, or something specific to your league. Adding your league ID allows for a faster debug and bug fix.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://sffl.vercel.app/'
  2. Click on 'Home
  3. Scroll down to 'Where Power Rankings Should be'
  4. See error

Expected behavior
Expected to see League's Power Rankings

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [MacOS Monterey]
  • Browser [Chromei]
  • Version [105

Screen Shot 2022-05-29 at 7 30 01 PM

]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

[BUG]

Describe the bug
A clear and concise description of what the bug is.

Matchup stats won’t pool idp projected points

Your League ID
In many cases, the bug maybe related to something not yet accommodated for in League Page, or something specific to your league. Adding your league ID allows for a faster debug and bug fix.

727925426831290368

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Multiple issues after merging to forked repo

Describe the bug
After merging new changes (> 26.8.2021) to existing pages, some things don't work as expected anymore. The following problems can be viewed here:
https://deepsleeper.upsidebowl.upsidefantasy.de/

Issues found:

Homepage:

  • Multiple "undefined" values in Recent Waiver Moves view
  • Rest of season rankings broken

Matchups:

  • Matchup do not show

Trades & Waivers:

  • Multiple undefined values in view

League Info - Standings:

  • As the league has no divisions, the corresponding columns are obsolete
  • The league has "Extra game each week against league median" activated in league settings. The median games are not considered in the W|T|L columns, so the standings are basically wrong.

Resources:

  • Javascript error loading news

Your League ID
739519802820984832

To Reproduce
Steps to reproduce the behavior:

  1. https://deepsleeper.upsidebowl.upsidefantasy.de/
  2. Click the mentioned areas
  3. See error

[ENHANCEMENT] Docker support

Is your feature request related to a problem? Please describe.
I'm wanting to run this in a container using Docker. The problem is I do not know how to build from source. I've google'd my way through and couldn't find anything consistent.

Describe the solution you'd like
I'd love to see a sample Dockerfile that would allow me to run something like this locally.

Describe alternatives you've considered
I've run this locally with the npm commands shown in the readme successfully.

League ID
731604692018262016

Additional context
Add any other context or screenshots about the feature request here.

[BUG] Managers Issue with Divisions

Describe the bug
To Reproduce
I think there may be some issues with leagues that use divisions. I'm seeing some strange behavior and not sure what is going on. I've only updated the managers page to be unique and added a few pictures. I've reverted back to the basic managers code and didn't update anything but adding 12 managers from 3 and still had the same issues. I think they are all related to my league being broken out to divisions. Which is causing the trophies page not to load. In turn scrambling the data.

My trophies page is not properly loading. So, if I go to the trophy page, it will start loading and never finish. From there, any page you go to is inaccurate. It will show the names of managers that aren't right or standings or matchups for the wrong managers. However, one refresh of the page and that fixes it. Any page you go to after the trophy page stalling. Will have a mix-up of the data. I showed two screenshots with description in title. I go to the before picture from the trophy page while it is loading. The data is wrong. I refresh, then the data is right.

If you go to the standings page after the trophy page is messed up and don't refresh before going to another page, the corresponding page will also be messed up. If you refresh the page to fix the data, then any page after that will be back on track until you go to the trophy page again. The trophy page loaded once for me, but that was it. Not sure why it isn't loading now. I haven't messed with any code outside of managers and pictures pages.

Your League ID
726145213692776448

Expected behavior
I would expect the manager(12) team to show the right picture.
I would expect all links to work the first time you click them versus needing a second screen refresh to pull accurately.
I would expect the standings to reflect the right team and right record.
I would expect the trophy page to load like the demo site.

Desktop (please complete the following information):

  • OS: windows 10
  • Browser chrome or safari
  • Version [e.g. 22] latest on both

Smartphone (please complete the following information):

  • Device: iphone 13 - OS: latest
  • Browser safari
  • Version latest

Additional context
I wasn't sure the best way to submit this issue and to explain it. So please feel free to look at my site directly. You can then see that the first time it loads versus when you refresh whatever page you are on is different.

https://league-page-woad-eta.vercel.app
open managers from trophy page
refresh managers page from managers page
/

[BUG] - Championship / Consolation overview does not consider 2 Weeks Playoff setting

Describe the bug
The Playoffs / Consolation Overview on the League Page is not considering the Playoffs setting of 2 Weeks. it only shows the 1 week result of it.

Your League ID
692769447512989696

Expected behavior
The aggregated sum of 2 games should be displayed in the playoff/consolation bracket

Screenshots
Bildschirmfoto 2021-12-20 um 12 13 28
Bildschirmfoto 2021-12-20 um 12 13 42

Desktop (please complete the following information):

  • OS: macOS 12.1
  • Browser Safari
  • Version 15.2

Additional context
Add any other context about the problem here.

[BUG] Error Messages Under the Draft Page

Describe the bug
First off, thank you for this amazing app! I was able to install and configure successfully, however when I access the "Draft" page on the site, i get the following two error messages on the desktop:

Something went wrong: Cannot set properties of undefined (setting '11')
Something went wrong: Cannot read properties of undefined (reading '2')

On my iPhone i get the following error messages:

Something went wrong: undefined is not an object (evaluating 'f[d.round-1][o.indexOf(d.roster_id)]=n[d.owner_id].name')
Something went wrong: undefined is not an object (evaluating 'e[s.round-1][n.indexOf(s.roster_id)]')

We do a lot of draft pick trading in our league, so I'm wondering if this may be the issue?

Your League ID
701648830671712256

To Reproduce
Steps to reproduce the behavior:

  1. Click on League Info
  2. Click on Draft
  3. See error

Expected behavior
The current and previous draft boards.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: 93.0.4577.82

Smartphone (please complete the following information):

  • Device: iPhone 12
  • OS: iOS 15.0
  • Browser: Chrome
  • Version: 94.0.4606.52

Additional context
As previously mentioned, we do a lot of draft pick trading in our league, so I'm wondering if this may be the issue.

[ENHANCEMENT] Live Twitter feed/News feed capability on the Home Page

Is your feature request related to a problem? Please describe.
I think it would be nice and cool to be able to embed a twitter feed or news source feed to the home page or add a tab similar to the blog post tab but use it for real time up to date player news

Describe the solution you'd like
I would like some sort of feed whether it be a twitted account that could display tweets from nfl analyst/reporters in real time or to like a news site like "Rotowire" news center to display current player news. Any cool way to keep up with real time player news

Describe alternatives you've considered
I know you can go to a twitter page and embed the page using a link but I have not figured out how to code it.

League ID
784472881290743808

Additional context
Thank you for any help or consideration in this matter

[ENHANCEMENT] Commissioner label or designation in managers tab ???

Would it be possible to add some sort of designation or label for the commissioner in the league. Maybe add it under the line that says "manager of ..." or even make it a bubble on the bottom like the vets, fav player, and rival. That way those visiting the site that may not be in the league knows who the commish is.

[ENHANCEMENT] League Betting Section

Is your feature request related to a problem? Please describe.
This is definitely more of a "nice-to-have", but it would add another aspect to the site that would help make it feel more like home for dynasty owners.

Describe the solution you'd like
A tab on the website page that keeps track of ongoing bets between league-mates. Probably something along the lines of having these things in a table of sorts:

  • Between which owners
  • What they are betting (Ex. money, a draft pick swap, doing something embarrassing in public, etc)
  • Conditions

Additional context
Definitely open to ideas on that on the implementation details or feedback, but think that would be something pretty cool! I am also happy to help with development effort although I am definitely quite green to JavaScript so I definitely want to test and work on it step-by-step before it gets merged into the main repository.

[BUG]

Describe the bug
Hey- I am having two small bugs for my league's website. When click on matchups, the screen freezes. If I hit refresh, it will load the matchups just fine. Also, when I click on standings, I get a loading symbol. That problem doesn't get fixed when I hit refresh

Your League ID
My website is: www.leagueofmisfitboys.com
Our ID is: 654056594040029184

To Reproduce
Steps to reproduce the behavior:

  1. Go to www.leagueofmisfitboys.com
  2. Click on matchups or league info and then standings
  3. See error

Expected behavior
I expected matchups to load immediately when I clicked on matchups.
When I clicked on league info and then standings, I expected to see league standings.

Screenshots
If applicable, add screenshots to help explain your problem.

Screen Shot 2021-12-23 at 6 26 07 PM

Screen Shot 2021-12-23 at 6 26 13 PM

Desktop (please complete the following information):

  • OS: [e.g. iOS] OS Big Sur
  • Browser [e.g. chrome, safari] Safari
  • Version [e.g. 22] 14

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

[ENHANCEMENT] Adding Telegram logo to "Preferred contact method" list

Hi,
I have added a small Telegram.png logo to my custom fork of this repo so that managers can select that option in their "preferred method" to be contacted. That's because most of our league discussion happens there. I have also updated the TRAINING_WHEELS.md file and the leagueInfo,js to reflect the ... new functionality.

I wanted to open a pull request to merge that to your main repo, but I am not sure what I am supposed to do, or if I am even allowed to. Of course, if you don't care about this feel free to close this issue.

Thanks!

Worst Weekly Performances [ENHANCEMENT]

Similar to how the page automatically pulls the top 10 weekly scorers, it would be neat to see who has scored the worst ever in the history of the league. Bottom-10 weekly/seasonal scorers would be fun to "recognize" the worst of the worst!

[BUG]

Describe the bug
Win Now, Dynasty, or Rebuild does not show up on the main managers page.

784479282343895040
In many cases, the bug maybe related to something not yet accommodated for in League Page, or something specific to your league. Adding your league ID allows for a faster debug and bug fix.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'sffl.vercel.app'
  2. Click on 'League Info'
  3. Scroll down to 'Managers'
  4. See error

Expected behavior
Expected to see third icon in managers name according to Win Now, Rebuild, or Dynasty.

Screenshots
Screen Shot 2022-05-30 at 11 04 38 AM

Desktop (please complete the following information):

  • OS: [MacOS 12.4]
  • Browser [Google Chrome
  • Version [102.0.5005.61]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

[BUG]

Describe the bug
On the Constitution page, if you click on any of the Table of Content sections it will properly scroll to the correct section with the desired section at the top of the page. However, if you scroll any amount before clicking on a Table of Content section, it causes the window scroll to be off depending on how much you initially scrolled down the window.

Your League ID
n/a Error occurs on master repository site as well.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...' https://legends-league.vercel.app/constitution
  2. Scroll down to Table of Contents Section 7.1
  3. Click on Section 7.1
  4. Window scrolls down but stops well short of intended Section.

Expected behavior
Scrolled down the Constitution's Table of Contents to section 7.1. I clicked on the 7.1 link. I expected the window to scroll to down with section 7.1 at the top of the window. However the window scrolls down and stops at section 4.2. This behavior happens both on PC desktop browsers as well as mobile iOS browsers.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 99.0.4844.74

Smartphone (please complete the following information):

  • Device: iPhone 12 PRO MAX
  • OS: iOS 15.4
  • Browser Chrome
  • Version 99.0.4844.59

Additional context
Add any other context about the problem here.

[BUG] - 2021 Results Not Showing on Our Site

Describe the bug
Our season is over but we still see the 2020 Champ information listed on the front page of the website. Also, on the Trophy Room page, the most recent results are from 2020. We are not seeing 2021 results on these two pages.

Your League ID
786076885619908608

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://league-page-ecigpe9i7-skateandlacroix.vercel.app
  2. You'll see the 2020 Champ listed
  3. Click on League Info, then Trophy Room and you'll see 2020 results as the most recent.

Expected behavior
I expected to see the 2021 results on the site by now. Our season is now over and we've over to the 2021 postseason.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome

Additional context
Add any other context about the problem here.

Import League History from Spreadsheet

Is your feature request related to a problem? Please describe.
Our league moved from ESPN to Sleeper last year. Since Sleeper is newer than many other platforms, I suspect this may be the case for others.

Describe the solution you'd like
I would like a way to import league history from our old league. At least final records and total points. I have this data in a spreadsheet. It would be awesome to provide a spreadsheet template (likely CSV) that we could dump data into and then pull league history data from that CSV into a League history page or integrate it somehow. Using a CSV template, you could keep it vanilla while incorporating historical data for a league.

Describe alternatives you've considered
I could link to a Google Sheets site or shared Excel file from the website to view historical data. I could publish the data as a Power BI dataset and link to a Power BI report as well.

League ID
726301806027722752

Additional context
I attached an example CSV (I zipped the file so GitHub would accept the file type) file containing data from my league. I love what you have done and gladly donated a few dollars this morning after I got the website up and running! This is great stuff.
R04History.zip

[ENHANCEMENT] Custom League Logo

Is there currently a way to add a custom league logo to show up when on the site? I've been loving the site and have been making little tweaks here and there, but can't figure out how to add our league logo to show up throughout.

[BUG]

Describe the bug
No Power Rankings are shown on the main home screen. As well as there are no records for my league and there is a word undefined in my title of my standings page.. sorry im not experienced with coding at all.

784479282343895040
In many cases, the bug maybe related to something not yet accommodated for in League Page, or something specific to your league. Adding your league ID allows for a faster debug and bug fix.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://sffl.vercel.app/'
  2. Click on 'Home'
  3. Scroll down to '....'
  4. See error

Expected behavior
Would like to see our Power Rankings.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://sffl.vercel.app/'
  2. Click on 'League Info, Records'
  3. Scroll down to '....'
  4. See error

Expected behavior
Would like to see our our league records current and all time.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://sffl.vercel.app/'
  2. Click on 'League Info, Standings'
  3. Scroll down to '....'
  4. See error

Expected behavior
The word undefined shouldn't be there.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [macOS Monterey 12.4]
  • Browser [chrome]
  • Version [102.0.5005.61]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Website gets stuck once season records or playoffs is clicked in 'Records' tab.

Screen Shot 2022-05-29 at 3 40 44 PM

Screen Shot 2022-05-29 at 12 55 28 AM

Screen Shot 2022-05-29 at 4 02 18 PM

[BUG] standings with 2 point system per week.

I run a league where we have 2 points per week for standings. 1 for top 6 scoring and 1 for matchup. When you go to
The standings it doesn’t account for the extra point and only shows matchup record.

727925426831290368

[BUG]

Describe the bug
Sometimes the sleeper API return null for players attribute on endpoint /league/x/rosters. This leads to a javascript error in src/lib/Rosters/Roster.svelte in line 16.
Example API output for a league with null:
https://api.sleeper.app/v1/league/729116264118779904/rosters

Your League ID
729116264118779904

Just to let you know: We just deployed 22 league-page instances and they will be officially announced in the Upside Podcasts livestream on Youtube and Twitch on monday which will also be released as a podcast episode on Tuesday.
Do you possibly have any other channel to communicate through about topics not concerning the code?

[ENHANCEMENT] Add Playoffs to Records Tab + Option to Filter Records by Regular Season, Playoffs, or Both

Currently the Records tab only tracks regular season fantasy stats.

It'd be nice to add fantasy playoffs stats to the Records tab, along with an option (on the actual page) to filter the tables/graphs for RS, PO, or both.

Regarding playoffs stats, I'd personally want this limited to only the games in the actual playoff bracket (i.e. excluding the "toilet bowl" games in the losers bracket). For various reasons - most commonly, the managers in the losers bracket just not caring to set their line-ups - stats from those games wouldn't be proper to include for record-keeping purposes. But I realize other leagues may not have such issues and therefore may prefer to have those games included. For that reason, if they were to be included by default, it'd be nice to have a variable in the code we can adjust to exclude them.

League ID: 725417455366799360

Thanks for all the amazing work you've done on this! Seriously, this is such a high-quality resource, and I'm enjoying sharpening my own coding knowledge by tinkering with my league-page's code.

[ENHANCEMENT] Make bio HTMLable

Describe the solution you'd like
The Bio field should be rendered in a way so that HMTL is possible. This could easily be done by prefixing @html to the variable in src/lib/Managers/Manager.svelte

League ID
695913371186307072

Additional context
As this information is only managed by someone who is capable of at least editing code, it should be acceptable to not sanitize this field and just add @html.

[BUG]Auction draft results are incorrect

Describe the bug
Our league does auction format and the draft board does not correlate with the actual draft board. The formatting and order is off. Players on the wrong teams and teams with the wrong number of players

718875521139699712
In many cases, the bug maybe related to something not yet accommodated for in League Page, or something specific to your league. Adding your league ID allows for a faster debug and bug fix.

To Reproduce
Go to drafts, scroll to previous drafts, see draft board is mixed up.

Expected behavior
Expectation is for previous drafts to mirror sleeper draft board with players assigned to correct teams and dollar values displayed

Screenshots
what we see on the league page
Screen Shot 2021-08-19 at 11 48 44 AM

what displays on the draft board aka ideal state
Screen Shot 2021-08-19 at 11 49 26 AM

Desktop (please complete the following information):

  • OS: Mac OS Big Sur
  • Browser Safari
  • Version 14.1.1

Additional context
With auction being new, not sure if its an API issue with sleeper.

[ENHANCEMENT] extend possibilities for manager infos

Is your feature request related to a problem? Please describe.
I have managers in my league that want to leave out answers or submitted answers that i can't enter:

  • fantasyStart, favoriteTeam, mode, favoritePlayer, valuePosition, rookieOrVets should be "nullable", i.e. the possibility of displaying a question mark or something similar should be possible
  • favoritePlayer currently must be listed in sleeper. Is it possible to extend this to another source (like nflfastr or similar) to enable older players like John Lynch?

Describe the solution you'd like

  • Introduce null values for the mentioned variables.
  • If null values are set in managers.js, display a questionmark in the templates
  • Use a source for players that lists older players

League ID
640240064185606144

[BUG] LEAGUE INFO sub menu

Describe the bug
If you resize the window, the LEAGUE INFO sub menu no longer opens in the correct place

Your League ID
658776020341567488

To Reproduce
Go to your league page on the desktop, resize the window horizontally, open the LEAGUE INFO sub menu

Expected behavior
The Sub menu location should move with the resize

Screenshots
Screen Shot 2021-08-03 at 4 13 32 PM

[BUG] Playoffs Not Included in Biggest Blowouts/Narrowest Wins

Describe the bug
The biggest wins and narrowest blowouts in the league records page does not consider playoffs, only regular season. In our league's case, the narrowest victory was the 2019 championship, with a margin of 0.04 points.

Your League ID
675013542918848512

Expected behavior
The narrowest wins and biggest blowouts should include playoff and championship matches, if possible.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 94.0.4606.71 (Official Build) (64-bit)

[BUG] Live news update not working

Describe the bug
The helper to pull news articles for the resource page is not working both on my league website (just forked) and the example website (on all my devices)

Your League ID
785196368615641088

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Resource page
  2. Wait
  3. Scroll down to the end of the page
  4. See error: Something went wrong: t is not iterable

[ENHANCEMENT] customizing the sidebar on the home page

Is your feature request related to a problem? Please describe.
Not a problem, but rather a customization of the home page I'd like to make.
On the sidebar, where right now we see the waiver and trades, I would much rather see a list of the next matchups, as we see on the matchup page.

League ID
785196368615641088

Additional context
I am not at all new at writing code, and I am familiar with the basics of html and css, however, svelte is something I had never heard of before and the code is getting me confused about what I should touch to start working towards this change of the home page.

Any assistance in identifying the right file to modify ( or if this change is at all possible) would be very much welcome.
I am totally willing to work on this myself, as it is a modification that I am aware not everybody would care about.

Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.