Skip to content

Error components for ViewActivities#77

Merged
keiffer01 merged 7 commits into
masterfrom
viewactivities-auth-errors
Jul 28, 2020
Merged

Error components for ViewActivities#77
keiffer01 merged 7 commits into
masterfrom
viewactivities-auth-errors

Conversation

@keiffer01
Copy link
Copy Markdown
Collaborator

@keiffer01 keiffer01 commented Jul 17, 2020

What is a quick description of the change?

This PR is an extension of #76, which abstracts the error messages into their own components, with buttons that redirect to the VIEW_TRIPS page.

Is this fixing an issue?

Fixes #74

Are there more details that are relevant?

The directory components/Errors was created for various error components. The following three were created:

  • ErrorGeneral
  • ErrorTripNotFound
  • ErrorNotCollaborator

Descriptions of each are given in the respective component's file. Each one also has a button redirecting the user back to their View Trips page.

Check lists (check x in [ ] of list items)

  • [ ] Test written/updating
  • [ ] Tests passing
  • Coding style (indentation, etc)

The rendering of these error messages were tested as in PR #76.

Any additional comments?

GIF below (it is dark because I was using a Night Mode extension):
Untitled_ Jul 17, 2020 2_25 AM

@keiffer01 keiffer01 requested review from anan-ya-y and zghera July 17, 2020 07:10
@keiffer01 keiffer01 self-assigned this Jul 17, 2020
@keiffer01 keiffer01 changed the title Viewactivities auth errors Error components for ViewActivities Jul 17, 2020
@keiffer01 keiffer01 linked an issue Jul 17, 2020 that may be closed by this pull request
Comment thread frontend/src/components/ViewActivities/ErrorComponents.js Outdated
@keiffer01 keiffer01 requested review from anan-ya-y and zghera July 21, 2020 23:43
@keiffer01
Copy link
Copy Markdown
Collaborator Author

Re-requesting review for nontrivial changes to the file structure. The "Are there more details that are more relevant" section has been updated accordingly.

@keiffer01 keiffer01 mentioned this pull request Jul 22, 2020
1 task
Comment thread frontend/src/components/Errors/index.js
@keiffer01 keiffer01 marked this pull request as ready for review July 22, 2020 19:56
Comment thread frontend/src/components/Errors/ErrorNotCollaborator.js Outdated
Comment thread frontend/src/components/ViewActivities/index.js Outdated
@keiffer01 keiffer01 mentioned this pull request Jul 27, 2020
3 tasks
@keiffer01 keiffer01 requested a review from HiramSilvey July 27, 2020 19:27
Base automatically changed from authenticate-user-for-trip to master July 28, 2020 16:18
@keiffer01 keiffer01 merged commit 5b34d6e into master Jul 28, 2020
@keiffer01 keiffer01 deleted the viewactivities-auth-errors branch July 28, 2020 16:44
@keiffer01 keiffer01 mentioned this pull request Jul 28, 2020
3 tasks
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.

Make error pages for different authentication outcomes

5 participants