Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: delete legacy agent summary files #2883

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Nov 26, 2024

Changes:

  • Removed deprecated agent summary view and list components
  • Added optional chaining operator for themeConfig?.sider?.theme to prevent potential undefined errors in WebUISider component
  • Removed unused agent-summary route from backend-ai-app loadPage function

Rationale:
The agent summary components were legacy code that is no longer used in the current architecture. Removing them reduces code complexity and maintenance burden. The optional chaining addition helps prevent runtime errors when theme configuration is not fully defined.

Checklist:

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

Copy link

graphite-app bot commented Nov 26, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the size:XL 500~ LoC label Nov 26, 2024
Copy link
Contributor Author

agatha197 commented Nov 26, 2024

@agatha197 agatha197 mentioned this pull request Nov 26, 2024
2 tasks
@agatha197 agatha197 requested a review from yomybaby November 26, 2024 09:39
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

Could you add a undfined type to _customTheme in customThemeConfig.ts?

let _customTheme: {
  light: ThemeConfig;
  dark: ThemeConfig;
  logo: LogoConfig;
  sider?: SiderConfig;
  branding?: BrandingConfig;
} | undefined;

@agatha197 agatha197 force-pushed the refactor/new-agent-summary-page branch from 65961ef to cf4788f Compare November 27, 2024 02:33
@agatha197 agatha197 force-pushed the feature/delete-legacy-agent-summary-files branch from f191f90 to e0653cd Compare November 27, 2024 02:33
Copy link
Contributor Author

Done!

Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Nov 27, 2024

Merge activity

**Changes:**
- Removed deprecated agent summary view and list components
- Added optional chaining operator for `themeConfig?.sider?.theme` to prevent potential undefined errors in WebUISider component
- Removed unused `agent-summary` route from backend-ai-app loadPage function

**Rationale:**
The agent summary components were legacy code that is no longer used in the current architecture. Removing them reduces code complexity and maintenance burden. The optional chaining addition helps prevent runtime errors when theme configuration is not fully defined.

**Checklist:**
- [ ] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
@yomybaby yomybaby force-pushed the refactor/new-agent-summary-page branch from cf4788f to ce77235 Compare November 27, 2024 02:36
@yomybaby yomybaby force-pushed the feature/delete-legacy-agent-summary-files branch from e0653cd to 343eeed Compare November 27, 2024 02:37
Base automatically changed from refactor/new-agent-summary-page to main November 27, 2024 02:39
@graphite-app graphite-app bot merged commit 343eeed into main Nov 27, 2024
4 checks passed
@graphite-app graphite-app bot deleted the feature/delete-legacy-agent-summary-files branch November 27, 2024 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL 500~ LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants