Skip to content

Commit 7205c99

Browse files
committed
feedback bits
1 parent f54bcae commit 7205c99

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,23 @@ export default function FeedbackTab() {
100100
</fieldset>
101101
</form>
102102

103+
<div class="pt-6 border-t border-gray-2">
104+
<h3 class="text-sm font-medium text-gray-12 mb-2">
105+
Join the Community
106+
</h3>
107+
<p class="text-sm text-gray-10 mb-3">
108+
Have questions, want to share ideas, or just hang out? Join the
109+
Cap Discord community.
110+
</p>
111+
<Button
112+
onClick={() => window.open("https://cap.link/discord", "_blank")}
113+
size="md"
114+
variant="gray"
115+
>
116+
Join Discord
117+
</Button>
118+
</div>
119+
103120
<div class="pt-6 border-t border-gray-2">
104121
<h3 class="text-sm font-medium text-gray-12 mb-2">
105122
Debug Information

apps/desktop/src/utils/web-api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ export async function maybeProtectedHeaders() {
6060

6161
export async function protectedHeaders() {
6262
const { authorization } = await maybeProtectedHeaders();
63-
if (!authorization) throw new Error("Not authorized");
63+
if (!authorization)
64+
throw new Error(
65+
"Please sign in to continue. Alternatively, email hello@cap.so or join our Discord at cap.link/discord",
66+
);
6467
return { authorization };
6568
}

0 commit comments

Comments
 (0)