diff --git a/.github/pr-description-template.md b/.github/pr-description-template.md new file mode 100644 index 0000000..bb1053a --- /dev/null +++ b/.github/pr-description-template.md @@ -0,0 +1,20 @@ +> **Important**: Generate a PR description, Only include the sections listed below. Do not add any extra sections, titles, or content beyond what is specified in this template. + +**🏷️ PR Title**: + +## 📋 Summary + + +## 🔗 Related Tasks + + + + + + +## 📝 Additional Details + + +## 📜 Commit List + + diff --git a/.github/workflows/auto-pr-description.yml b/.github/workflows/auto-pr-description.yml new file mode 100644 index 0000000..5382691 --- /dev/null +++ b/.github/workflows/auto-pr-description.yml @@ -0,0 +1,67 @@ +# https://github.com/vblagoje/pr-auto +# How to use: +# 1. Create a new pull request and save it. +# 2. Wait for the workflow `Generate PR Description` to finish. +# 3. Then copy past the generated title for the PR title. + +name: Generate PR Description + +on: + pull_request: + types: [opened, synchronize] + +env: + TEMPLATE_FILE_PATH: .github/pr-description-template.md + +jobs: + generate-description: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Read template content + id: read-template + run: | + content=$(cat ${{ env.TEMPLATE_FILE_PATH }} | sed ':a;N;$!ba;s/\n/\\n/g') + echo "template_content=$content" >> $GITHUB_OUTPUT + + - name: Get Commit Messages + id: commit_messages + run: | + git fetch origin ${{ github.event.pull_request.base.ref }} + COMMITS=$(git log --oneline origin/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.sha }}) + echo "commits=$(echo "$COMMITS" | jq -sRr @uri)" >> $GITHUB_OUTPUT + echo "=== COMMIT MESSAGES ===" + echo "$COMMITS" + echo "=== END COMMIT MESSAGES ===" + + - name: Generate PR Description + id: generate_desc + uses: navidshad/pull-request-description@master + with: + api_key: ${{ secrets.OPENAI_API_KEY_FOR_PR_DESC_GENERATOR }} + prompt: ${{ steps.read-template.outputs.template_content }} + git_diff: ${{ steps.commit_messages.outputs.commits }} + model: gpt-4.1-mini-2025-04-14 + + - name: Update PR Description + uses: actions/github-script@v6 + env: + PR_DESCRIPTION: ${{ steps.generate_desc.outputs.description }} + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const { owner, repo } = context.repo; + await github.rest.pulls.update({ + owner, + repo, + pull_number: context.payload.pull_request.number, + body: process.env.PR_DESCRIPTION + }); diff --git a/frontend/components/partial/ProfileButton.vue b/frontend/components/partial/ProfileButton.vue index d09715d..5cf644b 100644 --- a/frontend/components/partial/ProfileButton.vue +++ b/frontend/components/partial/ProfileButton.vue @@ -27,11 +27,11 @@ class="dark:hover:text-white" @click=" close(); - goToMembership(); + goToProfileSettings(); " > - - {{ t('subscription.title') }} + + {{ t('profile.profile') }}
  • @@ -88,7 +88,7 @@ logout(); } - function goToMembership() { - router.push('/settings/subscription'); + function goToProfileSettings() { + router.push('/settings/profile'); } diff --git a/frontend/locales/en.json b/frontend/locales/en.json index 9102939..9088304 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -174,7 +174,15 @@ "start-new-session": "Start New Session" }, "profile": { - "profile": "Profile" + "profile": "Profile", + "receive-daily-practice-email-reminders": "Receive daily practice email reminders?", + "full-name": "Full Name", + "email": "Email", + "password": "Password", + "reset-password": "Reset Password", + "uploading": "Uploading...", + "profile-updated": "Profile updated successfully", + "profile-update-failed": "Failed to update profile" }, "billing": { "billing": "Billing", @@ -209,5 +217,7 @@ "logout": "Log out", "sign-out": "Sign Out", "confirm-sign-out": "Confirm Sign Out", - "confirm-sign-out-message": "Are you sure you want to sign out of your account?" + "confirm-sign-out-message": "Are you sure you want to sign out of your account?", + "save-changes": "Save Changes", + "coming-soon": "Coming soon" } diff --git a/frontend/package.json b/frontend/package.json index 76288e8..baa9395 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -30,7 +30,7 @@ "vue-tsc": "^0.40.4" }, "dependencies": { - "@codebridger/lib-vue-components": "^1.19.0", + "@codebridger/lib-vue-components": "^1.20.0", "@modular-rest/client": "^1.14.0", "@pinia/nuxt": "^0.4.6", "apexcharts": "^4.4.0", @@ -46,4 +46,4 @@ "vue3-popper": "^1.5.0", "yup": "^1.6.1" } -} +} \ No newline at end of file diff --git a/frontend/pages/settings/profile.vue b/frontend/pages/settings/profile.vue index a3f1acc..b45ba8f 100644 --- a/frontend/pages/settings/profile.vue +++ b/frontend/pages/settings/profile.vue @@ -1,12 +1,111 @@ + + diff --git a/frontend/pages/statistic.vue b/frontend/pages/statistic.vue index f1e138e..b0f5d2e 100644 --- a/frontend/pages/statistic.vue +++ b/frontend/pages/statistic.vue @@ -1,5 +1,5 @@