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: Create group base detail page #1329

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: Create group base detail page #1329

wants to merge 2 commits into from

Conversation

kiram15
Copy link
Contributor

@kiram15 kiram15 commented Oct 5, 2024

Description

Creates the card for the groups detail page. Includes functionality for editing the group name and deleting the group.
https://2u-internal.atlassian.net/browse/ENT-9506

Test plan

Screenshot 2024-10-04 at 1 01 50 PM Screenshot 2024-10-04 at 1 01 56 PM Screenshot 2024-10-05 at 2 16 12 AM

For all changes

  • Ensure adequate tests are in place (or reviewed existing tests cover changes)

Only if submitting a visual change

  • Ensure to attach screenshots
  • Ensure to have UX team confirm screenshots

@kiram15 kiram15 marked this pull request as draft October 5, 2024 08:17
@kiram15 kiram15 requested a review from a team October 7, 2024 18:38
@kiram15 kiram15 marked this pull request as ready for review October 7, 2024 18:38
title={budgetNameAndEdit}
subtitle={`${enterpriseGroup?.acceptedMembersCount} accepted members`}
/>
<Card.Section className="pt-1 x-small">Created on</Card.Section>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to add in created to the serializer, will add this value in with my next ticket

Copy link
Contributor

@katrinan029 katrinan029 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 so far! I have some feedback regarding handling errors

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 9 lines in your changes missing coverage. Please review.

Project coverage is 85.67%. Comparing base (fdacee1) to head (9b19bc7).

Files with missing lines Patch % Lines
...it-management/data/hooks/useEnterpriseGroupUuid.js 33.33% 4 Missing ⚠️
src/data/services/LmsApiService.js 33.33% 4 Missing ⚠️
...rc/components/PeopleManagement/GroupDetailPage.jsx 91.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1329   +/-   ##
=======================================
  Coverage   85.67%   85.67%           
=======================================
  Files         578      583    +5     
  Lines       12730    12790   +60     
  Branches     2667     2713   +46     
=======================================
+ Hits        10906    10958   +52     
- Misses       1764     1771    +7     
- Partials       60       61    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

setButtonState('complete');
close();
setShowToast(true);
setToastMessage('Group name updated');
Copy link
Contributor

Choose a reason for hiding this comment

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

in addition to these states, I think we should also trigger a re-render for the group name card. Currently the group name stays the same unless the user triggers a refresh.

Screen.Recording.2024-10-09.at.1.39.54.PM.mov

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