Laurent Nguyen
a1f9082415
Merge branch 'master' into users/languye/improve-filter-view
2024-05-03 08:22:31 +02:00
Laurent Nguyen
3c9a939c31
Collapse filter when query is executed
2024-05-02 10:07:58 +02:00
Laurent Nguyen
ad41684a7a
Merge branch 'master' into users/languye/improve-filter-view
2024-05-02 08:13:17 +02:00
Laurent Nguyen
90ade59676
Port keyboard shortcuts from commitId 1f4d0f2
2024-05-01 16:35:38 +02:00
Laurent Nguyen
f3732a076c
Remove comments and unused code
2024-05-01 16:09:38 +02:00
Laurent Nguyen
48b3e05dee
Properly handle activetab
2024-05-01 15:43:50 +02:00
Laurent Nguyen
b8cbd77069
Remove DocumentsTab and MongoDocumentsTab. Fix build issues.
2024-05-01 13:55:07 +02:00
Laurent Nguyen
1f4d0f21f0
Merge branch 'master' into users/languye/improve-filter-view
2024-04-30 20:00:51 +02:00
Laurent Nguyen
3c6c32ecc2
Migrate unit test to DocumentsTabV2
2024-04-30 18:26:15 +02:00
Laurent Nguyen
6c3aa7e625
Remove jquery calls
2024-04-30 12:09:24 +02:00
Laurent Nguyen
29c28761b8
Replace filter ui components with fluent ui
2024-04-30 12:04:28 +02:00
Laurent Nguyen
299672435e
Implement bulk delete for nosql
2024-04-29 18:26:46 +02:00
Laurent Nguyen
0887998461
Fix typo and format
2024-04-29 14:27:00 +02:00
Laurent Nguyen
e9d713e65b
Fix filter disappearing when clicking Apply Filter
2024-04-29 10:53:35 +02:00
Laurent Nguyen
553aad5cda
Merge branch 'users/languye/improve-filter-view' of github.com:Azure/cosmos-explorer into users/languye/improve-filter-view
2024-04-26 18:07:57 +02:00
Laurent Nguyen
0ca7120b2f
Clean up dependencies and memoize internal functions and object. Move methods and object that don't depend on state outside of component.
2024-04-26 17:50:50 +02:00
Laurent Nguyen
19d3deb199
Connect cancel query button
2024-04-23 15:30:01 +02:00
Laurent Nguyen
27ad311675
Disable eslint issue from fluent library
2024-04-23 15:25:25 +02:00
Laurent Nguyen
2cc771315d
Add keyboard support to select table row
2024-04-23 15:14:33 +02:00
Laurent Nguyen
a0ade247e9
Add keyboard handlers to load more and refresh button
2024-04-23 14:34:33 +02:00
Laurent Nguyen
d273f7ac6e
Add keyboard shortcuts
2024-04-23 14:00:15 +02:00
Laurent Nguyen
11f4b4d959
Fix columns min width
2024-04-23 13:44:12 +02:00
Laurent Nguyen
13462646f6
Don't show Load More if nothing to show
2024-04-23 13:35:41 +02:00
Laurent Nguyen
b2c05fa784
Fix load more text centering
2024-04-23 13:31:38 +02:00
Laurent Nguyen
a4f284dc17
Move refresh documents button from table back to DocumentsTabV2
2024-04-23 12:14:40 +02:00
Laurent Nguyen
786ba0d2ab
Increase table width. Fix eslint issue.
2024-04-23 11:13:46 +02:00
Laurent Nguyen
49a9f4d596
Fix table coming off its container with unwanted horizontal scrollbar
2024-04-23 11:04:35 +02:00
Laurent Nguyen
86926f2d7b
Add title to table
2024-04-23 09:08:06 +02:00
Laurent Nguyen
ff5da7bbd0
Fix format
2024-04-22 17:48:25 +02:00
Laurent Nguyen
804621d275
minor update
2024-04-22 16:36:24 +02:00
Laurent Nguyen
fd040fa29c
Merge branch 'master' into users/languye/improve-filter-view
2024-04-22 16:36:03 +02:00
Laurent Nguyen
25f63095a3
Fix loadStartKey
2024-04-22 16:23:38 +02:00
Laurent Nguyen
8140f15098
Destructure props to make useEffect dependencies work
2024-04-22 16:17:27 +02:00
Laurent Nguyen
746b8c908c
Call tab when updating error flag
2024-04-22 15:31:02 +02:00
Laurent Nguyen
8299ca5f9d
Fix unused code
2024-04-22 15:22:44 +02:00
Laurent Nguyen
60a3a5ffcf
Fix isQueryCopilotSampleContainer flag
2024-04-22 15:06:27 +02:00
Laurent Nguyen
1097e66faa
Fix format
2024-04-22 14:45:14 +02:00
Laurent Nguyen
cf8533dea6
Fix resourceTokenPartitionKey code
2024-04-22 14:43:57 +02:00
Laurent Nguyen
0de2d6d899
Auto-select last document when saving new document
2024-04-22 14:21:52 +02:00
Laurent Nguyen
5445164d6f
Fix double fetch issue when clicking on an item
2024-04-22 13:54:16 +02:00
Laurent Nguyen
869e293a52
Fix comment
2024-04-22 13:44:31 +02:00
Laurent Nguyen
570a67c746
Fix bugs with clicking on newly created documents
2024-04-22 13:43:28 +02:00
Laurent Nguyen
6b3df52185
Fix mongo save new document/update document
2024-04-22 10:57:26 +02:00
Laurent Nguyen
45a64df0a2
Restore broken nosql
2024-04-22 09:17:27 +02:00
Laurent Nguyen
ffc5bb6e39
Fix table header. Remove debug statement
2024-04-19 12:36:15 +02:00
Laurent Nguyen
73d38439ff
Fix build issues
2024-04-18 16:49:34 +02:00
Laurent Nguyen
8e7fbe65fa
Add mongo support
2024-04-18 12:00:36 +02:00
Laurent Nguyen
de40c28c1f
Merge branch 'master' into users/languye/improve-filter-view
2024-04-15 16:42:48 +02:00
Laurent Nguyen
a4b07aed7a
Remove debugging info and reformat
2024-03-28 16:47:27 +01:00
Laurent Nguyen
37940fb297
Add some TODO's
2024-03-28 11:45:26 +01:00
Laurent Nguyen
98c4d31717
Fix UX issue with not discarding edit changes
2024-03-28 11:43:04 +01:00
Laurent Nguyen
8d099b9c1b
Fix UX with buttons behavior and editor display
2024-03-28 10:43:12 +01:00
Laurent Nguyen
5f92a62e4f
Fix selection behavior
2024-03-28 08:11:59 +01:00
Laurent Nguyen
c4b659cdf7
Fix show/hide delete button
2024-03-27 18:51:22 +01:00
Laurent Nguyen
91633ee85c
Fix multi delete
2024-03-27 18:42:38 +01:00
Laurent Nguyen
2f85c4f84a
Implement delete multiple docs
2024-03-27 18:23:17 +01:00
Laurent Nguyen
b686501df8
Update column header placeholder style
2024-03-27 14:27:40 +01:00
Laurent Nguyen
eef9a7c1a2
Add refresh button
2024-03-27 11:56:16 +01:00
Laurent Nguyen
55ee3854aa
Fix compil issues
2024-03-27 10:52:31 +01:00
Laurent Nguyen
fb6be32166
Fix unexpand filter and reformat
2024-03-27 10:42:27 +01:00
Laurent Nguyen
72ec5e891e
Remove debug display
2024-03-27 10:38:16 +01:00
Laurent Nguyen
c442a5a20d
Fix save new document. Implement delete.
2024-03-27 10:20:00 +01:00
Laurent Nguyen
79db486a5d
Discard and save buttons working
2024-03-27 08:47:12 +01:00
Laurent Nguyen
821904d3b3
Editing content updates buttons state
2024-03-25 16:17:04 +01:00
Laurent Nguyen
be3f234932
Merge branch 'master' into users/languye/improve-filter-view
2024-03-25 15:23:45 +01:00
Laurent Nguyen
464f8293f1
Add nav buttons
2024-03-25 15:20:38 +01:00
Laurent Nguyen
4a3b092b8b
Fix initial columns size
2024-03-20 14:22:25 +01:00
Laurent Nguyen
8f5479923d
Dynamic columns for pk
2024-03-20 13:56:09 +01:00
Laurent Nguyen
8c1a89403a
Add react editor and pass column headers
2024-03-20 11:15:25 +01:00
Laurent Nguyen
91d9e27049
Turn off fetching authorization token ( #1766 )
2024-03-14 21:56:26 +01:00
Laurent Nguyen
6f7c8f2a20
Improvement in width size. Add Load More
2024-02-29 17:22:05 +01:00
Laurent Nguyen
7881ddf2b1
Fix column sizing + cell selection
2024-02-29 15:21:53 +01:00
Laurent Nguyen
0e1fa0c54d
Merge branch 'users/languye/improve-filter-view' of github.com:Azure/cosmos-explorer into users/languye/improve-filter-view
2024-02-29 13:52:45 +01:00
Laurent Nguyen
5d970d4c1f
Fix NaN height issue
2024-02-29 13:51:17 +01:00
Laurent Nguyen
cccb7f5c73
Fix NaN height issue
2024-02-29 13:51:03 +01:00
Laurent Nguyen
82c7760af2
Adding table scrolling
2024-02-29 13:39:24 +01:00
Laurent Nguyen
c6cec71fd9
Fix selection behavior and some layout issue
2024-02-29 11:15:29 +01:00
Laurent Nguyen
16eb096fdb
Don't show Settings buttons for Fabric readonly ( #1757 )
...
* Don't show Settings buttons for Fabric readonly
* Fix format
2024-02-28 19:34:33 +01:00
Laurent Nguyen
2165d968b9
Resizable columns on the document table
2024-02-27 14:21:45 +01:00
Laurent Nguyen
ed95f0e922
Extract table in a separate component
2024-02-27 14:12:01 +01:00
Laurent Nguyen
19066fc11d
DocumentsTabV2 now properly loads documents, show partition keys and display first doc with proper selection behavior. Move it to its own folder.
2024-02-27 11:37:21 +01:00
Laurent Nguyen
68a03ac116
Document page now loads list of docs and displays selection
2024-02-26 15:27:43 +01:00
Laurent Nguyen
a36f3f7922
Hide Save/Open query buttons and New Document/Save/Update buttons for Fabric read-only ( #1755 )
...
* Remove save query button and new document buttons for Fabric. Introduce a isReadOnly flag in Fabric context
* Fix user context init
2024-02-22 18:34:30 +01:00
Laurent Nguyen
12366bb645
Revert "Hide buttons for Fabric or when no write access ( #1742 )" ( #1751 )
...
This reverts commit f403b086ad .
2024-02-21 17:22:17 +01:00
Laurent Nguyen
f403b086ad
Hide buttons for Fabric or when no write access ( #1742 )
2024-02-09 15:10:57 +01:00
Laurent Nguyen and Vsevolod Kukol
0975591945
Fabric: clean up RPC and support show/hide toolbar message ( #1680 )
...
* Use Promise for allResourceToken fabric message. Cleanup token message handling and add debounce.
* Improve rpc and update initalization flow
* Fix format
* Rev up message names for new version
* Refactor RPC with Fabric
* Build fix
* Fix build
* Fix format
* Update Message types
* Fix format
* Fix comments
* Fabric toolbar style and support to show/hide it (#1720 )
* Add Fabric specific Toolbar design
* Add Fabric message to show/hide the Toolbar
* Fix CommandBarUtil formatting
* Update zustand state on setToolbarStatus to trigger a redraw of the command bar with updated visibility
---------
Co-authored-by: Laurent Nguyen <[email protected] >
* Fix format
---------
Co-authored-by: Vsevolod Kukol <[email protected] >
2024-01-18 17:13:04 +01:00
Laurent Nguyen
e9181f19d7
Fix datatables issue and indicator not loading for Table API > Entities. Upgrade jquery. Fix right panel resize issue. ( #1713 )
...
* Fix datatables issue and indicator not loading for Table API > Entities
* Fix jquery and datatables compile issues. Add patch for datatables.net-colreorder error in types
* Fix side panel size. Fix bug resizing side panel.
* Update PanelContainerComponent unit test snapshot
* Fix commented code
2024-01-03 14:52:34 +01:00
Laurent Nguyen
1bf4683894
Make Data Explorer work on node v18 ( #1654 )
...
* Upgrade packages to enable npm i with node 18
* Fix crypto and querystring issue
* Fix webpack errors during npm start
* Upgrade monaco editor. Fix alias in webconfig
* Remove deprecated file-loader. Upgrade webpack to latest.
* Fix format
* Upgrade webpack, eslint and typescript
* Update p-retry and fluentui packages
* Revert monaco package upgrade
* Fix notebook compile errors
* Fix lint errors
* Update jest snapshots
* Fix unit tests
* Update node version to 18
* Fix compile error
* Fix compile error
* Fix format
* Turn off warning overlay for webpack devServer
* Fix format
* Re-add monaco webpack plugin and upgrade monaco-editor
* Update package-lock.json
* Fix build issue
* Move MonacoWebpackPlugin to previous place in webpack.config.js
* update package-lock.json
* Fix package-lock.json
* Update package-lock.json
* Fix export ChoiceItem not found warning for self serve. Remove warning turn off in webpack config.
* Update checkout and setup actions in for ci tests
* Disable Gallery callout
* Fix disable gallery header
* Totally disable New gallery callout
* Upgrade all github actions to latest
2023-12-13 10:24:40 -08:00
Laurent Nguyen
661f6f4bfb
Clear console and properly handle error message when querying database or containers ( #1679 )
2023-10-26 15:55:48 +00:00
Laurent Nguyen and Armando Trejo Oliver
2d3048eafe
Fabric: handle resource tokens ( #1667 )
...
* Update contracts for new all resource messages
* Add timestamp to token message signature
* Reconstruct resource tree with databases and collections parsed from token dictionary keys
* Create FabricDatabase and FabricCollection to turn off interaction
* Remove unnecessary FabricCollection derived class
* Handle resource tokens
* Bug fix
* Fix linting issues
* Fix update document
* Fix partitition keys
* Remove special case for FabricDatabase tree node
* Modify readCollections to follow normal flow with Fabric
* Move fabric databases refresh to data access and remove special case in Explorer
* Revert Explorer.tsx changes
* Disable database context menu and delete container context menu
* Remove create database/container button for Fabric
* Fix format
* Renew token logic
* Parallelize read collections calls to speed up
* Disable readDatabaseOffer, because it is too slow for now
* Reduce TOKEN_VALIDITY_MS a bit to make sure renewal happens before expiration. Receving new tokens new refreshes databases
* Add container element for Main app in HTML
* Do not handle "openTab" message anymore
* Fix style of main div
* Simplify conditional load of the fabric .css
* Fix format
* Fix tsc can't find dynamic less import
---------
Co-authored-by: Armando Trejo Oliver <[email protected] >
2023-10-19 23:12:52 +02:00
Laurent Nguyen
9b032ecae4
Turn off "New Database" for Fabric ( #1663 )
...
* Turn off "New Database" for Fabric
* Fix format
2023-10-18 08:30:45 +00:00
Laurent Nguyen
9669301d14
Remove obsolete unit test ( #1655 )
2023-10-12 08:00:08 +02:00
Laurent Nguyen and artrejo
dcd8d1637b
Implement retrieval of authorization token for Fabric via iframe rpc ( #1647 )
...
* For Fabric, send message to get Authorization token from iframe parent
* tokenProvider: set date header and return token
* Expect account endpoint on initialize message from Fabric
* Fix format
---------
Co-authored-by: artrejo <[email protected] >
2023-10-10 12:25:58 -07:00
Laurent Nguyen
f36fccd3ef
Auto-select first item in DocumentsTab. Fix selection highlighting ( #1645 )
...
* Auto-select first document in documentsTab
* Fix style row selection by making selector more specific
2023-10-10 07:19:35 +02:00
Laurent Nguyen
44d6f29edd
Revert "For Fabric, send message to get Authorization token from iframe parent"
...
This reverts commit 9db06af552 .
2023-10-06 14:35:30 +00:00
Laurent Nguyen
9db06af552
For Fabric, send message to get Authorization token from iframe parent
2023-10-06 14:33:46 +00:00
Laurent Nguyen
90c1439d34
Update prettier to latest. Remove tslint ( #1641 )
...
* Rev up prettier
* Reformat
* Remove deprecated tslint
* Remove call to tslint and update package-lock.json
2023-10-03 17:13:24 +02:00
Laurent Nguyen
d2beea3b06
Update package-lock.json to fix dependencies resolution ( #1639 )
2023-09-29 20:33:01 +02:00
Laurent Nguyen and Vsevolod Kukol
d9e142d7a6
Initial implementation of two-way communication with Fabric host ( #1622 )
...
* Listen to iframe messages. Test posting message.
* Plug new container message to show New Container dialog
* Rename message action to type
* Fix format
* Fix format
* Remove console.log() statement
* Rework fabric init flow. Implement open Collection Tab from fabric.
* Rename method to better match its purpose
* Update src/hooks/useKnockoutExplorer.ts
Use connectionString from message
Co-authored-by: Vsevolod Kukol <[email protected] >
* Fix format
* For openTab action open first collection if not specified. Clean up FabricContract.
* Reformat FabricContracts
* Highlight current node selection using them token
* Reformat
* Automatically expand nodes in resource tree if underlying database or collection is expanded. Fix AllowedOrigins. Cleanup code.
* Fix format
* Fix lint issue
* Don't show the home screen for Fabric (#1636 )
* Fix formatting
* Database name to open can be overridden by value in session storage
---------
Co-authored-by: Vsevolod Kukol <[email protected] >
2023-09-28 17:26:50 +02:00
Laurent Nguyen
16b05c2a75
Prevent prettier from converting CRLF to LF ( #1624 )
2023-09-25 18:09:53 +02:00