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

Deploy #6106

Merged
merged 36 commits into from
Aug 17, 2020
Merged

Deploy #6106

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
18b41eb
Prefers main, fallback to wide
dzucconi Aug 12, 2020
27684e6
scroll to top of vrs when show more pressed
ashleyjelks Aug 13, 2020
93216c3
use Router Link instead of Link for VR navigation
ashleyjelks Aug 13, 2020
c32739e
GALL-3205--Clicking "View More" Bug Fix (#6102)
artsy-peril[bot] Aug 14, 2020
8f7a799
Merge pull request #6093 from dzucconi/chore/FX-2158--update-main-images
sweir27 Aug 14, 2020
53b6c8c
Webpack Analyzer Defaults
icirellik Aug 14, 2020
52f85ff
Wires up Feature#layout to field
dzucconi Aug 11, 2020
82ecb68
Wires up OrderedSet#layout to field
dzucconi Aug 13, 2020
c37ee09
Adjusts focus state
dzucconi Aug 14, 2020
a2d737f
Adjusts NavBar NavItem focus state (#6109)
artsy-peril[bot] Aug 14, 2020
ab0a349
Adds role="presentation" to unfocusable anchors
dzucconi Aug 14, 2020
dbc25a5
Merge pull request #6084 from dzucconi/chore/wire-layout
mzikherman Aug 14, 2020
8dce543
Merge pull request #6107 from artsy/webpack-analyzer-defaults
damassi Aug 14, 2020
d008676
Merge pull request #6110 from dzucconi/fix/nav-a11y-role
williardx Aug 14, 2020
fb19e67
Update relay and related dependencies
zephraph Jul 15, 2020
6c52a75
Downgrade to relay v9
zephraph Jul 30, 2020
3262be5
Update found
zephraph Jul 30, 2020
0a099c4
Fix type errors w/ found & relay upgrades
zephraph Aug 6, 2020
3e9358a
Update relay generated files for v9
zephraph Aug 6, 2020
c8fd891
Upgrade found-scroll for relay v9
zephraph Aug 6, 2020
007529d
Upgrade found, fix type errors
damassi Aug 13, 2020
f32321e
Fix failing test
damassi Aug 13, 2020
83835c0
Lock package versions
damassi Aug 14, 2020
33675b7
Remove ts-ignore
damassi Aug 14, 2020
d0791ca
Bump reaction
damassi Aug 14, 2020
bf3134c
Merge pull request #5934 from artsy/update-relay
damassi Aug 14, 2020
33fdb71
Pin dependencies
renovate-bot Aug 14, 2020
f9b8273
Add ArtistSeriesMeta
williardx Aug 14, 2020
c11a8fb
Fix incorrectly named import
williardx Aug 14, 2020
474f629
Handle case when artist series has no artist for meta tags
williardx Aug 14, 2020
9e17407
Merge pull request #6111 from artsy/will/FX-2027
williardx Aug 14, 2020
e6e2648
Update review app docs
damassi Aug 14, 2020
f7e7c13
Merge pull request #6116 from artsy/add-delete-review-app-step
damassi Aug 14, 2020
579e1b6
Update dep @artsy/palette from 12.0.2 to v12.1.0
renovate-bot Aug 14, 2020
0ecf37f
Adds /fair2 route and basic page
sweir27 Aug 17, 2020
0a9c556
Merge pull request #6117 from artsy/fair2
mzikherman Aug 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 3 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"editor.rulers": [
80
],
"editor.rulers": [80],
"editor.tabSize": 2,
"javascript.validate.enable": true,
"search.exclude": {
Expand All @@ -16,7 +14,7 @@
"editor.formatOnSave": false
},
"typescript.tsdk": "./node_modules/typescript/lib",
"debug.node.autoAttach": "on",
"debug.node.autoAttach": "off",
"cSpell.ignoreWords": [],
"cSpell.diagnosticLevel": "Hint",
"cSpell.ignorePaths": [
Expand All @@ -34,4 +32,4 @@
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
}
}
}
13 changes: 13 additions & 0 deletions docs/creating_review_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@ CircleCI will match the `review-app-` prefix and either:
1. Create a review app using `build_review_app.sh` if the review app doesn't
exist yet (i.e. first successful push of the branch), or
2. Update an existing review app using `update_review_app.sh`
3. Once CI is complete follow [this step](https://github.com/artsy/force/blob/master/docs/creating_review_app.md#dns-setup) to setup DNS.

> Once you're done working with the review app it (currently) has to be deleted manually

#### Deleting a Review App

Run:

```sh
yarn delete-review-app <name>
```

The `name` is the name of the branch, minus the `review-app-` prefix.

#### Manual Steps

Expand Down
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"compile": "babel src/v2 --out-dir dist/v2 -s --source-map --extensions '.js,.jsx,.ts,.tsx' --ignore src/v2/**/__tests__,src/v2/**/__stories__",
"cypress:run": "./node_modules/.bin/cypress run",
"cypress": "./node_modules/.bin/cypress open",
"delete-review-app": "kubectl --context staging delete namespace",
"jest": "JEST_JUNIT_OUTPUT=reports/junit/js-test-results.xml node --expose-gc --max_old_space_size=4096 ./node_modules/.bin/jest --no-cache --runInBand --logHeapUsage",
"lint": "eslint --cache --cache-location '.cache/eslint/' --ext ts,tsx --ignore-pattern 'src/v2/__generated__'",
"mocha": "scripts/mocha.sh",
Expand Down Expand Up @@ -62,9 +63,9 @@
"@artsy/cohesion": "1.28.0",
"@artsy/express-reloadable": "1.4.8",
"@artsy/gemup": "0.1.0",
"@artsy/palette": "12.0.2",
"@artsy/palette": "12.1.0",
"@artsy/passport": "1.3.2",
"@artsy/reaction": "27.1.0",
"@artsy/reaction": "28.0.0",
"@artsy/stitch": "6.1.6",
"@artsy/xapp": "1.0.6",
"@loadable/component": "5.12.0",
Expand Down Expand Up @@ -104,14 +105,15 @@
"express": "4.16.4",
"express-ipfilter": "0.2.1",
"express-request-id": "1.4.0",
"farce": "0.4.5",
"fastclick": "1.0.6",
"flickity": "2.1.2",
"flickity-imagesloaded": "2.0.0",
"focus-visible": "5.1.0",
"forever": "0.15.3",
"found": "0.4.9",
"found-relay": "0.5.0",
"found-scroll": "0.1.6",
"found": "0.5.5",
"found-relay": "0.8.2",
"found-scroll": "0.3.0",
"geoformatter": "artsy/geoformatter",
"geolib": "2.0.22",
"glob": "7.1.3",
Expand Down Expand Up @@ -167,9 +169,9 @@
"react-dom": "16.8.6",
"react-linkify": "1.0.0-alpha",
"react-redux": "5.1.1",
"react-relay": "7.1.0",
"react-relay-network-modern": "2.5.1",
"react-relay-network-modern-ssr": "1.2.2",
"react-relay": "9.1.0",
"react-relay-network-modern": "4.7.3",
"react-relay-network-modern-ssr": "1.4.0",
"react-remove-scroll": "2.3.0",
"react-router": "4.2.0",
"react-router-redux": "4.0.8",
Expand All @@ -183,7 +185,7 @@
"redux-thunk": "2.2.0",
"referer-parser": "0.0.3",
"relay-mock-network-layer": "2.0.0",
"relay-runtime": "7.1.0",
"relay-runtime": "9.1.0",
"require-control": "2.1.1",
"sailthru-client": "3.0.2",
"scroll-frame": "1.0.0",
Expand Down Expand Up @@ -256,7 +258,7 @@
"@types/react-tracking": "7.0.0",
"@types/react-transition-group": "2.0.11",
"@types/redis": "2.8.22",
"@types/relay-runtime": "8.0.10",
"@types/relay-runtime": "9.1.0",
"@types/storybook__react": "5.2.1",
"@types/styled-components": "4.0.3",
"@types/styled-system": "5.1.9",
Expand All @@ -271,7 +273,7 @@
"babel-plugin-inline-react-svg": "0.2.0",
"babel-plugin-lodash": "3.3.4",
"babel-plugin-module-resolver": "3.1.0",
"babel-plugin-relay": "7.1.0",
"babel-plugin-relay": "9.0.0",
"babel-plugin-styled-components": "1.11.1",
"benv": "3.3.0",
"cache-loader": "1.2.2",
Expand Down Expand Up @@ -321,9 +323,9 @@
"react-stripe-elements": "2.0.1",
"react-test-renderer": "16.8.6",
"react-use-dimensions": "1.2.1",
"relay-compiler": "7.1.0",
"relay-compiler-language-typescript": "10.1.0",
"relay-config": "7.1.0",
"relay-compiler": "9.1.0",
"relay-compiler-language-typescript": "12.0.3",
"relay-config": "9.1.0",
"rewire": "2.2.0",
"s3": "4.4.0",
"should": "11.2.1",
Expand Down
14 changes: 7 additions & 7 deletions patches/found+0.4.9.patch → patches/found+0.5.5.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/found/lib/index.d.ts b/node_modules/found/lib/index.d.ts
index 02cc90c..b3706dd 100644
--- a/node_modules/found/lib/index.d.ts
+++ b/node_modules/found/lib/index.d.ts
diff --git a/node_modules/found/index.d.ts b/node_modules/found/index.d.ts
index 6868cf5..4bca495 100644
--- a/node_modules/found/index.d.ts
+++ b/node_modules/found/index.d.ts
@@ -111,6 +111,10 @@ declare module 'found' {
* matchContext from the router
*/
Expand All @@ -13,7 +13,7 @@ index 02cc90c..b3706dd 100644
}

interface FoundState {
@@ -267,6 +271,12 @@ declare module 'found' {
@@ -272,6 +276,12 @@ declare module 'found' {
* loaded
*/
data?: any;
Expand All @@ -26,10 +26,10 @@ index 02cc90c..b3706dd 100644
}

/**
@@ -438,6 +448,8 @@ declare module 'found' {
@@ -444,6 +454,8 @@ declare module 'found' {

function useRouter(): RouterState;

+ const RouterContext: React.Context<any>;
+
function withRouter<Props extends RouterState>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff --git a/node_modules/relay-compiler/bin/relay-compiler b/node_modules/relay-compiler/bin/relay-compiler
index 78b40a3..8d05a9a 100755
index 02c8adc..e74249f 100755
--- a/node_modules/relay-compiler/bin/relay-compiler
+++ b/node_modules/relay-compiler/bin/relay-compiler
@@ -308,7 +308,7 @@ function highlightSourceAtLocation(source, location) {
@@ -291,7 +291,7 @@ function highlightSourceAtLocation(source, location) {
var columnOffset = location.line === 1 ? firstLineColumnOffset : 0;
var columnNum = location.column + columnOffset;
var lines = body.split(/\r\n|[\n\r]/g);
- return "".concat(source.name, " (").concat(lineNum, ":").concat(columnNum, ")\n") + printPrefixedLines([// Lines specified like this: ["prefix", "string"],
+ return "".concat(source.name, ":").concat(lineNum, ":").concat(columnNum, "\n") + printPrefixedLines([// Lines specified like this: ["prefix", "string"],
+ return "".concat(source.name, ":").concat(lineNum, ":").concat(columnNum, ")\n") + printPrefixedLines([// Lines specified like this: ["prefix", "string"],
["".concat(lineNum - 1, ": "), lines[lineIndex - 1]], ["".concat(lineNum, ": "), lines[lineIndex]], ['', whitespace(columnNum - 1) + '^'], ["".concat(lineNum + 1, ": "), lines[lineIndex + 1]]]);
}

@@ -17391,10 +17391,10 @@ module.exports = function (tagFinder) {
@@ -17783,10 +17783,10 @@ module.exports = function (tagFinder, getFileFilter) {

var astDefinitions = [];
var sources = [];
Expand All @@ -25,7 +25,7 @@ index 78b40a3..8d05a9a 100755
sources.push(source.body);
astDefinitions.push.apply(astDefinitions, (0, _toConsumableArray2["default"])(ast.definitions));
});
@@ -17478,9 +17478,7 @@ function find(tagFinder, text, absPath) {
@@ -17871,9 +17871,7 @@ function find(tagFinder, text, absPath) {
tags.forEach(function (tag) {
return validateTemplate(tag, moduleName, absPath);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
patch-package
diff --git a/node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js b/node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js
index 13ac420..8502116 100644
--- a/node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js
+++ b/node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js
@@ -407,7 +407,7 @@ function () {
@@ -278,7 +278,7 @@ var RelayResponseNormalizer = /*#__PURE__*/function () {
//
// Otherwise, missing fields usually indicate a server or user error (
// the latter for manually constructed payloads).
Expand Down
4 changes: 3 additions & 1 deletion src/v2/Apps/Artist/ArtistApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export const ArtistApp: React.FC<ArtistAppProps> = props => {
const { artist, children } = props
const { trackEvent } = useTracking()
const route = findCurrentRoute(props.match)
let HorizontalPaddingArea = HorizontalPadding
let HorizontalPaddingArea:
| typeof HorizontalPadding
| typeof Box = HorizontalPadding
let maxWidth

if (route.displayFullPage) {
Expand Down
3 changes: 1 addition & 2 deletions src/v2/Apps/Artist/__tests__/routes.jest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { routes_ArtistTopLevelQueryRawResponse } from "v2/__generated__/routes_A
import { routes } from "v2/Apps/Artist/routes"
import { createMockNetworkLayer2 } from "v2/DevTools/createMockNetworkLayer"
import { Resolver } from "found-relay"
import { FarceRedirectResult } from "found/lib/server"
import getFarceResult from "found/lib/server/getFarceResult"
import { FarceRedirectResult, getFarceResult } from "found/server"
import React from "react"
import { Environment, RecordSource, Store } from "relay-runtime"
import { PermanentRedirectException } from "v2/Artsy/Router/PermanentRedirectException"
Expand Down
4 changes: 4 additions & 0 deletions src/v2/Apps/ArtistSeries/ArtistSeriesApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ArtistSeriesArtworksFilterRefetchContainer as ArtistSeriesArtworksFilte
import { userHasLabFeature } from "v2/Utils/user"
import { ErrorPage } from "v2/Components/ErrorPage"
import { ArtistSeriesRailFragmentContainer as OtherArtistSeriesRail } from "v2/Components/ArtistSeriesRail/ArtistSeriesRail"
import { ArtistSeriesMetaFragmentContainer as ArtistSeriesMeta } from "./Components/ArtistSeriesMeta"

interface ArtistSeriesAppProps {
artistSeries: ArtistSeriesApp_artistSeries
Expand All @@ -24,6 +25,8 @@ const ArtistSeriesApp: React.FC<ArtistSeriesAppProps> = ({ artistSeries }) => {
const { railArtist } = artistSeries
return (
<AppContainer maxWidth="100%">
{/* NOTE: react-head automatically moves these tags to the <head> element */}
<ArtistSeriesMeta artistSeries={artistSeries} />
<ArtistSeriesHeader artistSeries={artistSeries} />
<Box m={3}>
<ArtistSeriesArtworksFilter artistSeries={artistSeries} />
Expand Down Expand Up @@ -67,6 +70,7 @@ export default createFragmentContainer(ArtistSeriesApp, {
sort: { type: "String", defaultValue: "-partner_updated_at" }
width: { type: "String" }
) {
...ArtistSeriesMeta_artistSeries
...ArtistSeriesHeader_artistSeries
railArtist: artists(size: 1) {
...ArtistSeriesRail_artist
Expand Down
47 changes: 47 additions & 0 deletions src/v2/Apps/ArtistSeries/Components/ArtistSeriesMeta.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React from "react"
import { createFragmentContainer, graphql } from "react-relay"
import { Meta, Title } from "react-head"
import { ArtistSeriesMeta_artistSeries } from "v2/__generated__/ArtistSeriesMeta_artistSeries.graphql"
import { truncate } from "lodash"

interface ArtistSeriesMetaProps {
artistSeries: ArtistSeriesMeta_artistSeries
}

export const ArtistSeriesMeta: React.FC<ArtistSeriesMetaProps> = props => {
const { artistSeries } = props
const artist = artistSeries.artists[0]
const artistName = artist?.name ? `${artist.name}’s ` : ""
const title = `${artistName}${artistSeries.title} - For Sale on Artsy`
const descriptionFirstSentence = `Discover and collect art from ${artistName}iconic ${artistSeries.title} series and more. `
const description = truncate(
`${descriptionFirstSentence}${artistSeries.description}`,
{ length: 160, separator: " " }
)

return (
<>
<Title>{title}</Title>
<Meta name="description" content={description} />
<Meta property="og:title" content={title} />
<Meta property="og:description" content={description} />
<Meta property="twitter:title" content={title} />
<Meta property="twitter:description" content={description} />
</>
)
}

export const ArtistSeriesMetaFragmentContainer = createFragmentContainer(
ArtistSeriesMeta,
{
artistSeries: graphql`
fragment ArtistSeriesMeta_artistSeries on ArtistSeries {
title
description
artists(size: 1) {
name
}
}
`,
}
)
2 changes: 2 additions & 0 deletions src/v2/Apps/ArtistSeries/__tests__/ArtistSeriesApp.jest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe("ArtistSeriesApp", () => {
it("renders the correct components", async () => {
const wrapper = await getWrapper()
expect(wrapper.find("AppContainer").length).toBe(1)
expect(wrapper.find("ArtistSeriesMeta").length).toBe(1)
expect(wrapper.find("ArtistSeriesHeader").length).toBe(1)
expect(wrapper.find("ArtistSeriesArtworksFilter").length).toBe(1)
expect(wrapper.find("ArtistSeriesRail").length).toBe(1)
Expand Down Expand Up @@ -219,6 +220,7 @@ const ArtistSeriesAppFixture: ArtistSeriesApp_QueryRawResponse = {
],
title: "Pumpkins",
artworksCountMessage: "20 available",
description: "All of the pumpkins",
descriptionFormatted: "All of the pumpkins",
image: {
url: "https://test.artsy.net/pumpkins-header-image.jpg",
Expand Down
Loading