Real-Dev-Squad / website-status

Shows a roadmap of the ongoing projects being done
https://status.realdevsquad.com/
MIT License
21 stars 145 forks source link

feat: update query param on issues tab url based on search query #989

Closed j24m closed 6 months ago

j24m commented 6 months ago

Developer name : @j24m

Backend Changes :

Dev Tested :

Images/video of the change :

https://github.com/Real-Dev-Squad/website-status/assets/53934353/4f88280b-4a3a-4d90-b767-fce913c1aa15

Follow-up Issues (if any) :

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
status-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2023 10:13am
j24m commented 6 months ago
  • The query should persist in the search bar after sharing.
  • The API should be search?q=dark%20mode or search?q=dark+mode (That's what Google use)
Ajeyakrishna-k commented 6 months ago

Please add tests for your feature.

gauravsinhaweb commented 6 months ago
  • The query should persist in the search bar after sharing.
  • The API should be search?q=dark%20mode or search?q=dark+mode (That's what Google use)
  • Thankyou for pointing this out, I will persist the search query in search bar.
  • Coming to your second point I have constructed the query param as per discussion with @ankushdharkar, here is the screenshot for the same : image -So for issues it should be /issues?q=<some-key>%3A<dynamic-string>
  • Example : q=search%3Adark+mode

For this case, it looks good.

j24m commented 6 months ago

You haven't added a test case to verify whether the changes are actually reflected in the search URL or not when the input field is changed.

Done.

j24m commented 6 months ago

The search should show closest suggestion of query EX - If user search Dark mod missing e, the result should show for dark mode currently it is showing the exact value to query

Screenshot 2023-11-10 112757

Hello, regarding this comment of yours Gaurav : https://github.com/Real-Dev-Squad/website-status/pull/989#pullrequestreview-1724069975 The issue we are addressing in this task is only to update query params, the comment that you have put is out of scope for this issue. Here is the issue link, acceptance criteria has been mentioned very clearly : https://github.com/Real-Dev-Squad/website-status/issues/971

gauravsinhaweb commented 6 months ago

The search should show closest suggestion of query EX - If user search Dark mod missing e, the result should show for dark mode currently it is showing the exact value to query

Screenshot 2023-11-10 112757

Hello, regarding this comment of yours Gaurav : https://github.com/Real-Dev-Squad/website-status/pull/989#pullrequestreview-1724069975 The issue we are addressing in this task is only to update query params, the comment that you have put is out of scope for this issue. Here is the issue link, acceptance criteria has been mentioned very clearly : https://github.com/Real-Dev-Squad/website-status/issues/971

If the behaviour is same, after making your changes then it's fine.