8000 Sns topics cleanup by mstrasinskis · Pull Request #6844 · dfinity/nns-dapp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sns topics cleanup #6844

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

Merged
merged 4 commits into from
May 19, 2025
Merged

Sns topics cleanup #6844

merged 4 commits into from
May 19, 2025

Conversation

mstrasinskis
Copy link
Contributor

Motivation

Vote delegation by topics is now live, but there are still some TODOs left in the code. This PR cleans up those remaining items.

Changes

  • Made voteDelegationState non-optional.
  • Removed TODO related to adding the stopPropagation property to the checkbox, as it's not needed.
  • Removed TODO related to icon color. Decided with the designer to keep it primary for now for consistency.

Tests

  • Updated accordingly.

Todos

  • Add entry to changelog (if necessary).
    Not necessary.

@mstrasinskis mstrasinskis requested a review from a team as a code owner May 16, 2025 07:30
@mstrasinskis mstrasinskis requested a review from Copilot May 16, 2025 07:30
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR cleans up leftover TODOs and updates the vote delegation state handling in neurons-related components and tests.

  • Made voteDelegationState non-optional in the TableNeuron type.
  • Updated tests to include the Vote Delegation column and adjusted corresponding grid layouts.
  • Removed TODO comments related to stopPropagation and icon color.

Reviewed Changes

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

Show a summary per file
File Description
frontend/src/tests/mocks/neurons.mock.ts Added voteDelegationState property with a default value for tests.
frontend/src/tests/lib/components/neurons/NeuronsTable/NeuronsTable.svelte.spec.ts Updated test expectations to include the Vote Delegation column.
frontend/src/lib/types/neurons-table.ts Changed voteDelegationState from optional to required.
frontend/src/lib/modals/sns/neurons/FollowSnsNeuronsByTopicItem.svelte Removed deprecated TODO comment regarding stopPropagation.
frontend/src/lib/modals/sns/neurons/FollowSnsNeuronsByTopicFollowee.svelte Removed deprecated TODO comment regarding icon color.
Comments suppressed due to low confidence (1)

frontend/src/tests/lib/components/neurons/NeuronsTable/NeuronsTable.svelte.spec.ts:174

  • [nitpick] Double-check that the updated grid template areas fully accommodate the new Vote Delegation column in all responsive layouts.
"cell-9 cell-9"

Copy link
Contributor
@yhabib yhabib left a comment

Choose a reason for hiding this comment

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

🧹 🧹 🧹 🧹

@mstrasinskis mstrasinskis added this pull request to the merge queue May 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 19, 2025
@mstrasinskis mstrasinskis enabled auto-merge May 19, 2025 12:02
@mstrasinskis mstrasinskis added this pull request to the merge queue May 19, 2025
Merged via the queue into main with commit 9cff522 May 19, 2025
36 checks passed
@mstrasinskis mstrasinskis deleted the sns-topics/cleanup branch May 19, 2025 12: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
0