-
Notifications
You must be signed in to change notification settings - Fork 0
Add Design.CorrectionsAndClarifications #164
Conversation
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'm pro using Design
for these types of branches but just to check: Have we considered if we need the design branch on Editions? Could we instead align things more?
The other side to that question is, if we defo want this design change, then should it also be done in Dotcom and Apps?
c4d8465
to
0f1ce43
Compare
Yeah, we have considered that. The reason we saw for not being able to align is that, on Apps and Dotcom, the byline is clickable and links to the list of previous NB - there's a known bug in ER bullet points at the moment. |
src/format.ts
Outdated
@@ -34,6 +34,7 @@ enum Design { | |||
PhotoEssay, | |||
PrintShop, | |||
Obituary, | |||
Corrections, |
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 only thing I'd add here is that whilst it might not be needed necessarily at the Scala client level, there'll need to be an update to both the Scala content client and by extension the FAPI client to include this new type.
It's annoying but it's best to keep them in sync for now until the unified upstream type stuff using Thrift can come into play
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.
Thanks Josh! Do you know who the best person is to chat to about those changes?
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.
Probably me... Though I'm leaving in a couple of days. There are some docs in the Dotcom shared drive about it. The FAPI change is something for the Dotcom team to do, so don't worry about that. It's just a case of bumping the content client version in the FAPI client and then bumping both the content client and FAPI client in Frontend.
The content client change itself is something along these lines: guardian/content-api-scala-client#333
General steps are:
- Go into the
Design
(or other type) bit of the CAPI Enrichment and add the condition for the new design to the predicates list. Note: Things earlier in the list get higher priority so make sure you consider what should take priority when placing it. - Add a test for the new type. If there's a specific condition where it's likely it could be one of two types and this one should take priority, add a test for that too e.g. this example here
- Do a release of the content client. You'll need a CAPI key in order to do this because it runs tests during the release process. CAPI team can help with this.
Let me know if you want any help with it. If you make the change today or tomorrow I should be free to review/pair on it.
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.
Great stuff, thanks!
I think there is a good argument that it should - probably a question for Editorial & Design. @paperboyo any thoughts?
This is true, although both apps and dotcom also have a clickable series for these pieces which should link to the same list. The byline is more or less duplicating that functionality. |
Couple of quick points, not blocking:
|
Slightly different numbers for both lists (probs some unbylined?). My thought would be that it isn’t worth the effort to treat this specific column differently. It also makes |
The renaming mainly I think - it's going to be a biggish find-and-replace job. We might be able to simplify by having a proxy module that exports the old names. |
0f1ce43
to
3f349eb
Compare
Why?
There's some unique styling for
Corrections and Clarifications
on Editions that we'd like to capture viaDesign
, specifically that this design shouldn't feature as byline as this provides no value on Editions. Adding this would also allow us to uniquely style this on on dotcom and apps too, if required.Changes
Design.Correction
Screenshot
|
|