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

admin create notification page and route #160

Merged
merged 5 commits into from
Apr 10, 2020
Merged

Conversation

emmaeagles
Copy link
Contributor

@emmaeagles emmaeagles commented Apr 9, 2020

Summary

From the student list page, the admin can filter students to select who they want to send a notification to by choosing students then clicking the button below the table.
image

This brings them to a page where they can modify the list of students and write a title and body for the notification.

image

Test Plan

How did you test your changes?
screenshots are attached

Related Issues

Which issues does this PR resolve/work on?
#104

@kraglalbert kraglalbert added the frontend A task/issue related to the frontend label Apr 9, 2020
@kraglalbert
Copy link
Member

kraglalbert commented Apr 9, 2020

Can you align the "Send Notifications to Selected Students" button to the left instead of the middle?

Frontend/src/pages/admin/AdminCreateNotificationPage.vue Outdated Show resolved Hide resolved
Frontend/src/pages/admin/AdminCreateNotificationPage.vue Outdated Show resolved Hide resolved
Frontend/src/pages/admin/AdminCreateNotificationPage.vue Outdated Show resolved Hide resolved
Frontend/src/pages/admin/CreateNotificationPage.vue Outdated Show resolved Hide resolved
Frontend/src/pages/admin/CreateNotificationPage.vue Outdated Show resolved Hide resolved
Frontend/src/router/routes.js Outdated Show resolved Hide resolved
@emmaeagles
Copy link
Contributor Author

image

Copy link
Member

@kraglalbert kraglalbert left a comment

Choose a reason for hiding this comment

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

A few more comments then I'll approve

},
methods: {
goToStudentCoop() {
this.$router.push("/admin/studentcoops");
Copy link
Member

Choose a reason for hiding this comment

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

nit: change this route to /admin/student-coops

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this isnt even a real page but ok lol

@click="sendNotification()"
label="Send Notification"
class="notifPageComponents"
/>
Copy link
Member

Choose a reason for hiding this comment

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

Add a q-spinner here that should show while the notifications are being created (just better for UX, it's been done in a bunch of other pages/components already)


<style scoped lang="scss">
h6 {
margin: 10px;
Copy link
Member

Choose a reason for hiding this comment

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

You can use the q-ma-md class instead of defining the styles yourself (ma = margin-all, md= medium). https://quasar.dev/style/spacing#Examples

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this literally never ends up working the way i want it to so i really dont want to waste more time trying to get this shit to align properly so i dont rlly want to go down this road again

Copy link
Member

Choose a reason for hiding this comment

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

Ok no worries it's not a big deal

Copy link
Member

@kraglalbert kraglalbert 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, just left one comment for the q-btn

/>
<q-btn
v-if="!sending"
color="primary"
Copy link
Member

Choose a reason for hiding this comment

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

Add :disabled="sending" here to disable the button while it's sending

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it doesnt show up when its sending tho


<style scoped lang="scss">
h6 {
margin: 10px;
Copy link
Member

Choose a reason for hiding this comment

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

Ok no worries it's not a big deal

@emmaeagles emmaeagles merged commit 8219461 into master Apr 10, 2020
@emmaeagles emmaeagles deleted the emma/admin-notif branch April 10, 2020 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend A task/issue related to the frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants