Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Adding reaction goes to end of listย #2403

@Sherlouk

Description

@Sherlouk

When a reaction is added (tested using double tap to add, haven't validated for normal tap to add) it gets added to the end of list of reactions.

If I already have a reaction (e.g. ๐ŸŽ‰) and then add one (e.g. ๐Ÿ‘) it will be ordered ๐ŸŽ‰ ๐Ÿ‘ in GitHawk UI. If I leave the issue and then re-enter it, it gets ordered based on a hardcoded array so that it renders ๐Ÿ‘ ๐ŸŽ‰ (this is the same as GitHub's UI).

It's a very minor bug but when we insert a new reaction, we should place it respecting the order of reactions as determined in this array:

private let reactions: [ReactionContent] = [
.thumbsUp,
.hooray,
.thumbsDown,
.heart,
.laugh,
.confused
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    โœจ good first issueAn issue suitable for someone looking to get familiar with the codebase๐ŸŽจ designChanges to the design of the app

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions