Skip to content

Commit 2ab046f

Browse files
authored
Merge pull request #24 from applirank/testing/feedback-model
feat: added feedback submission with optional context, screenshot support within the software and some pr validation
2 parents da17b78 + 5e882ad commit 2ab046f

9 files changed

Lines changed: 611 additions & 91 deletions

File tree

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ BETTER_AUTH_SECRET=generate-a-random-string-at-least-32-chars-long
2121

2222
# The public URL of the app (used for session cookies and OAuth callbacks)
2323
# Local: http://localhost:3000 | Production: https://applirank.com
24+
# Railway PR/preview: optional when RAILWAY_ENVIRONMENT_NAME is a preview env.
25+
# In preview, Applirank resolves URL automatically in this order:
26+
# 1) https://applirank-applirank-pr-${RAILWAY_GIT_PR_NUMBER}.up.railway.app
27+
# 2) https://${RAILWAY_PUBLIC_DOMAIN}
28+
# 3) BETTER_AUTH_URL (fallback)
2429
BETTER_AUTH_URL=http://localhost:3000
2530

2631
# Comma-separated allowed origins for auth requests.

.github/workflows/dco.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: PR Validation
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: pr-validation-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
validate:
17+
name: Build, typecheck, and test
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
cache: npm
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Run tests (if present)
34+
run: npm run test --if-present
35+
36+
- name: Lint (if present)
37+
run: npm run lint --if-present
38+
39+
- name: Typecheck
40+
run: npx nuxi typecheck
41+
42+
- name: Audit dependencies (high severity+)
43+
run: npm audit --audit-level=high
44+
45+
- name: Build
46+
run: npm run build

app/components/AppSidebar.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ const { data: session } = await authClient.useSession(useFetch)
1010
const isSigningOut = ref(false)
1111
const { isDark, toggle: toggleColorMode } = useColorMode()
1212
13-
const config = useRuntimeConfig()
14-
const feedbackEnabled = computed(() => config.public.feedbackEnabled)
1513
const showFeedbackModal = ref(false)
1614
1715
const userName = computed(() => session.value?.user?.name ?? 'User')
@@ -163,12 +161,11 @@ function isActiveTab(to: string, exact: boolean) {
163161
<div class="text-xs text-surface-500 dark:text-surface-400 truncate">{{ userEmail }}</div>
164162
</div>
165163
<button
166-
v-if="feedbackEnabled"
167164
class="flex items-center gap-2 px-3 py-1.5 rounded-md text-sm text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-800 hover:text-surface-900 dark:hover:text-surface-100 transition-colors cursor-pointer border-0 bg-transparent w-full text-left"
168165
@click="showFeedbackModal = true"
169166
>
170167
<MessageSquarePlus class="size-4 shrink-0" />
171-
Feedback
168+
Report issue (GitHub)
172169
</button>
173170
<button
174171
class="flex items-center gap-2 px-3 py-1.5 rounded-md text-sm text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-800 hover:text-surface-900 dark:hover:text-surface-100 transition-colors cursor-pointer border-0 bg-transparent w-full text-left"

0 commit comments

Comments
 (0)