Skip to content

Commit

Permalink
paxminer menu visual updates
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpetzoldt committed Jan 5, 2025
1 parent fedd09c commit 7ed24bf
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 12 deletions.
2 changes: 1 addition & 1 deletion slackblast/utilities/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,5 @@
"send_ao_leaderboard": "ao_leaderboard",
"send_q_charts": "q_charts",
"send_region_leaderboard": "region_leaderboard",
"send_region_stats": "region_stats",
# "send_region_stats": "region_stats",
}
52 changes: 41 additions & 11 deletions slackblast/utilities/slack/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,31 +584,42 @@
)

PAXMINER_REPORT_DICT = {
"names": ["PAX Charts", "Q Charts", "AO Leaderboards", "Region Leaderboard", "Region Stats"],
"values": ["pax_charts", "q_charts", "ao_leaderboards", "region_leaderboard", "region_stats"],
"names": [
"PAX Charts",
"Q Charts",
"AO Leaderboards",
"Region Leaderboard",
# "Region Stats",
],
"values": [
"pax_charts",
"q_charts",
"ao_leaderboards",
"region_leaderboard",
# "region_stats",
],
"fields": [
"send_pax_charts",
"send_q_charts",
"send_ao_leaderboard",
"send_region_leaderboard",
"send_region_stats",
# "send_region_stats",
],
"schema": [
PaxminerRegion.send_pax_charts,
PaxminerRegion.send_q_charts,
PaxminerRegion.send_ao_leaderboard,
PaxminerRegion.send_region_leaderboard,
PaxminerRegion.send_region_stats,
# PaxminerRegion.send_region_stats,
],
}

CONFIG_PAXMINER_FORM = orm.BlockView(
blocks=[
orm.InputBlock(
label="1st F Channel (for reports)",
action=actions.CONFIG_PAXMINER_1STF_CHANNEL,
optional=False,
element=orm.ChannelsSelectElement(placeholder="Select the channel..."),
label="Which channels should be scraped by PAXMiner?",
action=actions.CONFIG_PAXMINER_SCRAPE_CHANNELS,
element=orm.MultiChannelsSelectElement(placeholder="Select some channels..."),
),
orm.InputBlock(
label="Which reports should be enabled?",
Expand All @@ -622,9 +633,28 @@
optional=False,
),
orm.InputBlock(
label="Which channels should be scraped by PAXMiner?",
action=actions.CONFIG_PAXMINER_SCRAPE_CHANNELS,
element=orm.MultiChannelsSelectElement(placeholder="Select some channels..."),
label="Which channel should region reports be posted to?",
action=actions.CONFIG_PAXMINER_1STF_CHANNEL,
optional=False,
element=orm.ChannelsSelectElement(placeholder="Select the channel..."),
),
orm.SectionBlock(
label="""
*Report Descriptions*
*PAX Charts:*
- One graph sent to each PAX. YTD posting summary, broken down by month and bisected by AO. Contains a total YTD in the upper right
*Q Charts:*
- Graph sent to each AO channel of who has Q'd in the last month.
- Graph sent to the firstf channel, who has Q'd in the last month across the region bisected by AO.
*AO Leaderboards:*
- Two Graphs Sent to each AO channel
- PAX posts in last month
- PAX posts YTD
*Region:*
- Graph sent to the firstf channel of PAX Posts in the last month
- Graph sent to the firstf channel of PAX Posts YTD.
""" # noqa: E501
),
]
)
Expand Down

0 comments on commit 7ed24bf

Please sign in to comment.