-
Notifications
You must be signed in to change notification settings - Fork 7
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
BOX-138 - card list #38
Conversation
adds search ability with trigger on field change, with debounce ISSUES CLOSED: #61
adds search ability with trigger on field change, with debounce ISSUES CLOSED: #61
adds search ability with trigger on field change, with debounce ISSUES CLOSED: #61
babel plugin export ISSUES CLOSED: #61
added package from suggestions in review ISSUES CLOSED: #61
changing view for search page changes view of users list changes view of card list ISSUES CLOSED: #65
changed base button to match design ISSUES CLOSED: #65
history, reflect (has bugs) ISSUES CLOSED: #65
# Conflicts: # src/app/server.tsx # src/entities/card/organisms/card-preview.tsx # src/features/search-bar/models/index.ts # src/features/search-bar/molecules/search.tsx # src/features/search-bar/organisms/search-bar.tsx # src/pages/home/index.tsx # src/pages/search/model.ts # src/pages/search/page.tsx # yarn.lock
BREAKING CHANGE: missed reflect ISSUES CLOSED: #65
# Conflicts: # .gitignore # src/pages/search/page.tsx # yarn.lock
ISSUES CLOSED: #137
ISSUES CLOSED: #138
ISSUES CLOSED: #141
…earch-fixes-card-list
# Conflicts: # src/features/search-bar/molecules/search.tsx # yarn.lock
ellips for title, fix text selection ISSUES CLOSED: #140
ellips for title, fix text selection ISSUES CLOSED: #140 ISSUES CLOSED: #91
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.
Чет оч много всего намешал в один PR - отсюда и много правок))
Предлагаю все же изолированно сделать еще один PR касаемо CardHover и CardTitle, а здесь потом останутся только изменения связанные с search-логикой
Ну и еще оч много встретил логики в коде связанной с фокусом / логикой перемещения курсора и проч - тож надеюсь дашь коменты)
@OlegBrony ну и это тож как бы) |
ellips for title, fix text selection ISSUES CLOSED: #140 ISSUES CLOSED: #91
# Conflicts: # src/entities/card/organisms/card-preview.tsx # src/pages/home/index.tsx # src/pages/user/index.tsx
@OlegBrony спасиб что внес правки, хорошая работа) Ну т.е. я бы и не был прям сильно против, если бы ты оставил все остальные правки, но если бы ты убрал в другой PR или модуль работу с навигацией/фокусом - то можно было бы уже вливать хоть щас 🤷♂️ |
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.
Не буду пока явно апрувить/реквестить изменения
Но чет все равно часть вещей уже согласованных - все равно здесь не поправлена)
Дай пож знать, мб ты планировал эти вещи позже сделать, я не оч помню на чем мы там в чате сошлись
@@ -0,0 +1,14 @@ | |||
:root { |
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.
Потом бы в vars.css
или variables.css
переименовал, но некритично)
/** | ||
* @remark May be in future - make sense to split independent components - CardItem, CardDetails | ||
* @default "item" | ||
* @default "preview" | ||
*/ | ||
type?: CardType; | ||
focusItemChanged?: (direction: 'next' | 'prev') => void; |
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.
src/lib/use-focus.ts
Outdated
// todo: | ||
// currently used only in card-list, | ||
// need to optimize this hook for navigation with keyboard | ||
// e.g. - handle arrow down (focus on cur item index + row len) | ||
export function useFocus() { | ||
const containerRef = useRef<null | HTMLDivElement>(null); |
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.
Дай пож описание тогда, что делает этот хук)
src/pages/home/index.tsx
Outdated
@@ -46,7 +46,7 @@ export const HomePage = () => { | |||
<Main> | |||
<CardList | |||
cards={cards} | |||
getHref={(card) => paths.card(card.id)} | |||
getHref={(card) => paths.card({ id: card.id })} |
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.
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.
Пох, давай зальем как есть
Потом как у кого наберется сил - поправим)
А то никогда так не вольем
in draft: