Skip to content

Conversation

@VirmasaloA
Copy link
Collaborator

  • Consolidate collaborative exam search into the main exam search component.
  • Introduce tab navigation for regular and collaborative exams.
  • Remove deprecated collaborative exam search component.
  • Update routing to reflect changes in exam search structure.
  • Enhance loading and error handling for exam searches.

- Consolidate collaborative exam search into the main exam search component.
- Introduce tab navigation for regular and collaborative exams.
- Remove deprecated collaborative exam search component.
- Update routing to reflect changes in exam search structure.
- Enhance loading and error handling for exam searches.
Copy link
Collaborator

@lupari lupari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Onko näiden toimintojen pakko olla yhdessä komponentissa? Nyt tuo hoitaa mielestäni vähän liian montaa asiaa.

Mielestäni olisi selkeämpi jos olisi yleinen hakukomponentti, joka lähinnä näyttäisi tabit ja hanskaisi niiden vaihtumista. Sitten olisi kaksi varsinaista toteutuskomponenttia: perustenttien haku ja yhteistenttien haku.

Esimerkkiä voi katsoa esimerkiksi statistics.component.html-tiedostosta.


@Component({
selector: 'xm-exam-search',
template: `
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Templaatin voisi siirtää omaan tiedostoonsa, koska se on melko iso.

…dashboard

- Convert exam search results to title:information column format
- Update active enrolment component with consistent two-column layout
- Move shared exam-title-button styles to global styles.scss
- Simplify CSS classes and consolidate duplicate styling
- Add mb-2 spacing between information rows for better readability
- Maintain 24px font size for dashboard titles, 16px for search results
@VirmasaloA VirmasaloA force-pushed the CSCEXAM-1159 branch 3 times, most recently from 6e3d01e to 9ea23e2 Compare October 1, 2025 07:17
- Introduced dropdown menus for sorting regular and collaborative exam results by name and period start/end.
- Updated filters to include ordering and reverse properties for both regular and collaborative exams.
- Implemented methods to update sorting criteria and store filters accordingly.
- Ensured that the exam results are displayed in the selected order using the OrderByPipe.

This update improves user experience by allowing dynamic sorting of exam results.
<div class="col-12">
<img src="/assets/images/icon_info.png" alt="" /> &nbsp;
<span>{{ 'i18n_collaborative_exam_search_description' | translate }}</span>
<div class="row">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Search komponentit lakkas olemasta templaatteja tabi-järjestelyn takii

}}
}
@case ('periodStart') {
Tenttiperiodi alkaa (nouseva)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Käännöksiä puuttuu?

@VirmasaloA VirmasaloA requested a review from lupari October 21, 2025 05:25
@case ('periodEnd') {
Tenttiperiodi päättyy (nouseva)
}
@default {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tämä lienee turha blokki

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nii ku nykyään ei tarvii tota default blockii 👍

}
{{ exam.course?.name }}
<div class="mt-3">
<div class="row mb-2">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Onko testattu mobiiliilaitteilla?

Huomasin vaan, että jäljellä on ainoastaan col-md-määrittely. Muut näyttökoot ei määritelty.

text-decoration: none;
cursor: pointer;
}
.exam-title-button {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Onko tämän pakko olla täällä ja tarviiko tämä luokka oikeasti noin monta ominaisuutta?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sain karsittua osan, mut suurin osa on pakollisii yliajoja.

VirmasaloA and others added 4 commits October 21, 2025 12:30
Resolved conflicts in:
- ui/src/app/enrolment/active/helpers/active-enrolment-menu.component.html
- ui/src/assets/i18n/en.json
- ui/src/assets/i18n/fi.json
- ui/src/assets/i18n/sv.json

All conflicts resolved by keeping dev branch changes.
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.

3 participants