Skip to content

Migrate new admin Organization to TypeScript with features and documentation migration risks #518

Merged
jnnzz merged 4 commits into
PSITS-UCMAIN:stagingfrom
jnnzz:staging
May 27, 2026
Merged

Migrate new admin Organization to TypeScript with features and documentation migration risks #518
jnnzz merged 4 commits into
PSITS-UCMAIN:stagingfrom
jnnzz:staging

Conversation

@jnnzz

@jnnzz jnnzz commented May 26, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 26, 2026 17:32
@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

@jnnzz is attempting to deploy a commit to the PSITS-UCMAIN's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

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 migrates the Admin “Organization” feature into the TypeScript client, wiring it into the admin router/sidebar and introducing new Organization UI + data-fetching logic, along with updated migration documentation and minor admin UI tweaks.

Changes:

  • Added a new /admin/organization page with a full OrganizationView + supporting hook/types under features/admin/organization.
  • Wired the Organization page into the admin router and sidebar navigation.
  • Expanded admin API typings and adjusted one toast message; updated migration-plan documentation with post-implementation findings.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
docs/ADMIN_FRONTEND_TS_MIGRATION_PLAN.md Adds post-implementation findings/risks for the TS admin migration plan.
client-side-ts/src/router.tsx Adds the /admin/organization route to the admin router.
client-side-ts/src/pages/admin/Organization.tsx New admin page wrapper that renders OrganizationView.
client-side-ts/src/features/admin/organization/types/organization.types.ts Introduces Organization feature TypeScript types (tabs, sorting, models, forms).
client-side-ts/src/features/admin/organization/index.ts Exposes the Organization feature module exports.
client-side-ts/src/features/admin/organization/hooks/useOrganizationData.ts Implements Organization data loading, filtering, sorting, pagination, and actions.
client-side-ts/src/features/admin/organization/components/OrganizationView.tsx Implements the Organization UI (tabs, table, dialogs, bulk actions).
client-side-ts/src/features/admin/organization/components/index.ts Exports OrganizationView.
client-side-ts/src/features/admin/index.ts Re-exports the new Organization subfeature from the admin feature barrel.
client-side-ts/src/features/admin/dashboard/components/DashboardView.tsx Adds cursor/disabled pointer behavior styling for dashboard buttons.
client-side-ts/src/features/admin/components/AdminSidebar.tsx Updates admin nav icons/styles and adds an Organization link (with UC-Main UI restriction).
client-side-ts/src/features/admin/api/admin.ts Broadens typings for member/request records and tweaks decline-role success toast message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 101 to 103
{ path: "dashboard", Component: Dashboard },
{ path: "organization", Component: Organization },
{ path: "events", Component: EventsPage },
Comment on lines +173 to +176
const fetchAccounts = useCallback(async () => {
setIsLoading(true);
setError(null);

} finally {
setIsLoading(false);
}
}, [activeTab]);
<ul className="space-y-1">
<li>
<Tooltip>
<Tooltip open={false}>
Comment on lines +345 to +347
<tr
key={`${activeTab}-${account.id_number}`}
className="border-b border-[#ededed] text-[#303030]"
@jnnzz jnnzz merged commit da1886d into PSITS-UCMAIN:staging May 27, 2026
1 of 5 checks 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.

3 participants