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

[Bug] The text in the first column of table in dev_docs/tools/leaderboard cannot be updated along with the input JSON data. #100

Closed
3 tasks done
birdflyi opened this issue Dec 27, 2024 · 1 comment

Comments

@birdflyi
Copy link

birdflyi commented Dec 27, 2024

Are you certain it's a bug?

  • Yes, it looks like a bug

Are you sure this is not an issue in Docusaurus?

  • It is not a Docusaurus issue

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Issue description

The text in the first column of table in dev_docs/tools/leaderboard(link) cannot be updated along with the input JSON data.

Environment

  • Microsoft Edge 版本 131.0.2903.70 (正式版本) (64 位)
  • Google Chrome 版本 131.0.6778.205(正式版本) (64 位)

The bug appears in all the browsers mentioned above.

Input

data: [{"company":"Huawei", "logo":"https://oss.open-digger.cn/logos/companies/huawei.png", "openrank":69986.51,"delta":14310.41,"repo_count":11267,"participant_count":14146},{"company":"Alibaba","openrank":31311.08,"delta":1286.49,"repo_count":6739,"participant_count":19109}]

Settings and Output

schema settings: [default]
132f8f01a10899c2c1139c0da4db585

Expect Output and Try

Expect Output: Show company names when chose "字符串" for the first column; Show company names and logos when chose "字符串与图标" for the first column.
Try: When switch the first sub-category of the settings for the first column twice, the text appears as normal.
ec1013f76f0f3d8e3492efea6c4c1f0

Locate

  • Relate to the first column
  • The text span in html is empty, but the value can be obtained by changing the settings
@birdflyi birdflyi changed the title The text in the first column of table in dev_docs/tools/leaderboard cannot be updated along with the input JSON data. [Bug] The text in the first column of table in dev_docs/tools/leaderboard cannot be updated along with the input JSON data. Dec 27, 2024
@frank-zsy
Copy link
Contributor

The default column name for the Company is name, so if you change the data schema, you need to reselect the table header config to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants