Skip to content

feat: additional validator info - #430

Merged
petar-omni merged 2 commits into
mainfrom
feat/additional-validator-info
Aug 15, 2025
Merged

petar-omni merged 2 commits into
mainfrom
feat/additional-validator-info

Conversation

@petar-omni

Copy link
Copy Markdown
Contributor

This pull request introduces several improvements and new features to the validator selection UI, updates dependencies, and significantly expands French translations for the widget. The main highlights are the addition of new validator metadata fields, enhanced internationalization, and dependency updates for both core and widget packages.

Validator Metadata Enhancements:

  • Added support for displaying subnetName, marketCap, and tokenSymbol as part of validator metadata in the useMetaInfo hook and related components. This includes updating the prop types, logic, and rendering. [1] [2] [3] [4] [5] [6] [7]
  • Added corresponding English and French translations for these new validator fields. [1] [2]

Internationalization (i18n):

Dependency Updates:

  • Upgraded @biomejs/biome from version 2.1.2 to 2.2.0 in both package.json and pnpm-lock.yaml. [1] [2]
  • Updated @stakekit/api-hooks from version 0.0.108 to 0.0.109 in both packages/widget/package.json and pnpm-lock.yaml. [1] [2]

Development and Linting Configuration:

  • Adjusted biome.json to turn off several linting rules (useIterableCallbackReturn, useUniqueElementIds, useIndexOf) to better match project needs.

Testing Utilities:

  • Updated a TypeScript directive in the test setup to use @ts-expect-error for better clarity and intent.

@changeset-bot

changeset-bot Bot commented Aug 15, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc6bf64

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stakekit/widget Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Aug 15, 2025

Copy link
Copy Markdown

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

Project Deployment Preview Comments Updated (UTC)
dashboard-finery Ready Ready Preview Comment Aug 15, 2025 5:02pm
dashboard-utila Ready Ready Preview Comment Aug 15, 2025 5:02pm
staging-widget Ready Ready Preview Comment Aug 15, 2025 5:02pm
stakekit-widget Ready Ready Preview Comment Aug 15, 2025 5:02pm

Copilot AI 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.

Pull Request Overview

This pull request enhances the validator selection UI by adding new metadata fields, significantly expands French translations, and updates dependencies. The changes improve internationalization support and provide more detailed validator information for users.

Key changes:

  • Added support for displaying subnetName, marketCap, and tokenSymbol in validator metadata
  • Expanded French translations with new UI strings, campaign descriptions, and action labels
  • Updated dependencies including @biomejs/biome to 2.2.0 and @stakekit/api-hooks to 0.0.109

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/widget/src/components/molecules/select-validator/meta-info.tsx Added support for new validator metadata fields (subnetName, marketCap, tokenSymbol)
packages/widget/src/components/molecules/select-validator/select-validator-list.tsx Passed new metadata props to validator components and added debug console.log
packages/widget/src/translation/French/translations.json Significantly expanded French translations for UI elements, campaigns, and actions
packages/widget/src/translation/English/translations.json Added English translations for new validator metadata fields
packages/widget/tests/utils/setup.ts Updated TypeScript directive from @ts-ignore to @ts-expect-error
packages/widget/package.json Updated @stakekit/api-hooks dependency to version 0.0.109
package.json Updated @biomejs/biome dependency to version 2.2.0
biome.json Disabled additional linting rules for project needs
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

const metaInfo = useMetaInfo(props);

console.log({ metaInfo });

Copilot AI Aug 15, 2025

Copy link

Choose a reason for hiding this comment

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

Debug console.log statement should be removed before merging to production. This appears to be leftover debugging code that will clutter the console output.

Suggested change

Copilot uses AI. Check for mistakes.
@petar-omni
petar-omni force-pushed the feat/additional-validator-info branch from 628a4e3 to 0da322f Compare August 15, 2025 15:03
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.

3 participants