Skip to content

Commit 5af1ccd

Browse files
committed
feat: add WhatsApp QR code to community section
- Generate QR code for WhatsApp invite link - Display QR code in Support > Community section - Add WhatsApp link and QR to README - Remove WhatsApp from issue template config
1 parent 9696532 commit 5af1ccd

File tree

5 files changed

+43
-20
lines changed

5 files changed

+43
-20
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: WhatsApp Community
4-
url: https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris
5-
about: Join our WhatsApp community for quick support and discussions
63
- name: GitHub Discussions
74
url: https://github.com/wavezync/opnotes/discussions
85
about: Ask questions, share ideas, or discuss features with the community

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ src/
7575
└── shared/ # Shared types and models
7676
```
7777

78+
## Community
79+
80+
Join our WhatsApp community to get instant support, share feedback, and connect with other users.
81+
82+
<a href="https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris">
83+
<img src="resources/whatsapp-qr.png" alt="WhatsApp Community QR Code" width="150" />
84+
</a>
85+
86+
[Join WhatsApp Community](https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris)
87+
7888
## License
7989

8090
MIT

resources/whatsapp-qr.png

1.59 KB
Loading

src/renderer/src/components/support/CommunitySection.tsx

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { Card, CardContent } from '@renderer/components/ui/card'
22
import { Button } from '@renderer/components/ui/button'
33
import { MessageCircle, Bell, HelpCircle, Users, ExternalLink } from 'lucide-react'
4+
import whatsappQr from '../../../../../resources/whatsapp-qr.png?asset'
5+
6+
const WHATSAPP_LINK = 'https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris'
47

58
export const CommunitySection = () => {
69
const benefits = [
@@ -50,23 +53,34 @@ export const CommunitySection = () => {
5053
>
5154
<CardContent className="pt-8 pb-8 relative">
5255
<div className="absolute top-0 right-0 w-48 h-48 bg-green-500/10 rounded-full -translate-y-1/2 translate-x-1/2 blur-3xl" />
53-
<div className="flex flex-col items-center text-center relative">
54-
<div className="h-16 w-16 rounded-2xl bg-green-500/20 flex items-center justify-center mb-4 transition-transform duration-200 hover:scale-105">
55-
<MessageCircle className="h-8 w-8 text-green-500" />
56+
<div className="flex flex-col md:flex-row items-center gap-6 relative">
57+
{/* QR Code */}
58+
<div className="flex-shrink-0">
59+
<div className="p-3 bg-white rounded-xl shadow-sm">
60+
<img src={whatsappQr} alt="WhatsApp QR Code" className="w-32 h-32" />
61+
</div>
62+
<p className="text-xs text-muted-foreground text-center mt-2">Scan to join</p>
63+
</div>
64+
65+
{/* Content */}
66+
<div className="flex flex-col items-center md:items-start text-center md:text-left">
67+
<div className="h-12 w-12 rounded-xl bg-green-500/20 flex items-center justify-center mb-3">
68+
<MessageCircle className="h-6 w-6 text-green-500" />
69+
</div>
70+
<h3 className="text-xl font-bold mb-2">WhatsApp Community</h3>
71+
<p className="text-muted-foreground max-w-sm mb-4">
72+
Join our active WhatsApp community to get instant support, share feedback,
73+
and connect with healthcare professionals using Op Notes.
74+
</p>
75+
<Button
76+
className="bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white"
77+
onClick={() => window.open(WHATSAPP_LINK, '_blank')}
78+
>
79+
<MessageCircle className="h-4 w-4 mr-2" />
80+
Join WhatsApp Community
81+
<ExternalLink className="h-3 w-3 ml-2" />
82+
</Button>
5683
</div>
57-
<h3 className="text-xl font-bold mb-2">WhatsApp Community</h3>
58-
<p className="text-muted-foreground max-w-sm mb-6">
59-
Join our active WhatsApp community to get instant support, share feedback,
60-
and connect with healthcare professionals using Op Notes.
61-
</p>
62-
<Button
63-
className="bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white"
64-
onClick={() => window.open('https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris', '_blank')}
65-
>
66-
<MessageCircle className="h-4 w-4 mr-2" />
67-
Join WhatsApp Community
68-
<ExternalLink className="h-3 w-3 ml-2" />
69-
</Button>
7084
</div>
7185
</CardContent>
7286
</Card>

src/renderer/src/components/support/ReportIssue.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
import { useSettings } from '@renderer/contexts/SettingsContext'
1616
import { useState } from 'react'
1717

18+
const WHATSAPP_LINK = 'https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris'
19+
1820
export const ReportIssue = () => {
1921
const { appVersion } = useSettings()
2022
const [copied, setCopied] = useState(false)
@@ -129,7 +131,7 @@ export const ReportIssue = () => {
129131
<MessageCircle className="h-3 w-3 inline-block mr-1" />
130132
Prefer chat? Join our{' '}
131133
<button
132-
onClick={() => window.open('https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris', '_blank')}
134+
onClick={() => window.open(WHATSAPP_LINK, '_blank')}
133135
className="text-green-500 hover:underline"
134136
>
135137
WhatsApp Community

0 commit comments

Comments
 (0)