Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show number of unanswered questions in title of question page #2302

Merged
merged 4 commits into from
Oct 6, 2020

Conversation

niknetniko
Copy link
Member

@niknetniko niknetniko commented Sep 28, 2020

This pull request adds the number of unanswered questions in the title & shows a dot in the favicon if there are any unanswered questions (exactly like the notification dot).

The dot in the favicon now serves two purposes, but since course administrators currently don't receive a lot of notifications (I assume), I don't think it's a big problem.

More technically, the PR adds a FaviconManager, which tracks why a dot is shown in the favicon. For example, if you have unread notifications but you resolve all questions, we can't hide the dot yet (and vice versa).

Screenshot:

image

Closes #2275.

@niknetniko niknetniko added the feature New feature or request label Sep 28, 2020
Copy link
Member

@chvp chvp left a comment

Choose a reason for hiding this comment

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

Good stuff 👌

Base automatically changed from feature/question-tweaks to develop October 1, 2020 14:55
@niknetniko niknetniko force-pushed the feature/question-title branch from 30d6a08 to c1c8c46 Compare October 1, 2020 15:30
@niknetniko niknetniko force-pushed the feature/question-title branch from c1c8c46 to 3a5e259 Compare October 1, 2020 15:31
@niknetniko niknetniko marked this pull request as ready for review October 2, 2020 07:48
@niknetniko niknetniko requested review from chvp and bmesuere October 2, 2020 07:48
@niknetniko niknetniko merged commit 0a80b37 into develop Oct 6, 2020
@niknetniko niknetniko deleted the feature/question-title branch October 6, 2020 07:43
@chvp chvp modified the milestones: 4.1, 4.0 Oct 7, 2020
@pdawyndt
Copy link
Contributor

pdawyndt commented Oct 7, 2020

Visual clue (red dot in favicon) upon unanswered questions is only visible while on question dashboard

image

not while on any other course-level page (where red dot is visible in navigation bar but not in favicon).

image

Has this been done on purpose, or is this something that was overlooked?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Title of questions page should be updated with the number of open questions
4 participants