Skip to content

Feature/ip 99 integracja UI powiadomien#56

Merged
mtrznadel24 merged 9 commits into
developfrom
feature/IP-99-integracja-ui-powiadomien
May 16, 2026
Merged

Feature/ip 99 integracja UI powiadomien#56
mtrznadel24 merged 9 commits into
developfrom
feature/IP-99-integracja-ui-powiadomien

Conversation

@mtrznadel24
Copy link
Copy Markdown
Collaborator

Stworzenie UI dla powiadomień na frontendzie. Dzwonek powiadomień i strona powiadomień. Integracja z backendem. Wywoływanie odpowidnich eventów na backendzie.

…nhance NotificationBell. Create logic to connect with backend using SSE
…ount to enhance UX. Make notifications fetched only after clicking the bell.
# Conflicts:
#	frontend/src/api/endpoints.ts
#	frontend/src/api/index.ts
#	frontend/src/routes/paths.ts
…ellItem Component. And add sending events in correct places on backend.
@mtrznadel24
Copy link
Copy Markdown
Collaborator Author

Trochę dużo linijek kodu wyszło ale to też wygenerowany kod i imo na backendzie nie ma co dużo sprawdzać, głownie po prostu wywołania eventów, można na szybko przejrzeć. Na froncie notyfikacje można przejrzeć hooki. Jest dzwoneczek razem z popoverem i strona notyfikacji. Myślę, że samego kodu html nie ma zbytnio co przeglądać raczej szkoda czasu. Ewentualnie użycie hooków czy jest poprawne itp.

# Conflicts:
#	frontend/src/pages/EmployeeAssignmentsPage.tsx
Comment thread frontend/src/features/notification/notification.hooks.ts
Copy link
Copy Markdown
Collaborator

@PatrykBlacha PatrykBlacha left a comment

Choose a reason for hiding this comment

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

Wygląda wszystko super, widać że porządnie. Wydaje mi się tylko że możnaby dodać jakiś QualificationNotificationListener na backendzie czy coś takiego żeby nie pisać powiadomień na sztywno w serwisach.

Comment thread frontend/src/features/notification/components/NotificationBellItem.tsx Outdated
Comment thread frontend/src/features/notification/components/NotificationFeed.tsx
Comment thread frontend/src/features/notification/notification.hooks.ts
};

const handleMarkAsReadOnly = (e: React.MouseEvent, id: string) => {
e.stopPropagation();
Copy link
Copy Markdown
Collaborator

@rrogalski rrogalski May 15, 2026

Choose a reason for hiding this comment

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

czy my tego potrzebujemy? to jest chyba związane z komentarzem Patryka: https://github.com/FAZ110/IO-Project/pull/56/changes/BASE..5bff36e65951467f4df840bda0a8340dd39acaca#r3251181495

dwa handlery i musimy zatrzymać propagację przez to, gdyby poprawić tamten komponent to również można by uprościć

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No trzeba bo jest button do oznaczania jako przeczytanie w środku diva z onClick. Więc stopPropagation musi być, żeby nie odpaliła się funkcja nadrzędna.

…ooks. Extract the business logic of formatting string from services to Event records with new method buildMessage. And fixes from review.
@mtrznadel24 mtrznadel24 merged commit 784724b into develop May 16, 2026
2 checks passed
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