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
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

50%
+0 −0
Meta Tags are highlighting while my favourite tags is empty

The problem mentioned in the question The original problem mentioned in the question is now fixed. If several users share a computer (or one person has several user accounts), the user who is curr...

posted 1y ago by trichoplax‭

Answer
#1: Initial revision by user avatar trichoplax‭ · 2023-09-14T11:17:07Z (about 1 year ago)
## The problem mentioned in the question
The original problem mentioned in the question is now fixed. If several users share a computer (or one person has several user accounts), the user who is currently signed in will be the one whose preferences are used.

Previously, preferences were stored in the browser's localStorage just once and would be picked up regardless of which user was currently signed in. This was changed to store the preferences in the browser's localStorage by user id, so only the relevant user's preferences will be picked up.

The change was made several months ago, but I have only just stumbled upon this bug report and realised the problem happened to be fixed by this change. For reference, it was [pull request 951](https://github.com/codidact/qpixel/pull/951) on the qpixel repository.

## Related problem mentioned in an answer
The separate problem mentioned in [elgonzo‭'s answer](https://software.codidact.com/posts/283051/283056#answer-283056) also appears to have been affected. I'm not sure if this was related to the same change. The behaviour is now more consistent than described in that answer, but does not match with the note at the top of the preferences page, that says:

> Changes are automatically saved once you move away from the input field.

Following the steps in that answer now results in the "Favorite tags" field being updated even if the tab is closed before moving away from the input field. The highlighting of tags in the question list page reflects the change, and navigating back to the preferences page shows the change has been saved.

I'm not sure if the behaviour or the note at the top of the page should be changed, but one way or other they need to match each other, so I've [raised this on Codidact Meta](https://meta.codidact.com/posts/289697).