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

Question SPA #30

Merged
merged 56 commits into from
Sep 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
423a305
init question components
limcaaarl Sep 18, 2024
e15dd72
Add route for questions page
limcaaarl Sep 18, 2024
e35083b
Add table component
limcaaarl Sep 19, 2024
b335b67
Fix primeflex import
limcaaarl Sep 19, 2024
330999c
Add delete question event handling
limcaaarl Sep 19, 2024
2a21887
Merge branch 'init-primeflex' of https://github.com/limcaaarl/cs3219-…
limcaaarl Sep 20, 2024
7691aa8
Merge branch 'init-primeflex' into question-spa-frontend
limcaaarl Sep 20, 2024
6049982
Add dialog box for creating new question
limcaaarl Sep 20, 2024
8ee7707
Add edit button for each row
limcaaarl Sep 20, 2024
19dfe9d
Add Prime Icons
limcaaarl Sep 20, 2024
0a9794f
Fix edit bugs
limcaaarl Sep 21, 2024
a1eebb9
Fix spacing issues
limcaaarl Sep 21, 2024
398a915
Fix row duplicate bug
limcaaarl Sep 21, 2024
669c329
Update question data to read locally
limcaaarl Sep 21, 2024
6c3c4ea
Fix pagination bug
limcaaarl Sep 21, 2024
7a8e2f4
Reformat code for consistent indetation
limcaaarl Sep 22, 2024
807dc1b
Refactor classes and enums into separate files
limcaaarl Sep 22, 2024
599addf
Fix bug where selected row is not getting updated after edit
limcaaarl Sep 22, 2024
b0bae2a
Remove redundant component
limcaaarl Sep 22, 2024
56d7831
Merge pull request #29 from limcaaarl/question-spa-frontend
limcaaarl Sep 22, 2024
25ce3b8
Fix lint error
limcaaarl Sep 22, 2024
6aee0ac
Merge pull request #31 from limcaaarl/question-spa-frontend
limcaaarl Sep 22, 2024
68d682e
Merge branch 'main' into question-spa-frontend
limcaaarl Sep 24, 2024
6323496
Update minor changes
limcaaarl Sep 24, 2024
78872ba
Fix indentations inconsistencies for .html files
limcaaarl Sep 24, 2024
31dd2a8
Update budget limit
limcaaarl Sep 24, 2024
c91c83c
Merge branch 'main' into question-spa-frontend
limcaaarl Sep 25, 2024
90173d7
Generate template for service caller
limcaaarl Sep 25, 2024
f20f99c
Refactor models into separate files
limcaaarl Sep 25, 2024
20205c6
Add config file to store base url
limcaaarl Sep 25, 2024
f8b1544
Implement QuestionService with getQuestions method
limcaaarl Sep 25, 2024
ddb9c84
Fix linting
limcaaarl Sep 25, 2024
193e33f
Implement getTopics method
limcaaarl Sep 26, 2024
ca65293
Add forkJoin to combine question and topic API calls
limcaaarl Sep 26, 2024
bbbf308
Add API calls
limcaaarl Sep 26, 2024
abd4117
Integrate API calls with UI
limcaaarl Sep 26, 2024
ce558d0
Update error message handling
limcaaarl Sep 27, 2024
a354be1
Fix merge conflicts
limcaaarl Sep 27, 2024
7a3313c
Add loading spinner when fetching all data
limcaaarl Sep 27, 2024
dc4279b
Update loading spinner style
limcaaarl Sep 27, 2024
1ddb1f9
Remove locally stored questions
limcaaarl Sep 27, 2024
b84cb20
Update id column to be sortable
limcaaarl Sep 27, 2024
efc6e14
Fix topics field validation
limcaaarl Sep 27, 2024
9e8fc42
Update form errors to use the new Angular @if syntax
limcaaarl Sep 27, 2024
60464d3
Update to use formGroup.value instead of field listeners
limcaaarl Sep 27, 2024
129e4b0
Fix dialog header text
limcaaarl Sep 27, 2024
8ce20c2
Move question.service.ts to shared services folder
limcaaarl Sep 27, 2024
e63f15c
Extract dialog box into a new component
limcaaarl Sep 27, 2024
6fc2041
Update topics dropdown to allow addition of new topics
limcaaarl Sep 27, 2024
b5168bb
Fix margin issue with dialog box
limcaaarl Sep 27, 2024
4d03d12
Fix css issue with add new topic button
limcaaarl Sep 27, 2024
4d3cb1c
Improve add new topic behaviour
samuelim01 Sep 27, 2024
a4ea983
Fix minor issues
limcaaarl Sep 27, 2024
4d25437
Fix merge conflicts
limcaaarl Sep 27, 2024
ae4ba44
Fix bugs
limcaaarl Sep 28, 2024
28dbdd2
Merge branch 'main' into question-spa-frontend
limcaaarl Sep 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/app/questions/questions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export class QuestionsComponent implements OnInit {
if (
!this.question.title?.trim() ||
!this.question.topics ||
this.question.topics?.length == 0 ||
!this.question.difficulty?.trim() ||
!this.question.description?.trim()
) {
samuelim01 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down