Skip to content

Commit

Permalink
Feat: optimize dashboard UI and fix sql highlight (eosphoros-ai#1329)
Browse files Browse the repository at this point in the history
Co-authored-by: hzh97 <[email protected]>
Co-authored-by: aries_ckt <[email protected]>
  • Loading branch information
3 people authored and Hopshine committed Sep 10, 2024
1 parent 4d72cf0 commit 5152403
Show file tree
Hide file tree
Showing 171 changed files with 2,306 additions and 979 deletions.
20 changes: 10 additions & 10 deletions dbgpt/app/scene/chat_dashboard/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ def get_chart_values_by_data(self, field_names, datas, chart_sql: str):
)

for field_name in field_names[1:]:
# if not field_map[field_name]:
# logger.info("More than 2 non-numeric column:" + field_name)
# else:
for data in datas:
value_item = ValueItem(
name=data[0],
type=field_name,
value=str(data[field_names.index(field_name)]),
)
values.append(value_item)
if not field_map[field_name]:
logger.info("More than 2 non-numeric column:" + field_name)
else:
for data in datas:
value_item = ValueItem(
name=data[0],
type=field_name,
value=str(data[field_names.index(field_name)]),
)
values.append(value_item)
return field_names, values
except Exception as e:
logger.debug("Prepare Chart Data Failed!" + str(e))
Expand Down
2 changes: 1 addition & 1 deletion dbgpt/app/static/404.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dbgpt/app/static/404/index.html

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

6 changes: 6 additions & 0 deletions dbgpt/app/static/_next/static/chunks/1065.154116f34cb67712.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5152403

Please sign in to comment.