Skip to content

Conversation

@RonDZV
Copy link

@RonDZV RonDZV commented Aug 15, 2025

Q A
Bug fix? no
New sample? yes
Related issues? new view sample

What's in this Pull Request?

This view formatting transforms your SharePoint list into a vibrant music discovery board.
Sorry for any mistakes in this commit, it's the first one.

* Add files via upload

* Update README.md

* Update README.md

* Update README.md

* Update README.md
@tecchan1107 tecchan1107 self-assigned this Aug 15, 2025
@tecchan1107
Copy link
Collaborator

Thank you for the excellent sample @RonDZV !

I’m curious about one thing.
In music-cards-view-settings2.png, I noticed that “Rated By” and “User ratings” are checked. How did you enable those? In my environment, they are grayed out and cannot be selected.

image

For the Rating column, I added it by choosing Average Rating from [Add column].

image

Also, maybe because I haven’t been able to add those columns to the view, sometimes clicking the stars doesn’t update the rating.

sample

@tecchan1107
Copy link
Collaborator

After refreshing the page and reopening the Edit view columns pane, the “Rated By” and “User ratings” columns no longer appear. It’s strange...

image

@RonDZV
Copy link
Author

RonDZV commented Aug 22, 2025

Thank you for the great screenshots @tecchan1107. I will try to figure out why the fields are not showing or in what situation they are greyed out, but I cannot imagine why that would be. You did enable the Rating Settings through the List Settings, right? Or did you just add the column "Average Rating"?

For your second comment:
As per my knowledge, the rating only works once for each user. So if you update a field you already rated before, it will just ignore your new input. Which makes sense to prevent flooding of votes.

@tecchan1107
Copy link
Collaborator

Thanks for the reply!

You did enable the Rating Settings through the List Settings, right? Or did you just add the column "Average Rating"?

The latter. I added Average Rating from the view using [Add column], not through List Settings.

As per my knowledge, the rating only works once for each user. So if you update a field you already rated before, it will just ignore your new input. Which makes sense to prevent flooding of votes.

In my environment, I was able to update the ratings multiple times... I apologize, but please check again🙇‍♀️

@watana2
Copy link
Contributor

watana2 commented Aug 22, 2025

I'm experiencing the same issue. The options are grayed out, and I only see them the first time when enabling the rating. Once I click apply or refresh, they disappear.

Also, when multiple users rate via the Music Card view, e.g. 2 users it only shows (1 rated), but rating via the default view, it would shows (2 rated) in the Rating column.

@RonDZV
Copy link
Author

RonDZV commented Aug 22, 2025

Thank you both, I have been able to replicate your issues.

I'm not sure yet what the exact cause is, but the use of the "average rating" column is different then the instruction I had provided. In the end they should be the same column, but there is some strange behavior.
I will try to see if I can fix the issue by using the "average rating" column in an additional view.

As for the multiple ratings.
If user A votes and later updates his vote, the updated vote should be the only that counts.
If user B votes as well, I hope that the value is actually the average and the total amount of votes is updated. I used standard code for this column, so I will deepdive and see if I can fix this as well.

I hope I can stick with the standard functionalities.

@watana2
Copy link
Contributor

watana2 commented Aug 22, 2025

I noticed 2 potential issues here:

  1. Users rating via the Music Card view will display (1) rated.
  2. If users continue clicking via the Music Card view, it could result in incorrect average rating.
image

@RonDZV
Copy link
Author

RonDZV commented Aug 22, 2025

Thank you @watana2, I will try to figure out what is wrong and hopefully provide the solution.

@watana2
Copy link
Contributor

watana2 commented Aug 22, 2025

One more thing: the issue with viewing images.

image

@RonDZV
Copy link
Author

RonDZV commented Aug 22, 2025

Sorry, that was a mistake I should have caught earlier. It should be fixed now.

@watana2
Copy link
Contributor

watana2 commented Sep 4, 2025

Hi @RonDZV,
If you haven't found the solution yet and need more time, I would recommend removing the rating part.
Once you've found the solution, create another PR for v2.
But of course, this is up to you.

@RonDZV
Copy link
Author

RonDZV commented Sep 11, 2025

@watana2 I have been travelling and couldnt work on it. I'll try to fix it next week or I will remove it until I finished it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants