Skip to content

Highlight specific Anytime Question/Comment after clicking email/notification link #435

@AdamFipke

Description

@AdamFipke

Problem: You get an email notification about a new comment on your anytime question. You click on the link, but now you're searching through dozens of questions and comments to find where the new one is so you can reply.

Solution: Add a simple query param to all of these email links (inside asyncQuestion.service.ts) that is then handled by the Anytime Question page.tsx.

You will probably want to be able to pass an anytimeQuestionId and/or commentId, and then:

  • expand the corresponding question (and its comment section if commentId is given)
  • Scroll to it (using browser API's scrollTo)
  • Add some kinda subtle animation or highlight (like adding the glowy class for a couple seconds, with a fade in and out)

This query param could be re-used once #414 is merged to also use this query param to take you to the exact comment/question it's referring to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions