-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
@@ -11,7 +11,7 @@ const defaultFormat = { | |||
}; | |||
|
|||
export default { | |||
title: 'Editorial/src-ed-button/Button', | |||
title: 'Kitchen/source-kitchen-react/Button', |
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.
Does this component now need to be called something else (e.g. EditorialButton
) as we can't use the package name to differentiate it from the standard Source Button
?
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.
@guardian/dotcom-platform what do you think?
EditorialButton
PillarButton
- Something else?
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.
Adding an option: ThemeButton
?
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 @oliverlloyd I personally think the word Theme
is already used more generally to support, for example, the various Reader Revenue themes and the brand themes (see Figma). Do you see Theme as something specific to Format?
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.
Format.Theme
is a superset of Pillar
which also includes Labs
and SpecialReport
https://github.com/guardian/libs/blob/main/src/format.ts#L16
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.
In the migration to @guardian/libs
, Format
becomes ArticleFormat
. In fact everything related to ArticleFormat
gets an Article
prefix. Maybe we should reflect that in Source too, with ArticleButton
?
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.
Wasn't it that ArticleFormat
is named such because it specifically relates to articles? With the thinking being you would later have a ContainerFormat
(or SliceFormat
, SectionFormat
?) which represents Fronts. SectionFormat
would contain and array of articles which each have ArticleFormat
.
I mention this because I don't think the same model exists for a button. They can be used everywhere in the editorial space and have a much simpler design pattern, one not limited to articles.
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.
On the other hand, if we follow this thinking through, you'd have
<EditorialButton format={myFormatObject} />
where myFormatObject
would be typed as ArticleFormat
. So if you can only ever pass in ArticleFormat
then maybe ArticleButton
works?
🤷
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.
Good thoughts @oliverlloyd. I guess the format
prop could expect something that's either an ArticleFormat
or ContainerFormat
But I think you're right in that <EditorialButton>
better reflects the context in which this button can be used.
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've renamed to EditorialButton unless anyone has any last minute alternatives
be296da
to
80686d4
Compare
Co-authored-by: Simon Adcock <simonadcock2@gmail.com>
Co-authored-by: Simon Adcock <simonadcock2@gmail.com>
.github/CODEOWNERS
Outdated
/src/kitchen/components/lines @guardian/dotcom-platform | ||
/src/kitchen/components/logo @guardian/dotcom-platform | ||
/src/kitchen/components/quote-icon @guardian/dotcom-platform | ||
/src/kitchen/components/star-rating @guardian/dotcom-platform |
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.
@guardian/dotcom-platform does this look okay to you? 🙏
given that we're likely to reorganise the repo next quarter, what do you think about creating the DK in that (likely) image now? e.g.
this would also then allow us to get the various bits of pipeline tooling in place and working well for the DK before we need to start migrating anything else – in effect, the kitchen becomes our development kitchen as it proves our folder set up/pipeline etc once that seems to be working well (perhaps with a dummy component, perhaps with a real life one) we can move editorial components to the kitchen and deprecate the current packages, and begin the process of publishing it might also keep the changes smaller |
Great idea! I'm on board with the structure you have proposed
I think this PR has a pipeline that already works, e.g. running
With the naming, we were working on the premise of having three packages:
I like the fact that
💯 |
After an offline discussion we've agreed on:
|
Thanks @sndrs and @jamie-lynch for the discussion. I've added more detail to our Roadmap doc (here and here) explaining why we've chosen to publish Source as 3 separate packages. |
54a7e3a
to
c3391a0
Compare
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.
Let's get cooking! 🥘 🔥 👩🍳
What is the purpose of this change?
This change adds the Development Kitchen.
What does this change?
@guardian/editorial
package in package.json to@guardian/source-kitchen-react
@guardian/source-kitchen-react
Before we merge, we must also:
@guardian/editorial
on NPM