Skip to content

Commit

Permalink
refactor: update new member info
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Zaneski <[email protected]>
  • Loading branch information
eddiezane committed Aug 31, 2024
1 parent 304da9a commit 2bfa661
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions app/External/Slack/Modals/NewMemberInfoModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ class NewMemberInfoModal implements ModalInterface

private Modal $modalView;

private const INFO = array(
"Don't live or sleep at the space. That includes in the parking lot. Don't leave your car in the lot overnight.",
"We're a drug and alcohol free space.",
"There are other tenants in the building. Don't go upstairs except for the gender neutral bathroom since there's not one on the first floor. Close denhac doors if no one else is in the room. The exterior doors are unlocked randomly throughout the day.",
"Slack has many channels you can join. Channels prefixed with help- are a good place to start to ask for training on equipment.",
"Read all signs everywhere and abide by them. Also read the wiki. If something isn't in the wiki, add it.",
"The last Saturday of the month is Hack denhac Day. The space is closed for personal project work. Come help.",
"This is a community. You are not a customer, you are a member. Leave the space better than you found it. Take out the trash. Communicate any issues through Slack.",
);

public function __construct()
{
$this->modalView = Kit::newModal()
Expand All @@ -20,16 +30,10 @@ public function __construct()
->clearOnClose(true)
->clearOnClose('Close');

$this->modalView->newSection()
->mrkdwnText("1. Don't live at/sleep at the space. That includes in the parking lot. Don't leave your car in the lot overnight.");
$this->modalView->newSection()
->mrkdwnText("2. We're a drug and alcohol free space.");
$this->modalView->newSection()
->mrkdwnText("3. There are other tenants in the building. Don't go upstairs except for the gender neutral bathroom since there's not one on the first floor. Close denhac doors if no one else is in the room.");
$this->modalView->newSection()
->mrkdwnText("4. Our Slack instance has many channels, you'll only be in a few by default. Channel prefixes like help- are a good place to start to ask for training on equipment.");
$this->modalView->newSection()
->mrkdwnText('5. Leave the space better than you found it. Communicate any issues through Slack.');
foreach ($this->INFO as $info) {
$this->modalView->newSection()
->mrkdwnText($info);
}
}

public static function callbackId(): string
Expand Down

0 comments on commit 2bfa661

Please sign in to comment.