Skip to content

Conversation

@antonmazhuto
Copy link
Contributor

feat/user-profile

@sergeysova sergeysova changed the title Feat/user profile BOX-60 User page Jun 11, 2021
@linear
Copy link

linear bot commented Jun 11, 2021

BOX-60 Страница пользователя

  • имя (gravatar в accesso?)
  • авторские карточки (весь контент который создал пользователь)
  • личная коллекция (которые пользователь посчитал полезными + созданные пользователем)
  • без пагинации(топ 50)

UserSelf - Cardbox Main (Figma)

@sergeysova sergeysova changed the title BOX-60 User page BOX-60 BOX-26 User page and card view page Jun 11, 2021
@linear
Copy link

linear bot commented Jun 11, 2021

BOX-26 Просмотр карточки

Card (v.0) - Cardbox Main (Figma)

У каждой карточки должна быть прямая ссылка, которая не меняется при редактировании

Copy link
Contributor

@azinit azinit left a comment

Choose a reason for hiding this comment

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

В целом - оч добротно, но некоторые моменты бы поправил всеж

Возможно со второй итерации еще что вылезет, но в целом есть что улучшить еще)

@azinit
Copy link
Contributor

azinit commented Jun 16, 2021

Плюс я бы более осмысленное описание изменений делал

И тебе проще рефлексировать "А не задел ли я что-то лишнее по задаче?" и ревьюверу проще понять, что тут происходит
(и тебя меньше вопросами будет заваливать)

image

Copy link
Contributor

@azinit azinit left a comment

Choose a reason for hiding this comment

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

Есть что улучшить офк, но я бы лично поправил это позж, а пока залил бы как есть))

А то сколько времени уже тянем


return (
<PaperContainerStyled data-type={type}>
{/*<Container>*/}
Copy link
Contributor

Choose a reason for hiding this comment

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

Твоя любовь к комментарием все не отпускает тебя, да?)

Comment on lines +9 to 10
import { avatarUri } from '../../../shared/constants';
import { paths } from '../../../pages/paths';
Copy link
Contributor

Choose a reason for hiding this comment

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

Некритично, но я бы уже начинал абсолютные пути юзать

Suggested change
import { avatarUri } from '../../../shared/constants';
import { paths } from '../../../pages/paths';
import { avatarUri } from '@box/shared/constants';
import { paths } from '@box/pages/paths';

export const UserPage = () => {
useStart(model.pageLoaded);
const cards = useStore(cardModel.$cards);
const reversedCards = [...cards].reverse();
Copy link
Contributor

Choose a reason for hiding this comment

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

У тебя эта операция каждый рендер будет происходить

Некритично, но я бы в самой модели смаппил

$cards.map(...) (насколько помню так в эффекторе делается)

@@ -0,0 +1,2 @@
export const avatarUri =
Copy link
Contributor

Choose a reason for hiding this comment

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

Потом из вьювера сможешь брать)

Comment on lines +18 to +20
const onClick = React.useCallback(() => {
setSelectedTab(index);
}, [setSelectedTab, index]);
Copy link
Contributor

Choose a reason for hiding this comment

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

@sergeysova sergeysova merged commit 77c9014 into master Jul 2, 2021
@sergeysova sergeysova deleted the feat/user-profile branch July 2, 2021 20:32
@azinit
Copy link
Contributor

azinit commented Aug 4, 2021

Будет пофикшено по:
https://linear.app/atomix/issue/BOX-180/otrefachit-stranicu-userpage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants