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

docs(components): Document composability best practices [107012] #2136

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

Aiden-Brine
Copy link
Contributor

@Aiden-Brine Aiden-Brine commented Nov 20, 2024

Motivations

There has been a lot of discussion and work around making our Atlantis components more composable. We decided it would be a good idea to get some documentation added for consumers to better understand our philosophy towards customization and our approach.

Changes

Added

New documentation

Changed

Deprecated

Removed

Fixed

Security

Testing

N/A

Changes can be
tested via Pre-release


In Atlantis we use Github's built in pull request reviews.

Random photo of Atlantis

Copy link

cloudflare-workers-and-pages bot commented Nov 20, 2024

Deploying atlantis with  Cloudflare Pages  Cloudflare Pages

Latest commit: dabe1a9
Status: ✅  Deploy successful!
Preview URL: https://5c3cafa2.atlantis.pages.dev
Branch Preview URL: https://job-107012-composability-doc.atlantis.pages.dev

View logs

@ZakaryH
Copy link
Contributor

ZakaryH commented Nov 20, 2024

overall I'm thinking about who this guide is for, or what persona.

I would say most of our guides are for people looking to learn about Atlantis and use it.

we have very little, if any content, for Atlantis internal dev team about decision making so I'm not sure this is the best place for that type of content though I do think we should document that!

also looking around the docs site I found a section about composing components. I think this link is broken, or I don't get why it is a standalone section at the very least

https://atlantis.getjobber.com/space?path=/story/guides-getting-started-with-react--composing-components

that aside, we do have a section about composition
https://atlantis.getjobber.com/space?path=/docs/guides-getting-started-with-react--docs#composing-components

I'm thinking the guides on how to customize Atlantis components, or compose them might be a better fit there

@@ -89,7 +89,7 @@ For this example we are going to build a card that allows you to enter a topic
and then search for a related gif.

<Canvas>
<Story name="Composing Components">
<Story name="Gif Gift">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I played around with this for ~20mins to try to prevent the split of a Docs page and a page with this story but still having it render nicely in this docs page and couldn't get it. At least now it has a better name.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha I don't get why this is its own section. that can't be by design. something must have changed in a storybook upgrade or something.

@Aiden-Brine Aiden-Brine force-pushed the JOB-107012/composability-docs branch from 883238b to d82247c Compare November 22, 2024 00:52
#### 3. Compound Components:

Examples: [Chip](..?path=/docs/components-selections-chip--docs),
[DataList](..?path=/docs/components-lists-and-tables-datalist--docs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DataList is almost in its own category. it's bordering on an entire feature/view.

I suppose it is technically a compound component though. it's just the largest compound component we have.

#### 4. Strict Complex Components:

Example:
[Autocomplete](..?path=/docs/components-forms-and-inputs-autocomplete--docs),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll have to make a note to update these if we ever make Autocomplete less strict

@ZakaryH ZakaryH marked this pull request as ready for review November 25, 2024 21:13
@ZakaryH ZakaryH requested a review from a team as a code owner November 25, 2024 21:13
Copy link
Contributor

@ZakaryH ZakaryH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but please add at least a tiny bit of a description in the PR template. thanks!

Copy link
Contributor

@chris-at-jobber chris-at-jobber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General comment, we should follow our own formatting guidance around capitalization:

Use sentence-case for almost all typographic content, with the exception of instances where all-caps is a stylistic decision (i.e. MON WED TUE as calendar weekday headers).

This means in general, capitalize only the first letter of the content unless there is a proper noun (such as a person's name) involved. This applies to headings and titles, as well as card headers and menu options.

(This could be done in a follow-up PR)

@ZakaryH
Copy link
Contributor

ZakaryH commented Nov 25, 2024

still LGTM since I know we don't remove the approved status after a commit (we probably should)

@Aiden-Brine Aiden-Brine merged commit d5c6935 into master Nov 25, 2024
14 checks passed
@Aiden-Brine Aiden-Brine deleted the JOB-107012/composability-docs branch November 25, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants