https://github.com/cdcgov/cdc-react

https://github.com/cdcgov/cdc-react

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary

Keywords from Contributors

autograding hacking sequences interpretability projection standardization archival controllers reporting mesh
Last synced: 10 months ago · JSON representation

Repository

Basic Info
Statistics
  • Stars: 4
  • Watchers: 3
  • Forks: 3
  • Open Issues: 4
  • Releases: 34
Archived
Created about 3 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Contributing License Code of conduct Codeowners

README.md

CDC React Design System

NOTE: As of July 30th 2024 this application is no longer actively developed.

This is a monorepo for the official CDC Design System catered for ReactJS applications. The overall goal of this project is to create open source, reusable components and libraries to be used across all ReactJS-based web applications built for the CDC.

General disclaimer This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.

Packages

This table maps the souce code for each package within this monorepo to the location where it is published to:

| Package | Description | Source code location | NPM Page | | --------------- | ----------------------------------------------------------------------------- | ------------------------ | ---------------------------------------------------------------------------------------- | | CDC React | Library for CDC-styled ReactJS components. | packages/cdc-react | @us-gov-cdc/cdc-react | | CDC React Icons | Icon library for CDC-styled icons, packaged as individual ReactJS components. | packages/cdc-react-icons | @us-gov-cdc/cdc-react-icons |

Development Environment Setup

Download and install the following software in order to develop and build packages from source:

  1. NodeJS latest LTS
  2. Yarn is the main package manager for this monorepo. After installing NodeJS and NPM, install Yarn globally with npm install -g yarn.
  3. Install all package dependencies by running yarn install at the root level.

Note: Because this project uses Yarn Workspaces, each package and the root will get a node_modules directory. Common dependencies will be placed in the root level node_modules directory, and package specific dependencies will get installed in the node_modules directory under the package specific's directory.

Running Storybook

This project uses Storybook to create a sandbox environment for its components. You can run the Storybook instance with the command yarn storybook.

Linting and Code Style

All packages use ESLint and Prettier to enforce lint and code formatting rules. You can run yarn lint at the root level to run ESLint on all source code files across all packages, or at the package level to scan files for a specific package. This also applies to code style checks, which can be run with yarn format:check.

Building a Package

Each package will have a build script that will be defined in their espected package.json file. This script will typically envolve running the TypeScript compiler against the typescript code, and performing any JS minifying and bundling steps. Vite is used here to take care of this process.

To build a package, you can run yarn build:<package name> at the root level, or yarn build at the package level.

Publishing a Package

Releases are automated with a combination of GitHub Actions, release-please, and conventionalcommits.org. Every package within this monorepo is published to a separate package on NPM.

How releases work:

  • When a PR is merged with a conventional commit title (ex. feat: added new Pill component) an automated chore/release PR will be created(will start with "chore:"). The automation will determine which packages had changes and will generate a release for each package(ie. if both cdc-react and cdc-react-icons had changes, then two PRs would be created).
  • The automated chore/release PR can be merged once the build passes. This PR will automatically update the related package.json files and create release notes in CHANGELOG.md. Be sure to keep the title of the merge commit the same as the initial PR commit title. An example of cdc-react automated release PR- https://github.com/CDCgov/cdc-react/pull/145
  • Once the chore/release PR has been merged, a release will be created in GitHub and the new version will be published to NPM.

Note: cdc-react currently depends on cdc-react-icons so it's best to modify the chore/release PR to manually update this if cdc-react-icons has had a new update.

Release notes and the CHANGELOG are automatically generated based on commit messages that are following conventional commits.

Example:

  1. git commit -m "feat: added profile updates"
  2. git push and create GitHub PR with name feat: added profile updates
  3. Get approval / builds passing
  4. Squash and merge with name feat: added profile updates
  5. Verify automatic chore/release PR created. It will have a name like chore(main): release cdc-react X.X.X
  6. Confirm changelog and package.json changes
  7. Merge chore/release PR
  8. Verify GitHub release is created, and npmjs.com is updated with latest version

Manual publishing with npm publish should be avoided. When doing a manual release though be sure to update all related package.json versions, the changelog, and GitHub releases.

Contributing

If you are external to the CDC and would like to contribute, please fork this repo and propose changes via a Pull Request against the main branch of the upstream repo.

Issue Reporting

Please report issues and bugs to the Issues tab for this repo in GitHub.

Access Request, Repo Creation Request

Related documents

Overview

Describe the purpose of your project. Add additional sections as necessary to help collaborators and potential collaborators understand and use your project.

Public Domain Standard Notice

This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.

License Standard Notice

The repository utilizes code licensed under the terms of the Apache Software License and therefore is licensed under ASL v2 or later.

This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.

This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.

You should have received a copy of the Apache Software License along with this program. If not, see http://www.apache.org/licenses/LICENSE-2.0.html

The source code forked from other open source projects will inherit its license.

Privacy Standard Notice

This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.

Contributing Standard Notice

Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.

All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.

Records Management Standard Notice

This repository is not a source of government records, but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.

Additional Standard Notices

Please refer to CDC's Template Repository for more information about contributing to this repository, public domain notices and disclaimers, and code of conduct.

Owner

  • Name: Centers for Disease Control and Prevention
  • Login: CDCgov
  • Kind: organization
  • Email: data@cdc.gov
  • Location: Atlanta, GA

CDC's collaborative software projects to protect America from health, safety, and security threats, both foreign and in the U.S.

GitHub Events

Total
  • Fork event: 2
Last Year
  • Fork event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 374
  • Total Committers: 10
  • Avg Commits per committer: 37.4
  • Development Distribution Score (DDS): 0.58
Past Year
  • Commits: 6
  • Committers: 2
  • Avg Commits per committer: 3.0
  • Development Distribution Score (DDS): 0.167
Top Committers
Name Email Commits
cfarmer c****r@f****h 157
Ian Sawyer 4****r 75
github-actions[bot] 4****] 37
Kat Sublett k****t@f****h 33
Ty Bolt t****t@g****m 30
ZacharyRizer z****r@g****m 29
dependabot[bot] 4****] 10
sswanikcdc 1****c 1
dancing-goats 1****s 1
Abbey Salvo 7****y 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 1
  • Total pull requests: 173
  • Average time to close issues: N/A
  • Average time to close pull requests: 4 days
  • Total issue authors: 1
  • Total pull request authors: 9
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.34
  • Merged pull requests: 159
  • Bot issues: 0
  • Bot pull requests: 58
Past Year
  • Issues: 0
  • Pull requests: 7
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 minutes
  • Issue authors: 0
  • Pull request authors: 3
  • Average comments per issue: 0
  • Average comments per pull request: 0.14
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 5
Top Authors
Issue Authors
  • fartbagxp (1)
Pull Request Authors
  • github-actions[bot] (56)
  • cfarmer-fearless (46)
  • ZacharyRizer (26)
  • tbolt (25)
  • dependabot[bot] (22)
  • ian-sawyer (19)
  • sublettk (15)
  • fearless-abbey (3)
  • dancing-goats (2)
Top Labels
Issue Labels
Pull Request Labels
autorelease: tagged (34) dependencies (22) autorelease: pending (22) documentation (2)

Packages

  • Total packages: 2
  • Total downloads:
    • npm 266 last-month
  • Total dependent packages: 1
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 44
  • Total maintainers: 6
npmjs.org: @us-gov-cdc/cdc-react

Library for ReactJS components for the CDC

  • Versions: 25
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 113 Last month
Rankings
Downloads: 6.8%
Forks count: 12.0%
Stargazers count: 17.3%
Average: 25.5%
Dependent repos count: 37.5%
Dependent packages count: 54.0%
Last synced: 12 months ago
npmjs.org: @us-gov-cdc/cdc-react-icons

SVG Icon library for CDC web applications

  • Versions: 19
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 153 Last month
Rankings
Forks count: 12.0%
Stargazers count: 17.3%
Average: 30.2%
Dependent repos count: 37.5%
Dependent packages count: 53.9%
Last synced: 11 months ago