Conversation
Skoivumaki
left a comment
There was a problem hiding this comment.
Clear/concise PR documentation and the same goes for your commit practices. Good work 👍
Stuff todo:
-
The ClanCards arent usable on Mobile in this state. When comparing the look to Figma Design, the flex
gapis larger, the parent element has too much padding and theclanNamedoesnt overflow wrap. Fix these issues and the mobile version should be much more readable.
-
Make sure the logo actually fills all the available space on tablet dimensions. (currently it looks odd when all the space is not utilized)

-
Fix following eslint errors: ./src/preparedPages/ClanPages/ui/ClanAllSubPage/ClanAllSubPage.tsx
219:55 Warning: Identifier name 'l' is too short (< 2). id-length
./src/preparedPages/ClanPages/ui/ClanLayout/ClanLayout.tsx
43:28 Warning: Identifier name 'e' is too short (< 2). id-length -
See comments.
To issue creator:
@Rutjake How is pagination handled then? IMO infinite scroll would be the best solution for this.
Removed old table markup and pagination logic
|
|
||
| .Title1 { | ||
| color: var(--white); | ||
| font-family: var(--font-family-title); |
| import starGray from '@/shared/assets/images/clanLogos/TopPanelMatchmakingPorvarit.png'; | ||
|
|
||
| // use real clan labels from API when available | ||
| const MOCK_LABELS = [ |
There was a problem hiding this comment.
Clan Labels do exist as seen in IClan in GetClansResponse:

What doesn't exist, is all the icons for each label, but you can simply use the ones that you currently set here as placeholders.
When you need type-safety, see src/entities/Clan/enum/clanLabel.enum.ts
Ask @Rutjake if this label problem should be handled in this issue or as its own.
Skoivumaki
left a comment
There was a problem hiding this comment.
Perfect! Only one issue and after that PR is ready for merge.
See comment:
| max-width: 100%; | ||
| overflow: hidden; | ||
| text-overflow: ellipsis; | ||
| white-space: nowrap; |
Skoivumaki
left a comment
There was a problem hiding this comment.
Fix overflow issues on :hover
The logo currently pushes the surrounding text downward in the flex layout when hovered. To prevent this, lower the logo’s z-index so the title text stays on top, and adjust the logo’s positioning to ensure it doesn’t shift or affect layout flow during hover.
2025-11-29.06-13-13.mp4
Rutjake
left a comment
There was a problem hiding this comment.
Good job. I saw a hydration warning, but it originates from unchanged component code, so it's not related to this issue.

📄 Pull Request Overview
Closes #564
🔧 Changes Made
New Clan cards for both desktop and mobile, modernizes the Clans page layout using LayoutWithSidebars and a unified SearchBar.
UI
ModularCard: new theme
src/shared/ui/v2/ModularCard/ui/ModularCard.tsxModularCardTheme.CLANCARD = 'ClanCard'--label-*,--info-*,--logo-*)clan.name,clan.playerCount,clan.gameCoins,clan.labelsMobileCard: new theme
src/shared/ui/v2/MobileCard/ui/MobileCard.tsxMobileCardTheme.CLAN = 'ClanCard'clan.name,clan.gameCoins,clan.playerCountClan label icons
src/entities/Clan/config/clanLabelIcons.tsClanLabelenum values to their icon assetsgetClanLabelIcon(label: ClanLabel | string)used byClanAllSubPageClans Page
src/preparedPages/ClanPages/ui/ClanLayout/ClanLayout.tsxLayoutWithSidebarsfor consistency with other pagesClanLayout.module.scss/src/preparedPages/ClanPages/ui/ClanAllSubPage/ClanAllSubPage.tsxPageTitle,SearchBar, and new card grid (desktop/mobile)Assets & i18n
enandfilocale files for page title✅ Checklist Before Submission
console.log()or other debugging statements are left.📝 Additional Information
Desktop:
Mobile: