Skip to content

Develop#2189

Open
ievgen-nikiforov wants to merge 16 commits into
mate-academy:masterfrom
ievgen-nikiforov:develop
Open

Develop#2189
ievgen-nikiforov wants to merge 16 commits into
mate-academy:masterfrom
ievgen-nikiforov:develop

Conversation

@ievgen-nikiforov
Copy link
Copy Markdown

@ievgen-nikiforov ievgen-nikiforov commented May 5, 2026

inikiforov added 2 commits May 5, 2026 12:53
Copy link
Copy Markdown

@brespect brespect left a comment

Choose a reason for hiding this comment

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

Good progress, but you need to pass all CI checks (tests & linter). Also, let's separate your App into smaller components

@ievgen-nikiforov
Copy link
Copy Markdown
Author

Good progress, but you need to pass all CI checks (tests & linter). Also, let's separate your App into smaller components

fixed

@ievgen-nikiforov ievgen-nikiforov requested a review from brespect May 5, 2026 13:11
Copy link
Copy Markdown

@2pasha 2pasha left a comment

Choose a reason for hiding this comment

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

good job! 👏

fix linter warnings and take a look on comments below

Comment thread src/App.tsx Outdated
Comment on lines +19 to +31
export enum Filter {
All = 'All',
Active = 'Active',
Completed = 'Completed',
}
enum ErrorMessage {
Empty = '',
LoadError = 'Unable to load todos',
TitleError = 'Title should not be empty',
AddError = 'Unable to add a todo',
DeleteError = 'Unable to delete a todo',
UpdateError = 'Unable to update a todo',
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

move to types folder

Comment thread src/components/Footer.tsx Outdated
Comment on lines +26 to +57
<a
href="#/"
data-cy="FilterLinkAll"
className={classNames('filter__link', {
selected: selectedFilter === Filter.All,
})}
onClick={() => onFilterChange(Filter.All)}
>
All
</a>

<a
href="#/active"
data-cy="FilterLinkActive"
className={classNames('filter__link', {
selected: selectedFilter === Filter.Active,
})}
onClick={() => onFilterChange(Filter.Active)}
>
Active
</a>

<a
href="#/completed"
data-cy="FilterLinkCompleted"
className={classNames('filter__link', {
selected: selectedFilter === Filter.Completed,
})}
onClick={() => onFilterChange(Filter.Completed)}
>
Completed
</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you may add all your filter values to enum and map through it

@ievgen-nikiforov ievgen-nikiforov requested a review from 2pasha May 6, 2026 07:50
Copy link
Copy Markdown

@brespect brespect left a comment

Choose a reason for hiding this comment

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

Well done!

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