Skip to content

Fix: Date Picker, Mobile Voting UI, NYC Token Decimals, and Hardware Wallet Suppor#7

Open
winsznx wants to merge 1 commit into
BlockSurvey:mainfrom
winsznx:main
Open

Fix: Date Picker, Mobile Voting UI, NYC Token Decimals, and Hardware Wallet Suppor#7
winsznx wants to merge 1 commit into
BlockSurvey:mainfrom
winsznx:main

Conversation

@winsznx
Copy link
Copy Markdown

@winsznx winsznx commented Dec 27, 2025

This PR addresses four reported issues to improve the user experience and reliability of the Ballot application.

Changes:

Improved Voting Period UX (Issue #2)

Replaced manual Block Height inputs with datetime-local date pickers in the Poll Builder.
Added calculateBlockHeightFromDate utility to automatically estimate block heights based on selected dates.

Mobile UI Fixes (Issue #1)
Fixed responsive CSS in styles/Poll.module.css to ensuring the "Cast Your Vote" section is visible on mobile devices.
Scoped the hiding of .action_secondary_btn in styles/globals.css to the navigation bar only, preventing unintended hiding of buttons in other views.

Strategy Token Corrections (Issue #3)
Verified the existence of MIA and NYC voting strategies.
Corrected the strategyTokenDecimals for NewYorkCityCoin (NYC) from 0 to 6 in common/constants.js

Hardware Wallet Support (Issue #6)
Added anchorMode: AnchorMode.Any to the cast-my-vote contract call in services/contract.js
This resolves transaction failures often experienced when using Leather with Ledger devices.

Verification:

Date Picker: Verified that changing the date updates the estimated block height.
Mobile: Verified that the voting interface is now accessible on smaller screens.
Contracts: Verified that transactions now include the correct anchor mode.

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 27, 2025

@svectoranu is attempting to deploy a commit to the blocksurvey1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@314159265359879
Copy link
Copy Markdown

There is no test build publicly available, right?
I am happy to test the hardware wallet support fix, as well as the others, when it is available.

@winsznx
Copy link
Copy Markdown
Author

winsznx commented Jan 16, 2026

alright, i will make that and update the repo

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