Skip to content

post 2.0 feature: smarter close #38

@mariusa

Description

@mariusa

Desired UX:
As a user visiting a site, I want to

  • be able to close an announcement and never see that again (in that browsing session or never?)
  • see multiple announcements if more are published, even though I closed others

To make this possible, I propose for h-bar

  1. When close is clicked, save in sessionStorage or localStorage an md5 hash of that announcement as being closed
  2. When initialized with multiple announcements, skip those already closed

This behavior could be enabled when passed a storage option, which developer can set to either sessionStorage or localStorage.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions