-
Notifications
You must be signed in to change notification settings - Fork 2
Nikolas/enhancement/564 update clan page #597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Skoivumaki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to use font
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skoivumaki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: