Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

small bounty improvements

Steven Tey9fab24f0a19e
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
index 4e184025eb..6da9eb2113 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
@@ -199,12 +199,16 @@ function BountySubmissionDetailsSheetContent({
<div className="mt-2 flex flex-col gap-2">
{submission.urls?.map((url) => (
<div className="relative">
- <input
- type="text"
- readOnly
- className="border-border-subtle block w-full rounded-lg border px-3 py-2 pr-12 text-sm font-normal text-neutral-800 focus:border-neutral-300 focus:ring-0"
- defaultValue={url}
- />
+ <div className="border-border-subtle block w-full rounded-lg border px-3 py-2 pr-12">
+ <a
+ href={url}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="cursor-alias text-sm font-normal text-neutral-800 decoration-dotted underline-offset-2 hover:underline"
+ >
+ {url}
+ </a>
+ </div>
<div className="absolute inset-y-0 right-0 flex items-center pr-2.5">
<CopyButton
value={url}
diff --git a/apps/web/ui/partners/bounties/claim-bounty-modal.tsx b/apps/web/ui/partners/bounties/claim-bounty-modal.tsx
index 32552b4b7f..6ac75ac30c 100644
--- a/apps/web/ui/partners/bounties/claim-bounty-modal.tsx
+++ b/apps/web/ui/partners/bounties/claim-bounty-modal.tsx
@@ -161,10 +161,10 @@ function ClaimBountyModalContent({
{success ? (
<div className="mx-auto flex max-w-sm flex-col items-center gap-1 p-6 text-center max-sm:px-4">
<span className="text-content-emphasis text-base font-semibold">
- Congratulations! You've successfully submitted your bounty!
+ Congratulations! You've successfully submitted your bounty.
</span>
<p className="text-content-subtle text-sm font-medium">
- We'll let you know when your bounty has been approved.
+ We'll let you know when your bounty has been reviewed.
</p>
</div>
) : (
diff --git a/apps/web/ui/partners/reject-bounty-submission-modal.tsx b/apps/web/ui/partners/reject-bounty-submission-modal.tsx
index 46e6ce0679..7dfd6f676a 100644
--- a/apps/web/ui/partners/reject-bounty-submission-modal.tsx
+++ b/apps/web/ui/partners/reject-bounty-submission-modal.tsx
@@ -108,18 +108,18 @@ const RejectBountySubmissionModal = ({
</span>
</label>
<span className="text-xs text-neutral-400">
- {watch("rejectionNote")?.length || 0}/500
+ {watch("rejectionNote")?.length || 0}/5,000
</span>
</div>
<div className="mt-2">
<textarea
id="rejectionNote"
{...register("rejectionNote", {
- maxLength: 500,
+ maxLength: 5000,
setValueAs: (value) => (value === "" ? undefined : value),
})}
rows={3}
- maxLength={500}
+ maxLength={5000}
className={cn(
"block w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",
errors.rejectionNote &&