feat: refactor UI to use coss + coupons UI (#27647)

* feat: refactor UI to use coss + coupons UI

* fix: use TRPCError and remove sensitive logging in createCoupon handler

- Replace plain Error with TRPCError for consistent tRPC error handling
- Use INTERNAL_SERVER_ERROR for missing env configuration
- Use UNAUTHORIZED for permission denied errors
- Use BAD_REQUEST for API failure errors
- Remove console.warn that logged username (sensitive info)

Co-Authored-By: unknown <>

* feat: add copy button and fix 0 on % off

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-02-05 10:05:57 +00:00
1 parent 1ad4ad6e4e
commit c652c61e0c
7 files changed
+787 -198

No files matched your search

@@ -1,12 +1,13 @@
"use client";
import { WizardLayout } from "@calcom/ui/components/layout";
import { CreateANewLicenseKeyForm } from "~/ee/deployment/components/CreateLicenseKeyForm";
export default function SettingsNewView() {
return (
<WizardLayout currentStep={1} maxSteps={2}>
<CreateANewLicenseKeyForm />
</WizardLayout>
<div className="bg-default flex min-h-screen items-start justify-center px-4 py-12">
<div className="w-full max-w-lg">
<CreateANewLicenseKeyForm />
</div>
</div>
);
};
}