Skip to content

Divyanshu | Widget Improvements#520

Merged
Saurabh186 merged 3 commits intodevelopmentfrom
divyanshu-dev
Apr 2, 2026
Merged

Divyanshu | Widget Improvements#520
Saurabh186 merged 3 commits intodevelopmentfrom
divyanshu-dev

Conversation

@dvCodeWorld
Copy link
Copy Markdown
Collaborator

No description provided.

- Change widget type from Authorization to UserManagement in app component
- Update auth token for UserManagement widget
- Improve comment clarity for isPreview and isRolePermission config options
- Fix user profile update subscription timing using skip(1) operator
- Add change detection trigger after successful profile update
- Dispatch updateUser action after subscribing to observables
- Update baseUrl to localhost for local
- Disable role permissions tab by default in widget config
- Replace display:none with Tailwind hidden class for better consistency
- Add CSS variables for header and body height management
- Fix layout height calculations for proper scrolling behavior
- Remove duplicate "Default" badge from role display
- Add "Select all" checkboxes for role and user permissions
- Fix readonly attribute binding in user form inputs
- Remove debug
Copy link
Copy Markdown

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

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

Other comments (8)

💡 To request another review, post a new comment with "/windsurf-review".

env: 'local',
apiUrl: 'https://apitest.msg91.com/api',
baseUrl: 'https://test.proxy.msg91.com',
baseUrl: 'http://localhost:4200',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Changing the baseUrl to localhost in the environment.ts file might be helpful for your local development, but committing this change could cause issues for other team members and in deployment environments.

Consider:

  1. Using environment.local.ts (added to .gitignore) for local overrides
  2. Reverting this change before merging
  3. Using environment variables or a configuration service that can be overridden locally without changing the committed files

Comment on lines +77 to +78
// Enables the Role & Permission tab in the User Management widget
widgetConfig['isRolePermission'] = false;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The isRolePermission flag has been changed from true to false, which will disable the Role & Permission tab in the User Management widget. Is this intentional? If so, please document the reason for this change in the PR description.

<label for="user-name" class="w-label"
>Full name <span class="text-red-500" aria-hidden="true">*</span></label
>Full name <span class="text-red-500" aria-hidden="true">*</span>
{{ isEditUser }}</label
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There's a debugging expression {{ isEditUser }} in the Full name label that will render 'true' or 'false' in the UI. This should be removed.

@Saurabh186 Saurabh186 merged commit 73f560c into development Apr 2, 2026
1 check passed
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