Closed AmoabaKelvin closed 9 months ago
Enhanced link behavior
In links.ts
we've added a safeguard to check if the option disableLinkAfterClicks
is null before executing certain operations. This helps in preventing any unnecessary code execution when it's not needed.
Improved URL extraction from data
In links.tsx
we've upgraded the method we use to dissect and retrieve the shortened URL from the data we receive. This ensures that the shortUrl
we deliver is accurate every time.
Adjusted link disabling conditions
In link-edit-form.tsx
, we've put in a new rule to set disableLinkAfterClicks
to null when its value is 0. This change makes the system more intuitive by eliminating cases where a link could be disabled after zero clicks, which could cause confusion.
Implemented form validation
In quick-shorten.tsx
, we've added a validation for our form inputs using the yup
library. It takes care of displaying relevant error messages and alters the appearance of the input field to indicate an error by coloring it red. This helps in alerting the user immediately when they input a problematic URL, helping them correct their errors in real time.
The latest updates on your projects. Learn more about Vercel for Git ↗︎