Skip to content

Feat 923: Компонент пользователи для админ панели.#1048

Open
Belato-code wants to merge 4 commits intohexlet-volunteers:mainfrom
Belato-code:feat-923
Open

Feat 923: Компонент пользователи для админ панели.#1048
Belato-code wants to merge 4 commits intohexlet-volunteers:mainfrom
Belato-code:feat-923

Conversation

@Belato-code
Copy link
Copy Markdown

Исправил замечания при создании компонента Пользователи в админ панель. Были доработаны функции. Типы перенесены в entities, моки от меню перенес в отдельный файл. Откатил версию msw до 2.12.4. Фильтр тоже подправил, теперь поиск по строке идет как дополнительный. Сначала по табам, потом по строке.
изображение_2026-03-16_210732721

@Belato-code Belato-code changed the title Feat 923 Feat 923: Компонент пользователи для админ панели. Mar 20, 2026
Copy link
Copy Markdown
Contributor

@aisaenok aisaenok left a comment

Choose a reason for hiding this comment

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

убрать дублирование логики подписки

типизировать activeTab через union

починить поиск через trim()

не использовать label="" у Select

Comment thread frontend/src/entities/user/types.ts Outdated
Comment thread frontend/src/mocks/admin/consts.ts
Comment thread frontend/src/pages/Admin/Users/Index.tsx Outdated
Comment thread frontend/src/pages/Admin/Users/Index.tsx Outdated
Comment thread package-lock.json
Comment thread frontend/src/widgets/admin-users/ui/AdminUsers.tsx Outdated
Comment thread frontend/src/widgets/admin-users/ui/AdminUsers.tsx Outdated
Comment thread frontend/src/widgets/admin-users/ui/AdminUsers.tsx Outdated
Comment thread frontend/src/widgets/admin-users/ui/AdminUsers.tsx Outdated
Comment thread frontend/src/widgets/admin-users/ui/AdminUsers.tsx Outdated
@Belato-code
Copy link
Copy Markdown
Author

Подправил компонент, конфликт что был с json я оставил изменения что шли от main ветки.

Copy link
Copy Markdown
Contributor

@aisaenok aisaenok left a comment

Choose a reason for hiding this comment

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

Несколько замечаний оставил

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

индекс файлы внутри сегментов не делаем

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

тоже самое

<Badge color="gray" variant="light" fw={500}>{t('adminPage.users.sub.noSub')}</Badge>
)

const badge = getSubscriptionStatus(user) === 'active'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

status === 'active'

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.

2 participants