-
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 projects select to analytics page gf-348 (#470)
* feat: add a select component to the analytics page gf-348 * feat: add the ability to get activity logs by ID project on the backend gf-348 * feat: add projects select to analytics page gf-348 * fix: remove from remove the project from the array dependencie in the useEffect gf-348 * feat: make queries is optional gf-348 * fix: change type and code style gf-348 * fix: improve query gf-348 * fix: change folder structure gf-348 * fix: change projects store gf-348 * fix: create a separate request to receive all projects gf-348 * fix: delete route /all gf-348
- Loading branch information
Showing
12 changed files
with
124 additions
and
16 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
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
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
12 changes: 12 additions & 0 deletions
12
...ontend/src/pages/analytics/libs/helpers/get-project-options/get-project-options.helper.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,12 @@ | ||
import { type SelectOption } from "~/libs/types/select-option.type.js"; | ||
import { type ProjectGetAllItemResponseDto } from "~/modules/projects/projects.js"; | ||
|
||
const getProjectOptions = ( | ||
projects: ProjectGetAllItemResponseDto[], | ||
): SelectOption<number>[] => | ||
projects.map((project) => ({ | ||
label: project.name, | ||
value: project.id, | ||
})); | ||
|
||
export { getProjectOptions }; |
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,2 +1,3 @@ | ||
export { getAnalyticsColumns } from "./get-analytics-columns/get-analytics-columns.helper.jsx"; | ||
export { getAnalyticsRows } from "./get-analytics-rows/get-analytics-rows.helper.js"; | ||
export { getProjectOptions } from "./get-project-options/get-project-options.helper.js"; |
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