Skip to content

feat(web): Enhance dashboard visualization and table-chart formatting#2731

Merged
chenliang15405 merged 3 commits into
eosphoros-ai:mainfrom
WangzJi:feat/dashboard-visualization-enhancement
May 28, 2025
Merged

feat(web): Enhance dashboard visualization and table-chart formatting#2731
chenliang15405 merged 3 commits into
eosphoros-ai:mainfrom
WangzJi:feat/dashboard-visualization-enhancement

Conversation

@WangzJi
Copy link
Copy Markdown
Contributor

@WangzJi WangzJi commented May 26, 2025

Description

This PR enhances the table-chart & bar-chart component for dashboard scenarios:

  • Merges type-value structure into a single row for clearer data presentation.
  • Unifies number formatting (keeps two decimals for scores/percentages).
  • Removes hardcoded mappings, keeping the code clean and robust.
  • Improves cell and column formatting for better UX.

Resolves #2730

How Has This Been Tested?

  • Manually verified table rendering with both standard and type-value data structures.
  • Checked number formatting for scores, percentages, and large numbers.
  • Ensured no regression in dashboard table display.

Snapshots:

image image

image

Checklist:

  • My code follows the style guidelines of this project
  • I have already rebased the commits and make the commit message conform to the project standard.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules

WangzJi added 2 commits May 26, 2025 18:05
… scenario\n\n- Merge type-value structure into single row\n- Unify number formatting (keep two decimals for scores/percentages)\n- Remove hardcoded mappings, keep code clean and robust\n- Improve cell and column formatting for better UX
… Remove axis titles for bar chart for better generalization\n- Unify number formatting (keep two decimals for scores/percentages)\n- Merge type-value structure into single row in table-chart\n- Remove hardcoded mappings, keep code clean and robust\n- Improve cell and column formatting for better UX\n- Update and clean up static web files
@github-actions github-actions Bot added enhancement New feature or request web Module: web labels May 26, 2025
@fangyinc fangyinc requested a review from Copilot May 26, 2025 10:41
Copy link
Copy Markdown
Contributor

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 replaces the built frontend assets under static/web—including index.html and numerous hashed webpack chunk files—likely reflecting a new production build. It does not touch any source files or actual table-chart/bar-chart components.

Reviewed Changes

Copilot reviewed 101 out of 101 changed files in this pull request and generated no comments.

File Description
packages/dbgpt-app/src/dbgpt_app/static/web/chat/index.html Updated script and build-manifest hashes
packages/dbgpt-app/src/dbgpt_app/static/web/_next/static/chunks/**/*.js (many files) Replaced autogenerated webpack chunk outputs
Comments suppressed due to low confidence (1)

packages/dbgpt-app/src/dbgpt_app/static/web/chat/index.html:1

  • This PR includes a large number of autogenerated build artifacts. Consider removing these from version control (e.g., via .gitignore) and committing only source files to keep the repo clean and maintainable.
<!DOCTYPE html><html lang="en"><head>...

…Chart components

- In the BarChart component, ensure numeric values for proper y-axis ordering and sort values in descending order for better visualization.

- In the LineChart component, ensure numeric values for proper y-axis ordering.

- Updated chart styles and theme settings to improve user experience.
@WangzJi
Copy link
Copy Markdown
Contributor Author

WangzJi commented May 27, 2025

Ding @fangyinc

Copy link
Copy Markdown
Member

@fangyinc fangyinc 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
Copy Markdown
Collaborator

@chenliang15405 chenliang15405 left a comment

Choose a reason for hiding this comment

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

LGTM

@chenliang15405 chenliang15405 merged commit e04b0f9 into eosphoros-ai:main May 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request web Module: web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat][Web] Enhance table-chart formatting and generalization for dashboard scenario

4 participants