-
Notifications
You must be signed in to change notification settings - Fork 153
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
[Refactor] Promote new App shell and delete old apps #5651
Conversation
Error RangeError
Dangerfile
|
Duplicate Sources / Packages - Duplicates found!
|
2899821
to
51f973d
Compare
@@ -72,7 +72,7 @@ const render = (me: PurchaseAppTestQueryRawResponse["me"], user: User) => | |||
} | |||
} | |||
`, | |||
wrapper: children => ( | |||
wrapper: (children) => ( |
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.
Just don't know whats up with prettier these days :/
1f12209
to
4b013c5
Compare
const ReviewRoute = loadable(() => import("./Routes/Review")) | ||
const AcceptRoute = loadable(() => import("./Routes/Accept")) | ||
const DeclineRoute = loadable(() => import("./Routes/Reject")) | ||
const StatusRoute = loadable(() => import("./Routes/Status")) |
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.
There's diminishing returns by bundle splitting everything. It's fine to split the top most route and then let it load its children, especially if children are really tiny bits of UI as is the case here.
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.
Yup! Makes sense.
fb609db
to
87644e5
Compare
Not a comprehensive review by any means but have been clicking around this morning without issue. Looking good — very exciting |
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.
LGTM! So amazing to see all of those temporary/AB test specific changes go. Will be playing around with the review app more, but so far looking 😎
/** | ||
* ----------------------------------------------------------------------------- | ||
* | ||
* Developers! Wait! |
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.
Nice! Good call.
@@ -25,20 +42,12 @@ app.use(require("./apps/auctions")) | |||
app.use(require("./apps/auctions2").app) | |||
app.use(require("./apps/auction_lots")) | |||
|
|||
// TODO: Remove after AB test ends. |
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.
🔥
@@ -235,13 +234,7 @@ ArtworkSidebarCommercialContainerState | |||
) | |||
} else { | |||
const url = `/orders/${orderOrError.order.internalID}` | |||
|
|||
// FIXME: Remove once A/B test completes |
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.
Yes, nice a lot of these places with the special handling for router links.
@@ -96,7 +96,7 @@ export class Accept extends Component<AcceptProps> { | |||
logger.error(error) | |||
switch (error.code) { | |||
case "capture_failed": { | |||
const parsedData = get(error, e => JSON.parse(e.data), {}) | |||
const parsedData = get(error, (e) => JSON.parse(e.data), {}) |
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.
I was commenting on a MP PR of @sweir27 yesterday, is this a new Prettier/setting? Feels a bit verbose, so many paranthesis!
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.
I agree -- prettier v2's "breaking change" was setting parans to default. That said i can understand the decision, since its always kinda a headache to go back and add adition args or destructure an object or something; at scale this saves a lot of time.
Need to look at our prettier settings and get this stuff consistent / run over repo.
const ReviewRoute = loadable(() => import("./Routes/Review")) | ||
const AcceptRoute = loadable(() => import("./Routes/Accept")) | ||
const DeclineRoute = loadable(() => import("./Routes/Reject")) | ||
const StatusRoute = loadable(() => import("./Routes/Status")) |
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.
Yup! Makes sense.
Cool! Added deploy block to force and going to merge to get this to staging. |
Ready to review, but do not merge -- need to do some final review-app QA before this goes into master.
This promotes our experimental-app-shell routing framework A/B test to 100% and deletes all of our now-unneeded
apps/app-name
code. Now that this is in I anticipate some rolling cleanup throughout.Review App:
https://new-app-shell.artsy.net/
Details:
apps/artsy-v2
contains the new app shell router code. It points atv2/Apps/getAppRoutes
which in turn loads all of our new apps and dynamically splits up JS assets.Next: