-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Triptych app "plumbing" (#1833)
* Rename `isDup` -> `isOFM` since we now run on two different OFM screen types * Triptych app setup + packaging instructions * Working triptych app with viewport shifter * Remove TODO--made an asana task for it * Use matching param for triptych pane in data requests * Cleanup and fix accidentally committed test code * Working triptych frontend with new route + cleaned up OFM utilities * Address credo complaints * Use default simulation component for triptychs * Add triptych player name mapping for tests * fix: Tweak config so vscode can consistently resolve aliased import paths * Remove a few console.logs that I missed * Unclutter useBaseApiResponse and memoize logic that computes API url * Add some missing config for the test env :doh: * A no-op change in lib/, because the last commit didn't trigger CI for some reason?? * Revert "A no-op change in lib/, because the last commit didn't trigger CI for some reason??" This reverts commit 88e5511. * Revert "Revert "A no-op change in lib/, because the last commit didn't trigger CI for some reason??"" This reverts commit 7db3eae. * Uncomment accidentally commented line of code * Revert `isDUP` name to `isDup` * Rename a few more isDUPs that the vscode refactor tool missed * Run prettier * Rename split-screen slots to left_, middle_, right_pane for consistency * "Closed" -> "Car closed" per designs (plus some tweaks to avoid prettier making a mess of the existing code) * Add packaging README section on communicating with Outfront * Document `platform_position` value * Adjust no-data/disabled templates to match new slot names * Finish documenting OFM util functions and hooks * Reorder lines for consistency with surrounding functions * Use getMRAID in useCurrentPage + update fake MRAID with new fields for that * Prettier
- Loading branch information
1 parent
927d5cc
commit 0c1e7b0
Showing
63 changed files
with
1,016 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
#debug { | ||
position: absolute; | ||
bottom: 0; | ||
right: 0; | ||
width: 100%; | ||
background: rgba(0, 0, 0, 0.5); | ||
color: #fff; | ||
display: flex; | ||
flex-wrap: wrap; | ||
flex-direction: column; | ||
height: 100%; | ||
font-size: 1.5em; | ||
z-index: 10000; | ||
#debug.dup { | ||
width: 1920px; | ||
height: 1080px; | ||
} | ||
|
||
#debug p { | ||
position: relative; | ||
z-index: 9999; | ||
font-size: 1.5em; | ||
bottom: unset; | ||
left: unset; | ||
letter-spacing: normal; | ||
font-family: Arial; | ||
#debug .line { | ||
width: 640px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#debug { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
z-index: 10000; | ||
overflow-y: hidden; | ||
overflow-x: hidden; | ||
|
||
background: rgba(0, 0, 0, 0.5); | ||
|
||
display: flex; | ||
flex-flow: column wrap; | ||
|
||
color: #fff; | ||
font-size: 1.5em; | ||
font-family: monospace; | ||
} | ||
|
||
#debug .line { | ||
box-sizing: border-box; | ||
padding-left: 8px; | ||
overflow-wrap: break-word; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#debug.triptych { | ||
width: 1080px; | ||
height: 1920px; | ||
} | ||
|
||
#debug .line { | ||
width: 540px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.no-data-middle { | ||
position: absolute; | ||
top: 0px; | ||
left: 1080px; | ||
} | ||
|
||
.no-data-right { | ||
position: absolute; | ||
top: 0px; | ||
left: 2160px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.triptych-screen-viewport { | ||
width: 1080px; | ||
height: 1920px; | ||
overflow: hidden; | ||
position: relative; | ||
margin-left: auto; | ||
margin-right: auto; | ||
|
||
.triptych-shifter { | ||
width: 3240px; | ||
height: 1920px; | ||
overflow: hidden; | ||
position: absolute; | ||
} | ||
|
||
.triptych-shifter--left { | ||
left: 0; | ||
} | ||
|
||
.triptych-shifter--middle { | ||
left: -1080px; | ||
} | ||
|
||
.triptych-shifter--right { | ||
right: 0px; | ||
} | ||
} | ||
|
||
.triptych-screen-viewport--all { | ||
width: 3240px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.