Skip to content

feat(website): normalize partner data, improve member listings, and update frontend dependencies - #70

Merged
Nliver merged 5 commits into
kaiyuanshe:mainfrom
Nliver:feat/website-updates
Oct 14, 2026
Merged

Nliver merged 5 commits into
kaiyuanshe:mainfrom
Nliver:feat/website-updates

Conversation

@Nliver

@Nliver Nliver commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

This PR separates partner profiles from annual cooperation records to reduce duplicate maintenance across years. It also improves member listings and updates frontend dependencies and compatibility settings.

Changes

  • Restructure partner data into shared profiles and annual records, supporting multiple cooperation levels per year and year-specific titles, links, and logos.
  • Update the homepage carousel to display organization partners with valid logos.
  • Reset the partner level filter to “All” when the selected level is unavailable for the newly selected year, and display text placeholders for partners without logos.
  • Add and update partner logos and revise the data maintenance documentation.
  • Sort member cards by Chinese name using pinyin collation, use member IDs as list keys, and add Jiang Bo’s profile and avatar.
  • Update frontend dependencies and adjust the language dropdown, header logo loading, and Next.js development configuration.

Validation

  • Reviewed the changes against upstream main: 3 commits.
  • git diff --check upstream/main...HEAD passed.
  • Local build, lint, and browser checks were not run while preparing this draft. Build validation remains pending PR CI.

Manual Verification Checklist

  • Verify partner year and level filters and text placeholders for missing logos.
  • Verify the homepage partner carousel.
  • Verify member ordering and profile dialogs.
  • Verify the language dropdown and page behavior after dependency updates.

- Introduce typed sponsor data for organizations and individuals
- Separate reusable partner profiles from annual cooperation records
- Support multiple cooperation levels within the same year
- Inherit titles, links, and logos from profiles with optional
  overrides on individual annual records
- Derive profile lists and year/level groupings from partnerEntries
- Constrain cooperation levels with the PartnerLevel union type
- Consolidate approved duplicate profiles and use English or pinyin IDs
- Standardize the Inspur display name as 浪潮 KaiwuDB while preserving
  the agreed boundaries between independent partner brands
- Use organization profiles for the homepage carousel and exclude
  personal sponsors and profiles without valid logos
- Adapt the partners page to year-grouped data and preserve
  descending year order
- Reset unavailable level filters when switching years
- Use record-based React keys and text placeholders for missing logos
- Set responsive logo dimensions on partner cards
- Update the partner data maintenance documentation
- Update cumulative cooperation tags and partner website links

Signed-off-by: LiMK <slibre@kaiyuanshe.org>
- Sort member names with Chinese pinyin collation
  without mutating the source array
- Use member IDs as React keys instead of array indexes

Signed-off-by: LiMK <slibre@kaiyuanshe.org>
- Update runtime and development dependencies, including Vditor 4
- Replace overlayClassName with classNames.root in the language switcher
  while preserving dropdown styling
- Eagerly load the KaiSource symbol and Kaiyuanshe logo in the header
- Allow 127.0.0.1 as a Next.js development origin
- Disable development indicators as a workaround for the
  Pages Router initialization race described in the config

Signed-off-by: LiMK <slibre@kaiyuanshe.org>
@Nliver Nliver self-assigned this Oct 14, 2026
@Nliver Nliver added the enhancement New feature or request label Oct 14, 2026
@Nliver
Nliver requested a balanced review from Copilot October 14, 2026 04:14

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.

🟡 Changes recommended

Partner placeholders, profile metadata, and malformed partner links currently cause incorrect user-facing behavior.

5 open findings
What changed in this PR

Refactors partner data into profiles and annual records, improves partner/member display, and updates frontend dependencies/configuration.

Changes:

  • Normalizes partner records and updates partner views.
  • Adds member data and pinyin sorting.
  • Updates UI dependencies and development configuration.
File Description
src/​data/​partners.ts Introduces normalized partner data.
src/​pages/​partners/​index.tsx Updates filtering and logo placeholders.
src/​pages/​partners/​index.module.css Styles partner placeholders and logos.
src/​components/​home/​partners/​Partners.tsx Uses partner profiles in the carousel.
src/​data/​数据更新方式.md Documents partner maintenance.
src/​data/​members.ts Adds a member profile.
src/​pages/​department/​members/​index.tsx Sorts members by pinyin.
src/​components/​LanguageSwitcher.tsx Updates dropdown styling API.
src/​components/​Header.tsx Eager-loads header logos.
public/​img/​partners/​ZstackLogo.svg Adds the ZStack logo.
public/​img/​partners/​didi.svg Adds the Didi logo.
package.json Updates frontend dependencies.
next.config.ts Adjusts development configuration.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/data/partners.ts Resolved
Comment thread src/data/partners.ts Resolved
Comment thread src/data/partners.ts Resolved
Comment thread src/pages/partners/index.tsx Resolved
Comment thread src/pages/partners/index.tsx Resolved
Nliver and others added 2 commits October 14, 2026 12:26
Updated partner links and logos for NEAR and Microsoft. Adjusted partner ID casing and modified logo rendering logic.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Refactor partner logo rendering to simplify text translation.
@Nliver Nliver linked an issue Oct 14, 2026 that may be closed by this pull request
@Nliver Nliver changed the title feat(website): 重构合作伙伴数据、完善成员展示并更新前端依赖 feat(website): normalize partner data, improve member listings, and update frontend dependencies Oct 14, 2026
@Nliver
Nliver merged commit 90cd581 into kaiyuanshe:main Oct 14, 2026
3 checks passed
@Nliver
Nliver deleted the feat/website-updates branch October 14, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EN] 合作伙伴页面重构

2 participants