Giter Club home page Giter Club logo

climatemind-frontend's People

Contributors

anddak avatar andrew-banister avatar berkott avatar brianpeiris avatar christianalafaa avatar danmash avatar dannymichaels avatar dependabot-preview[bot] avatar dependabot[bot] avatar dumeccs avatar epixieme avatar fe-mason avatar jamesaking avatar joaorpereira avatar johols avatar lukasziegler avatar mncharlton avatar nbrix avatar nickcallaghan avatar okumujustine avatar rodriguesk avatar rolandoldengarm avatar sabineu avatar svenstar74 avatar thiyagarajan-angappan avatar y-himanen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

climatemind-frontend's Issues

Add a button to route the user to the login page

User story

When you are not logged in and you go to the route "/conversations", you'll find a button at the bottom so that a user can register. On top of that, there should be a second button "Login", which would route the user to the login page.

image

Acceptance criteria

  • Above the register button there's a new button that says 'Login'.
  • Pressing that button brings the user to the login page.

UserB can view UserA's conversation cards after creating an account

Describe the bug

A UserB that just created an account after finishing the quiz from a link he received can view the conversation cards of UserA.

To Reproduce

  1. You start a new conversation and paste the link into a new tab.
  2. You complete the quiz and click through all pages until you can create an account at the end.
  3. After creating the account you're logged in as UserB.
  4. If you now go to the conversation drawer, you can see the conversation cards from UserA (as you just created a new account, there should be only one conversation card from UserA).

Expected behavior

After you created the account and are logged in, your conversation drawer should only show you one card, which is the conversation that lead to creating the account with UserA.

Task

  • I would guess that this has to do with the quizId that is stored in the localStorage.

Add a grey underline to inactive button

User story

When going to the 'Myths' tab and you get more information about a specific myth by pressing 'Why?', it currently looks like the second image. That should be changed, so that when one button is selected, the other one should also have a grey underline.

image
image

Acceptance criteria

  • When the 'Flawed Logic' button is selected, there's a grey line below the Sources button and vice versa.

Rename Toast message to 'Link copied'

User story

When you are logged in and on the /sharelink page, you can enter a name and generate a link. Once that link is created, there will be a popup (toast message) in the upper right corner. That toast message should be renamed from the current 'Link added' to 'Link copied'.

image

Acceptance criteria

  • The toast message shows 'Link copied'

Fix routing for 'Back' button on the 'user-b/no-share' page

Describe the bug

The 'Back' button on the /user-b/no-share page won't bring you back to the right page.

To Reproduce

Steps to reproduce the issue:

  • You start the userB's journey (enter a name, copy the link, paste it into a new tab)
  • You press the button 'Next: How does ClimateMind work?'
  • You press the button 'No Thanks'
  • You press the button 'Back'
  • The page you see now is the wrong page

Expected behavior

Instead of the page you see in the current state, it should just bring you back to the previous 'How does Cm works' page.

Task

The page with the 'Back' button is being used twice. So if you change the functionality that it works and brings you back to the 'How does Cm work?' page, you should test the second use case as well. This second use case happens at the end of the userB journey, where there's another button 'Not now'.
Bonus points if you add cypress tests, so that we will know in the future when things stop working.

Investigate Issue with Sidebar

Describe the bug

Resizing the window in general is no problem, but with the side bar opened, at some point the screen turns white and it also throws an error (See video below for exact behavior).

2023-01-21.18-44-52.mp4

To Reproduce

Steps to reproduce the issue:

  • Open the sidebar
  • Resize the window to something pretty small

Expected behavior

The sidebar shouldn't disappear alltogether and resizing the window to something larger should return to a normal state as well.

Task

  • For now, it would be already good to know what the issue is. At the end of the video (and also when you reproduce the error), there's some error message. Take a look at that and investigate what's wrong.

Personal values questionnaire sends wrong id to backend

Describe the bug

Error in sentry
When a questionnaire has been finished, an array of answers will be send to the backend. For set one of the questions, the ids should be from 1 to 10, while the set two should contain questions with ids from 11 to 20.
It seems that sometimes (that's what the sentry error log shows), an invalid id is present in a question set, like -5.

To Reproduce

It's unclear when and how this happens.

Expected behavior

When set one is used, the api call should always have ids from 1 to 10.
When set two is used, the api call should always have ids form 11 to 20.
No other ids should be possible.

Task

Unclear

Fix green background on the '/shared-values' page

Describe the bug

The green background on the '/shared-values' page doesn't cover the complete page (!! For the desktop version everything looks alright, you need to go into the (chrome) developer tools and change it to a small mobile version !!)

image

To Reproduce

When you go through the userB journey (enter a name, create link, paste it into the tab), you will reach the page /shared-values. This page has a green background. When you are on a mobile device that is rather small, the background won't cover the whole page.

Expected behavior

The green background should cover the complete page.

error when retaking quiz

Hello,

When user is retaking quiz he can go back to the home page and after this personal values and retake quiz are not available in the home page

issue.mp4

Best Regards,
Adrian Cielniak.

Single invite link for User A

User story

As a user A, I want to be able to use the single link to invite many users B, so I can save time creating conversations

Blocked by

  • design

Acceptance criteria

TBD

  • ...

User B can re-take the quiz

As user be I want to be able to re-take the quiz so that if i don’t agree with my personal values I can do the quiz again,Scenario: user b can retake the quiz,Given I am user B ,And I have taken the quiz,When I view the core values page,Then I can re-take the quiz

Remove redundant userB name in the conversation card

User story

In the conversation drawer on the page '/sharelink', you can see all of the conversations you have. Currently, the userB name is shown twice, which is rather unnecessary. The larger version of the name should stay, while the smaller one on top should be removed. It isn't exactly clear what the messages should say. Eg. 'Prepare to talk with UserB' could just become 'Prepare to talk'.

image

Acceptance criteria

  • For every possible state of a conversation card, there's always only one mentioning of the userB's name.

Delete conversation cards immediately

User story

Within the conversation card drawer, you can open a single conversation card and delete it. Once you press the button to delete, nothing happens, because you have to close the drawer and reopen it. Instead, the list of conversation cards should be updated immediately, so that the card disappears right away.

image

Acceptance criteria

  • Delete a conversation card -> it disappears instantly after confirming to delete it, without closing and reopening the drawer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.