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

added conditional on sessions signup page so if no mentors are availa… #159

Merged

Conversation

capelhoworth
Copy link
Contributor

@capelhoworth capelhoworth commented Sep 1, 2023

…ble at a selected time then a message displays telling the user

Pull Request Template

1. Targeted Issue

Render a message to show that the skills/time frame selected does not have any mentors available

Ticket #114

2. Overview of Solution

Put a conditional (filteredMentors.length === 0 ?) that would display "No Mentors are available at this time." when array length was zero.

3. Tools Used

React and MUI

4. Testing Strategy

Usage

5. Future Implications

Users will immediately know that their search parameters do not yield a search result instead of a malfunction occurring in the app.

6. Screenshots

Screenshot 2023-09-01 at 10 30 22 AM

Screenshot 2023-09-01 at 10 31 02 AM

7. Code Reviewers

Luke or Nathan will do the PR?


Before you go...

  • I have linked the relevant issue
  • I have provided an overview of my solution
  • I have shared the tools I've used
  • I have outlined my testing strategy
  • I have considered future implications of my changes
  • I have included relevant screenshots
  • I have kept my team in the loop

Big high-fives for your incredible pull request! We're thrilled to have you as a contributor! Our team will dig into your proposed changes and give you some feedback or merge them if they're good to go. Your contributions mean the world to us!

…ble at a selected time then a message displays telling the user
@netlify
Copy link

netlify bot commented Sep 1, 2023

Deploy Preview for momentum-mentors ready!

Name Link
🔨 Latest commit de639df
🔍 Latest deploy log https://app.netlify.com/sites/momentum-mentors/deploys/64f7af11d99ccb00077cb8fc
😎 Deploy Preview https://deploy-preview-159--momentum-mentors.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@nzeager nzeager left a comment

Choose a reason for hiding this comment

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

This is a great update! Even though this ended up being something different than the origin ticket, I think it will help a lot. And thanks for cleaning up the code some while you were at it. A few changes before I approve:

  1. Update the ticket number in the PR description from 60 to 114, to match the new trello ticket I created.
  2. Can you update the displayed message to say “No mentors are available for on this day.”? I want it to convey that there may be mentors available for that skill on other days, or mentors helping with other skills on the selected day. Feel free to suggest other ideas.
  3. The message currently displays when they haven’t selected a topic or day. Can we hide it in that case?
  4. Indent the message further in than the text “Select a mentor for:”.

I've added a screenshot for reference of fixes 2-4.
Screen Shot 2023-09-01 at 4 40 42 PM

@capelhoworth
Copy link
Contributor Author

Screenshot 2023-09-05 at 6 43 43 PM

Copy link
Member

@nzeager nzeager left a comment

Choose a reason for hiding this comment

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

Updates look great!

Edit: meant to approve rather than request changes

Copy link
Member

@nzeager nzeager left a comment

Choose a reason for hiding this comment

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

Updates look great!

@nzeager nzeager merged commit 0d4be5a into TeamProductionSystem:main Sep 6, 2023
1 check passed
GitLukeW pushed a commit that referenced this pull request Sep 9, 2023
added conditional on sessions signup page so if no mentors are availa…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants