Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

fix: show commit not found screen instead of error #2451

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

rudolfs
Copy link
Member

@rudolfs rudolfs commented Oct 1, 2021

Show a placeholder if the commit isn't replicated instead of an error message. This also fixes the anchor list not being properly ordered, now the latest anchor is at the top and the list is sorted by timestamp oldest at the bottom.

Closes #2448.

Screenshot 2021-10-01 at 19 08 12

Screenshot 2021-10-01 at 19 12 46

@rudolfs rudolfs requested a review from a team as a code owner October 1, 2021 17:09
@rudolfs rudolfs changed the title Rudolfs/anchor fixup fix: show commit not found screen instead of error Oct 1, 2021
@juliendonck
Copy link
Member

Great empty state

Screenshot 2021-10-04 at 07 48 12

})
);
const e = error.fromUnknown(err);
if (!e.message.match("object not found")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you flip the if/else branches and get rid of the negation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show a placeholder if the commit hasn't been replicated or doesn't
exist. This also fixes incorrect anchor ordering.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
@rudolfs rudolfs merged commit 0619c51 into master Oct 4, 2021
@rudolfs rudolfs deleted the rudolfs/anchor-fixup branch October 4, 2021 09:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commit not found error
3 participants