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

[FE] View contacts (email, phone number) #278

Open
oksanahorishna opened this issue Oct 24, 2023 · 3 comments · Fixed by #286
Open

[FE] View contacts (email, phone number) #278

oksanahorishna opened this issue Oct 24, 2023 · 3 comments · Fixed by #286

Comments

@oksanahorishna
Copy link
Collaborator

oksanahorishna commented Oct 24, 2023

As a user
I want to see the contact details
So that I can reach out to the company I am interested in.

Default state:
phone number(s) and email values are hidden

Given I am on the full company profile page
When I click on the phone number(s)
Or I click on the email address
Then the phone number or email address become visible
And data 'when' (timestamp), 'who' (user ID, company ID), and 'what'(CompanyID) should be stored in the database

Design - link; link

linked epic: #6

@oksanahorishna oksanahorishna changed the title [FE] View contacts [FE] View contacts (email, phone number) Oct 24, 2023
@Lvyshnevska
Copy link
Collaborator

At the moment functionality is implemented next way.

I am on the full company profile page.
As a logged in user I see buttons "Показати телефон", "Показати ел.пошту" and I can click them.
When I click that buttons the phone number or email address become visible.
And data 'when' (timestamp), 'who' (user ID), and 'what'(CompanyID) is stored in the database. Data is stored only once - first time when user clicks one of the buttons.
After page is reload phone and email are hidden again.

As an unauthorized user I see buttons "Показати телефон", "Показати ел.пошту" and they are disabled for me.

@Lvyshnevska Lvyshnevska linked a pull request Oct 30, 2023 that will close this issue
@oksanahorishna
Copy link
Collaborator Author

@Lvyshnevska @Shushunya

  1. переглянути контакти: кнопка контактів має приходити у дефолтний стан після рефрешу сторінки - done. Незареєстрований юзер теж може переглядати контакти
  2. збір даних: збираємо юзер ID, юзер name, timestamp - подумати чи ще щось. Також обговорити - зберігаємо "перегляд" в межах активної сесії як один чи "перегляд" це кожний клік на "переглянути контакти"?
  3. подумати чи залишати окремо номер тел і пошту чи оформити як контакти - і відкривати разом. Або пошту винести як завжди відкритий атрибут - обговорити

@oksanahorishna
Copy link
Collaborator Author

юз сторі :
Незареєстрований юзер теж може переглядати контакти:
who: profile ID, company name, timestamp; (if the user has no registered profile, then only timestamp is saved, and profile ID, company name are empty
what: profile ID, company name
when registered user
then each time the button view email or view phone number - then timestamp in the record is updated

when not registered user'
then each time the button view email or view phone number - then create new row in the database

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

Successfully merging a pull request may close this issue.

3 participants