Skip to content
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

friends-app #56

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

friends-app #56

wants to merge 8 commits into from

Conversation

DaniaB24
Copy link
Contributor

@DaniaB24 DaniaB24 commented Aug 3, 2022

friends-app

Demo |
Code base

@zonzujiro
Copy link
Member

image

It should be only women :)

@zonzujiro
Copy link
Member

image

There is no results for `Rah` in search results

@DaniaB24
Copy link
Contributor Author

DaniaB24 commented Aug 4, 2022

image

There is no results for Rah in search results

ohh sorry, my bad its the old version of the code:(

@zonzujiro
Copy link
Member

image

Kelly is still woman in the new code

@DaniaB24
Copy link
Contributor Author

DaniaB24 commented Aug 9, 2022

image

Kelly is still woman in the new code

Hi! Already fixed^

@zonzujiro
Copy link
Member

image

Alex not a women :) Sorting by age

@DaniaB24
Copy link
Contributor Author

image

Alex not a women :) Sorting by age

ohh the problem is only in the link to the code and the demo

@DaniaB24
Copy link
Contributor Author

image

Alex not a women :) Sorting by age

pls review again^) thank you a lot

@zonzujiro
Copy link
Member

zonzujiro commented Aug 12, 2022

If I will click on the search field, you will reset the filter state.

Also, UX - I can't see what filters/sorters are selected. All buttons look the same, no matter were they are selected or not.

@DaniaB24
Copy link
Contributor Author

If I will click on the search field, you will reset the filter state.

Also, UX - I can't see what filters/sorters are selected. All buttons look the same, no matter were they are selected or not.

okey, I will do it:) thanks ^^

1 similar comment
@DaniaB24
Copy link
Contributor Author

If I will click on the search field, you will reset the filter state.

Also, UX - I can't see what filters/sorters are selected. All buttons look the same, no matter were they are selected or not.

okey, I will do it:) thanks ^^

@DaniaB24
Copy link
Contributor Author

If I will click on the search field, you will reset the filter state.
Also, UX - I can't see what filters/sorters are selected. All buttons look the same, no matter were they are selected or not.

okey, I will do it:) thanks ^^

@zonzujiro
done

@DaniaB24
Copy link
Contributor Author

DaniaB24 commented Sep 3, 2022

@zonzujiro

Copy link
Member

@zonzujiro zonzujiro left a comment

Choose a reason for hiding this comment

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

If I will sort users and then select filtering - state of sorting will be reseted.

It's a bug.

submissions/DaniaB24/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/js/app.js Outdated Show resolved Hide resolved
@DaniaB24
Copy link
Contributor Author

DaniaB24 commented Sep 8, 2022

@zonzujiro
I did

@DaniaB24 DaniaB24 requested a review from zonzujiro September 8, 2022 17:54
@DaniaB24
Copy link
Contributor Author

@zonzujiro

@zonzujiro
Copy link
Member

image

I see initial request but I don't see friends :(

@zonzujiro
Copy link
Member

image

Ah, not on you I suppose

@github-actions
Copy link

Hey!

Congratulations on your PR! 😎😎😎

Let's do some self-checks to fix most common issues and to make some improvements to the code before reviewers put their hands on the code.

Go through the requirements/most common mistakes linked below and fix the code as appropriate.

If you have any questions to requirements/common mistakes feel free asking them here or in Students' chat.

When you genuinely believe you are done put a comment stating that you have completed self-checks and fixed code accordingly.

Also, be aware, that if you would silently ignore this recommendation, a mentor can think that you are still working on fixes. And your PR will not be reviewed. 😒

Please, make sure you haven't made common mistakes.

Universal recommendations:

  • Make sure your code follows General Requirements
  • Use common sense or seek for an advice whenever requirements look ambiguous or unclear.

By the way, you may proceed to the next task before this one is reviewed and merged.

Sincerely yours,
Submissions Kottachecker 😺

@DaniaB24
Copy link
Contributor Author

Ah, not on you I suppose

hmm, it works on my device

fetch(URL)
.then((response) => response.json())
.then((users) => {
console.log("ok");
Copy link
Member

Choose a reason for hiding this comment

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

Redundant

Copy link
Member

Choose a reason for hiding this comment

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

You also should handle the error from http request. Pls check common mistakes in the message from bot

Copy link
Member

Choose a reason for hiding this comment

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

Pls don't resolve discussions without taking any actions.

console.log is still there and it is still redundant

submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
submissions/DaniaB24/friends-app/js/app.js Outdated Show resolved Hide resolved
@DaniaB24
Copy link
Contributor Author

@zonzujiro check please)

@DaniaB24
Copy link
Contributor Author

@zonzujiro friendly reminder

@zonzujiro
Copy link
Member

  1. Write a search request
  2. Check "man"
  3. Uncheck "man"
  4. Search results are broken

You can also post a link to students chat and ask them to debug your application :)

Comment on lines 23 to 24
alert("Please reload, Authorization failed : " + error.message);
console.log("Authorization failed : " + error.message);
Copy link
Member

Choose a reason for hiding this comment

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

alert is bit of too agressive, no? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okey, what should I do?

Copy link
Member

Choose a reason for hiding this comment

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

You can just render a message.

Comment on lines 84 to 89
const checkboxes = Array.from(
document.querySelectorAll(".gender_checkbox:checked")
);
filteredUsers = friends.filter((item) =>
checkboxes.some((gender) => item.gender === gender.value)
);
Copy link
Member

Choose a reason for hiding this comment

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

Redundant logic. If both checkboxes are selected you actually don't need to run filtration. You just need to render the initial array.

@DaniaB24
Copy link
Contributor Author

@zonzujiro friendly reminder 🤗

@stale
Copy link

stale bot commented Apr 11, 2023

This issue has been automatically marked as stale because there were no activity during last 14 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

А. Чому так?
Найбільш розповсюджена причина: Студент не реагує на коментарі змінами коду і не задає запитань через брак часу або зміну життєвих пріоритетів. Покинуті піари відволікають менторів. Коли у студента з'явиться час, він/вона зможе перевідкрити той самий піар і продовжити роботу.

Б. Що робити, якщо в піарі нема оновлень, оскільки не зрозуміло, що треба зробити?
Варіант 1. Задати питання в самому PR.
Варіант 2. Задати питання в студентському чаті.

В. А якщо я все зробив(ла) і це ментор не рев'юває мої зміни?

  1. Переконайся, що ти відреагував(ла) на всі коментарі або кодом, або запитаннями, або відповідями. Напиши в PR і в чаті, що чесно вважаєш, що все зроблено і попроси повторне рев'ю. Якщо щось не зрозуміло, задай запитання.
  2. Реагуй на коментарі як менторів, так і інших учасників, включаючи ботів.
  3. Не ігноруй прохання типу * "Let's do some self-checks ..." * "Go through the checklist below..." * "mark fulfilled requirements..." * "if you would silently ignore this recommendation, a mentor may think that you are still working on fixes"
    навіть якщо вони написані ботом. Боти помічники і ментори покладаються на те, що прохання і пропозиції бота дотримуються.
    Не лінись піти по лінках в коментарях, погуглити термінологію та скористатись Google Translate.
  4. Можливо, у менторів склалися інші пріоритети через роботу, сімейні обставини і т.п. В такому разі, якщо ти зробив(ла) рекомендоване вище, то волай в чаті, що PR позначений stale, наче, все зроблено, а ментори чомусь не реагують - рятуйте!

Г. Хіба недостатньо того, що я додав(ла) коміт із змінами?
Часто буває так, що бачиш новий коміт, ідеш перевіряти, змін багато, доводиться перечитувати весь код. А потім з'ясовується, що одна невеличка зміна "відкладена на потім" чи з'являється ще один коміт і знов треба перечитувати все. Любіть нас, спілкуйтеся з нами - і ми відповімо повною взаємністю.

Традиційна пропозиція: задай питання по вищенаписаному в студентському чаті.

@stale stale bot added the 💤 Stale label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants