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

Manage Availability #972

Merged
merged 12 commits into from
Jan 7, 2019
Merged

Manage Availability #972

merged 12 commits into from
Jan 7, 2019

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented Dec 10, 2018

Availability calendar for managing day and night availability through EditListingWizard.
EditListingPage / EditListingWizard will have a new panel: EditListingAvailabilityPanel.
In addition, ManageListingCard has link to that view in "your listings" page.

Note: French translations are not yet updated: changes to fr.json

Mobile (png):
screenshot 2019-01-03 at 22 21 58

Desktop (png):
screenshot 2019-01-03 at 22 11 48

@Gnito Gnito force-pushed the manage-availability branch 2 times, most recently from 1d59236 to 6ca70ae Compare December 21, 2018 09:36
@Gnito Gnito changed the title WiP: Manage Availabililty WiP: Manage Availability Jan 2, 2019
@Gnito Gnito changed the title WiP: Manage Availability Manage Availability Jan 2, 2019
@Gnito Gnito force-pushed the manage-availability branch 3 times, most recently from a023d0e to ecd93bf Compare January 3, 2019 20:23
Copy link
Contributor

@OtterleyW OtterleyW left a comment

Choose a reason for hiding this comment

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

LGTM, I had few small questions

.title {
margin-bottom: 19px;

@media (--viewportLarge) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is a new CSS file would it be better not to nest the media queries? If it was something that we shouldn't do anymore.


padding-top: 1px;

@media (--viewportMedium) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Here the same thing with media queries. Would it be better not to nest them?

).seats;

const currentException = findException(exceptions, date);
const draft = draftException(exceptions, start, end, seatsFromPlan);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could the variable draft be renamed to draftException and function draftExceptione.g. to makeDraftException for consistency because just draft might be confusing. At least I first thought it had something to do with a draft listing.

@@ -33,18 +25,34 @@
flex-grow: 1;
position: relative;
width: 100%;
height: 100%;
/*height: 100%;*/
Copy link
Contributor

Choose a reason for hiding this comment

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

This row is not needed

@Gnito Gnito temporarily deployed to sharetribe-starter-app January 4, 2019 11:10 Inactive
@Gnito Gnito temporarily deployed to sharetribe-starter-app January 4, 2019 12:11 Inactive
- requestFetchBookings
- requestFetchAvailabilityExceptions
- requestCreateAvailabilityException
- requestDeleteAvailabilityException
@Gnito Gnito temporarily deployed to sharetribe-starter-app January 4, 2019 13:10 Inactive
@Gnito Gnito merged commit ff682d9 into master Jan 7, 2019
@Gnito Gnito deleted the manage-availability branch January 7, 2019 11:11
@Gnito Gnito mentioned this pull request Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants