-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: #4065 Case Studies page table is now mobile responsive #4289
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -27,93 +27,125 @@ interface Adopter { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @description Renders the Case Studies page. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export default function Casestudies() { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const description: string = 'Learn about different case studies based on AsyncAPI spec and related tools.'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const description: string = | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'Learn about different case studies based on AsyncAPI spec and related tools.'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const image: string = '/img/social/case-studies.webp'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const title: string = 'Case Studies'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <GenericLayout title={title} description={description} image={image} wide> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className='relative mx-auto max-w-xl px-4 py-10 sm:px-6 lg:max-w-screen-xl lg:px-8' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| data-testid='CaseStudy-main' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="relative mx-auto max-w-xl px-4 py-10 sm:px-6 lg:max-w-screen-xl lg:px-8" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| data-testid="CaseStudy-main" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className='grid lg:grid-cols-9 lg:gap-8 lg:text-center'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className='col-span-5 col-start-3'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="grid lg:grid-cols-9 lg:gap-8 lg:text-center"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="col-span-5 col-start-3"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Heading level={HeadingLevel.h1} typeStyle={HeadingTypeStyle.lg}> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {title} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Heading> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4 max-w-4xl'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The best way to learn how to use AsyncAPI is not only through documentation that usually is focused on | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| recommendations and best practices. It is also good to confront with real-life case studies that explain | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| how people really use AsyncAPI and what are their flows. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Paragraph | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typeStyle={ParagraphTypeStyle.md} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="my-4 max-w-4xl" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The best way to learn how to use AsyncAPI is not only through | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| documentation that usually is focused on recommendations and best | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| practices. It is also good to confront with real-life case studies | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| that explain how people really use AsyncAPI and what are their | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| flows. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Paragraph> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4 max-w-4xl'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feel free to submit your case study. We have a template for you. For more details | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <TextLink href='https://github.com/asyncapi/website/blob/master/README.md#case-studies' target='_blank'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Paragraph | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typeStyle={ParagraphTypeStyle.md} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="my-4 max-w-4xl" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feel free to submit your case study. We have a template for you. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| For more details | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <TextLink | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| href="https://github.com/asyncapi/website/blob/master/README.md#case-studies" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| target="_blank" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| read our FAQ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </TextLink> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Paragraph> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div data-testid='CaseStudy-card'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div data-testid="CaseStudy-card"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <CaseStudyCard studies={CaseStudiesList as ICaseStudies} /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className='adopters'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className='mt-8 grid lg:grid-cols-9 lg:gap-8 lg:text-center'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className='col-span-5 col-start-3'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="adopters"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="mt-8 grid lg:grid-cols-9 lg:gap-8 lg:text-center"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="col-span-5 col-start-3"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Heading level={HeadingLevel.h1} typeStyle={HeadingTypeStyle.lg}> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Adopters | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Heading> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4 max-w-4xl'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Check out how different companies use AsyncAPI and what problems they solve. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Paragraph | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typeStyle={ParagraphTypeStyle.md} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="my-4 max-w-4xl" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Check out how different companies use AsyncAPI and what problems | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| they solve. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Paragraph> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4 max-w-4xl'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Paragraph | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typeStyle={ParagraphTypeStyle.md} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="my-4 max-w-4xl" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feel free to{' '} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <a className='underline' href='https://github.com/asyncapi/website/blob/master/config/adopters.yml'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <a | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="underline" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| href="https://github.com/asyncapi/website/blob/master/config/adopters.yml" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| submit a pull request | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </a>{' '} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| with information about how your company uses AsyncAPI. We know that writing an official case study might | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| be time consuming and requires too much internal paper work. Let's make sure we can at least | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| capture a use case that is already a great learning information for the community. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| with information about how your company uses AsyncAPI. We know | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| that writing an official case study might be time consuming and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| requires too much internal paper work. Let's make sure we | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| can at least capture a use case that is already a great learning | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| information for the community. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Paragraph> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <center> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className='overflow-x-auto'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <table className='my-8 w-full max-w-full border-collapse border'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <thead> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <th className='border p-2 font-bold'>Company name</th> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <th className='border-2 p-2 font-bold'>Use Case</th> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <th className='border-2 p-2 font-bold'>Resources</th> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </thead> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <tbody> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {AdoptersList.map((entry: Adopter, index: number) => ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <tr key={index} data-testid='Adopters'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <td className='border-2 p-2'>{entry.companyName}</td> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <td className='border-2 p-2'>{entry.useCase}</td> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <td className='border-2 p-2'> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <ul> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {entry.resources.map((resource: Resource, resourceIndex: number) => ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <li className='p-2' key={resourceIndex}> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <a className='text-cyan-500 underline' href={resource.link}> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="w-full overflow-x-auto"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <table className="my-8 min-w-full border-collapse border text-sm sm:text-base"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <thead> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <th className="border p-2 font-bold text-left">Company name</th> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <th className="border-2 p-2 font-bold text-left">Use Case</th> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <th className="border-2 p-2 font-bold text-left">Resources</th> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </thead> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <tbody> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {AdoptersList.map((entry: Adopter, index: number) => ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <tr key={index} data-testid="Adopters"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <td className="border-2 p-2 align-top"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {entry.companyName} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </td> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <td className="border-2 p-2 align-top">{entry.useCase}</td> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <td className="border-2 p-2 align-top"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <ul className="list-disc list-inside space-y-1"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {entry.resources.map( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (resource: Resource, resourceIndex: number) => ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <li key={resourceIndex}> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <a | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-cyan-600 hover:underline break-all" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| href={resource.link} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| target="_blank" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| rel="noopener noreferrer" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {resource.title} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </a> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ))} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </ul> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </td> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ))} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </tbody> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </table> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </center> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+128
to
+141
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove dangling comma – linter error. There is a trailing comma after the closing parenthesis of the - ),
- )}
+ )
+ )}📝 Committable suggestion
Suggested change
🧰 Tools🪛 GitHub Actions: PR testing - if Node project[error] 128-131: Prettier formatting error: Delete extra spaces and newlines. (prettier/prettier) [error] 132-134: Prettier formatting error: Replace double quotes with single quotes. (prettier/prettier) and jsx-quotes: Unexpected usage of doublequote. [error] 135-135: Prettier formatting error: Replace double quotes with single quotes. (prettier/prettier) and jsx-quotes: Unexpected usage of doublequote. [error] 136-139: Prettier formatting error: Delete extra spaces and newlines. (prettier/prettier) [error] 140-140: Prettier formatting error: Unexpected trailing comma. (comma-dangle) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </ul> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </td> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ))} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </tbody> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </table> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </GenericLayout> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
CI is red – fix Prettier/ESLint violations (quotes & prop formatting).
The project’s lint rules expect single quotes in JSX and to avoid unnecessary multi-line props. The newly-added lines use double quotes and break the pipeline (see GH-Actions log).
Run
npm run lint -- --fix(orprettier --write) and commit the auto-formatted file.Example of the required change:
📝 Committable suggestion
🧰 Tools
🪛 GitHub Actions: PR testing - if Node project
[error] 38-38: Prettier formatting error: Replace double quotes with single quotes. (prettier/prettier) and jsx-quotes: Unexpected usage of doublequote.
[error] 39-39: Prettier formatting error: Replace double quotes with single quotes. (prettier/prettier) and jsx-quotes: Unexpected usage of doublequote.
[error] 41-41: Prettier formatting error: Replace double quotes with single quotes. (prettier/prettier) and jsx-quotes: Unexpected usage of doublequote.
[error] 42-42: Prettier formatting error: Replace double quotes with single quotes. (prettier/prettier) and jsx-quotes: Unexpected usage of doublequote.
[error] 46-48: Prettier formatting error: Replace multiline JSX props with single line and use single quotes. (prettier/prettier) and jsx-quotes: Unexpected usage of doublequote.
🤖 Prompt for AI Agents