Skip to content

Conversation

@MarvinRucinski
Copy link
Contributor

Te oceny z kursów cząstkowych faktycznie w tym api coś nie chodzą do końca.
Na razie to skipnąłem i dodałem na samym froncie oznaczenia typu kursu nie zmieniając nic innego (taki był clue tego taska).

Kolorki wziąłem z planera Solvro.
Zrzut ekranu 2025-12-31 o 11 50 37

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 PR adds visual course type indicators to the grades overview page by creating a new CourseType component that displays color-coded badges based on the last character of the course ID. The implementation uses colors adapted from the Solvro Planer project to maintain visual consistency across the organization's projects.

  • Created a new CourseType component with color mappings for seven course types (W, L, C, S, P, D, G)
  • Integrated the component into the grades table to display course type badges next to course names

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/components/ui/course-type.tsx New component that extracts the last character from courseId and renders a color-coded badge based on the course type
src/pages/grades-page.tsx Integrated the CourseType component into the grades table to display type badges alongside course names

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MarvinRucinski MarvinRucinski marked this pull request as ready for review December 31, 2025 10:58
Copilot AI review requested due to automatic review settings December 31, 2025 10:58
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Dec 31, 2025

@MarvinRucinski I've opened a new pull request, #144, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Dec 31, 2025

@MarvinRucinski I've opened a new pull request, #145, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI review requested due to automatic review settings December 31, 2025 11:22
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MarvinRucinski MarvinRucinski linked an issue Dec 31, 2025 that may be closed by this pull request
Copy link
Member

@Antoni-Czaplicki Antoni-Czaplicki left a comment

Choose a reason for hiding this comment

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

Hej, jakbyś mógł przenieść to z poza components/ui - tam trzymamy takie bardziej podstawowe komponenty które używamy w całej aplikacji

Mógłbyś wsm użyć komponentu badge który ma w sobie już podstawy

I ogólnie nazwał bym plik i komponent coś w stylu course type badge żeby było jasne o co chodzi

Copilot AI and others added 3 commits January 5, 2026 09:06
* Initial plan

* fix: add explicit length check for courseId validation

Co-authored-by: MarvinRucinski <34074234+MarvinRucinski@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MarvinRucinski <34074234+MarvinRucinski@users.noreply.github.com>
#145)

* Initial plan

* refactor: add explicit prop types interface and displayName to CourseType

Co-authored-by: MarvinRucinski <34074234+MarvinRucinski@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MarvinRucinski <34074234+MarvinRucinski@users.noreply.github.com>
@Antoni-Czaplicki Antoni-Czaplicki force-pushed the 65-dodanie-oznaczenia-typu-kursu-w-widoku-ocen branch from 2a17ce4 to cc9dd5c Compare January 5, 2026 08:07
Copilot AI review requested due to automatic review settings January 5, 2026 18:05
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@Antoni-Czaplicki Antoni-Czaplicki left a comment

Choose a reason for hiding this comment

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

lgtm

@Antoni-Czaplicki Antoni-Czaplicki merged commit 552e9c9 into main Jan 5, 2026
3 checks passed
@Antoni-Czaplicki Antoni-Czaplicki deleted the 65-dodanie-oznaczenia-typu-kursu-w-widoku-ocen branch January 5, 2026 18:10
@solvro-coolify
Copy link

solvro-coolify bot commented Jan 5, 2026

The preview deployment for Web-testownik-preview failed. 🔴

Open Build Logs

Last updated at: 2026-01-05 18:10:34 CET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dodanie typu kursu do zakładki "Oceny" Dodanie pola do endpointu /grades

3 participants