Skip to content

fix: DR-7576 Update statistic imports/exports to use on other repos#7610

Merged
carlagn merged 2 commits into
mainfrom
fix/DR-7576-export-statistic
Mar 10, 2026
Merged

fix: DR-7576 Update statistic imports/exports to use on other repos#7610
carlagn merged 2 commits into
mainfrom
fix/DR-7576-export-statistic

Conversation

@carlagn

@carlagn carlagn commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Statistic component is now publicly exported and accessible from the main package.
  • Documentation

    • Updated design system examples to use the new import location for the Statistic component.
  • Chores

    • Package version bumped to 0.0.4.

@vercel

vercel Bot commented Mar 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Mar 10, 2026 0:01am
docs Ready Ready Preview, Comment Mar 10, 2026 0:01am
eclipse Ready Ready Preview, Comment Mar 10, 2026 0:01am

Request Review

@coderabbitai

coderabbitai Bot commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1e477b16-ac98-4cb0-8d4e-e62f22dcfe5f

📥 Commits

Reviewing files that changed from the base of the PR and between caddc3f and 16ac7e7.

📒 Files selected for processing (1)
  • apps/eclipse/content/design-system/molecules/statistic.mdx

Walkthrough

Adds a new public export for the Statistic component, updates MDX examples to import Statistic from the package root, and bumps the package version.

Changes

Cohort / File(s) Summary
Documentation Updates
apps/eclipse/content/design-system/molecules/statistic.mdx
Replaced import path @prisma/eclipse/components/statistic with @prisma/eclipse in all example blocks. No usage changes.
Component Export
packages/eclipse/src/components/index.ts
Added export { default as Statistic } from "./statistic"; to expose Statistic from the package index.
Version Bump
packages/eclipse/package.json
Updated package version from 0.0.3 to 0.0.4.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly identifies the main change: updating Statistic component imports/exports to make it available for use in other repositories.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/eclipse/content/design-system/molecules/statistic.mdx`:
- Line 6: The import is using a default import for Statistic but the package
re-exports it as a named export; change the import to a named/destructured
import (use { Statistic }) from the package that re-exports it (refer to the
exported symbol Statistic in index.ts and the original statistic module) so the
module import matches the export form.
- Line 29: The example currently uses a default import "import Statistic from
\"@prisma/eclipse\";" but the package exports Statistic as a named export;
update the import to use a named import for the Statistic symbol (i.e., change
the import line so it imports { Statistic } from the module) so the
documentation example aligns with the actual export.
- Line 99: The example import currently uses a default import for Statistic;
update it to a named import by changing the import line to use { Statistic }
(i.e., import { Statistic } from "@prisma/eclipse";) so the docs match the
actual exported symbol and usage of Statistic.
- Line 45: The documentation example currently uses a default import "import
Statistic from \"@prisma/eclipse\";" but the component is exported as a named
export; change the import to a named import (use { Statistic }) in the example
so the example matches the actual export; update the import statement that
mentions Statistic to use curly braces around Statistic and leave the module
specifier unchanged.
- Line 13: The documentation example currently uses a default import for
Statistic ("import Statistic from \"@prisma/eclipse\"") which is incorrect;
update the example to use a named import by importing the exported Symbol
(Statistic) as a named import from "@prisma/eclipse" so consumers copying the
example will match the library's exported API and avoid import errors.
- Line 75: The documentation example uses a default import for Statistic but the
library exports it as a named export; update the import statement that currently
references Statistic (from "@prisma/eclipse") to use a named import (i.e.,
import { Statistic } ...) so the example matches the actual exported symbol and
update any other occurrences in this file that use the same default-import
pattern.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ea394211-5378-49f6-9761-84ab768f04df

📥 Commits

Reviewing files that changed from the base of the PR and between 322b775 and caddc3f.

📒 Files selected for processing (3)
  • apps/eclipse/content/design-system/molecules/statistic.mdx
  • packages/eclipse/package.json
  • packages/eclipse/src/components/index.ts

Comment thread apps/eclipse/content/design-system/molecules/statistic.mdx Outdated
Comment thread apps/eclipse/content/design-system/molecules/statistic.mdx Outdated
Comment thread apps/eclipse/content/design-system/molecules/statistic.mdx Outdated
Comment thread apps/eclipse/content/design-system/molecules/statistic.mdx Outdated
Comment thread apps/eclipse/content/design-system/molecules/statistic.mdx Outdated
Comment thread apps/eclipse/content/design-system/molecules/statistic.mdx Outdated
@argos-ci

argos-ci Bot commented Mar 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 1 removed Mar 10, 2026, 12:07 PM

@carlagn carlagn merged commit bcfc5bf into main Mar 10, 2026
9 of 13 checks passed
@carlagn carlagn deleted the fix/DR-7576-export-statistic branch March 10, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants