Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feedback bits

Richie McIlroy7205c99adaef
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
index 62419fc8a..dde7ede63 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
@@ -100,6 +100,23 @@ export default function FeedbackTab() {
</fieldset>
</form>
+ <div class="pt-6 border-t border-gray-2">
+ <h3 class="text-sm font-medium text-gray-12 mb-2">
+ Join the Community
+ </h3>
+ <p class="text-sm text-gray-10 mb-3">
+ Have questions, want to share ideas, or just hang out? Join the
+ Cap Discord community.
+ </p>
+ <Button
+ onClick={() => window.open("https://cap.link/discord", "_blank")}
+ size="md"
+ variant="gray"
+ >
+ Join Discord
+ </Button>
+ </div>
+
<div class="pt-6 border-t border-gray-2">
<h3 class="text-sm font-medium text-gray-12 mb-2">
Debug Information
diff --git a/apps/desktop/src/utils/web-api.ts b/apps/desktop/src/utils/web-api.ts
index 101300b84..b8bd97e17 100644
--- a/apps/desktop/src/utils/web-api.ts
+++ b/apps/desktop/src/utils/web-api.ts
@@ -60,6 +60,9 @@ export async function maybeProtectedHeaders() {
export async function protectedHeaders() {
const { authorization } = await maybeProtectedHeaders();
- if (!authorization) throw new Error("Not authorized");
+ if (!authorization)
+ throw new Error(
+ "Please sign in to continue. Alternatively, email [email protected] or join our Discord at cap.link/discord",
+ );
return { authorization };
}