Skip to content

feat(preview) : #MAG-194 add arrows on preview to navigate between cards #369

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

Merged
merged 5 commits into from
Jan 10, 2025

Conversation

FlorentMr
Copy link
Contributor

Describe your changes

add arrows on preview to navigate between cards

Checklist tests

Check any board types and card types, check if the buttons are there and if keyboard left and right arrow work.

Issue ticket number and link

MAG-194

Checklist before requesting a review (magic string, indentation, comment/documentation...)

  • I have detailed the tests to do in my feature/fix in order to prevent consequents regressions (must specify in Checklist tests)
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (API Doc etc...) - (must specify in Description for target version)
  • If it is a consequent feature, I have added thorough tests.
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been added to this project (must specify in Description)

@@ -37,50 +46,121 @@ export const PreviewModal: FC = () => {
}
}, [COMMENT_PANEL]);

const initialCards = useMemo(() => {
return board.isLayoutFree()
Copy link
Member

Choose a reason for hiding this comment

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

Code dupliqué par rapport à la ligne 69

};

const isLastCardInBoard = (): boolean => {
const cards = board.isLayoutFree() ? board.cards : initialCards;
Copy link
Member

Choose a reason for hiding this comment

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

Comme tu appelles quoi qu'il arrive initialCards dans laquelle tu répètes la même instruction, tu pourrais refactoriser cette partie ?

@FlorentMr FlorentMr merged commit ab3a461 into dev Jan 10, 2025
2 checks passed
@FlorentMr FlorentMr deleted the MAG-194fixed branch January 10, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants