Skip to content

Commit

Permalink
Placeholder files for Advanced Player Search
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Jul 3, 2024
1 parent 42835dc commit 5e23c98
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ui/util/menuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,14 @@ const menuItems: (MenuItemLink | MenuItemHeader)[] = [
path: ["upcoming_free_agents"],
text: "Upcoming Free Agents",
},
{
type: "link",
active: pageID => pageID === "advancedPlayerSearch",
league: true,
commandPalette: true,
path: ["advanced_player_search"],
text: "Advanced Player Search",
},
{
type: "link",
active: pageID => pageID === "trade",
Expand Down
1 change: 1 addition & 0 deletions src/ui/util/routeInfos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ const routeInfos = {
"/l/:lid/auto_relocate": "autoRelocate",
"/l/:lid/compare_players": "comparePlayers",
"/l/:lid/compare_players/:info": "comparePlayers",
"/l/:lid/advanced_player_search": "advancedPlayerSearch",
};

export default routeInfos;
11 changes: 11 additions & 0 deletions src/ui/views/AdvancedPlayerSearch.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import useTitleBar from "../hooks/useTitleBar";

const AdvancedPlayerSearch = () => {
useTitleBar({
title: "Advanced Player Search",
});

return "Hi";
};

export default AdvancedPlayerSearch;
2 changes: 2 additions & 0 deletions src/ui/views/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Account from "./Account";
import AccountUpdateCard from "./AccountUpdateCard";
import Achievements from "./Achievements";
import AdvancedPlayerSearch from "./AdvancedPlayerSearch";
import AllStar from "./AllStar";
import AllStarDunk from "./AllStarDunk";
import AllStarHistory from "./AllStarHistory";
Expand Down Expand Up @@ -114,6 +115,7 @@ export default {
Account,
AccountUpdateCard,
Achievements,
AdvancedPlayerSearch,
AllStar,
AllStarDunk,
AllStarHistory,
Expand Down
5 changes: 5 additions & 0 deletions src/worker/api/processInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,13 @@ const comparePlayers = (params: Params) => {
};
};

const advancedPlayerSearch = () => {
return {};
};

export default {
account,
advancedPlayerSearch,
allStarDunk: validateSeasonOnly,
allStarTeams: validateSeasonOnly,
allStarThree: validateSeasonOnly,
Expand Down
9 changes: 9 additions & 0 deletions src/worker/views/advancedPlayerSearch.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { ViewInput } from "../../common/types";

const updateAdvancedPlayerSearch = async (
inputs: ViewInput<"advancedPlayerSearch">,

Check failure on line 4 in src/worker/views/advancedPlayerSearch.ts

View workflow job for this annotation

GitHub Actions / build

'inputs' is defined but never used
) => {
return {};
};

export default updateAdvancedPlayerSearch;
2 changes: 2 additions & 0 deletions src/worker/views/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import account from "./account";
import accountUpdateCard from "./accountUpdateCard";
import achievements from "./achievements";
import advancedPlayerSearch from "./advancedPlayerSearch";
import allStar from "./allStar";
import allStarDunk from "./allStarDunk";
import allStarHistory from "./allStarHistory";
Expand Down Expand Up @@ -108,6 +109,7 @@ export default {
account,
accountUpdateCard,
achievements,
advancedPlayerSearch,
allStar,
allStarDunk,
allStarHistory,
Expand Down

0 comments on commit 5e23c98

Please sign in to comment.