PromucFlow_constructor/app/client/packages/design-system/ads
Diljit e79e0ffa43
chore: Remove some logs and errors from console - 1/n (#35674)
## Description
This PR removes some of the errors and logs from the console. The
following fixes were added to this PR
- Remove the error => Refused to set unsafe header "Expect"
- Remove the aria label warnings
- Remove the logs from service worker in dev mode


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags="@tag.All"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/10438062046>
> Commit: 63fbfb22f40508ab298c765c4edbba7c42a125e1
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10438062046&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Sun, 18 Aug 2024 06:12:03 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **Accessibility Improvements**
- Added `aria-label` attributes to the `StyledSearchInput` and `Label`
components for enhanced screen reader support.
- Improved the semantic structure of the `Label` component by providing
additional context for assistive technologies.

- **Performance Enhancements**
- Removed the `Expect` header from API requests to streamline the
request process.

- **Logging Adjustments**
- Disabled development logs in the service worker to enhance performance
in production environments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-18 14:48:08 +05:30
..
plop-templates chore:ads package (#35193) 2024-07-29 16:23:26 +03:00
src chore: Remove some logs and errors from console - 1/n (#35674) 2024-08-18 14:48:08 +05:30
.eslintrc.json chore:ads package (#35193) 2024-07-29 16:23:26 +03:00
.prettierignore chore:ads package (#35193) 2024-07-29 16:23:26 +03:00
CHANGELOG.md chore:ads package (#35193) 2024-07-29 16:23:26 +03:00
fileTransformer.js chore:ads package (#35193) 2024-07-29 16:23:26 +03:00
jest.config.js chore: upgrade typescript to 5.4 (#35181) 2024-07-30 16:15:48 +02:00
jest.setup.js chore:ads package (#35193) 2024-07-29 16:23:26 +03:00
package.json chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
plopfile.mjs chore:ads package (#35193) 2024-07-29 16:23:26 +03:00
README.md chore:ads package (#35193) 2024-07-29 16:23:26 +03:00
tsconfig.json chore:ads package (#35193) 2024-07-29 16:23:26 +03:00

Appsmith Design System

npm package

Welcome to the Appsmith Design System repository! This repository contains the design system components, styles, and guidelines used across the Appsmith platform.

About Appsmith

Appsmith is an open-source, low-code application development platform that allows users to build business applications quickly and easily. The Appsmith Design System plays a crucial role in providing a consistent and visually appealing user interface across all Appsmith projects.

External Usage

To use the Appsmith Design System in your project, follow these steps:

Installation

npm install @appsmithorg/design-system

or

yarn add @appsmithorg/design-system

Including CSS

Add the css import in the root index css file

@import "~@appsmithorg/design-system/build/css/design-system.css";

Usage

import { Button } from "@appsmithorg/design-system";

<Button onClick={() => console.log("An ads button was clicked")}>
  Click me
</Button>

Contribute

  1. Clone the repository to your local machine using the following command:
git clone https://github.com/appsmithorg/design-system.git

The repository you are cloing is a monorepo that contains several packages, each serving a different purpose.

  1. Navigate to the design-system directory
cd design-system/packages/design-system
  1. Get all dependencies with
yarn install

Then run storybook in development and watch mode with

yarn run storybook

Any stories you write within design-system/packages/design-system/src/** will show up here.

  1. To add a new component, use our template
yarn generate:component YOUR_NEW_COMPONENT_NAME

This generates all the scaffolding our components use. Simply replace the fields in caps lock and develop away!

  1. To ensure that any changes you make are not breaking any other components or their stories, run
yarn test-storybook

and fix any failures before you create a pull request.

Using your changes externally

This repository is a library, and for any changes made here to reflect in another repository, the maintainers will have to publish a release. To get your PR accepted,

  1. Add a link to your PR in #design-system and ask someone to generate a release for you. They will give you an alpha version.
  2. Replace the version of design-system in the appsmith repository with this alpha version.

To use your local version of the package, run

yarn link

in this repository, then copy instruction it outputs into the root directory of the repository you want to use this package in. Run

yarn install 

again to be able to import the components using

import { Button } from "@appsmithorg/design-system";