Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/apps/admin/src/admin-app.routes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseDetailPath, createBadgePath } from '~/apps/gamification-admin'
import { baseDetailPath, createBadgePath } from '~/apps/admin/src/platform/gamification-admin'

Choose a reason for hiding this comment

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

The import path has been updated to reflect the new location of the gamification-admin module. Ensure that the new path ~/apps/admin/src/platform/gamification-admin is correct and that the module exists at this location. If there are any issues with module resolution, consider updating the path or verifying the module's new location.

import { AppSubdomain, ToolTitle } from '~/config'
import {
lazyLoad,
Expand Down Expand Up @@ -120,13 +120,13 @@ const SkillManagementLandingPage: LazyLoadedComponent = lazyLoad(
'LandingPage',
)
const BadgeDetailPage: LazyLoadedComponent = lazyLoad(
() => import('../../gamification-admin/src/pages/badge-detail/BadgeDetailPage'),
() => import('./platform/gamification-admin/src/pages/badge-detail/BadgeDetailPage'),

Choose a reason for hiding this comment

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

The import path has been updated to ./platform/gamification-admin/src/pages/badge-detail/BadgeDetailPage. Ensure that the new path is correct and that the file exists at the specified location.

)
const BadgeListingPage: LazyLoadedComponent = lazyLoad(
() => import('../../gamification-admin/src/pages/badge-listing/BadgeListingPage'),
() => import('./platform/gamification-admin/src/pages/badge-listing/BadgeListingPage'),

Choose a reason for hiding this comment

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

The import path has been updated to ./platform/gamification-admin/src/pages/badge-listing/BadgeListingPage. Verify that the new path is accurate and that the file is present at this location.

)
const CreateBadgePage: LazyLoadedComponent = lazyLoad(
() => import('../../gamification-admin/src/pages/create-badge/CreateBadgePage'),
() => import('./platform/gamification-admin/src/pages/create-badge/CreateBadgePage'),

Choose a reason for hiding this comment

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

The import path has been updated to ./platform/gamification-admin/src/pages/create-badge/CreateBadgePage. Confirm that the new path is correct and that the file exists at the specified location.

)

export const toolTitle: string = ToolTitle.admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Dispatch, FC, SetStateAction, useMemo } from 'react'
import { Link } from 'react-router-dom'
import classNames from 'classnames'

import { Sort } from '~/apps/gamification-admin/src/game-lib'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort has been updated to ~/apps/admin/src/platform/gamification-admin/src/game-lib. Ensure that this new path is correct and that the Sort module is accessible from this location. If the path is incorrect, it may lead to runtime errors.

import { colWidthType, LinkButton, Table, TableColumn } from '~/libs/ui'
import { useWindowSize, WindowSize } from '~/libs/shared'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Dispatch, FC, SetStateAction, useMemo } from 'react'
import { Link } from 'react-router-dom'
import classNames from 'classnames'

import { Sort } from '~/apps/gamification-admin/src/game-lib'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort seems unnecessarily long and complex. Consider simplifying the directory structure or using an alias to make the import path more readable.

import { useWindowSize, WindowSize } from '~/libs/shared'
import { colWidthType, Table, TableColumn } from '~/libs/ui'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useNavigate } from 'react-router-dom'
import { EnvironmentConfig } from '~/config'
import { useWindowSize, WindowSize } from '~/libs/shared'
import { Button, colWidthType, LinkButton, Table, type TableColumn } from '~/libs/ui'
import { Sort } from '~/apps/gamification-admin/src/game-lib/pagination'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort has been updated, but it seems unnecessarily long and redundant. Consider simplifying the path if possible, for example by restructuring the directories or using aliasing to make the import path cleaner and more maintainable.


import { Pagination } from '../common/Pagination'
import { useEventCallback } from '../../hooks'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Table,
type TableColumn,
} from '~/libs/ui'
import { Sort } from '~/apps/gamification-admin/src/game-lib/pagination'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

import { Reviewer } from '../../models'
import { useEventCallback } from '../../hooks'
Expand Down
2 changes: 1 addition & 1 deletion src/apps/admin/src/lib/hooks/useManageBillingAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useReducer,
} from 'react'

import { Sort } from '~/apps/gamification-admin/src/game-lib'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort has been updated. Ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and that the Sort module is accessible from this location.


import { TABLE_PAGINATION_ITEM_PER_PAGE } from '../../config/index.config'
import { BillingAccount, FormBillingAccountsFilter } from '../models'
Expand Down
2 changes: 1 addition & 1 deletion src/apps/admin/src/lib/hooks/useManageClients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useReducer,
} from 'react'

import { Sort } from '~/apps/gamification-admin/src/game-lib'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort seems unnecessarily long. Consider restructuring the directories or using an alias to simplify the import path if possible.


import { TABLE_PAGINATION_ITEM_PER_PAGE } from '../../config/index.config'
import { ClientInfo, FormClientsFilter } from '../models'
Expand Down
2 changes: 1 addition & 1 deletion src/apps/admin/src/lib/hooks/useTableFilterBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
useState,
} from 'react'

import { Sort } from '~/apps/gamification-admin/src/game-lib'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path has been updated to reflect the new directory structure. Ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and that the Sort module is accessible from this location. Verify that there are no broken imports or missing files after the move.


export interface useTableFilterBackendProps<T> {
page: number
Expand Down
2 changes: 1 addition & 1 deletion src/apps/admin/src/lib/hooks/useTableFilterLocal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { Dispatch, SetStateAction, useEffect, useMemo, useState } from 'react'
import _ from 'lodash'

import { Sort } from '~/apps/gamification-admin/src/game-lib'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort has been updated. Please ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and that the Sort module is accessible from this location. If the path is incorrect, it may lead to runtime errors.


import { TABLE_PAGINATION_ITEM_PER_PAGE } from '../../config/index.config'
import { checkIsDateObject, checkIsNumberObject, checkIsStringNumeric } from '../utils'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GameBadge } from '~/apps/gamification-admin/src/game-lib'
import { GameBadge } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path has been updated to reflect the new directory structure. Ensure that the new path is correct and that the GameBadge module is accessible from the updated location.


import { CreateBadgeRequest, createBadgeSubmitRequestAsync } from './create-badge-store'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
LoadingSpinner,
PageTitle,
} from '~/libs/ui'
import { Sort } from '~/apps/gamification-admin/src/game-lib/pagination'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort has been updated. Ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and that the Sort module is accessible from this location.


import {
Display,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { sortBy } from 'lodash'

import { LoadingSpinner, PageTitle } from '~/libs/ui'
import { Sort } from '~/apps/gamification-admin/src/game-lib/pagination'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort has been updated. Ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and that the Sort module is accessible from this location.


import {
Display,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import React, { ChangeEvent } from 'react'

import { Button, IconOutline, InputSelect, InputText } from '~/libs/ui'
import { InputHandleAutocomplete, MembersAutocompeteResult } from '~/apps/gamification-admin/src/game-lib'
import {

Choose a reason for hiding this comment

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

The import path has been updated to reflect the new directory structure, but ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and accessible. Verify that the file structure matches this path.

InputHandleAutocomplete,
MembersAutocompeteResult,
} from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

import styles from './FilterBar.module.scss'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { ChangeEvent } from 'react'

import { Button, InputSelect, InputText } from '~/libs/ui'
import { InputHandleAutocomplete, MembersAutocompeteResult } from '~/apps/gamification-admin/src/game-lib'
import { InputHandleAutocomplete, MembersAutocompeteResult } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path has been updated to reflect the new directory structure. Ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and that the files are accessible from this location.


import styles from './FilterBar.module.scss'

Expand Down
2 changes: 1 addition & 1 deletion src/libs/ui/lib/components/table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Dispatch, SetStateAction, useEffect, useMemo, useRef, useState } from '
import _ from 'lodash'
import classNames from 'classnames'

import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort has been updated to reflect the new directory structure. Ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and that the Sort module is accessible from this location.

import { useWindowSize, WindowSize } from '~/libs/shared'

import { Button } from '../button'
import { Sort } from '../../../../../apps/gamification-admin/src/game-lib/pagination'
import { IconOutline } from '../svgs'
import { Tooltip } from '../tooltip'
import '../../styles/_includes.scss'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Sort } from '../../../../../../apps/gamification-admin/src/game-lib/pagination'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

import { TableColumn } from '../table-column.model'

export function getDefaultSort<T>(columns: ReadonlyArray<TableColumn<T>>, initSort?: Sort): Sort {
Expand Down
3 changes: 2 additions & 1 deletion src/libs/ui/lib/components/table/table-sort/TableSort.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { FC, SVGProps } from 'react'
import classNames from 'classnames'

import { Sort } from '../../../../../../apps/gamification-admin/src/game-lib/pagination'
import { Sort } from '~/apps/admin/src/platform/gamification-admin/src/game-lib'

Choose a reason for hiding this comment

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

The import path for Sort has been updated. Ensure that the new path ~/apps/admin/src/platform/gamification-admin/src/game-lib is correct and that the Sort module is accessible from this location.


import { IconOutline } from '../../svgs'
import { Button } from '../../button'

Expand Down