Skip to content

Edit Trip Modal Infrastructure#70

Merged
zghera merged 27 commits into
rename-add-trip-componentfrom
edit-trip-modal-infra
Jul 21, 2020
Merged

Edit Trip Modal Infrastructure#70
zghera merged 27 commits into
rename-add-trip-componentfrom
edit-trip-modal-infra

Conversation

@zghera
Copy link
Copy Markdown
Collaborator

@zghera zghera commented Jul 15, 2020

What is a quick description of the change?

Set up "infrastructure" such that the SaveTripModal does the work of the current AddTripModal and what would be a EditTripModal.

Is this fixing an issue?

none

Are there more details that are relevant?

The Edit Trip modal was split up into two PRs, this one and #73 to avoid one very large PR with potential issues when it came to renaming and making many changes on that renamed file.

SaveTripModal replaces AddTripModal and does the same work expect now has three additional props: title, tripId, and placeholderObj that determine whether the modal will be responsible for adding a new trip or editing an existing trip.

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

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

No unit tests as the only changes are infrastructural/organizational.

As of now, integration (end-to-end) tests were deemed non-critical. Thus, functions related to react and firestore will be tested at a later time. Unit tests for "logical" functions will be included in this PR and for the remaining PRs needed to complete the MVP.

Any additional comments?

@zghera zghera self-assigned this Jul 15, 2020
@zghera zghera requested review from anan-ya-y and keiffer01 July 16, 2020 18:10
@zghera zghera mentioned this pull request Jul 16, 2020
1 task
Comment thread frontend/src/components/ViewTrips/create-new-trip.js Outdated
Comment thread frontend/src/components/ViewTrips/create-new-trip.js Outdated
Comment thread frontend/src/components/ViewTrips/create-new-trip.js Outdated
Comment thread frontend/src/components/ViewTrips/index.js Outdated
Comment thread frontend/src/components/ViewTrips/save-trip-modal.js Outdated
Comment thread frontend/src/components/ViewTrips/save-trip-modal.js
Comment thread frontend/src/components/ViewTrips/save-trip-modal.js Outdated
@zghera zghera requested a review from anan-ya-y July 17, 2020 14:16
Comment thread frontend/src/components/ViewTrips/index.js
Comment thread frontend/src/components/ViewTrips/save-trip-modal.js Outdated
@zghera zghera requested a review from keiffer01 July 17, 2020 21:04
@zghera zghera marked this pull request as ready for review July 17, 2020 21:04
@zghera zghera merged commit 79e9d30 into rename-add-trip-component Jul 21, 2020
@zghera zghera deleted the edit-trip-modal-infra branch July 21, 2020 22:09
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.

4 participants