Skip to content

perf: Replace clsx to cn - #794

Merged
aXenDeveloper merged 3 commits into
canaryfrom
perf/replace_cn
Sep 8, 2026
Merged

aXenDeveloper merged 3 commits into
canaryfrom
perf/replace_cn

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Improving Documentation

Description

What?

Why?

@vercel

vercel Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
vitnode-prod Ready Ready Preview Sep 8, 2026 8:23am UTC

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39697f6905

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return context;
};
import { useDashboardBoard } from "./board-context";
import { WidgetSettingsDialogContext } from "./widget-settings-context";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Re-export the settings hook from its existing module

When an installed plugin's settingsComponent imports useWidgetSettingsDialog from @vitnode/core/views/admin/views/core/dashboard/grid/widget-settings-dialog, upgrading core now fails because that module no longer exports the hook. The settings component receives only settings and widgetId, so this hook is its mechanism for saving through the surrounding dialog; moving it requires preserving a re-export from the old module for existing plugins.

Useful? React with 👍 / 👎.

return twMerge(clsx(inputs));
}

export const normalizeUrl = (url: string) =>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the public cn export

When an existing app or plugin imports cn from @vitnode/core/lib/utils, this release causes a missing named-export error because the wildcard package export still exposes the module but cn has been deleted from it. The repository's web app used this exact public path before being migrated in this commit, so external consumers can reasonably have the same import; re-exporting the new package implementation here preserves compatibility without losing the optimization.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fc00731ac8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/web/src/styles.css Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 13b8655b4b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

import type { DashboardLayoutAction } from "./layout-reducer";

import { widgetIdOf } from "../widgets/instance-id";
import { DashboardBoardContext } from "./board-context";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Re-export the board hook from its original module

When an existing plugin imports useDashboardBoard from @vitnode/core/views/admin/views/core/dashboard/grid/board-provider, upgrading core now produces a missing-export error because the hook was moved to board-context without a compatibility re-export. The package's wildcard export exposes this module publicly, and plugin widget components rendered below DashboardBoardProvider can use the hook, so keep a re-export from the original path.

Useful? React with 👍 / 👎.

@aXenDeveloper
aXenDeveloper merged commit f1cbf0a into canary Sep 8, 2026
4 checks passed
@aXenDeveloper
aXenDeveloper deleted the perf/replace_cn branch September 8, 2026 15:01

This branch was successfully deployed

1 active deployment
Preview — 13b8655b Deployed Sep 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚀 Performerce Improves performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant