This pull request includes several updates to the frontend codebase, primarily focusing on adding new TypeScript types, improving error handling, and enhancing the notification system. The most important changes include adding new TypeScript type definitions, updating error handling for task solutions, and enhancing the notification component.
TypeScript Type Definitions:
Added @types/react-router-dom to frontend/package-lock.json and frontend/package.json to improve type safety for React Router DOM. [1][2]
Included new type definitions for @types/history and @types/react-router in frontend/package-lock.json. [1][2][3][4]
Error Handling Improvements:
Added a new error message for insufficient capabilities for task solution transfers in frontend/src/actions/messages/messages.js.
Updated error handling in createTaskSolution to provide a fallback error message and direct users to update their account details. [1][2]
Notification Enhancements:
Modified the Notification component to include an optional linkLabel prop for customizing the link text. [1][2]
Improved the LoginButton component by adding new properties and enhancing the user interface. [1][2][3]
Miscellaneous:
Corrected a typo in the Auth module's method name from storeReferer to storeReferrer.
This pull request includes several updates to the frontend codebase, primarily focusing on adding new TypeScript types, improving error handling, and enhancing the notification system. The most important changes include adding new TypeScript type definitions, updating error handling for task solutions, and enhancing the notification component.
TypeScript Type Definitions:
@types/react-router-dom
tofrontend/package-lock.json
andfrontend/package.json
to improve type safety for React Router DOM. [1] [2]@types/history
and@types/react-router
infrontend/package-lock.json
. [1] [2] [3] [4]Error Handling Improvements:
frontend/src/actions/messages/messages.js
.createTaskSolution
to provide a fallback error message and direct users to update their account details. [1] [2]Notification Enhancements:
Notification
component to include an optionallinkLabel
prop for customizing the link text. [1] [2]LoginButton
component by adding new properties and enhancing the user interface. [1] [2] [3]Miscellaneous:
Auth
module's method name fromstoreReferer
tostoreReferrer
.