-
Notifications
You must be signed in to change notification settings - Fork 138
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
Trade filter #358
Open
mchvn
wants to merge
13
commits into
zengm-games:master
Choose a base branch
from
mchvn:trade-filter
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Trade filter #358
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
41db9b4
initial dev work
4fd158f
added comment
410d4ad
added comment
1c68118
updating layout of tradefilter
7d0d029
Merge branch 'trade-filter' of https://github.com/mchvn/gm-games into…
aa77edb
updating trade filter to be more mobile friendly
15c68e6
syncing with upstream
d283adc
reworking filter logic
89ff148
Merge remote-tracking branch 'upstream/master' into trade-filter
3413cbf
removing some debugging code
8d0c94d
fix issue where player-less trades were filtered out
2e0ca69
pr fixes
03faf98
fixing filter types
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,8 @@ | ||
import PropTypes from "prop-types"; | ||
import { bySport } from "../../common"; | ||
import { SKILLS } from "../../common/constants"; | ||
|
||
const tooltips = bySport({ | ||
basketball: { | ||
"3": "Three Point Shooter", | ||
S: "Scorer", | ||
A: "Athlete", | ||
B: "Ball Handler", | ||
Di: "Interior Defender", | ||
Dp: "Perimeter Defender", | ||
Po: "Post Scorer", | ||
Ps: "Passer", | ||
R: "Rebounder", | ||
V: "Volume Scorer", | ||
}, | ||
football: { | ||
Pa: "Accurate Passer", | ||
Pd: "Deep Passer", | ||
Ps: "Smart Passer", | ||
A: "Athletic", | ||
X: "Explosive Runner", | ||
H: "Hands", | ||
Bp: "Pass Blocker", | ||
Br: "Run Blocker", | ||
PR: "Pass Rusher", | ||
RS: "Run Stopper", | ||
L: "Lockdown Coverage", | ||
}, | ||
hockey: { | ||
Pm: "Playmaker", | ||
Pw: "Power", | ||
G: "Grinder", | ||
E: "Enforcer", | ||
S: "Sniper", | ||
}, | ||
}); | ||
const tooltips = SKILLS; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Glad to see this gone :) for the same reason I wrote above, this old code of mine was bad because it required the list of skills here to remain in sync with the list of skills in |
||
console.log(tooltips); | ||
|
||
const SkillsBlock = ({ | ||
className, | ||
|
@@ -56,7 +24,7 @@ const SkillsBlock = ({ | |
title={ | ||
// https://github.com/microsoft/TypeScript/issues/21732 | ||
// @ts-ignore | ||
tooltips.hasOwnProperty(skill) ? tooltips[skill] : null | ||
tooltips.hasOwnProperty(skill) ? tooltips[skill] : undefined | ||
} | ||
> | ||
{skill} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very recently a "V" "Volume scorer" label was added to "scoring", looks like it got lost in a merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also just realized I seem to have caught you guys as hockey is being added. I'll go ahead and make sure those are included as well