ChainSafe / ChainSafe/ui-monorepo

[Storage] Add error when trying to pin an empty CID

Open
#2,229 1 comment 0 reactions 0 assignees View on GitHub
Product: Storage Type: Feature
Dominant language
TypeScript
Stars
50
Forks
17
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
When we try to pin a CID in the "Pin a CID" modal, if the input "CID to pin" is empty and we click "Pin" button nothing happens, the user doesn't see an error that he needs to complete that input.

**Describe the solution you'd like**
I propose a similar solution like the one that we have when we try to create a new bucket with empty name, show the error message "**CID to pin is required**"
Screen Shot 2022-07-20 at 09 32 08

**Screenshot**
Nothing happens after clicking "Pin" button
Screen Shot 2022-07-20 at 09 33 06

Contributor guide

Open the contributing guide

Research direction

Start at the "Pin a CID" modal and compare its empty-input handling with the existing validation for creating a bucket with an empty name. Make the empty CID case show "CID to pin is required" after clicking "Pin", then verify the message appears in the modal.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.