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

Bucket display issue using List-Formatting/view-samples/board-tags/board-tags-boxes.json #598

Open
Wolfgang123456789 opened this issue Oct 7, 2022 · 9 comments
Labels
❓ Question Question about one of the samples

Comments

@Wolfgang123456789
Copy link

Sample (which sample are you talking about)

List-Formatting/view-samples/board-tags/board-tags-boxes.json

Question (the more details, the better)

Note: The issue is reproducible with board-tags.json as well.

First of, really loving the design of List-Formatting/view-samples/board-tags/board-tags-boxes.json
However, when performing any action on a card that is enabled by the JSON like changing the date, tags status etc, I get a weird issue where the board duplicates itself on top of the first version an additionally presents all buckets below one another. Only refreshing the page helps to load the page properly again.

Having changed the tags:
image

The only change not possible anymore is shifting the card from one bucket to another, neither in the original view below nor the collapsed view.

I can in this view still do changes and every change creates another instance of the board above the last.
Having made two more changes:
image

Really appreciate any help you can give!
Thanks in advance!

@Wolfgang123456789 Wolfgang123456789 added the ❓ Question Question about one of the samples label Oct 7, 2022
@aaclage
Copy link
Contributor

aaclage commented Oct 7, 2022

That is really strange.
Did you do this change directly in Microsoft Teams?

@aaclage
Copy link
Contributor

aaclage commented Oct 7, 2022

@Wolfgang123456789 Can you access to the sharepoint List page where is located and validate there if is happening the same?

@aaclage
Copy link
Contributor

aaclage commented Oct 7, 2022

@Wolfgang123456789 ok is also happening to me will give a look to see what changed. maybe MSFT also change in original card styles.

@aaclage
Copy link
Contributor

aaclage commented Oct 7, 2022

@Wolfgang123456789 I did the following, create a new Board view and include the formatting again and is not happening.
Can you try to replicate if that also happen to you?

@Wolfgang123456789
Copy link
Author

Hi @aaclage Thanks for the quick response!
I still get the issue on a new board as well after copy pasting the sample code from https://github.com/pnp/List-Formatting/blob/master/view-samples/board-tags/board-tags-boxes.json
As a matter of fact just saving the code already causes the issue. And I can hit save repeatedly to create infinite amounts of buckets on my screen without even changing a data element.
I've tried different browsers and also reproduced the issue looking at the board through teams, from sharepoint and from the lists app.

@aaclage
Copy link
Contributor

aaclage commented Oct 7, 2022

@Wolfgang123456789 Did you make the test with a new View?

@Wolfgang123456789
Copy link
Author

@aaclage yes, I created a new board view, doubled checked to make sure all required data elements are on the view and then replaced the default JSON with the sample set

@Wolfgang123456789
Copy link
Author

@aaclage so this has been continually bugging me and I tested around a bit. A couple of things:

  1. I found a colleague that has the same issue on a board view with a different JSON script. Since his script does not create any custom interaction on the card but only creates a conditional background colour based on a status, he only experiences the issue when changing an affected data element (status) in the side panel. After about 10 seconds some background process triggers which then suddenly distorts his view. I have this issue aswell that the background process triggers the duplication, in my case it's just secondary since I already break the board by changing something on the card itself.

That does mean however that the issue is not specific to these scripts, so I understand If you don't view the issue as relevant to your script anymore. Any further help will though be greatly appreciated!

If you still want to help me, one thing I found that might help is that in when the issue occurs this error is raised in the console of the dev tools. I don't have enough experience to judge if this is helpful, I just know I gets raised when by board breaks.
image

@aaclage
Copy link
Contributor

aaclage commented Oct 7, 2022

@Wolfgang123456789
Are you able to create a issue in following link https://github.com/SharePoint/sp-dev-docs/issues the "Bug or Error Report" > select "declarative list formatting", describe current issue and use a json sample that microsoft could replicate the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ Question Question about one of the samples
Projects
None yet
Development

No branches or pull requests

2 participants