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.

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.

@VirmasaloA VirmasaloA force-pushed the CSCEXAM-1159 branch 3 times, most recently from 3c1fea1 to 908a655 Compare September 24, 2025 15:17
@VirmasaloA VirmasaloA force-pushed the CSCEXAM-1159 branch 2 times, most recently from 9ea23e2 to 973d82a Compare October 1, 2025 07:25
<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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ymmärtääkseni se toimii niin että jos näyttö on midiä isompi, se pysyy, ja jos se on midiä pienempi (mobiili) nii se määrittely poistuu. Testasin, hyvin toimii.

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.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, mutta eikö tämän paikka olisi enrolment.shared.scss jos tätä määritystä ei käytetä enrolment-koodin ulkopuolella?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Vaihan sen paikkaa 👍

- 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.
…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
- 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.
- Updated various SCSS files to replace hardcoded color values with the new shared color variable .
- Enhanced consistency across the application by utilizing the shared definitions for exam-related styles.
- Fix translation mismanagement
Copy link
Collaborator Author

@VirmasaloA VirmasaloA left a comment

Choose a reason for hiding this comment

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

Josko nyt

@VirmasaloA VirmasaloA merged commit 677a22b into dev Nov 3, 2025
6 checks passed
@VirmasaloA VirmasaloA deleted the CSCEXAM-1159 branch November 3, 2025 12:59
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