Skip to content

feat(risks): implement 5x5 risk matrix and fix persistence bug#62

Merged
mtrznadel24 merged 2 commits into
developfrom
IP-102-implementacja-nowego-modelu-ryzyk
May 23, 2026
Merged

feat(risks): implement 5x5 risk matrix and fix persistence bug#62
mtrznadel24 merged 2 commits into
developfrom
IP-102-implementacja-nowego-modelu-ryzyk

Conversation

@mtrznadel24

Copy link
Copy Markdown
Collaborator

Implement Probability × Impact (1-5 scale) for risk assessment.

API/DTO: Update backend DTOs and Zod schemas to support the new risk model.

Frontend: Refactor ProjectRisks to display matrix-based risk levels and add impact input to the project creation wizard.

Logic: Implement Probability × Impact (1-5 scale) for risk assessment.

API/DTO: Update backend DTOs and Zod schemas to support the new risk model.

Frontend: Refactor ProjectRisks to display matrix-based risk levels and add impact input to the project creation wizard.
@mtrznadel24 mtrznadel24 requested a review from FAZ110 May 23, 2026 14:12
Comment thread frontend/src/features/project/project.schema.ts
@Max(value = 5, message = "Prawdopodobieństwo musi być w skali od 1 do 5")
private Integer probability;

@Column(name = "impact", nullable = false, columnDefinition = "integer check (impact >= 1 and impact <= 5)")

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Czy jak się to wprowadzi to nie będzie problemu dla ryzyk już istniejących? Trzeba będzie wyczyścić wszystko?

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.

Bedzie trzeba

@FAZ110 FAZ110 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Najważniejsze jest chyba to że po mergu u każdego trzeba będzie usunąć wszystkie ryzyka z bazy co sql wyrzuci błąd, ale tak to git, w jednym miejscu nazwe trzeba zmienić aby była po polsku


const { data: groups = [] } = useProjectGroups();
const { data: groupsData = [] } = useProjectGroups();
const groups = groupsData.map(g => ({ id: g.id, name: g.name }));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

potrzebne to?

Comment thread frontend/src/features/project/components/ProjectRisks.tsx
Comment thread frontend/src/features/project/components/ProjectRisks.tsx Outdated
@mtrznadel24 mtrznadel24 merged commit 4bbe8d8 into develop May 23, 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