Skip to content

Commit

Permalink
Fix colors in folder sidebar (#7614)
Browse files Browse the repository at this point in the history
* update antd to 5.14

* fix colors in folder tree sidebar

* dont import Upload from antd/lib
  • Loading branch information
philippotto authored Feb 8, 2024
1 parent d771585 commit 1a8fb20
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FileExcelOutlined } from "@ant-design/icons";
import { Button } from "antd";
import Upload, { UploadChangeParam, UploadFile } from "antd/lib/upload";
import { Button, Upload } from "antd";
import { UploadChangeParam, UploadFile } from "antd/lib/upload";
import { AsyncButton } from "components/async_clickables";
import { readFileAsText } from "libs/read_file";
import Toast from "libs/toast";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Modal,
Divider,
List,
Upload,
} from "antd";
import { connect } from "react-redux";
import React, { useEffect, useState } from "react";
Expand All @@ -32,7 +33,7 @@ import DatasetSettingsDataTab, {
} from "dashboard/dataset/dataset_settings_data_tab";
import { FormItemWithInfo, Hideable } from "dashboard/dataset/helper_components";
import FolderSelection from "dashboard/folders/folder_selection";
import Upload, { RcFile, UploadChangeParam, UploadFile } from "antd/lib/upload";
import { RcFile, UploadChangeParam, UploadFile } from "antd/lib/upload";
import { UnlockOutlined } from "@ant-design/icons";
import { Unicode } from "oxalis/constants";
import { readFileAsText } from "libs/read_file";
Expand Down
4 changes: 2 additions & 2 deletions frontend/javascripts/dashboard/folders/folder_tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import {
} from "../dataset/dataset_collection_context";

import { DeleteOutlined, EditOutlined, PlusOutlined } from "@ant-design/icons";
import { Dropdown, Modal, MenuProps } from "antd";
import { Dropdown, Modal, MenuProps, Tree } from "antd";
import Toast from "libs/toast";
import { DragObjectWithType } from "react-dnd";
import Tree, { DataNode, DirectoryTreeProps } from "antd/lib/tree";
import { DataNode, DirectoryTreeProps } from "antd/lib/tree";
import { Key } from "antd/lib/table/interface";
import memoizeOne from "memoize-one";
import classNames from "classnames";
Expand Down
1 change: 1 addition & 0 deletions frontend/javascripts/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function getAntdTheme(userTheme: Theme) {
},
Tree: {
colorBgContainer: "transparent",
directoryNodeSelectedBg: ColorWKBlue,
},
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"@types/three": "^0.142.0",
"@zip.js/zip.js": "^2.7.32",
"ansi-to-react": "^6.1.6",
"antd": "^5.13.0",
"antd": "^5.14.0",
"ball-morphology": "^0.1.0",
"base64-js": "^1.2.1",
"beautiful-react-hooks": "^3.11.1",
Expand Down
106 changes: 60 additions & 46 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
dependencies:
"@ctrl/tinycolor" "^3.6.1"

"@ant-design/cssinjs@^1.18.2":
"@ant-design/cssinjs@^1.18.4":
version "1.18.4"
resolved "https://registry.yarnpkg.com/@ant-design/cssinjs/-/cssinjs-1.18.4.tgz#428411628f216acb71a2423d5332f6e6af7010b5"
integrity sha512-IrUAOj5TYuMG556C9gdbFuOrigyhzhU5ZYpWb3gYTxAwymVqRbvLzFCZg6OsjLBR6GhzcxYF3AhxKmjB+rA2xA==
Expand All @@ -59,10 +59,10 @@
resolved "https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.1.0.tgz#480b025f4b20ef7fe8f47d4a4846e4fee84ea06c"
integrity sha512-Fi03PfuUqRs76aI3UWYpP864lkrfPo0hluwGqh7NJdLhvH4iRDc3jbJqZIvRDLHKbXrvAfPPV3+zjUccfFvWOQ==

"@ant-design/icons-svg@^4.3.0":
version "4.3.1"
resolved "https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.3.1.tgz#4b2f65a17d4d32b526baa6414aca2117382bf8da"
integrity sha512-4QBZg8ccyC6LPIRii7A0bZUk3+lEDCLnhB+FVsflGdcWPPmV+j3fire4AwwoqHV/BibgvBmR9ZIo4s867smv+g==
"@ant-design/icons-svg@^4.4.0":
version "4.4.2"
resolved "https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz#ed2be7fb4d82ac7e1d45a54a5b06d6cecf8be6f6"
integrity sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==

"@ant-design/icons@^4.6.2":
version "4.6.2"
Expand All @@ -75,13 +75,13 @@
classnames "^2.2.6"
rc-util "^5.9.4"

"@ant-design/icons@^5.2.6":
version "5.2.6"
resolved "https://registry.yarnpkg.com/@ant-design/icons/-/icons-5.2.6.tgz#2d4a9a37f531eb2a20cebec01d6fb69cf593900d"
integrity sha512-4wn0WShF43TrggskBJPRqCD0fcHbzTYjnaoskdiJrVHg86yxoZ8ZUqsXvyn4WUqehRiFKnaclOhqk9w4Ui2KVw==
"@ant-design/icons@^5.3.0":
version "5.3.0"
resolved "https://registry.yarnpkg.com/@ant-design/icons/-/icons-5.3.0.tgz#b4b57908eb4f4c31777424f10d341f6823a77d2b"
integrity sha512-69FgBsIkeCjw72ZU3fJpqjhmLCPrzKGEllbrAZK7MUdt1BrKsyG6A8YDCBPKea27UQ0tRXi33PcjR4tp/tEXMg==
dependencies:
"@ant-design/colors" "^7.0.0"
"@ant-design/icons-svg" "^4.3.0"
"@ant-design/icons-svg" "^4.4.0"
"@babel/runtime" "^7.11.2"
classnames "^2.2.6"
rc-util "^5.31.1"
Expand Down Expand Up @@ -1232,7 +1232,7 @@
classnames "^2.3.2"
rc-util "^5.24.4"

"@rc-component/tour@~1.12.2":
"@rc-component/tour@~1.12.3":
version "1.12.3"
resolved "https://registry.yarnpkg.com/@rc-component/tour/-/tour-1.12.3.tgz#ede2ad9272126a2ea1429a6655ed09f4d065fbc9"
integrity sha512-U4mf1FiUxGCwrX4ed8op77Y8VKur+8Y/61ylxtqGbcSoh1EBC7bWd/DkLu0ClTUrKZInqEi1FL7YgFtnT90vHA==
Expand All @@ -1243,7 +1243,7 @@
classnames "^2.3.2"
rc-util "^5.24.4"

"@rc-component/trigger@^1.17.0", "@rc-component/trigger@^1.18.0", "@rc-component/trigger@^1.18.2", "@rc-component/trigger@^1.3.6", "@rc-component/trigger@^1.5.0", "@rc-component/trigger@^1.7.0":
"@rc-component/trigger@^1.17.0", "@rc-component/trigger@^1.18.0", "@rc-component/trigger@^1.3.6", "@rc-component/trigger@^1.5.0", "@rc-component/trigger@^1.7.0":
version "1.18.2"
resolved "https://registry.yarnpkg.com/@rc-component/trigger/-/trigger-1.18.2.tgz#dc52c4c66fa8aaccaf0710498f2429fc05454e3b"
integrity sha512-jRLYgFgjLEPq3MvS87fIhcfuywFSRDaDrYw1FLku7Cm4esszvzTbA0JBsyacAyLrK9rF3TiHFcvoEDMzoD3CTA==
Expand All @@ -1255,6 +1255,18 @@
rc-resize-observer "^1.3.1"
rc-util "^5.38.0"

"@rc-component/trigger@^1.18.3":
version "1.18.3"
resolved "https://registry.yarnpkg.com/@rc-component/trigger/-/trigger-1.18.3.tgz#b323b9e33f2700ca8d24a96f21401ab7b0eafdcd"
integrity sha512-Ksr25pXreYe1gX6ayZ1jLrOrl9OAUHUqnuhEx6MeHnNa1zVM5Y2Aj3Q35UrER0ns8D2cJYtmJtVli+i+4eKrvA==
dependencies:
"@babel/runtime" "^7.23.2"
"@rc-component/portal" "^1.1.0"
classnames "^2.3.2"
rc-motion "^2.0.0"
rc-resize-observer "^1.3.1"
rc-util "^5.38.0"

"@react-dnd/asap@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@react-dnd/asap/-/asap-4.0.0.tgz#b300eeed83e9801f51bd66b0337c9a6f04548651"
Expand Down Expand Up @@ -2791,25 +2803,25 @@ ansi-to-react@^6.1.6:
anser "^1.4.1"
escape-carriage "^1.3.0"

antd@^5.13.0:
version "5.13.2"
resolved "https://registry.yarnpkg.com/antd/-/antd-5.13.2.tgz#a7e79b63cb9c7b0c233a00f5a199d5ca578c500e"
integrity sha512-P+N8gc0NOPy2WqJj/57Ey3dZUmb7nEUwAM+CIJaR5SOEjZnhEtMGRJSt+3lnhJ3MNRR39aR6NYkRVp2mYfphiA==
antd@^5.14.0:
version "5.14.0"
resolved "https://registry.yarnpkg.com/antd/-/antd-5.14.0.tgz#a9e75aad7c1c6c1310504c845ef000f09172f9ac"
integrity sha512-LdRJnYd8dTykR2xr483zNE0mBKmWHMLqmjkfcX4otQRD0kaZjOwSmN74vMC70jnMM8oqhWILFjWy3dEy/E1W6w==
dependencies:
"@ant-design/colors" "^7.0.2"
"@ant-design/cssinjs" "^1.18.2"
"@ant-design/icons" "^5.2.6"
"@ant-design/cssinjs" "^1.18.4"
"@ant-design/icons" "^5.3.0"
"@ant-design/react-slick" "~1.0.2"
"@ctrl/tinycolor" "^3.6.1"
"@rc-component/color-picker" "~1.5.1"
"@rc-component/mutate-observer" "^1.1.0"
"@rc-component/tour" "~1.12.2"
"@rc-component/trigger" "^1.18.2"
"@rc-component/tour" "~1.12.3"
"@rc-component/trigger" "^1.18.3"
classnames "^2.5.1"
copy-to-clipboard "^3.3.3"
dayjs "^1.11.10"
qrcode.react "^3.1.0"
rc-cascader "~3.21.0"
rc-cascader "~3.21.2"
rc-checkbox "~3.1.0"
rc-collapse "~3.7.2"
rc-dialog "~9.3.4"
Expand All @@ -2818,26 +2830,26 @@ antd@^5.13.0:
rc-field-form "~1.41.0"
rc-image "~7.5.1"
rc-input "~1.4.3"
rc-input-number "~8.6.1"
rc-input-number "~9.0.0"
rc-mentions "~2.10.1"
rc-menu "~9.12.4"
rc-motion "^2.9.0"
rc-notification "~5.3.0"
rc-pagination "~4.0.4"
rc-picker "~3.14.6"
rc-picker "~4.0.0-alpha.43"
rc-progress "~3.5.1"
rc-rate "~2.12.0"
rc-resize-observer "^1.4.0"
rc-segmented "~2.2.2"
rc-segmented "~2.3.0"
rc-select "~14.11.0"
rc-slider "~10.5.0"
rc-steps "~6.0.1"
rc-switch "~4.1.0"
rc-table "~7.37.0"
rc-table "~7.39.0"
rc-tabs "~14.0.0"
rc-textarea "~1.6.3"
rc-tooltip "~6.1.3"
rc-tree "~5.8.2"
rc-tree "~5.8.5"
rc-tree-select "~5.17.0"
rc-upload "~4.5.2"
rc-util "^5.38.1"
Expand Down Expand Up @@ -10803,7 +10815,7 @@ [email protected]:
iconv-lite "0.4.24"
unpipe "1.0.0"

rc-cascader@~3.21.0:
rc-cascader@~3.21.2:
version "3.21.2"
resolved "https://registry.yarnpkg.com/rc-cascader/-/rc-cascader-3.21.2.tgz#3421841131cdc15157201fefd955da31f409ac85"
integrity sha512-J7GozpgsLaOtzfIHFJFuh4oFY0ePb1w10twqK6is3pAkqHkca/PsokbDr822KIRZ8/CK8CqevxohuPDVZ1RO/A==
Expand Down Expand Up @@ -10887,10 +10899,10 @@ rc-image@~7.5.1:
rc-motion "^2.6.2"
rc-util "^5.34.1"

rc-input-number@~8.6.1:
version "8.6.1"
resolved "https://registry.yarnpkg.com/rc-input-number/-/rc-input-number-8.6.1.tgz#f0ebc66c34c8775a3245953521abcbd240d7fe03"
integrity sha512-gaAMUKtUKLktJ3Yx93tjgYY1M0HunnoqzPEqkb9//Ydup4DcG0TFL9yHBA3pgVdNIt5f0UWyHCgFBj//JxeD6A==
rc-input-number@~9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/rc-input-number/-/rc-input-number-9.0.0.tgz#47da6eaf95b0cf566fcdf68196c4dc82b8c8f166"
integrity sha512-RfcDBDdWFFetouWFXBA+WPEC8LzBXyngr9b+yTLVIygfFu7HiLRGn/s/v9wwno94X7KFvnb28FNynMGj9XJlDQ==
dependencies:
"@babel/runtime" "^7.10.1"
"@rc-component/mini-decimal" "^1.0.1"
Expand Down Expand Up @@ -10978,7 +10990,7 @@ rc-notification@~5.3.0:
rc-motion "^2.9.0"
rc-util "^5.20.1"

rc-overflow@^1.3.1:
rc-overflow@^1.3.1, rc-overflow@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/rc-overflow/-/rc-overflow-1.3.2.tgz#72ee49e85a1308d8d4e3bd53285dc1f3e0bcce2c"
integrity sha512-nsUm78jkYAoPygDAcGZeC2VwIg/IBGSodtOY3pMof4W3M9qRJgqaDYm03ZayHlde3I6ipliAxbN0RUcGf5KOzw==
Expand All @@ -10997,15 +11009,17 @@ rc-pagination@~4.0.4:
classnames "^2.3.2"
rc-util "^5.38.0"

rc-picker@~3.14.6:
version "3.14.6"
resolved "https://registry.yarnpkg.com/rc-picker/-/rc-picker-3.14.6.tgz#60fc34f9883272e10f6c593fa6d82e7e7a70781b"
integrity sha512-AdKKW0AqMwZsKvIpwUWDUnpuGKZVrbxVTZTNjcO+pViGkjC1EBcjMgxVe8tomOEaIHJL5Gd13vS8Rr3zzxWmag==
rc-picker@~4.0.0-alpha.43:
version "4.0.0-alpha.44"
resolved "https://registry.yarnpkg.com/rc-picker/-/rc-picker-4.0.0-alpha.44.tgz#f379a9fc3a151dace4b8da3cf7866b7d7550cefa"
integrity sha512-OvzzTS4UZDT1qRfv4PRK/+LDpXWJ6sD0zv5LPC7fvprihT/YVvjrOQPicWLlw5GqrrqP4hqbQkWB4KXDNlb5ag==
dependencies:
"@babel/runtime" "^7.10.1"
"@rc-component/trigger" "^1.5.0"
classnames "^2.2.1"
rc-util "^5.30.0"
rc-overflow "^1.3.2"
rc-resize-observer "^1.4.0"
rc-util "^5.38.1"

rc-progress@~3.5.1:
version "3.5.1"
Expand Down Expand Up @@ -11055,10 +11069,10 @@ rc-resize-observer@^1.3.1, rc-resize-observer@^1.4.0:
rc-util "^5.38.0"
resize-observer-polyfill "^1.5.1"

rc-segmented@~2.2.2:
version "2.2.2"
resolved "https://registry.yarnpkg.com/rc-segmented/-/rc-segmented-2.2.2.tgz#a34f12ce6c0975fc3042ae7656bcd18e1744798e"
integrity sha512-Mq52M96QdHMsNdE/042ibT5vkcGcD5jxKp7HgPC2SRofpia99P5fkfHy1pEaajLMF/kj0+2Lkq1UZRvqzo9mSA==
rc-segmented@~2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/rc-segmented/-/rc-segmented-2.3.0.tgz#b3fe080fb434a266c02e30bb62a47d2c6e094341"
integrity sha512-I3FtM5Smua/ESXutFfb8gJ8ZPcvFR+qUgeeGFQHBOvRiRKyAk4aBE5nfqrxXx+h8/vn60DQjOt6i4RNtrbOobg==
dependencies:
"@babel/runtime" "^7.11.1"
classnames "^2.2.1"
Expand Down Expand Up @@ -11105,10 +11119,10 @@ rc-switch@~4.1.0:
classnames "^2.2.1"
rc-util "^5.30.0"

rc-table@~7.37.0:
version "7.37.0"
resolved "https://registry.yarnpkg.com/rc-table/-/rc-table-7.37.0.tgz#e7cbf5c577bef27322fcd75fbdda99d1d6e70627"
integrity sha512-hEB17ktLRVfVmdo+U8MjGr+PuIgdQ8Cxj/N5lwMvP/Az7TOrQxwTMLVEDoj207tyPYLTWifHIF9EJREWwyk67g==
rc-table@~7.39.0:
version "7.39.0"
resolved "https://registry.yarnpkg.com/rc-table/-/rc-table-7.39.0.tgz#61822efc489c546e5a56edac47c9a092152b5280"
integrity sha512-7fHLMNsm/2DlGwyIMkdH2xIeRzb5I69bLsFaEVtX+gqmGhByy0wtOAgHkiOew3PtXozSJyh+iXifjLgQzWdczw==
dependencies:
"@babel/runtime" "^7.10.1"
"@rc-component/context" "^1.4.0"
Expand Down Expand Up @@ -11161,7 +11175,7 @@ rc-tree-select@~5.17.0:
rc-tree "~5.8.1"
rc-util "^5.16.1"

rc-tree@^5.7.12, rc-tree@~5.8.1, rc-tree@~5.8.2:
rc-tree@^5.7.12, rc-tree@~5.8.1, rc-tree@~5.8.5:
version "5.8.2"
resolved "https://registry.yarnpkg.com/rc-tree/-/rc-tree-5.8.2.tgz#ed3a3f7c56597bbeab3303407a9e1739bbf15621"
integrity sha512-xH/fcgLHWTLmrSuNphU8XAqV7CdaOQgm4KywlLGNoTMhDAcNR3GVNP6cZzb0GrKmIZ9yae+QLot/cAgUdPRMzg==
Expand Down

0 comments on commit 1a8fb20

Please sign in to comment.