Skip to content
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

Event UI: Question List/Queue #205

Merged
merged 29 commits into from
Feb 10, 2022
Merged

Conversation

claynaut
Copy link
Collaborator

@claynaut claynaut commented Jan 29, 2022

1. Please briefly explain what it is you coded

Restyled question list and queue based on Figma design.

Nodes referenced:

  • Question queue
  • Question list (Note that I didn't add a play/pause button since I was unsure of how it would function and I thought it would be a different feature to be done in a separate PR)

2. Please briefly explain your approach (new components added? modified? removed?)

Use a combination of Material UI components to restyle question list and queue. Modified some mutations to allow variables to be used in certain components (i.e. last name for question cards, enqueue/dequeue functionality for upcoming questions, etc.) Created a separate component for the current question to be displayed at the top of the event sidebar.

3. Any packages added/updated/removed

N/A

(Optional) 4. Any feature recommendations/insights/questions/comments/etc.?

@claynaut claynaut temporarily deployed to development January 29, 2022 02:54 Inactive
@claynaut claynaut temporarily deployed to development January 29, 2022 02:54 Inactive
@claynaut claynaut added UI/UX Has to do with the user interface/user experience ready-for-review labels Jan 29, 2022
@claynaut claynaut temporarily deployed to development January 29, 2022 03:22 Inactive
@claynaut claynaut temporarily deployed to development January 29, 2022 03:22 Inactive
@claynaut claynaut temporarily deployed to development January 30, 2022 22:08 Inactive
@claynaut claynaut temporarily deployed to development January 30, 2022 22:08 Inactive
Copy link
Collaborator

@DevelopmentByDavid DevelopmentByDavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Will take a closer look at the CSS after I review spec.

Comment on lines +48 to +52
input: {
['& fieldset']: {
borderRadius: 9999 // rounded text field
},
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, this is interesting. Did you find this recommended somewhere in the MUI docs?

Copy link
Collaborator Author

@claynaut claynaut Jan 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found it on a Github issue on how to edit text fields of MUI components. Link here.

app/client/src/components/ListFilter/ListFilter.tsx Outdated Show resolved Hide resolved
<SearchIcon />
</InputAdornment>
),
// TODO: add refresh action
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a github issue for this and link it here for better tracking

left: '50%',
transform: 'translateX(-50%)',
background: '#F5C64F',
color: 'white',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

theme.palette.background.default (so we can support dark mode in the future)

https://mui.com/customization/default-theme/

@@ -0,0 +1,124 @@
/* eslint-disable @typescript-eslint/indent */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, is there a reason we're moving current question card outside of manage questions?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see after looking at the figma design. Is the question carousel getting removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so based on the Figma design, so I made that current question card component.

<ThumbUp color='disabled' />
</Badge>
<CardContent className={classes.stats}>
<ThumbUp fontSize='small' htmlColor='#8EAFFF' />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use theme based colors.

Copy link
Collaborator Author

@claynaut claynaut Jan 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to match the colors from the Figma, so I'll add it to the theme file.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget that you can use one of the theme colors + lighten or darken. https://mui.com/customization/palette/#default-values for more details.

@claynaut claynaut temporarily deployed to development January 31, 2022 01:22 Inactive
@claynaut claynaut temporarily deployed to development January 31, 2022 01:22 Inactive
@claynaut claynaut temporarily deployed to development January 31, 2022 01:30 Inactive
@claynaut claynaut temporarily deployed to development January 31, 2022 01:30 Inactive
@claynaut claynaut temporarily deployed to development January 31, 2022 01:46 Inactive
@claynaut claynaut temporarily deployed to development January 31, 2022 01:46 Inactive
@claynaut claynaut temporarily deployed to development January 31, 2022 07:29 Inactive
@claynaut claynaut temporarily deployed to development January 31, 2022 07:29 Inactive
Copy link
Collaborator

@kadey001 kadey001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks and works well. Just two minor changes I'd like you to make. I think the current question should be excluded from the previous tab and the order of previous questions should be reversed so the last question asked would be at the top and oldest would be at the bottom. I think it flows better that way.
Also if it's not too difficult, could you make the yellow nextQuestion tab stationary when reordering that question?

@kadey001 kadey001 temporarily deployed to development February 7, 2022 23:56 Inactive
@kadey001 kadey001 temporarily deployed to development February 7, 2022 23:56 Inactive
@kadey001 kadey001 temporarily deployed to development February 8, 2022 00:06 Inactive
@kadey001 kadey001 temporarily deployed to development February 8, 2022 00:06 Inactive
@claynaut claynaut temporarily deployed to development February 9, 2022 02:06 Inactive
@claynaut claynaut temporarily deployed to development February 9, 2022 02:06 Inactive
@claynaut claynaut temporarily deployed to development February 9, 2022 02:44 Inactive
@claynaut claynaut temporarily deployed to development February 9, 2022 02:44 Inactive
@claynaut claynaut temporarily deployed to development February 9, 2022 02:50 Inactive
@kadey001 kadey001 temporarily deployed to development February 10, 2022 00:00 Inactive
@kadey001 kadey001 temporarily deployed to development February 10, 2022 00:00 Inactive
@kadey001 kadey001 merged commit e8b6559 into c2c-project:dev Feb 10, 2022
@kadey001 kadey001 temporarily deployed to development February 10, 2022 00:01 Inactive
@claynaut claynaut deleted the event-ui-questions branch February 10, 2022 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review UI/UX Has to do with the user interface/user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants