Skip to content

YH-1564: add skeleton for analytics pages#1240

Open
Gnarkill33 wants to merge 10 commits into
developfrom
feature/YH-1564
Open

YH-1564: add skeleton for analytics pages#1240
Gnarkill33 wants to merge 10 commits into
developfrom
feature/YH-1564

Conversation

@Gnarkill33

Copy link
Copy Markdown
Collaborator

Тикет

YH-1564

Описание изменений

  • Добавлены 2 общих скелетона (таблица и список) для страниц с аналитикой
  • Скелетон добавлен на соответствующие страницы с аналитикой
  • В обертке PageWrapper лоадер заменен на скелетон

@Gnarkill33 Gnarkill33 added review the task is currently being reviewed feature New functionality or improvements labels May 19, 2026
@Gnarkill33 Gnarkill33 requested a review from PerelomaDenis May 19, 2026 19:39
}

export const AnalyticPageTemplateSkeleton = ({
rowsCount = 10,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[SUGGESTION] - думаю что rowsCount не понадобиться, так как пускай всегда будет 10

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Убрала rowsCount

fieldsCount={fieldsCount}
/>
) : (
<table>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[ISSUE] - Укажи тут лучше TableSkeleton указав нужное количество столбцов. Единственное надо будет в TableSkeleton столбец с actions под условие поставить под новый пропс - hasAction = true. И в твоем случае его пропсами указать hasAction false и hasSelectors = false

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Заменила на TableSkeleton, добавила условие

};

if (isLoading) {
return skeleton || <Loader />;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[ISSUE] - Нельзя такое убирать не согласовав, так как компонент много где используется
Добавь в SkeletonGenerator который в MainLayout новые case под каждую страницу и добавь такие же скелетоны как были добавлены дял PageWrapper
И тогдла это изменение не понадобится

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Вернула лоудер, добавила скелетоны

@PerelomaDenis PerelomaDenis added comments Code improvements are required and removed review the task is currently being reviewed labels May 21, 2026
@Gnarkill33 Gnarkill33 added review the task is currently being reviewed and removed comments Code improvements are required labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality or improvements review the task is currently being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants