Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users

Dashboard
Notifications
Mark all as read
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

When clicking "mark read" it shows a 0 when it should actually dissapear.

+5
−0

This is what I see:

the bug

Steps to reproduce:

  1. If you get an Inbox notification, look at it, and then mark it as read with this button:

mark read button

Then it says you have 0 inbox notifications. Note that if you click "Mark all as read", then this bug doesn't occur. Only if you click "Mark read" does it occur.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment

This is 10 reps alt. Just testing somethng out here 10_Rep_Test‭ 5 months ago

2 answers

+3
−0

With a bit of effort, you can even do this:

-1

I think the code that shows the notification count draws the notification "container" (the blue circle) once, and then just updates the number from some data value. Only when you close and reopen the notifications, or refresh, or move to another page, does the whole thing get rebuilt again. I am not wise in the ways of front-end code, but I can see the logic here. We could write some extra code to remove the blue circle entirely instead of showing "0", but "0" isn't wrong either. (-1 is wrong but my own fault for provoking it.)

The first time I saw the "0" I actually smiled; I wasn't expecting it but it seemed like a reasonable thing to have happen. Can I persuade you that what you see as a bug is instead a charming quirk, maybe even an Easter egg?

Why does this post require moderator attention?
You might want to add some details to your flag.

3 comments

I’m curious how you got the -1. ploni‭ 5 months ago

@ploni it involved opening links in new tabs and marking some things unread and back to read. I'm not sure of the exact sequence I followed, but it took a few tries to stumble on the -1. :-) Monica Cellio‭ 5 months ago

I bet I can get -10 :D. This is actually kinda fun! 10 Rep‭ 5 months ago

+2
−0

See if anyone can get lower than this:

wr so far

I don't want this to be fixed, this is fun! :D

Why does this post require moderator attention?
You might want to add some details to your flag.

3 comments

Challenge accepted: https://meta.codidact.com/uploads/LqTBQdXoU5rSaFWRnCYvGEKs. This is around 10 :P fedorqui‭ 5 months ago

I think 10 Rep meant without console shenanigans, @fedorqui. :-) Monica Cellio‭ 5 months ago

I got NaN. If you want, you don't have to click on that multiple times. You can directly edit from HTML(inspect element) Istiak‭ 27 days ago

Sign up to answer this question »

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!