Skip to content

Conversation

@weskubo-cgi
Copy link
Collaborator

@weskubo-cgi weskubo-cgi commented Nov 27, 2025

Overview

The following components were updated from Primevue to Vuetify:

  • StudentLoanBalancePartTime.vue
  • StudentFileUploads.vue
  • StudentRestrictions.vue
  • OveraqardDetails.vue
  • SearchStudents.vue
  • DesignationAgreementSummary.vue
  • PendingDesignation.vue
  • Restrictions.vue
  • SINManagement.vue
  • SearchInstitutions.vue
  • OfferingsUpload.vue

Some supporting changes that were also made:

  • Update types to fix type errors that weren't previously showing
  • Minor updates on save for auto-formatting (e.g. attribute names)
  • Added explicit message to DisplayContent to fix Warnings

Existing issues with prop validation (String in place of Number) were not addressed since this PR already impacts a large number of files. Suggest handling in a separate PR.

Screenshots

Ministry

Search Students

image ### Student Details - Restrictions image

Student Details - File Uploads

image

Student Details - Social Insurance Number

image

Student Details - Balances

image image

Search Institutions

image

Institution Details - Designations

image

Institution Details - Restrictions

image

Designation Requests

image

Institution

Offerings Upload

image

Students - File Uploads

See Ministry/Students - File Uploads

Students - Balances

See Ministry/Students - Balances

Students

Overawards Balance

See Ministry/Students - Balances

weskubo-cgi added 5 commits November 25, 2025 14:23
Minor refactoring and formatting updates.
Added mobile support Overawards and Search Students.
Updated type on studentFileUploads to fix TS error.
Updated DestinationAgreementSummary and Restrictions (Institution).
@weskubo-cgi weskubo-cgi marked this pull request as draft November 27, 2025 23:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request migrates 11 Vue components from PrimeVue DataTable to Vuetify v-data-table, modernizing the table implementations across student, institution, and ministry views.

Key changes:

  • Replaced PrimeVue <DataTable> and <Column> components with Vuetify <v-data-table> and slot-based templates
  • Converted prop names from camelCase to kebab-case (e.g., subTitlesub-title, recordsCountrecords-count)
  • Added data table header definitions to DataTableContract.ts for all migrated tables
  • Updated DTOs to include missing fields (updatedAt in RestrictionSummaryAPIOutDTO, createdAt in OverawardAPIOutDTO)
  • Added explicit messages to toggle-content components for better UX
  • Improved performance by converting array filtering to Set-based lookups in OverawardDetails

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
OfferingsUpload.vue Migrated offerings upload validation table to Vuetify with proper headers and template slots
SINManagement.vue Converted SIN validations table with all columns properly mapped
Restrictions.vue (institution) Migrated institution restrictions table with consistent logic
PendingDesignation.vue Updated pending designations table with proper headers
SearchInstitutions.vue Converted institution search results table
DataTableContract.ts Added header definitions for all new Vuetify tables with JSDoc comments
Restriction.dto.ts Added missing updatedAt field to support resolved date display
Overaward.dto.ts Added missing createdAt field for date-added fallback logic
DesignationAgreementSummary.vue Migrated designation requests table with improved imports organization
StudentRestrictions.vue Converted student restrictions table (logic inconsistency found)
StudentFileUploads.vue Migrated file uploads table with conditional column (header mismatch found)
SearchStudents.vue Updated student search results table
OverawardDetails.vue Migrated overawards and deductions tables (missing column found)
StudentLoanBalancePartTime.vue Converted part-time loan balance table

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

<template #[`item.overawardOrigin`]="{ item }">
{{ item.overawardOrigin }}
</template>
<template v-if="showAddedBy" #[`item.addedByUser`]="{ item }">
Copy link
Collaborator Author

@weskubo-cgi weskubo-cgi Nov 29, 2025

Choose a reason for hiding this comment

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

The v-if is not technically required with conditional headers but I left in for clarity.

@weskubo-cgi weskubo-cgi added Good first issue Good for newcomers Technical Debt Web portal Student Student Features Institution Institution Features Ministry Ministry Features labels Dec 1, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2025

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.64% ( 4286 / 20761 )
Methods: 9.9% ( 252 / 2545 )
Lines: 24.82% ( 3668 / 14776 )
Branches: 10.64% ( 366 / 3440 )

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 75.25% ( 1052 / 1398 )
Methods: 78.62% ( 114 / 145 )
Lines: 78.77% ( 768 / 975 )
Branches: 61.15% ( 170 / 278 )

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 85.47% ( 1559 / 1824 )
Methods: 84.76% ( 178 / 210 )
Lines: 88.39% ( 1241 / 1404 )
Branches: 66.67% ( 140 / 210 )

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

E2E SIMS API Coverage Report

Totals Coverage
Statements: 74.33% ( 8341 / 11222 )
Methods: 73.69% ( 986 / 1338 )
Lines: 78.54% ( 6090 / 7754 )
Branches: 59.39% ( 1265 / 2130 )

@weskubo-cgi weskubo-cgi changed the title #4398 - Replace primevue tables #4398 - Replace PrimeVue tables - Part One Dec 2, 2025
Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes. Looks good 👍

@weskubo-cgi weskubo-cgi added this pull request to the merge queue Dec 2, 2025
Merged via the queue into main with commit d48cdf7 Dec 2, 2025
22 checks passed
@weskubo-cgi weskubo-cgi deleted the feature/#4398-replace-primevue-tables-round-one branch December 2, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good first issue Good for newcomers Institution Institution Features Ministry Ministry Features Student Student Features Technical Debt Web portal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants