feat: implement portfolio home page with split layout

This commit is contained in:
Ilia Mashkov
2026-05-05 09:42:04 +03:00
parent 24bf946cb0
commit 1a413e3d04
3 changed files with 37 additions and 51 deletions
@@ -22,7 +22,7 @@ describe('groupByKey', () => {
{ category: 'A', order: 1 },
{ category: 'A', order: 2 },
];
expect(groupByKey(items, 'category')['A']).toEqual([
expect(groupByKey(items, 'category').A).toEqual([
{ category: 'A', order: 1 },
{ category: 'A', order: 2 },
]);
@@ -41,7 +41,7 @@ describe('groupByKey', () => {
];
const result = groupByKey(items, 'type');
expect(Object.keys(result)).toHaveLength(1);
expect(result['X']).toHaveLength(2);
expect(result.X).toHaveLength(2);
});
it('handles single item', () => {