-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Invites: move /accept-invite to /my-sites/invites #1108
Conversation
import InviteHeader from './invite-header'; | ||
import LoggedInAccept from './logged-in-accept'; | ||
import LoggedOutInvite from './logged-out-invite'; | ||
import InviteHeader from 'components/invites/invite-header'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid app-components in client/components (purer UI components). I'd place invite react components in "my-sites".
7a88e41
to
7bc488c
Compare
3b6e5f9
to
a8775f5
Compare
@@ -177,6 +172,11 @@ | |||
@import 'my-sites/draft/style'; | |||
@import 'my-sites/drafts/style'; | |||
@import 'my-sites/exporter/style'; | |||
@import 'my-sites/invites/invite-form-header/style'; | |||
@import 'my-sites/invites/invite-header/style'; | |||
@import 'my-sites/invites/invite-accept/logged-in/style'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the logged-in / logged-out things should be prefixed or become sub-components.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't they sub-components?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A subcomponent is invite-accept/logged-in.jsx
, the folder logged-in
is a full component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, to clarify, we either need to bring the logged-in
and logged-out
into the my-sites/invites
directory, or do the sub-components?
a8775f5
to
06d3b40
Compare
Code wise, you already addressed my comment it looks like. Functionally, this works fine. In testing, I found a few bugs, but I don't believe those to be related to this PR and I have created separate issues for them. |
…-invites Invites: move /accept-invite to /my-sites/invites
How to test
Everything in the invite process should still flow.
update/move-accept-invite-to-invites
http://calypso.dev:3000/accept-invite/<blog_id>/<invitation_id>
Closes #1101