Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial support for user questions #94

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

lkeegan
Copy link
Member

@lkeegan lkeegan commented Sep 27, 2024

  • backend
    • add models/questions with UserQuestion and UserQuestionText
    • add /user-questions endpoint to get list of questions
    • add /admin/user-questions endpoints to create, update and delete questions
  • admin frontend
    • add UserQuestions component to edit list of questions
    • only support text and select inputs for now
    • refactor admin frontend

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 16.96658% with 323 lines in your changes missing coverage. Please review.

Project coverage is 19.19%. Comparing base (2c27e50) to head (a230be2).

Files with missing lines Patch % Lines
frontend/src/lib/admin.ts 0.00% 92 Missing and 1 partial ⚠️
.../lib/components/Admin/EditUserQuestionModal.svelte 0.00% 74 Missing and 1 partial ⚠️
...tend/src/lib/components/Admin/UserQuestions.svelte 0.00% 40 Missing and 1 partial ⚠️
...ntend/src/lib/components/Admin/InputPreview.svelte 0.00% 18 Missing and 1 partial ⚠️
frontend/src/routes/admin/+page.svelte 0.00% 19 Missing ⚠️
mondey_backend/src/mondey_backend/routers/admin.py 44.11% 19 Missing ⚠️
frontend/src/lib/components/Admin/Languages.svelte 0.00% 12 Missing ⚠️
...nd/src/lib/components/Admin/MilestoneGroups.svelte 0.00% 12 Missing ⚠️
frontend/src/lib/components/Admin/AddButton.svelte 0.00% 7 Missing and 1 partial ⚠️
...ntend/src/lib/components/Admin/DeleteButton.svelte 0.00% 6 Missing and 1 partial ⚠️
... and 6 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
- Coverage   19.43%   19.19%   -0.24%     
==========================================
  Files          75       83       +8     
  Lines        3371     3725     +354     
  Branches      106      112       +6     
==========================================
+ Hits          655      715      +60     
- Misses       2663     2951     +288     
- Partials       53       59       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lkeegan lkeegan force-pushed the user_questionnaire branch 2 times, most recently from c38405e to f664fb6 Compare September 27, 2024 15:27
- backend
  - add models/questions with UserQuestion and UserQuestionText
  - add /user-questions endpoint to get list of questions
  - add /admin/user-questions endpoints to create, update and delete questions
- admin frontend
  - add UserQuestions component to edit list of questions
  - only support text and select inputs for now
  - refactor admin frontend
Copy link

@lkeegan lkeegan merged commit 760f859 into main Oct 7, 2024
7 checks passed
@lkeegan lkeegan deleted the user_questionnaire branch October 7, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants