-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add an ability to create a project gf-87 (#115)
* fix: filename gf-87 * feat: improve Button component gf-87 * feat: improve Input component gf-87 * feat: add an ability to create new project gf-87 * fix: disable button while name is empty gf-87 * refactor: move empty string length const into consts folder gf-87 * refactor: cleanup Input component and its styles gf-87 * refactor: rename Button disabled prop and fix its styles gf-87 * fix: correct the order of projects returned by backend gf-87 * fix: close modal only on success gf-87 Also: - add success toast notification - fix data rerendering issue * fix: wrap modal open/close functions with useCallback gf-87 Without useCallback this functions recalculates when modal opens, which leads to issues when use these functions as dependencies in other hooks * refactor: rename 'success message' to 'notification message' gf-87 * refactor: rename 'projectsStatus' back to 'dataStatus' gf-87 * fix: button styles gf-87 * refactor: rename EMPTY_STRING_LENGTH constant and make it common gf-87 * refactor: rid of DESCRIPTION_ROWS_COUNT constant gf-87 * refactor: rename 'rows' to 'rowsCount' gf-87 * refactor: move EMPTY_LENGTH to shared package gf-87 * refactor: create SortType enum gf-87 * refactor: rename 'event' to 'event_' gf-87 * fix: make create button disabled only when there is errors in form gf-87 * fix: remove button disalability gf-87 * refactor: make button variant prop inline gf-87 * refactor: move SortType to shared gf-87 * fix: rid of ProjectCreateResponseDto gf-87 --------- Co-authored-by: Yelyzaveta Veis <[email protected]>
- Loading branch information
Showing
32 changed files
with
280 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { SortType } from "@git-fit/shared"; | ||
export { | ||
APIPath, | ||
AppEnvironment, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { SIDEBAR_ITEMS } from "./navigation-items.constant.js"; | ||
export { EMPTY_LENGTH } from "@git-fit/shared"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...c/libs/enums/notification-massage.enum.ts → ...c/libs/enums/notification-message.enum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export { | ||
type ProjectCreateRequestDto, | ||
type ProjectGetAllItemResponseDto, | ||
type ProjectGetAllResponseDto, | ||
} from "@git-fit/shared"; |
1 change: 1 addition & 0 deletions
1
apps/frontend/src/modules/projects/libs/validation-schemas/validation-schemas.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { projectCreateValidationSchema } from "@git-fit/shared"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { ProjectCard } from "./project-card/project-card.js"; | ||
export { ProjectCreateForm } from "./project-create-form/project-create-form.js"; |
1 change: 1 addition & 0 deletions
1
apps/frontend/src/pages/projects/components/project-create-form/libs/constants/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DEFAULT_PROJECT_CREATE_PAYLOAD } from "./default-project-create-payload.constant.js"; |
8 changes: 8 additions & 0 deletions
8
.../components/project-create-form/libs/constants/default-project-create-payload.constant.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { type ProjectCreateRequestDto } from "~/modules/projects/projects.js"; | ||
|
||
const DEFAULT_PROJECT_CREATE_PAYLOAD: ProjectCreateRequestDto = { | ||
description: "", | ||
name: "", | ||
}; | ||
|
||
export { DEFAULT_PROJECT_CREATE_PAYLOAD }; |
Oops, something went wrong.