-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[AC-2791] Members page - finish component library refactors #9727
[AC-2791] Members page - finish component library refactors #9727
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9727 +/- ##
=======================================
Coverage 29.53% 29.53%
=======================================
Files 2537 2538 +1
Lines 74167 74159 -8
Branches 13862 13855 -7
=======================================
Hits 21905 21905
+ Misses 50602 50594 -8
Partials 1660 1660 ☔ View full report in Codecov by Sentry. |
No New Or Fixed Issues Found |
2dc1b55
to
802bc29
Compare
apps/web/src/app/admin-console/organizations/members/people.component.ts
Outdated
Show resolved
Hide resolved
apps/web/src/app/admin-console/organizations/members/people.component.ts
Outdated
Show resolved
Hide resolved
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.
Overall this is super great! Thanks for making those preliminary talks into a reality. Just a couple of thoughts to discuss/move-on from. Excited to let QA vet these changes.
…ge---finish-component-library-refactors
* Replace PlatformUtilsService with ToastService * Remove unneeded templates * Implement table filtering function * Move member-only methods from base class to subclass * Move utility functions inside new MemberTableDataSource * Rename PeopleComponent to MembersComponent
🎟️ Tracking
https://bitwarden.atlassian.net/browse/AC-2791
📔 Objective
Follow-up refactors to make full use of the Component Library after #9515.
The main change is to make TableDataSource responsible for filtering, tracking, and updating its data. The motivation here is better encapsulation and to minimize logic that needs to be in the base class. This new functionality is contained in the
PeopleTableDataSource
subclass.TableDataSource
's filtering functionstatusMap
and intoTableDataSource
Other minor changes:
@ViewChild
properties and corresponding templatingThe next step is to update the provider users component to also use this base class and table data source.
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes