Skip to content

Commit

Permalink
Fix assignee selection (#15)
Browse files Browse the repository at this point in the history
* Fix assignee selection

* Archive more icebreakers
  • Loading branch information
rocketmo authored Feb 16, 2024
1 parent 35273e5 commit 74cef4c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "standup",
"version": "1.2.1",
"version": "1.2.2",
"description": "A chrome extension to help facilitate standup meetings.",
"scripts": {
"build": "webpack --config webpack.config.js",
Expand Down
7 changes: 7 additions & 0 deletions src/components/icebreaker/ARCHIVE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Below is a list of icebreakers already used in a previous standup.
* How did you spend the money from your very first job?
* How do you like to eat your eggs?
* How do you think you will be/act when you are old?
* If aliens landed on Earth, what do you think they'd find the most bizarre?
* If given the option to time travel to your past and give yourself some advice, which age would you choose to go to?
* If money was no object, what would you would buy first?
* If there was a vending machine in your home that could dispense literally anything, what would you want it to dispense?
Expand All @@ -18,10 +19,12 @@ Below is a list of icebreakers already used in a previous standup.
* If you could eliminate one thing from your daily routine, what would it be and why?
* If you could have any superpower what would it be?
* If you could live anywhere in the world for a year, where would it be?
* If you could only follow one person on social media, who would it be and why?
* If you could only wear one colour for the rest of your life, what colour would you wear?
* If you could pick one coworker to switch lives with, who would it be?
* If you could teleport anywhere in the world right now, where would you go?
* If you could time travel, where is the first place you would go?
* If you had the chance to start your own business, what type of business would it be?
* If you had to lose one of your senses, which would you choose to lose?
* If you never had to sleep, what would you do with all those extra hours each day?
* If you were a character in SpongeBob SquarePants, which one would you be?
Expand All @@ -33,11 +36,13 @@ Below is a list of icebreakers already used in a previous standup.
* What are you hilariously bad at?
* What are your favourite chips?
* What are your favourite snacks?
* What condiments go on your hotdog?
* What culture would you like to learn more about?
* What did your teachers and parents say would be really important when you grew up, but it hasn't been?
* What do you do to unwind after a hard day?
* What do you geek out about?
* What do you resent paying for most?
* What do you think the ideal age to be is?
* What do you think was the most important invention in history?
* What do you wish someone taught you a long time ago?
* What do you wish your phone could do?
Expand Down Expand Up @@ -68,6 +73,7 @@ Below is a list of icebreakers already used in a previous standup.
* What is your biggest pet peeve?
* What is your drink of choice?
* What is your favourite animal?
* What is your favourite cereal?
* What is your favourite food combination?
* What is your favourite emoji?
* What is your favourite genre of movie? Why?
Expand All @@ -77,6 +83,7 @@ Below is a list of icebreakers already used in a previous standup.
* What is your favourite meme or viral video?
* What is your favourite month?
* What is your favourite room in your house?
* What is your favourite scent?
* What is your favourite season?
* What is your favourite self-care activity?
* What is your favourite song?
Expand Down
7 changes: 0 additions & 7 deletions src/components/icebreaker/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const ICE_BREAKERS: string[] = [
"What's something you're looking forward to?",
'What was a time you were totally out of your element/comfort zone?',
'What kind of people do you most enjoy hanging out with?',
'What do you think the ideal age to be is?',
'What is the best thing you have ever bought?',
"What's the best concert you've been to and why was it so good?",
'If you could be somebody else for a day who would you be?',
Expand Down Expand Up @@ -59,9 +58,7 @@ export const ICE_BREAKERS: string[] = [
'If there was a movie about your life, which actor would play you?',
'If you were a character in Shrek, which one would you be?',
'What is your favourite theme park ride?',
'What condiments go on your hotdog?',
'What is your favourite ice cream flavour?',
'What is your favourite cereal?',
'Would you rather live your life as a dog or a cat?',
'What is your favourite holiday?',
'What is your favourite trend to come out of the past 10 years?',
Expand All @@ -70,12 +67,10 @@ export const ICE_BREAKERS: string[] = [
'Have you been pleasantly surprised by anything lately?',
'Pick the person whose turn is next. What is something that they say/do often?',
'If you could set up a chat between 2 famous people (dead or alive), who would you pick?',
"What's your favourite scent?",
'If you could see one movie again for the first time, what would it be and why?',
'You have your own late-night talk show. Who do you invite as your first guest (dead or alive)?',
'If you could go back in time 10,000 years ago and make a cave painting to confuse everyone in the future, what would you draw?',
'Would you rather talk like Yoda or breathe like Darth Vader?',
"If aliens landed on Earth, what do you think they'd find the most bizarre?",
'Would you rather live 100 years in the past or 100 years in the future?',
'What is your go-to outfit when you want to feel confident and stylish?',
'If you were a flavour of ice cream, what would you be, and why?',
Expand All @@ -96,7 +91,6 @@ export const ICE_BREAKERS: string[] = [
'What is the most valuable lesson life has taught you so far?',
'If you could add one unconventional room to your house, what would it be used for?',
'If you were an online influencer, what kind of content would you create?',
'If you could only follow one person on social media, who would it be and why?',
'Should major life decisions be made with the head or the heart?',
'Is it more polite to be nice or honest?',
'What does your perfect breakfast look like?',
Expand All @@ -118,7 +112,6 @@ export const ICE_BREAKERS: string[] = [
'Do you prefer to binge-watch shows or savour them one episode at a time?',
'If you could bring back any canceled TV show for another season, which one would it be?',
'What inspired you to pursue your current career or profession?',
'If you had the chance to start your own business, what type of business would it be?',
'What is the most interesting or unusual app you have on your phone?',
'If you could create a hybrid animal by combining characteristics of two existing species, what would it be and why?',
];
4 changes: 2 additions & 2 deletions src/util/jira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function checkAssignee(personName: string): void {
const assignees = document.querySelectorAll<HTMLElement>(AVATAR_SELECTOR);
for (let index = 0; index < assignees.length; index++) {
const assignee = assignees[index];
const assigneeName = assignee.getAttribute('alt');
const assigneeName = assignee.parentElement?.nextSibling?.textContent;
if (assigneeName && doesNameMatchHeader(personName, assigneeName)) {
assignee.click();
return;
Expand All @@ -90,7 +90,7 @@ function checkAssignee(personName: string): void {

for (let index = 0; index < otherAssigneeImages.length; index++) {
const assignee = otherAssigneeImages[index];
const assigneeName = otherAssigneeImages[index].getAttribute('alt');
const assigneeName = assignee.parentElement?.nextSibling?.textContent;
if (assigneeName && doesNameMatchHeader(personName, assigneeName)) {
assignee.click();
break;
Expand Down

0 comments on commit 74cef4c

Please sign in to comment.