Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@savathoon
Copy link
Contributor

@savathoon savathoon commented Oct 28, 2024

This change:

  • Updates app group page to filterable, collapsible groups
    382413794-28446527-52b7-4175-b68e-d1abf17ec999

@savathoon savathoon changed the base branch from main to 2024-hackweek October 28, 2024 18:53
@savathoon savathoon force-pushed the sava/more-components branch from 0b8cb5d to c440947 Compare October 28, 2024 23:05
@savathoon savathoon changed the title break out app group header component for readability [Apps] Break out page sections, repeated code into distinct components Oct 29, 2024
@savathoon savathoon marked this pull request as ready for review November 1, 2024 22:23
Base automatically changed from 2024-hackweek to main November 5, 2024 00:17
@savathoon
Copy link
Contributor Author

Updated:

  • Merged main
  • Added expand all/collapse all button

const handleSearchSubmit = (_: unknown, newValue: string | null) => {
// Extract email from format "Display Name ([email protected])"
const emailMatch = newValue?.match(/\(([^)]+)\)/);
const email = emailMatch ? emailMatch[1].toLowerCase() : '';
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems widely useful and unspecific to search; might be worth tossing in helpers.tsx next to displayUserName

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors several list views to use a shared EmptyListEntry component for empty table states and introduces new components (AppsHeader, AppsAdminActionGroup, AppsAccordionListGroup) to support filterable, collapsible app groups in the Apps detail page.

  • Replace manual "None" rows with EmptyListEntry for consistency across tables.
  • Add helper extractEmailFromDisplayName and wire up autocomplete search and expand/collapse in ReadApp.
  • Introduce and export three new app-related components under src/pages/apps/components/.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/pages/users/Read.tsx Swapped manual empty rows for EmptyListEntry.
src/pages/tags/Read.tsx Same replacement in multiple tag-related tables.
src/pages/requests/Read.tsx Added correct cellProps to EmptyListEntry.
src/pages/groups/Read.tsx Updated empty state with cellProps.
src/pages/apps/components/index.tsx Export new app components.
src/pages/apps/components/AppsHeader.tsx New header UI for app detail.
src/pages/apps/components/AppsAdminActionGroup.tsx New action bar with search & expand controls.
src/pages/apps/components/AppsAccordionListGroup.tsx New accordion list for grouping users under app groups.
src/pages/apps/Read.tsx Composed the above components into ReadApp.
src/helpers.tsx Added extractEmailFromDisplayName helper.
Comments suppressed due to low confidence (1)

src/pages/apps/components/AppsAccordionListGroup.tsx:29

  • [nitpick] Prop member_list uses snake_case; consider renaming to memberList to match camelCase conventions used elsewhere.
  member_list: any[];

@discord discord deleted a comment from Copilot AI Jun 30, 2025
@savathoon savathoon merged commit 2087ecc into main Jun 30, 2025
6 checks passed
@savathoon savathoon deleted the sava/more-components branch June 30, 2025 22:01
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.

4 participants