Skip to content

feat: enhance announcement and project modals with image upload and s…#171

Merged
TMCreme merged 2 commits intomainfrom
Ransford/ui-revamp
Apr 6, 2026
Merged

feat: enhance announcement and project modals with image upload and s…#171
TMCreme merged 2 commits intomainfrom
Ransford/ui-revamp

Conversation

@RansfordGenesis
Copy link
Copy Markdown
Contributor

…tack selection

  • Refactor EditAnnouncementModal to manage title, content, and image upload with local state.
  • Implement image preview and clear functionality in EditAnnouncementModal.
  • Add uploadAnnouncementImage endpoint for handling image uploads.
  • Update EditProjectModal to include stack selection with checkboxes.
  • Introduce search debounce for manager selection in EditProjectModal.
  • Create FullOrgChartPage to display organizational structure with search functionality.
  • Add utility functions for flattening and filtering org chart data.
  • Implement query utility for compatibility between react-query versions.
  • Update Tailwind CSS configuration to use CSS custom properties for colors.

Copilot AI review requested due to automatic review settings April 5, 2026 19:32
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crm-web Ready Ready Preview, Comment Apr 5, 2026 7:58pm

Copy link
Copy Markdown

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 expands several UI workflows across the app: announcement creation/editing now supports image upload with preview/clear, project editing gains stack selection and debounced searching, and org-chart browsing is extended with a new “full org chart” page. It also introduces design-system color tokens via CSS custom properties to enable consistent theming (including dark mode) and adds small react-query compatibility helpers.

Changes:

  • Add announcement image upload support (new endpoint + modal UX for preview/replace/remove).
  • Improve project/org-chart/admin UIs (stack selection, debounced search, team management modals, and a new FullOrgChart page).
  • Move Tailwind colors to CSS variables and add a theme toggle + global styling updates.

Reviewed changes

Copilot reviewed 28 out of 29 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tailwind.config.js Switch Tailwind color tokens to CSS custom properties for theme flipping.
src/app/globals.css Define light/dark RGB token variables in @layer base.
src/app/layout.tsx Apply global text color + transition to match token-based theming.
src/components/layout/Navbar/index.tsx Add theme toggle; update nav structure/links and styling.
src/services/index.ts Add uploadAnnouncementImage; enhance applicant search params; expose new endpoint.
src/lib/queryUtils.ts Add isMutationLoading helper for react-query v4/v5 compatibility.
src/lib/constants.ts Centralize debounce interval constant.
src/components/modals/CreateAnnouncementModal.tsx Refactor to local state + file upload flow for images.
src/components/modals/EditAnnouncementModal.tsx Refactor to local state + image upload/preview/clear support.
src/components/admin/announcement/CreateAnnouncement.tsx Add image file selection + upload-on-save behavior.
src/components/modals/CreateFeedModal.tsx Improve image upload UX and loading-state handling.
src/components/modals/CreateProjectModal.tsx Add debounced search UX; refactor member add handler; clear searches after selection.
src/components/modals/EditProjectModal.tsx Add stacks selection (checkboxes), debounced manager search, and stacks diffing in payload.
src/components/techies/Team.tsx Add debounced search behavior and query key changes.
src/app/(admin)/admin/org-chart/page.tsx Extract org chart filtering utilities and add manager context to modal.
src/app/(admin)/admin/org-chart/components/OrgChartNodeCard.tsx Add isAdmin flag to hide admin-only action menu for non-admin views.
src/app/(admin)/admin/org-chart/components/AssignManagerModal.tsx Add current-manager display + remove-manager action + debounced search.
src/app/(admin)/admin/org-chart/components/BulkAssignModal.tsx Rework team management to support add/remove with pending state and save semantics.
src/lib/orgChartUtils.ts Introduce shared flattenTree and filterTree org chart utilities.
src/app/(root)/full-org-chart/page.tsx New full org chart browsing page with search + admin modals.
src/app/(admin)/admin/applicants/page.tsx Add debounced search, server-side status filtering, and improved status menus/labels.
src/app/(root)/community-projects/page.tsx Improve loading UX for refetch/re-navigation; styling updates.
src/app/(root)/community-projects/[id]/page.tsx Add tech-stack editing workflow and styling updates.
src/app/(root)/settings/page.tsx Debounced skills search; avatar staging UX; styling and error handling improvements.
src/app/(root)/techie/me/page.tsx Expand profile page with reporting line, projects, recent activity, and social links UI.
src/app/(root)/techies/[id]/page.tsx Improve skills rendering and direct-report display with “show all” toggle.
src/app/(root)/page.tsx Dashboard styling updates + feed image rendering.
src/app/(root)/feed/page.tsx Feed styling updates.
src/app/(admin)/admin/settings/page.tsx Styling updates to align with new token-based theme.

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

@TMCreme TMCreme merged commit a31c776 into main Apr 6, 2026
3 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