# Release-20240220

- Merge pull request [#2947](https://github.com/tidbcloud/dbaas-ui/pull/2947) from tidbcloud/feat/feat/chat2query-v2-help-past1 [b186c741](https://github.com/tidbcloud/dbaas-ui/commit/b186c7419ed353fa36e0e7dfff49235a75e4f96d)

  - feat: chat2query v2 event tracking [160429cb](https://github.com/tidbcloud/dbaas-ui/commit/160429cb4194b5eeafe25dbe2f061c76d57f2574)

  - feat: chat2query tour entrance [5117af57](https://github.com/tidbcloud/dbaas-ui/commit/5117af57be656b1598614457ef8f00d1c6551924)

  - feat: chat2query tour entrance [2c1d0336](https://github.com/tidbcloud/dbaas-ui/commit/2c1d0336b33eed802a22551a0117a222a127591d)

  - feat: use add ; [d1e90080](https://github.com/tidbcloud/dbaas-ui/commit/d1e900805d779a02e8fc08f9dfcfb66c3130d12e)

  - Fix update sqlResultList logic [d57fe801](https://github.com/tidbcloud/dbaas-ui/commit/d57fe80197d0a5a32597ebb6bac21e4b8a2ecd82)

  - Disable fix when fixing [05829000](https://github.com/tidbcloud/dbaas-ui/commit/0582900006f78a782bdb0dfbb09e55dac0e91b57)

  - Refactor error handling in chat-api and prompt-input [91a1581b](https://github.com/tidbcloud/dbaas-ui/commit/91a1581b7f248cf7100a90df314eac2790cdd582)

  - feat: chat2query v2 fix original content [2409178c](https://github.com/tidbcloud/dbaas-ui/commit/2409178c4e791afb4626ee7e5110c177c8cc2ef7)

  - fix: chat2query v2 router [41268b6c](https://github.com/tidbcloud/dbaas-ui/commit/41268b6cde791e228b6f7390a53b8695b843e1d1)

  - Implement rejectChunk filter [d357ab99](https://github.com/tidbcloud/dbaas-ui/commit/d357ab99d76b9386f8b2b026614ab7d7f326f5e9)

  - Re-implement the rejectChunk function to handle undo issue [be549d2e](https://github.com/tidbcloud/dbaas-ui/commit/be549d2ec323c8ef7849f7d0f17d12f0ffa0f524)

  - Fix reject chunk logic [2b9572e7](https://github.com/tidbcloud/dbaas-ui/commit/2b9572e7846a6c1d4d0314d068b7f3fb6476414d)

  - Not allow user to change selection after trigger prompt input [fe719c33](https://github.com/tidbcloud/dbaas-ui/commit/fe719c33ecf51308fbcecc176f312014acd1b830)

  - Set prompt-input selection background [57b0d9d0](https://github.com/tidbcloud/dbaas-ui/commit/57b0d9d0595f7e22e17185b346220ba13bedb4d2)

  - Update AI placeholder styling and selection background color [a6ac9d0a](https://github.com/tidbcloud/dbaas-ui/commit/a6ac9d0aeb3a3874ac7b3771f1e19cb410ab9e90)

  - Remove border left for ai placeholder [fb2374ef](https://github.com/tidbcloud/dbaas-ui/commit/fb2374efa283e2f206ea4fe67598052df8298d2e)

  - Fix data.fileId type in SqlEditorV2 types [047de19d](https://github.com/tidbcloud/dbaas-ui/commit/047de19d7d3ddfaf37381b2c3027d639bd67f13e)

  - Refactor SQL editor to handle nearby statements [d5a2f4ef](https://github.com/tidbcloud/dbaas-ui/commit/d5a2f4ef2711171eee774b46d18041c48f5c076a)

  - Fix SQL statement type detection and enable prompt input and tooltip hint only for non-use statements [7cfcc3ab](https://github.com/tidbcloud/dbaas-ui/commit/7cfcc3aba5504bf878ef31d39aea2bb54212b8b7)

  - fix: chat2query v2 ⌘ error [0e4c037e](https://github.com/tidbcloud/dbaas-ui/commit/0e4c037e139c5e27e87819932832bfa6fc749d72)

  - fix: chart2query ui [84e31553](https://github.com/tidbcloud/dbaas-ui/commit/84e31553307527fb643d7c94c7c24630c58f9126)

  - Move cursor after accpet [cce3f304](https://github.com/tidbcloud/dbaas-ui/commit/cce3f30427fd70b1e2d0758e57d25b3b0875741d)

  - Fix ai placeholder overlapped issue [18ead7cc](https://github.com/tidbcloud/dbaas-ui/commit/18ead7ccaaa41b08e40c061e8ade0d50b716b14b)

  - Implement get session db for db linter [2a948d74](https://github.com/tidbcloud/dbaas-ui/commit/2a948d74f90d755476a40cb494529ae53eb98dfb)

  - Rename [0013b487](https://github.com/tidbcloud/dbaas-ui/commit/0013b4878fb3f4d902cfa67613dc2eb172fec1c6)

  - fix: ai function button dark mode [81c76ed4](https://github.com/tidbcloud/dbaas-ui/commit/81c76ed417fc7f8a4478e31ab8ef56c929d517d3)

  - fix: chat2query v2 operation button ui [8bc6d3e4](https://github.com/tidbcloud/dbaas-ui/commit/8bc6d3e427e811a2e01a4e360ed524c9f789e86e)

  - fix: accept content focus remove [122466d0](https://github.com/tidbcloud/dbaas-ui/commit/122466d0ae84c4f31844daa0c5c95bb1138d3229)

  - fix: linter dark mode [4ec2492e](https://github.com/tidbcloud/dbaas-ui/commit/4ec2492ece1b6a4b731e3d1fd8296996e4d3ab59)

  - feat: chat2queryv2 dark mode [d7a5d8ec](https://github.com/tidbcloud/dbaas-ui/commit/d7a5d8ec3ed455f024a10653451e9806324a3d51)

  - Remove hardcode file id [9739b193](https://github.com/tidbcloud/dbaas-ui/commit/9739b1931d8945bbcefc3107f22424fe6b0d4be5)

  - Add support for tracking DDL statements in SQL editor [c0401c49](https://github.com/tidbcloud/dbaas-ui/commit/c0401c499ffde521e7e46b355c6b0eae04633853)

  - Fix typo in sideMenuActiveIndex variable name [6dd5869d](https://github.com/tidbcloud/dbaas-ui/commit/6dd5869d22ded594e35a86bca7cfbe3f63da04ba)

  - Rename isApple to isAppleOs [2ca7bb18](https://github.com/tidbcloud/dbaas-ui/commit/2ca7bb18ddf39c3a5152090c61511aa44d22642d)

  - Show different hotkey in different os [1f2414bb](https://github.com/tidbcloud/dbaas-ui/commit/1f2414bbe8879b3f340aa9605b11910a0ae96bd1)

  - Hide placeholder when prompt input is active [c36d11ad](https://github.com/tidbcloud/dbaas-ui/commit/c36d11ad9d25d5139c66c49cdf123ff6c7feb73d)

  - Update chat2query route to use v1 or v2 based on config [07945464](https://github.com/tidbcloud/dbaas-ui/commit/07945464725bb356e1c4bab06610b7b653d52217)

  - Implement fix by chat2query [7805a9bb](https://github.com/tidbcloud/dbaas-ui/commit/7805a9bb4ed4e2ff25f84805d4aaeb860541f11f)

  - feat: chat2query v2 add run hotkey [d3ebf44a](https://github.com/tidbcloud/dbaas-ui/commit/d3ebf44a10600477d38f5942596b62180f6cac0e)

  - feat: add chinese character linter [bbd89171](https://github.com/tidbcloud/dbaas-ui/commit/bbd89171669df4b45b730e80d2b59590658bdd83)

  - fix: run result status [37fee539](https://github.com/tidbcloud/dbaas-ui/commit/37fee5399e345b482125649652616ae0afaa9c3c)

  - fix: run result [e7ab2856](https://github.com/tidbcloud/dbaas-ui/commit/e7ab28568628ea29512d1c583e83f72b20259d2f)

  - fix: chat2queryv2 run error [5ab6b9db](https://github.com/tidbcloud/dbaas-ui/commit/5ab6b9dbf45a0a2e5888de342e9e77079d45e7d6)

  - feat: chat2query run error wip [b7352111](https://github.com/tidbcloud/dbaas-ui/commit/b73521117b9946d06c757cbcb097e5c43a1c1be2)

  - Add custom icons to autocompletion options [89b6660a](https://github.com/tidbcloud/dbaas-ui/commit/89b6660a08581a32d820acab7fd884beb713262c)

  - Add SQL formatting feature to the Editor component [16506409](https://github.com/tidbcloud/dbaas-ui/commit/165064098020f851bc64e3d4021bb62268407369)

  - Reverse targetStatements array in Editor component [1e995aba](https://github.com/tidbcloud/dbaas-ui/commit/1e995aba2ad01da3257fa6d3ed084a084b675d8b)

  - Run sql [9c8885ea](https://github.com/tidbcloud/dbaas-ui/commit/9c8885ead75f8ca155ba6b1bf0d9860a08eee2f5)

  - Implement chat-context-provider [ff402bb2](https://github.com/tidbcloud/dbaas-ui/commit/ff402bb228991a910304eef3ee5e7efdae162b35)

  - Rename context [758486a8](https://github.com/tidbcloud/dbaas-ui/commit/758486a84f935525a7bc90cf0db75aa89d25340e)

  - Add deleteEditor function to remove editor from cache [c68b9d45](https://github.com/tidbcloud/dbaas-ui/commit/c68b9d45f3e5b1fcf20a5572eac797cbfb2cafde)

  - Generate sqlConfig [d08fe481](https://github.com/tidbcloud/dbaas-ui/commit/d08fe481ba5343c8239fbcf1315d65640825183b)

  - Cleanup [e2a82a6f](https://github.com/tidbcloud/dbaas-ui/commit/e2a82a6f2866eb532c8f83b783f147e64f1d1b48)

  - Fix dependencies [35ff5bd8](https://github.com/tidbcloud/dbaas-ui/commit/35ff5bd8e92451089324a2fb8a5acc3a68bba530)

  - fix cmd+i [cc8f64d9](https://github.com/tidbcloud/dbaas-ui/commit/cc8f64d97eebc37168bb246ec4897aae51318949)

  - Add rotate animation [63bd576b](https://github.com/tidbcloud/dbaas-ui/commit/63bd576ba0674d7027a999eb6b948312f66a86fd)

  - Fix typo [6532ed89](https://github.com/tidbcloud/dbaas-ui/commit/6532ed892511b7225ff7fc5a0f3199c9b93e5fad)

  - Remove unused code [41017d9d](https://github.com/tidbcloud/dbaas-ui/commit/41017d9dbff8fe38612dbcbe1720b3611e7b5b1b)

  - clean up code [4b6103c8](https://github.com/tidbcloud/dbaas-ui/commit/4b6103c8432003abcd0d42cdac3d521e5ee5dc7c)

  - Add AI assistant to SQL editor [a4b9ae05](https://github.com/tidbcloud/dbaas-ui/commit/a4b9ae05355e9a8f3f420efc292864330834cd56)

  - Add saveHandler function to Editor component [3932476f](https://github.com/tidbcloud/dbaas-ui/commit/3932476f84be352c3e795c5d870c40ef6871df19)

  - Fix linting issue and enable cur-sql-gutter [780868f9](https://github.com/tidbcloud/dbaas-ui/commit/780868f9307dbe48b7fcc8f35d903de2f8b265c5)

  - wip [97cf0137](https://github.com/tidbcloud/dbaas-ui/commit/97cf0137296475b40847db446164b8d9535f59f6)

  - wip [8fcd97be](https://github.com/tidbcloud/dbaas-ui/commit/8fcd97be4020fac54ac4f06a3e6c5598676b92bd)

  - fix style [cd9c74b0](https://github.com/tidbcloud/dbaas-ui/commit/cd9c74b041904e6c80dd8b6e1251a820ecf97daf)

  - wip [751d526d](https://github.com/tidbcloud/dbaas-ui/commit/751d526dca6a834bda0304758ced6a57f0289ef4)

  - Replace [d64e94e7](https://github.com/tidbcloud/dbaas-ui/commit/d64e94e7a1f41bfcc277c412695a89e37c5a0bd1)

  - Fix type error [4900c90e](https://github.com/tidbcloud/dbaas-ui/commit/4900c90eac8d0ec68818f7e359a10ed6beeb0e7a)

  - Install deps [7fa1c162](https://github.com/tidbcloud/dbaas-ui/commit/7fa1c162232996cf8ddc274834ef6ae824e05d3d)

  - Copy sql-code-editor [29d0e061](https://github.com/tidbcloud/dbaas-ui/commit/29d0e061fa6c7f6b2c97e824cde4c66c42a3d2d6)

  - Add support for Chat2Query V2 in Sidebar and Routes [a6bca764](https://github.com/tidbcloud/dbaas-ui/commit/a6bca764dc4fd67b76e0ceb770c460e3aedd5e35)

  - Copy SqlEditor to SqlEditorV2 [5610246c](https://github.com/tidbcloud/dbaas-ui/commit/5610246c04a56e4ae8512644b2125ef921c4003e)

- Merge pull request [#2932](https://github.com/tidbcloud/dbaas-ui/pull/2932) from tidbcloud/feat/concurrent_dm [9c99deac](https://github.com/tidbcloud/dbaas-ui/commit/9c99deace931ee16426e9a25220de20de056ac6a)

- Merge pull request [#2940](https://github.com/tidbcloud/dbaas-ui/pull/2940) from tidbcloud/fix/adroll-layout [dd883454](https://github.com/tidbcloud/dbaas-ui/commit/dd883454e782e571250025ae23ba4606b52b06ec)

- Merge pull request [#2942](https://github.com/tidbcloud/dbaas-ui/pull/2942) from tidbcloud/fix/dedicated-creation-cidr [073c9011](https://github.com/tidbcloud/dbaas-ui/commit/073c9011d2f0382dd847ebb4b40a1a09aa10271b)

- Merge pull request [#2943](https://github.com/tidbcloud/dbaas-ui/pull/2943) from tidbcloud/fix/org-settings-nav [1461bee0](https://github.com/tidbcloud/dbaas-ui/commit/1461bee0ca8f031b15dc6c3eeebd034d0e7ca5b6)

  - fix(org): correct redirect pathname [d0d90055](https://github.com/tidbcloud/dbaas-ui/commit/d0d90055404609d9d04f4cf5ff157f73ab5cf1d0)

  - refine(network, dedicated/creation): sync cidr network addresses [92181be2](https://github.com/tidbcloud/dbaas-ui/commit/92181be224e950e592c4f7fb288c5a53d34bb7c0)

  - feat: set absolute for adroll [91b78f0c](https://github.com/tidbcloud/dbaas-ui/commit/91b78f0cab7a7aaa821f0e28f4648d30af569386)

  - refine(dedicated/creation): disable "create" button if form errors occurs [d10b9f0f](https://github.com/tidbcloud/dbaas-ui/commit/d10b9f0fd9313d3c073934f3c195cbb2d6f821fa)

  - refine(dedicated/creation): improve error message about setting up cidr [7f1bed5b](https://github.com/tidbcloud/dbaas-ui/commit/7f1bed5b93d1d9b75a5f2bbc64fa9971f31d6cd3)

  - refine(store): remove unnecessary regional cidr feat flag [78bf7e28](https://github.com/tidbcloud/dbaas-ui/commit/78bf7e28902e7de5ed81b27053732871ee804c52)

  - refine(dedicated/creation): remove deprecated project cidr [f3ceadc9](https://github.com/tidbcloud/dbaas-ui/commit/f3ceadc97421e6ce17076ecd975b9d54eb116726)

  - refine(cluster/creation): remove unnecessary store values [48e02667](https://github.com/tidbcloud/dbaas-ui/commit/48e026677cca89af5e658590719dc5a4d0ff9b2c)

  - refine(network): remove unnecessary project cidr [d1a5aa81](https://github.com/tidbcloud/dbaas-ui/commit/d1a5aa81c98f40bf699469127d3f96b3f1ba128e)

  - fix: adroll layout [6ced364d](https://github.com/tidbcloud/dbaas-ui/commit/6ced364d1247aeb958c1038e16ec460a73d4a879)

- Merge pull request [#2937](https://github.com/tidbcloud/dbaas-ui/pull/2937) from tidbcloud/hotfix/dedicated-cidr [6bf3f1e1](https://github.com/tidbcloud/dbaas-ui/commit/6bf3f1e1e8dfe5153b044cd0f195246f9d52c411)

  - chore: bump patch version [05d6d39b](https://github.com/tidbcloud/dbaas-ui/commit/05d6d39bdfd7f3b32f5d5d6ddcc67eb83645f425)

  - refine(dedicated/creation, network/cidr): sync network addresses update [e671bf30](https://github.com/tidbcloud/dbaas-ui/commit/e671bf3055eef64f4de350d036ac355081a92fac)

  - fix(network/cidr): clear CIDR errors after the verification succeeds [5dca98c4](https://github.com/tidbcloud/dbaas-ui/commit/5dca98c437eb159c0f1488e3c5e4f8aa794f4545)

  - fix(dedicated/creation): clear CIDR errors after the verification succeeds [4a1722cd](https://github.com/tidbcloud/dbaas-ui/commit/4a1722cd8b5b3cf8bb010629e645ae598134e384)

  - fix(dedicated/creation): fix CIDR validation [ba2c9f47](https://github.com/tidbcloud/dbaas-ui/commit/ba2c9f47f0bbe7d21bb12cee16125c32de9415f3)

  - fix(network/cidr): fix CIDR validation on the creation modal [70ab57b8](https://github.com/tidbcloud/dbaas-ui/commit/70ab57b8b1d2a2daf337329f85808ac1ff30eb42)

  - refine(dedicated/creation): sync gcp cidr scope update [c711128b](https://github.com/tidbcloud/dbaas-ui/commit/c711128b9319c017332fa00967095b4490e576dc)

  - refine(network/cidr): sync gcp cidr scope update [30fbb05c](https://github.com/tidbcloud/dbaas-ui/commit/30fbb05c6aaafdbf70be6bf8eaee6f4bcb809dd9)

  - fix(network/cidr): correct cidr error tips [4eee6d80](https://github.com/tidbcloud/dbaas-ui/commit/4eee6d80f2b059c7753f50e4dc3445f0d1be3ced)

  - fix(dedicated/creation): correct regional CIDR error tips [f7feef99](https://github.com/tidbcloud/dbaas-ui/commit/f7feef995e92a00d7075365c6544e441a6490265)

  - refine(error): improve `pickErrorResponse` [ff3b1732](https://github.com/tidbcloud/dbaas-ui/commit/ff3b17329c720c6fd8974d87ab1d9f146a30fbc1)

- Merge pull request [#2934](https://github.com/tidbcloud/dbaas-ui/pull/2934) from tidbcloud/hotfix/20240205-reponse-error [cfbceff0](https://github.com/tidbcloud/dbaas-ui/commit/cfbceff0171b0cf3e95c96a9c5dc7f508175dda6)

  - feat(dm): respect multi import flag for dm creation entry [6b6468d3](https://github.com/tidbcloud/dbaas-ui/commit/6b6468d3bb87a284797ca0847d25c31b0d46b63d)

- Merge pull request [#2930](https://github.com/tidbcloud/dbaas-ui/pull/2930) from tidbcloud/refactor/ci-and-e2e-test [6783acba](https://github.com/tidbcloud/dbaas-ui/commit/6783acbaf894467040b3ae9af1f9b06ce130edbb)

  - fix: donot run dedicated test as default [b081d19d](https://github.com/tidbcloud/dbaas-ui/commit/b081d19d8e463d66704cab4a7ffc8521d28f9285)

  - fix: snapshoot name and use toHaveScreenshot instead [c93a39d8](https://github.com/tidbcloud/dbaas-ui/commit/c93a39d822b439699eecae6d68849e2fae159aec)

  - fix: snapshoot name and use toHaveScreenshot instead [cee72206](https://github.com/tidbcloud/dbaas-ui/commit/cee72206974e013a7ccc44d5a5a3a57b338ff54d)

  - fix: cannot pass empty object to projects in playwright.config [fac08684](https://github.com/tidbcloud/dbaas-ui/commit/fac086846668f856d53db5ff596ec235e6a9ef75)

  - feat: use correct path [13073d00](https://github.com/tidbcloud/dbaas-ui/commit/13073d00b281c3e84d9995098e6c1276297298e2)

  - fix: retry 2 times [c4e76444](https://github.com/tidbcloud/dbaas-ui/commit/c4e764448f855b9d1dcf1629c3e54ff387ca4087)

  - fix: do not retry [e7578a6a](https://github.com/tidbcloud/dbaas-ui/commit/e7578a6aec1b7eb610721c5f2042248c05fa8d33)

  - fix: update plugin version [d66995b4](https://github.com/tidbcloud/dbaas-ui/commit/d66995b49650381cc9c3aeb58c889b4d4b469a65)

  - fix: import path and type error [4eff39bd](https://github.com/tidbcloud/dbaas-ui/commit/4eff39bd62c03906a45cddb2bb6dccbd7ea480a9)

  - feat: add 60s sleep [e3dfd842](https://github.com/tidbcloud/dbaas-ui/commit/e3dfd8422a4d6b774ccf95501901bf1fc455229a)

  - feat: run dedicated test only in prod env [95ac12b3](https://github.com/tidbcloud/dbaas-ui/commit/95ac12b3a2d4c2bce5037fb2adc83c3b4df8b54b)

  - feat: fix test [22dc7253](https://github.com/tidbcloud/dbaas-ui/commit/22dc725304c0230835927a12269ed459e92b3b82)

  - refactor: add env ts declaration [aeed9efb](https://github.com/tidbcloud/dbaas-ui/commit/aeed9efbb830b9020167c51696106d6c1a32bbb3)

  - refactor: rename public cluster [faef94d2](https://github.com/tidbcloud/dbaas-ui/commit/faef94d2c1efa2b23eb7efd263c10295160b9020)

  - test: add dedicated connect test [c2b9573d](https://github.com/tidbcloud/dbaas-ui/commit/c2b9573d3e805da05d4251ac43aa51bdc9d57592)

  - refactor: test 2 serverless [9e31e6dc](https://github.com/tidbcloud/dbaas-ui/commit/9e31e6dcc6390cb0be44240206c8bd691801aa4d)

  - feat: update uses: actions/cache version [0c7d8896](https://github.com/tidbcloud/dbaas-ui/commit/0c7d8896662f6900ba0eb5baa5360f773376be31)

  - feat: rename test [1dcb233c](https://github.com/tidbcloud/dbaas-ui/commit/1dcb233c6d26ae9cea7200669ced8666da346dd2)

- Merge pull request [#2929](https://github.com/tidbcloud/dbaas-ui/pull/2929) from tidbcloud/hotfix/20240201-error-message [3b1e12ac](https://github.com/tidbcloud/dbaas-ui/commit/3b1e12ac15f89f00f7ae55f70be4f33a224b158f)

- Merge pull request [#2927](https://github.com/tidbcloud/dbaas-ui/pull/2927) from tidbcloud/hotfix/20240131-dataservice-apikey [0a150097](https://github.com/tidbcloud/dbaas-ui/commit/0a15009704b5bf584352849e53617f48b158842f)

- Merge pull request [#2920](https://github.com/tidbcloud/dbaas-ui/pull/2920) from tidbcloud/fix/audit-log-event-selector-style [1a5b0323](https://github.com/tidbcloud/dbaas-ui/commit/1a5b0323a1ccae5fab99629d7a4cc11825b08309)

- Merge pull request [#2919](https://github.com/tidbcloud/dbaas-ui/pull/2919) from tidbcloud/release-20240130 [e2bef96b](https://github.com/tidbcloud/dbaas-ui/commit/e2bef96b1366b8d8211a840f2941cf9ff5118668)
