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

Issues 57/design new admin page questionnaire #156

Merged
merged 2 commits into from Aug 9, 2021

Conversation

mrgjune
Copy link
Collaborator

@mrgjune mrgjune commented Aug 3, 2021

📜 Description

  • Describe the general shape of this PR (new feature? refactor? bug fix? one-line change?)
    new features

  • Describe what changes are being made

    • Added a route for deleting an entire questionnaire from the backend
    • Added a route for uploading a new questionnaire - backend
    • On frontend new view for questionnaires for the admins: /questionnaires
    • On the frontend added a view that allows you to upload a new questionnaire
    • View the questions of a questionnaire by language
    • Delete a questionnaire
  • Describe why these changes are being made
    Allow the app to have multiple questionnaires and give admin control of updating questionnaires

  • Describe how you tested these changes
    functional tests

  • Link to relevant external documentation


📋 Mandatory Checklist

  • Example of a checked item (please remove when creating your Pull Request)

  • Linked to the Github Issues being addressed using the right sidebar ➡️

  • Have you discussed these changes with the project leader(s)?

  • Do all variable and function names communicate what they do?

  • Were all the changes commented and / or documented?

  • Is the PR the right size? (If the PR is too large to review, it might be good to break it up into multiple PRs.)

  • Does all work in progress, temporary, or debugger code have a TODO comment with links to Github issues?

  • If you changed the user interface, did you add before and after screenshots to below?


🖼️ Screenshots and Screen Recordings

Before

After


📘 Glossary

  • PR = Pull Request

@mrgjune mrgjune changed the base branch from master to develop August 3, 2021 17:32
@mrgjune mrgjune linked an issue Aug 3, 2021 that may be closed by this pull request
@mrgjune mrgjune marked this pull request as ready for review August 3, 2021 17:41
@@ -13,7 +13,7 @@ router.route('/').get((req, res) => {

router.route('/:title.:language').get((req, res) => {
Questionnaires.findOne({
title: req.params.title,
title: decodeURIComponent(req.params.title),
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this needed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

in case the title has any special characters or spaces

<Navbar content={content} dashboard={true} />
<section>
{chooseFile ? (
<form>
Copy link
Collaborator

Choose a reason for hiding this comment

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

yes correct use of form thank you!

Copy link
Collaborator

@JMStudiosJoe JMStudiosJoe left a comment

Choose a reason for hiding this comment

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

fantastic work @mrgjune thank you very much! just a couple of comments before we merge

@JMStudiosJoe JMStudiosJoe merged commit e8ac3f4 into develop Aug 9, 2021
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.

Design new admin page for uploading excel questionnaire files
2 participants