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

feat(omlet): implementing component analytics using omlet #721

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

masoudmanson
Copy link
Contributor

@masoudmanson masoudmanson commented Nov 29, 2023

Summary

Component Analytics
Github issue: #713

To see the reports, please visit the Omlet dashboard.

Next Steps

  • Set up regular scans on products using SDS (Cell Science, CZI, ...)
  • [Proposal]: Create a slack channel and share Omlet reports on a regular basis to track the design system acceptance in products

Scan new product projects

  1. Install Omlet cli
yarn add -D @omlet/cli
  1. Login into Omlet
npx omlet login
  1. To scan your repos manually, or to add Omlet to your CI pipeline, you can use Omlet’s CLI tool. See specific instructions below for GitHub Actions or CircleCI.
npx omlet analyze

GitHub Actions

For each repo you want to automate, add the following job definition.

jobs:
  omlet_analyze:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          # Omlet uses git history for analysis; disable shallow clone
          fetch-depth: 0

      - name: Configure Node
        uses: actions/setup-node@v3
        with:
          node-version: 16.x
          cache: 'npm'

      - name: Install dependencies
        run: npm ci

      - name: Analyze
        run: npx omlet analyze
        env:
          OMLET_TOKEN: ${{ secrets.OMLET_TOKEN }}

@masoudmanson masoudmanson linked an issue Nov 29, 2023 that may be closed by this pull request
@masoudmanson masoudmanson added Ready for review This PR is ready for review Hackday labels Nov 29, 2023
@masoudmanson masoudmanson self-assigned this Nov 29, 2023
Copy link

@booc0mtaco booc0mtaco left a comment

Choose a reason for hiding this comment

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

Looks good to me. I will make a note to ask about account access (the trial marker in the UI), and how to interpret the percentage of usage for scanned design systems.

Copy link
Contributor

@tihuan tihuan left a comment

Choose a reason for hiding this comment

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

DUDE this is BOMB! Thanks so much for adding this! LGTMMM 🙏 🙏 🙏

@masoudmanson masoudmanson added Ready for release This PR is ready for release and removed Ready for review This PR is ready for review labels Dec 5, 2023
@masoudmanson masoudmanson merged commit 68fc614 into main Dec 5, 2023
7 checks passed
@masoudmanson masoudmanson deleted the 713-setup-omlet-analytics-with-sds branch December 5, 2023 23:59
@masoudmanson masoudmanson added Released and removed Ready for release This PR is ready for release labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup Omlet analytics with SDS
3 participants