Skip to content

fix/create-and-improve-create-new-team#3658

Open
pavanputti wants to merge 22 commits intodevelopmentfrom
fix/create-and-improve-create-new-team
Open

fix/create-and-improve-create-new-team#3658
pavanputti wants to merge 22 commits intodevelopmentfrom
fix/create-and-improve-create-new-team

Conversation

@pavanputti
Copy link
Contributor

@pavanputti pavanputti commented Jun 15, 2025

Description

Screenshot 2026-02-14 at 9 18 40 PM

video

Related PRS (if any):

This frontend PR is related to the backend PR 1340
To test this frontend PR, you need to checkout the backend PR 1340.

Main changes explained:

Update Create New Team component:
Fixed the bug preventing team creation by correcting the form submission logic and backend API integration.
Implemented UX improvements to match the Profile > Teams > Assign Team > Create New Team workflow, including:
Consistent popup form with team name and optional description fields.
Real-time validation for empty or duplicate team names.
Autocomplete feature showing matching existing teams and an option to create a new team.
Non-existent team creation flow with "Create Team" and "Cancel team creation" options.
Clear success or error messages upon form submission.

How to test:

1.Check out the current branch: git checkout fix/create-and-improve-create-new-team
2.Run npm install to install dependencies.
3.Start the app locally with npm start.
4.Clear site data/cache in the browser.
5.Log in as an Admin user or Owner (or a role with team creation permissions).
6.Navigate to Other Links > Team Management > Create New Team and test the following cases:

  • Create: Enter a new name (e.g. Test Team), choose “Create new team: [name]” and confirm → team is created and appears in the list.
  • Empty name: Submit with no name → “Please enter a team name” (or similar); no team created.
  • Duplicate: Use an existing team name and try to create → message that team already exists.
  • Autocomplete: Type (e.g. Te) → list of matches and “Create new team: [typed name]” option.
  • Cancel: Open modal, type a name, then cancel/close → modal closes, no team created

Screenshots or videos of changes:

Create New Team (Before Fix ):

Create.New.Team.Before.Fix.mov

Create New Team (After Fix ):

Create.New.Team.After.Fix.mov

…iltering logic. Removed CreateNewTeamPopup and updated state management for team data. Improved search functionality and UI elements in TeamTableSearchPanel and AddTeamsAutoComplete components.
@netlify
Copy link

netlify bot commented Jun 15, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 455f84c
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/699148f0650e34000858c283
😎 Deploy Preview https://deploy-preview-3658--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pavanputti pavanputti changed the title Refactor Teams component to integrate AddTeamPopup and enhance team f… fix/create-and-improve-create-new-team Jun 15, 2025
@rishiapk rishiapk added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Jun 26, 2025
…sed parameter, streamlining the code for better readability and maintainability.
… placeholder text for search input to enhance clarity and accuracy of test cases.
Saicharan1505
Saicharan1505 previously approved these changes Jul 5, 2025
Copy link

@Saicharan1505 Saicharan1505 left a comment

Choose a reason for hiding this comment

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

Tested the updated “Create New Team” workflow under Other Links > Team Management. Verified bug fix and UX improvements including autocomplete, duplicate name validation, and non-existent team creation flow. All test cases (basic creation, empty name, duplicate name, autocomplete, cancel creation) worked as expected. The new team appears in the list and supports further actions like adding members or editing. No issues found.

3658 #1
3658 #2
3658 #3
3658 #5
3658 #4

Copy link
Contributor

@marcusyi1 marcusyi1 left a comment

Choose a reason for hiding this comment

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

Everything else in this branch works as expected. However there is an edge case where if you put a space in the team name it still registers as a new team. Could be good idea to add something to prevent this.

PR3658.mov

uhakruthi1
uhakruthi1 previously approved these changes Jul 9, 2025
Copy link
Contributor

@uhakruthi1 uhakruthi1 left a comment

Choose a reason for hiding this comment

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

Everything is working well locally. Tested the frontend thoroughly with backend PR #1340. Team creation flow, validation, and autocomplete features are all functioning as expected.Verified team appears correctly in the list after creation and can be edited or managed as intended. UX behavior matches the described workflow smoothly.
Screenshot 2025-07-08 at 5 08 17 PM
Screenshot 2025-07-08 at 6 54 58 PM
Screenshot 2025-07-08 at 6 55 05 PM
Screenshot 2025-07-08 at 6 56 56 PM
Screenshot 2025-07-08 at 7 07 10 PM
Screenshot 2025-07-08 at 7 07 20 PM

@Juhitha-Reddy
Copy link
Contributor

Tested all scenarios and everything is working as expected.

image image image image

Copy link
Contributor

@saikrishnaraoyadagiri saikrishnaraoyadagiri left a comment

Choose a reason for hiding this comment

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

Hi, Reviewed this PR, all cases are working but when we get the error message showing team already exists it is staying in the popup even after clicking cancel team, create ream or confirm, until we refresh the browser. Attaching video for reference.

saikrishna.PR.3658+1340.mp4

Copy link
Contributor

@harshavarma29 harshavarma29 left a comment

Choose a reason for hiding this comment

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

I have tested the latest changes locally using the admin account with the following scenarios listed below:

  1. Creating a new team.
  2. Empty team name.
  3. Autocomplete functionality.

They are working well. However, below two scenarios not working as expected.

  1. Duplicate team name:
    When creating a duplicate team name, a pop-up with a message 'A team with this name already exists' is not appearing in the UI, even though it is handled in the code.

    existing-team-popup

    Please refer to the attached video for this scenario.

    existing-team-popup.mp4
  2. Cancel team creation.
    When clicking on 'Cancel team creation' for a non-existing team, the pop-up does not getting disappear.

    cancel-team-popup-not-closing.mp4

…uplicate team validation, improve search text handling, and update UI alerts for better user experience. Clear duplicate state on close and refine team creation logic.
Copy link

@harika-majji harika-majji left a comment

Choose a reason for hiding this comment

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

Tested the functionality as descripted in description.
Team List - edit button is not working. ( see last image for reference)

1. Basic Team Creation:

Team is created successfully, a success message appears, and the new team is listed under Team Management as an active team.

Screenshot 2025-07-21 at 11 09 50 AM Screenshot 2025-07-21 at 11 10 01 AM

2. Empty Team Name:
Error message appears: "Please enter a team name."

Screenshot 2025-07-21 at 11 10 18 AM

3. Duplicate Team Name:
Warning message appears about the team already existing.

Screenshot 2025-07-21 at 11 10 37 AM

4. Autocomplete Functionality: works as expected.

Screenshot 2025-07-21 at 11 10 53 AM

5. Non-existent Team Creation Flow:
Warning message when a team doesn't exists "Oops, this team does not exist!" with two buttons: "Create Team" and "Cancel team creation."

Screenshot 2025-07-21 at 11 11 41 AM

6. Cancel Team Creation:
Cancel button works as expected.

After creating a team:
The new team appears in the teams list.

  • Delete Button is working as expected.
  • Add/ Delete Members for a team works as expected.

- The edit button is not working.

Screenshot 2025-07-21 at 11 19 49 AM

Copy link
Contributor

@sankargalla sankargalla left a comment

Choose a reason for hiding this comment

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

I reviewed the PR, and all the following use cases work as expected: Basic Team Creation, Empty Team Name, Duplicate Team Name, Autocomplete Functionality, Non-existent Team Creation Flow, and Cancel Team Creation. After successfully creating a team, its details appear in the table with the Add Members, Edit, and Delete buttons. The Add Members and Delete actions function correctly.

Observation: Edit button is not working as expected.

PR 3658(new) PR 3658(1) PR 3658(2) PR 3658(delete)

…ddTeamPopup: Added state management for editing teams, including validation and UI updates for better user experience.
…e in ID check, update test assertions for team name display, and improve loading state handling in button interactions.
@pavanputti
Copy link
Contributor Author

Everything else in this branch works as expected. However there is an edge case where if you put a space in the team name it still registers as a new team. Could be good idea to add something to prevent this.

@marcusyi1 Thanks for pointing that out! I've addressed the edge case where spaces in the team name were creating new teams. The logic now trims whitespace and checks for duplicates accordingly. I've committed the changes—please take a look and let me know if anything else needs adjustment.

@pavanputti
Copy link
Contributor Author

Reviewed this PR, all cases are working but when we get the error message showing team already exists it is staying in the popup even after clicking cancel team, create ream or confirm, until we refresh the browser. Attaching video for reference

@saikrishnaraoyadagiri Thanks for the feedback. I've made the necessary changes and committed the updated code. Let me know if anything else needs to be updated.

@pavanputti
Copy link
Contributor Author

I have tested the latest changes locally using the admin account with the following scenarios listed below:

  1. Creating a new team.
  2. Empty team name.
  3. Autocomplete functionality.

They are working well. However, below two scenarios not working as expected.

  1. Duplicate team name:
    When creating a duplicate team name, a pop-up with a message 'A team with this name already exists' is not appearing in the UI, even though it is handled in the code.
    existing-team-popup
    Please refer to the attached video for this scenario.

    existing-team-popup.mp4
    
  2. Cancel team creation.
    When clicking on 'Cancel team creation' for a non-existing team, the pop-up does not getting disappear.

    cancel-team-popup-not-closing.mp4
    

@harshavarma29 Thanks for the feedback. I've made the necessary changes and committed the updated code. Let me know if anything else needs to be updated.

@pavanputti
Copy link
Contributor Author

Tested the functionality as descripted in description. Team List - edit button is not working. ( see last image for reference)

1. Basic Team Creation:

Team is created successfully, a success message appears, and the new team is listed under Team Management as an active team.

Screenshot 2025-07-21 at 11 09 50 AM Screenshot 2025-07-21 at 11 10 01 AM
2. Empty Team Name: Error message appears: "Please enter a team name."

Screenshot 2025-07-21 at 11 10 18 AM **3. Duplicate Team Name:** Warning message appears about the team already existing. Screenshot 2025-07-21 at 11 10 37 AM **4. Autocomplete Functionality:** works as expected. Screenshot 2025-07-21 at 11 10 53 AM **5. Non-existent Team Creation Flow:** Warning message when a team doesn't exists "Oops, this team does not exist!" with two buttons: "Create Team" and "Cancel team creation." Screenshot 2025-07-21 at 11 11 41 AM **6. Cancel Team Creation:** Cancel button works as expected.

After creating a team: The new team appears in the teams list.

  • Delete Button is working as expected.
  • Add/ Delete Members for a team works as expected.

- The edit button is not working.

Screenshot 2025-07-21 at 11 19 49 AM

@harika-majji Thanks for pointing it out. I've looked into the issue with the edit button and pushed a fix. Please review and let me know if it's working as expected now.

@pavanputti
Copy link
Contributor Author

I reviewed the PR, and all the following use cases work as expected: Basic Team Creation, Empty Team Name, Duplicate Team Name, Autocomplete Functionality, Non-existent Team Creation Flow, and Cancel Team Creation. After successfully creating a team, its details appear in the table with the Add Members, Edit, and Delete buttons. The Add Members and Delete actions function correctly.

Observation: Edit button is not working as expected.

PR 3658(new) PR 3658(1) PR 3658(2) PR 3658(delete)

@sankargalla Thanks for pointing it out. I've looked into the issue with the edit button and pushed a fix. Please review and let me know if it's working as expected now.

…gic, improve error handling during team updates, and refine loading state management. Update tests for button interactions to ensure proper loading state behavior.
Copy link
Contributor

@marcusyi1 marcusyi1 left a comment

Choose a reason for hiding this comment

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

This branch is not supported by Node 20 anymore.

@sonarqubecloud
Copy link

- Added useParams import from react-router-dom
- Extract activityid parameter from URL route
- Added validation and error handling for missing activityId
- Component now receives activityId from URL parameter
- Prepared component for dynamic data fetching in next commit
Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

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

Hi Pavan,

I tried reviewing your PR but most of the key successful messages have changed. Unable to see any duplicate message as well. There is no Cancel option as well.
Screenshot 2026-01-16 at 4 21 53 PM
Screenshot 2026-01-16 at 4 23 54 PM
Screenshot 2026-01-16 at 4 24 06 PM
Screenshot 2026-01-16 at 4 24 31 PM
Screenshot 2026-01-16 at 4 24 50 PM

@pavanputti pavanputti force-pushed the fix/create-and-improve-create-new-team branch from 3f0448f to 9df5435 Compare January 24, 2026 03:00
@pavanputti pavanputti force-pushed the fix/create-and-improve-create-new-team branch from 9df5435 to dd6c6f4 Compare January 24, 2026 21:15
Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

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

Hi Pavan,

I have re-reviewed your PR as there were few commits made. Thanks for fixing few issues however i was unable to verify the below:

  • Autocomplete Functionality
  • Non-existent Team Creation Flow
  • Cancel Team Creation

Verified
Image
Image
Image
Image
Image

Ensure empty or space-only input shows the pick-a-team message and avoid showing create-new options for blank text.
Keep duplicate and empty-name messaging in sync with input changes and close the modal on cancel.
Expect the new empty-name validation message in the add-team popup.
@pavanputti pavanputti force-pushed the fix/create-and-improve-create-new-team branch 2 times, most recently from cbd4b30 to 39d96ba Compare February 14, 2026 23:04
@pavanputti pavanputti force-pushed the fix/create-and-improve-create-new-team branch from 39d96ba to 46f4b0e Compare February 14, 2026 23:10
@pavanputti pavanputti force-pushed the fix/create-and-improve-create-new-team branch from 4d54625 to 80bf974 Compare February 14, 2026 23:40
@pavanputti pavanputti force-pushed the fix/create-and-improve-create-new-team branch from 013bb9d to 455f84c Compare February 15, 2026 04:17
@sonarqubecloud
Copy link

@pavanputti
Copy link
Contributor Author

@Anusha-Gali
Hi Anusha,

I’ve made the necessary changes. Could you please review when you get a chance?

Thanks,
Pavan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comments