Robert
86b50560a4
Merge pull request #2995 from github/robertbrignull/model-table-multirow
...
Use one grid cell per model input, and have the method name span multiple rows
2023-10-19 12:40:03 +01:00
Robert
50f77e7918
Use Fragment to add key to map output
2023-10-19 10:53:06 +01:00
Robert
947f495d0b
Merge pull request #2990 from github/robertbrignull/model-table-alignment
...
Use custom grid element instead of VSCodeDataGrid
2023-10-19 09:57:26 +01:00
Andrew Eisenberg
df55e039a1
Merge pull request #2984 from github/aeisenberg/fix-log-path
2023-10-18 15:36:10 -07:00
Andrew Eisenberg
2e2051af6d
Merge branch 'main' into aeisenberg/fix-log-path
2023-10-18 15:04:12 -07:00
Andrew Eisenberg
4ad3d962ec
Add change note
...
Also, avoid a code scanning warning.
2023-10-18 15:03:16 -07:00
Robert
ec0e74bd9a
Merge pull request #2992 from github/robertbrignull/columnCount
...
Add $ to columnCount prop used by styled component
2023-10-18 18:29:02 +01:00
dependabot[bot]
8a1da313ae
Bump @babel/traverse from 7.22.8 to 7.23.2 in /extensions/ql-vscode ( #2994 )
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.22.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 16:50:14 +01:00
Robert
c88ecf76aa
Add documentation to all DataGrid components
2023-10-18 16:42:50 +01:00
Robert
93de35e7a3
Rename HiddenMethodsText => HiddenMethodsCell
2023-10-18 16:30:30 +01:00
Robert
8c339d07e8
Pass rowType to styled component instead of using another class name
2023-10-18 16:29:48 +01:00
Robert
cead0ea52e
Import ReactNode
2023-10-18 16:26:37 +01:00
Robert
db67d93f83
Extract DataGridRow props in params
2023-10-18 16:24:34 +01:00
Robert
a79867732c
Make gridTemplateColumns just a string
2023-10-18 16:21:04 +01:00
Robert
09a8d29ea5
Use one grid cell per input
2023-10-18 15:17:07 +01:00
Shati Patel
a2f85877a8
Add option to sort DB panel by language ( #2993 )
2023-10-18 14:58:39 +01:00
Robert
c528a389e5
Use forwardRef for DataGridRow
2023-10-18 14:41:26 +01:00
Robert
48f719fa9d
Pass through data-testid explicitly
2023-10-18 14:35:49 +01:00
Robert
cac9efa41b
Introduce wrapper component for DataGridRow
2023-10-18 14:20:19 +01:00
Robert
56d0f28814
Add styling for header rows
2023-10-18 14:20:16 +01:00
Robert
298656444f
Make gridRow and gridColumn optional
2023-10-18 14:10:16 +01:00
Koen Vlaswinkel
30b51d98c8
Merge pull request #2988 from github/koesie10/error-default-branch
...
Add custom error handler for missing default branch
2023-10-18 14:12:03 +02:00
Robert
6c2718927e
Adjust styling to not use --design-unit
2023-10-18 13:02:34 +01:00
Robert
579042cf84
Extract props in parameters instead of as statement
2023-10-18 12:22:06 +01:00
Robert
2c70c0b792
Remove unnecessary aria label
2023-10-18 12:15:17 +01:00
Robert
ec64b59b96
Pass className through DataGridCell
2023-10-18 12:07:10 +01:00
Robert
f886cd0dc8
Add $ to props used by styled component
2023-10-18 11:52:01 +01:00
Charis Kyriakou
96fb0046c5
Style update to in-progress drop-down ( #2986 )
2023-10-18 08:45:49 +01:00
Koen Vlaswinkel
903b272952
Merge pull request #2989 from github/koesie10/usage-panel-tree-items-reference
...
Keep reference to original items in usage data provider
2023-10-18 09:23:30 +02:00
Robert
54db867d15
Use custom grid element instead of VSCodeDataGrid
2023-10-17 17:38:06 +01:00
Koen Vlaswinkel
a852f16eb1
Keep reference to original items in usage data provider
...
This changes the usage data provider tree items to keep a reference to
the method and usage instead of only including their properties in the
tree item. This makes it easier to find the original method and usage
when revealing an item in the tree. It also removes the `getParent` call
in `getTreeItem`.
The main reason for this fix is to ensure
`codeQLModelEditor.jumpToMethod` gets the correct `usage` argument.
It received the tree item before, but now we can actually pass the
usage that was clicked on.
2023-10-17 16:03:57 +02:00
Koen Vlaswinkel
a7f8019bf4
Merge pull request #2987 from github/koesie10/source-map-fix
...
Fix decoding source map with VS Code internal files
2023-10-17 15:40:38 +02:00
Koen Vlaswinkel
2d5caa77bc
Remove unnecessary casting
2023-10-17 15:19:04 +02:00
Koen Vlaswinkel
82c2952059
Add custom error handler for missing default branch
...
When the GitHub API returns an error for a missing default branch, we
will now show a custom error message. This custom error message includes
a link to the page to create the branch. The error is detected using the
`errors` field on the response that is now being returned.
2023-10-17 14:57:19 +02:00
Koen Vlaswinkel
67f6f8f160
Fix decoding source map with VS Code internal files
...
This makes it possible to decode source maps containing references to
code that is not part of the extension. If it finds any such references,
it will simply not decode the source map and use the original stack
trace instead.
2023-10-17 13:34:11 +02:00
Charis Kyriakou
abde8f3fae
Make automodel batch size configurable ( #2985 )
2023-10-17 12:07:30 +01:00
Robert
8d5574e468
Merge pull request #2982 from github/robertbrignull/add-remove-models
...
Implement onClick for the add/remove model buttons in the model editor
2023-10-17 10:29:16 +01:00
Andrew Eisenberg
cc0e850c72
Ensure the logFileLocation is set
...
`logFileLocation` was not set after a query finishes running. I don't
know when this bug was introduced. I think it goes as far back as
the refactor to remove the old query server.
2023-10-16 16:44:49 -07:00
Robert
46e7dda6a6
Don't bother using slice when creating handlers
2023-10-16 16:29:36 +01:00
Robert
d937934737
Use the onChange handler in tests
2023-10-16 16:27:23 +01:00
Robert
0ff523a64b
Add tests for for the add/remove model buttons
2023-10-16 15:36:46 +01:00
Robert
1d0a1f56b1
Implment onClick handlers for add/remove model buttons
2023-10-16 15:07:44 +01:00
Koen Vlaswinkel
fca68edbb3
Merge pull request #2969 from github/koesie10/fix-unmodeled-unsaved
...
Fix unmodeled methods always being marked as unsaved
2023-10-16 15:07:18 +02:00
Charis Kyriakou
b9279dc64f
Simplify modeling in progress state ( #2980 )
2023-10-16 12:54:13 +00:00
Koen Vlaswinkel
00b6ccdfe0
Simplify condition in useEffect
2023-10-16 13:53:53 +02:00
Koen Vlaswinkel
688b9863da
Merge pull request #2981 from github/koesie10/fix-failing-test
...
Fix failing test
2023-10-16 13:47:01 +02:00
Koen Vlaswinkel
c80641866c
Fix failing test
2023-10-16 13:25:35 +02:00
Koen Vlaswinkel
6a7ce9f4d2
Merge pull request #2976 from github/koesie10/methods-usage-panel-parent
...
Introduce separate tree item types in the methods usage panel
2023-10-16 13:25:05 +02:00
Koen Vlaswinkel
d0e0237b9e
Merge pull request #2965 from github/koesie10/modeled-method-validation-neutral
...
Fix neutral model validation to consider kind
2023-10-16 13:23:26 +02:00
Anders Starcke Henriksen
e57f04e6b1
Merge pull request #2975 from github/starcke/remove-old-language-filter
...
Remove old language context filter.
2023-10-16 13:06:40 +02:00