-
Notifications
You must be signed in to change notification settings - Fork 40
ISSUE #5486 - Incorrect pin colour until you click into the new ticket #5492
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
Conversation
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Bug Report 5486-003 oggi.mp4 |
Bug Report 5486-004 oggi.mp4 |
moved to #5491 (comment) |
moved to #5491 (comment) |
@Amantini1997 would this be related to this? https://github.com/3drepo/3D-Repo-Product-Team/issues/669 Do we expect this to be resolved as part of this issue? if not, how much more work would it be? |
moved to #5491 (review) |
moved to #5491 (review) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Round 1 Testing Done
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Round 2 Testing complete. All bug fixed. It's good to go now :) Here is the test summary report with bug report inside.
https://asitesol-my.sharepoint.com/:x:/g/personal/ylokkwan_asite_com/EeOdJM8yBrBIvf14rqkGL7QBiCG08UiMFKZBpcbnz_RbAw?e=IFuWHk
This fixes #5486
Description
The order of ticket properties was affecting the conditional colour of pins.
Using
useWatch
was not enough as that relied on the "registered" fields. Calling "useForm.reset" was unregistering and reregistering the fields, and useWatch was not catching the value upon registrationTest cases
Setup
Create a template that includes pins with conditional (configurable) colour and make sure to have some of them rendered before the conditional property, and some after. A valid template, for instance, could include the following:
(If you already have it, you may use the template "Pins With color (custom property)". Otherwise, feel free to use the following template:
Next create 2 tickets (A and B) and set the pin condition value to something such that the conditional pins will display a colour which is not the default one (in the template provided above, the gray colour is the default one)
test cases
Bug reports