Skip to content

Pods - #488

Merged
csmlo merged 2 commits into
mainfrom
pods
Jul 2, 2026
Merged

Pods#488
csmlo merged 2 commits into
mainfrom
pods

Conversation

@v-craigjzgh

@v-craigjzgh v-craigjzgh commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Recreation of #487

Copilot AI review requested due to automatic review settings June 9, 2026 03:00
GitHub Advanced 安全 started work on behalf of v-craigjzgh June 9, 2026 03:00 View session
@v-craigjzgh
v-craigjzgh requested a review from csmlo June 9, 2026 03:01
GitHub Advanced 安全 finished work on behalf of v-craigjzgh June 9, 2026 03:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new “For Teams” experience to the site, including organization data generation and UI to browse nonprofits/projects suitable for team volunteering, while also applying broad formatting/style cleanups across existing components and config files.

Changes:

  • Adds a new /teams page with a hero section and an 组织List UI to browse/filter nonprofit organizations.
  • Introduces generate-organizations.ts and wires it into the build pipeline to produce organizations.json from the GitHub for Nonprofits team requests API.
  • Updates global styles and the header to support the new Teams experience (navigation tabs, badges/CTA styles), plus assorted formatting updates.

Reviewed changes

Copilot reviewed 28 out of 33 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
types.ts Adds 组织 type to support the new teams/nonprofit data model.
pages/teams.tsx 新建 Teams page that renders the organizations list from organizations.json.
generate-organizations.ts 新建 data generator for organizations.json using the nonprofits team requests endpoint.
package.json Runs organization generation during prebuild.
components/组织List.tsx 新建 list UI with filtering + infinite scroll for organizations.
components/组织Item.tsx 新建 expandable organization card with metadata and “Join this Project” CTA.
components/TeamsHeroContainer.tsx 新建 hero content for the Teams landing page.
styles/globals.scss Adds styles for organization badges/CTA and issue-list paragraph styling.
components/Header/Header.tsx + Header.module.scss Adds “For Individuals / For Teams” tabs and active state styling.
eslint.config.mjs Adds an additional ESLint config file (currently duplicates existing eslint.config.js).
generated.json Updates generated repository data payload.
tailwind.config.js, next.config.js, various components Mostly formatting/consistency updates.

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

Comment thread pages/teams.tsx

const organizations: 组织[] = organizationsData as 组织[];

export default function Teams() {
Comment thread components/组织Item.tsx
return (
<div className="repo-item">
<div id={`org-${organization.id}`}>
<div onClick={handleToggle}>
Comment thread components/组织List.tsx
Comment on lines +65 to +68
<Grid.Column
className="org-list-wrap"
span={{ xsmall: 12, small: 12, medium: 12, large: 7, xlarge: 9 }}
>
Comment thread components/组织List.tsx
Comment on lines +52 to +57
<GeneralFilter
filter={filter}
setFilter={
setFilter as (filter: string | number | readonly string[] | undefined) => void
}
/>

);
};
};
Comment thread eslint.config.mjs
Comment on lines +1 to +5
import next from "eslint-config-next";
import prettier from "eslint-plugin-prettier/recommended";

const eslintConfig = [...next, prettier];

Comment thread pages/teams.tsx
Comment on lines +8 to +12
import organizationsData from "../organizations.json";
import { 组织 } from "../types";

const organizations: 组织[] = organizationsData as 组织[];

@csmlo
csmlo merged commit 5f93e20 into main Jul 2, 2026
7 checks passed
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

3 participants