-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[WEB-2542] Fix: display filter and tooltip issues in list layout. #5696
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -81,11 +81,11 @@ export class ProfileStore implements IUserProfileStore { | |||||||
|
|
||||||||
| // helper action | ||||||||
| mutateUserProfile = (data: Partial<TUserProfile>) => { | ||||||||
| if (!data) return | ||||||||
| if (!data) return; | ||||||||
| Object.entries(data).forEach(([key, value]) => { | ||||||||
| if (key in this.data) set(this.data, key, value); | ||||||||
| }) | ||||||||
| } | ||||||||
| }); | ||||||||
| }; | ||||||||
|
|
||||||||
| // actions | ||||||||
| /** | ||||||||
|
|
@@ -129,7 +129,7 @@ export class ProfileStore implements IUserProfileStore { | |||||||
| } | ||||||||
| const userProfile = await this.userService.updateCurrentUserProfile(data); | ||||||||
| return userProfile; | ||||||||
| } catch (error) { | ||||||||
| } catch { | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider keeping the error parameter for debugging. While the current implementation still updates the error state with a generic message, removing the error parameter from the catch block means that specific error information is lost. This could make it more difficult to diagnose issues if they occur. Consider keeping the error parameter and logging it for debugging purposes. Here's a suggested change: - } catch {
+ } catch (error) {
+ console.error("Error updating user profile:", error);
if (currentUserProfileData) {
this.mutateUserProfile(currentUserProfileData);
}This way, you maintain the generic user-facing error message while still having access to the specific error details for debugging. 📝 Committable suggestion
Suggested change
|
||||||||
| if (currentUserProfileData) { | ||||||||
| this.mutateUserProfile(currentUserProfileData); | ||||||||
| } | ||||||||
|
|
||||||||
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.
💡 Codebase verification
IssueIdentifierdoes not utilizedisplayProperties.issue_typeThe
IssueIdentifiercomponent currently only usesdisplayProperties.keyto determine rendering. ThedisplayProperties.issue_typeproperty is not referenced or utilized within the component. Therefore, the change to includeissue_typein the conditional rendering does not have any effect.IssueIdentifiercomponent (web/ce/components/issues/issue-details/issue-identifier.tsx) only referencesdisplayProperties.key.🔗 Analysis chain
Improved flexibility in IssueIdentifier rendering
The modification to render IssueIdentifier when either
displayProperties.keyordisplayProperties.issue_typeis present improves the component's flexibility. Passing the entiredisplayPropertiesobject to IssueIdentifier is a good practice for maintaining consistency.Please verify that the IssueIdentifier component correctly handles the new
displayPropertiesprop. Run the following script to check its implementation:🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 94
Script:
Length of output: 1212
Script:
Length of output: 439
Script:
Length of output: 206