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

Add email contact to tenants #959

Merged
merged 9 commits into from
Dec 19, 2023
Merged

Add email contact to tenants #959

merged 9 commits into from
Dec 19, 2023

Conversation

Gavinok
Copy link
Contributor

@Gavinok Gavinok commented Dec 19, 2023

This PR resolves #900

Emails are now tied to a tenant upon creation and can be viewed in the Profile page

2023-12-18_16-26-53

In the Settings tenants can change the email associated with their tenant

2023-12-18_16-31-11

Finally the innkeeper can view this email when inspecting the raw content of a tenant

2023-12-18_16-30-12

@Gavinok Gavinok requested review from loneil and jamshale December 19, 2023 00:32
Signed-off-by: Gavin Jaeger-Freeborn <[email protected]>
Signed-off-by: Gavin Jaeger-Freeborn <[email protected]>
Copy link
Contributor

@loneil loneil 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, I like the flow that it takes the contact email from the reservation and then the tenant record itself (rather than the reservation) is what gets updated by the user themself.

Couple minor comments in code.

One thing we could also consider I think is adding the contact_email to the table itself so the Innkeeper can see it at-a-glance? Unless anyone else reading doesn't think that's useful for the screen real estate.

@Gavinok Gavinok requested a review from loneil December 19, 2023 19:13
@Gavinok
Copy link
Contributor Author

Gavinok commented Dec 19, 2023

The innkeeper can now view and contact tenants email's via the tenant view

2023-12-19_11-14-45

The link is a mailto: href so innkeepers will have their default mail client open when the link is clicked

@loneil
Copy link
Contributor

loneil commented Dec 19, 2023

The innkeeper can now view and contact tenants email's via the tenant view

2023-12-19_11-14-45

The link is a mailto: href so innkeepers will have their default mail client open when the link is clicked

@Gavinok oh nice call!

Minor-est quibble but can we move the email column one over to the left, just because (unless there's additional row actions like the schema one) all the created/updated dates are the rightmost column in the tables.

@Gavinok
Copy link
Contributor Author

Gavinok commented Dec 19, 2023

@loneil how does this look?
2023-12-19_12-26-23

Copy link
Contributor

@loneil loneil 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

@Gavinok Gavinok merged commit 417e315 into main Dec 19, 2023
11 checks passed
@esune esune deleted the add-email-contact-to-tenants branch December 19, 2023 21:45
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.

Update email address for approved tenant
2 participants