Repository navigation
feat(website): normalize partner data, improve member listings, and update frontend dependencies - #70
Merged
Merged
Conversation
- 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>
Contributor
There was a problem hiding this comment.
🟡 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.
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.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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
Validation
main: 3 commits.git diff --check upstream/main...HEADpassed.Manual Verification Checklist