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

feat: Support custom fields in user-profile-widget + Edit/Delete flows #843

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Nitzperetz
Copy link
Member

@Nitzperetz Nitzperetz commented Nov 10, 2024

Related Issues

fixes https://github.com/descope/etc/issues/8220
Part of https://github.com/descope/etc/issues/6501

Description

Widget Profile widget to support custom fields presentation - created a new mixin to support custom fields userAttribute component.

image

Copy link

vercel bot commented Nov 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
access-key-management-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 3:45pm
audit-management-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 3:45pm
role-management-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 3:45pm
user-management-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 3:45pm
user-profile-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 3:45pm

Copy link

nx-cloud bot commented Nov 10, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit d0925fe. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


🟥 Failed Commands
nx affected --target test:e2e
✅ Successfully ran 4 targets

Sent with 💌 from NxCloud.

@Nitzperetz Nitzperetz changed the title Support custom fields in user-profile-widget feat: Support custom fields in user-profile-widget Nov 10, 2024
Copy link
Collaborator

@nirgur nirgur left a comment

Choose a reason for hiding this comment

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

Added some comments
If something is not clear we can go over it together

Signed-off-by: Nitzan Peretz <nitzan@descope.com>
@Nitzperetz
Copy link
Member Author

@nirgur added subscribe to initUserCustomAttributesMixin

@Nitzperetz
Copy link
Member Author

I will be adding flows support in this PR. let's keep it open for now and not merge.

@Nitzperetz Nitzperetz changed the title feat: Support custom fields in user-profile-widget feat: Support custom fields in user-profile-widget + Edit/Delete flows Nov 20, 2024
@Nitzperetz
Copy link
Member Author

@nirgur added edit/delete flow support.
Note the code in the new mixin, some of the code could be reused, however I wanted to keep the standards same as the other mixins, FYI.

Copy link
Collaborator

@nirgur nirgur left a comment

Choose a reason for hiding this comment

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

Looks good 👍
Added one comment

});
}

#updateCustomValueUserAttrs = withMemCache(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This function is a bit big and contains some repetitive code
Do you think we could split it into smaller functions?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was really about keeping the same standards as the other mixin - to begin with a preferred extracting code to functions and reuse.
Let me see what I can do here

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

Successfully merging this pull request may close these issues.

2 participants