Skip to content

Commit 07d1a58

Browse files
Merge pull request #118 from Power-Maverick/main
Release v2.1.4
2 parents 9ce938d + 551f436 commit 07d1a58

File tree

18 files changed

+486
-35
lines changed

18 files changed

+486
-35
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
99

1010
_Some versions that contains minor bug fixes are omitted from this file._
1111

12+
## [v2.1.4](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.3...v2.1.4)
13+
14+
### Merged
15+
16+
- can handle multiselect optionsets now [`#115`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/pull/115)
17+
18+
### Commits
19+
20+
- sorting optimized [`5ce4ec4`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/5ce4ec4b72dca30ab65cb7838d98b58c1df4b9cd)
21+
- first version of new metadata explorer [`c358277`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/c3582775cc666dd365ac290de1369e6cc27d4ecd)
22+
- extended Entity Details View to show Attribute Type Name and Attribute Of [`fc10ae6`](https://github.com/Power-Maverick/DataverseDevTools-VSCode/commit/fc10ae603f81f9f378195d6afaa8ef9803252815)
23+
1224
## [v2.1.3](https://github.com/Power-Maverick/DataverseDevTools-VSCode/compare/v2.1.2...v2.1.3)
1325

1426
### Merged

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Dataverse DevTools",
44
"description": "The all-in-one tool to develop code for Dataverse/Dynamics 365. Helps you connect to a Dataverse environment, generate TypeScript definitions for entities, create different type of Dataverse-specific projects and much more.",
55
"publisher": "danish-naglekar",
6-
"version": "2.1.3",
6+
"version": "2.1.4",
77
"engines": {
88
"vscode": "^1.58.0"
99
},
@@ -106,6 +106,11 @@
106106
"when": "view == dvConnections",
107107
"group": "navigation@2"
108108
},
109+
{
110+
"command": "dvdt.explorer.entities.showMetadataExplorer",
111+
"when": "view == dvEntities",
112+
"group": "navigation@2"
113+
},
109114
{
110115
"command": "dvdt.explorer.entities.filteron",
111116
"when": "view == dvEntities && !devtools.entitiesFiltered",
@@ -386,6 +391,15 @@
386391
"dark": "resources/dark/filter-off.svg"
387392
}
388393
},
394+
{
395+
"command": "dvdt.explorer.entities.showMetadataExplorer",
396+
"title": "Show Metadata Explorer",
397+
"category": "%dvdt.explorer.metadataexplorer%",
398+
"icon": {
399+
"light": "resources/light/table-light.svg",
400+
"dark": "resources/dark/table-light.svg"
401+
}
402+
},
389403
{
390404
"command": "dvdt.explorer.entities.searchon",
391405
"title": "Search Entities",

resources/dark/table-light.svg

Lines changed: 7 additions & 0 deletions
Loading

resources/light/table-light.svg

Lines changed: 7 additions & 0 deletions
Loading

resources/templates/Files/dvts-js.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Usage Example: FILENAME.onLoad
2+
13
export var FILENAME = (function () {
24
("use strict");
35
var formContext;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Usage Example: NAMESPACE.FILENAME.onLoad
22

3-
export onLoad(executionContext: Xrm.Events.EventContext) {
3+
export const onLoad = (executionContext: Xrm.Events.EventContext): void => {
44
/* Use typings to create entity specific formContext. Like shown below is for 'Account' */
55
//const formContext: Xrm.Account = executionContext.getFormContext();
66
//formContext.getAttribute("accountnumber").getValue();
7-
}
7+
};

resources/views/css/base.css

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
body {
33
background-color: transparent;
44
color: var(--vscode-editor-foreground);
5-
font-family: var(--vscode-font-family);
6-
font-weight: var(--vscode-font-weight);
5+
font-family: var(--vscode-editor-font-family);
6+
font-weight: var(--vscode-editor-font-weight);
7+
font-size: var(--vscode-editor-font-size );
78
margin: 0;
89
}
910

@@ -86,6 +87,28 @@ input {
8687
color: var(--vscode-editor-foreground);
8788
}
8889

90+
.sortable th {
91+
cursor: pointer;
92+
white-space: nowrap;
93+
}
94+
95+
.table .sort-icon {
96+
display: inline-block;
97+
margin-left: 5px;
98+
font-weight: bold;
99+
}
100+
101+
.table .sort-icon .asc-icon,
102+
.table .sort-icon .desc-icon {
103+
display: none;
104+
}
105+
106+
.table th .asc .asc-icon,
107+
.table th .desc .desc-icon {
108+
display: inline;
109+
}
110+
111+
89112
/**** Navigation ****/
90113
nav {
91114
background-color: transparent !important;

resources/views/entitydetail.html

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,57 @@ <h6 style="display: inline">Schema Name: !!{entitySchemaName}</h6>
6666
<div class="tab-pane fade" id="attr" role="tabpanel" aria-labelledby="attr-tab">
6767
<input class="form-control" id="attrSearch" type="text" placeholder="Search.." />
6868
<br />
69-
<table class="table table-bordered">
69+
<table class="table table-bordered sortable" id="attributesTable">
7070
<thead>
71-
<th>Id</th>
72-
<th>Logical Name</th>
73-
<th>Schema Name</th>
74-
<th>Type</th>
75-
<th>Required Level</th>
71+
<th onclick="sortTable('attributesTable',0)">
72+
Id
73+
<div class="sort-icon">
74+
<span class="asc-icon">&#9650;</span>
75+
<span class="desc-icon">&#9660;</span>
76+
</div>
77+
</th>
78+
<th onclick="sortTable('attributesTable',1)">
79+
Logical Name
80+
<div class="sort-icon">
81+
<span class="asc-icon">&#9650;</span>
82+
<span class="desc-icon">&#9660;</span>
83+
</div>
84+
</th>
85+
<th onclick="sortTable('attributesTable',2)">
86+
Schema Name
87+
<div class="sort-icon">
88+
<span class="asc-icon">&#9650;</span>
89+
<span class="desc-icon">&#9660;</span>
90+
</div>
91+
</th>
92+
<th onclick="sortTable('attributesTable',3)">
93+
Type
94+
<div class="sort-icon">
95+
<span class="asc-icon">&#9650;</span>
96+
<span class="desc-icon">&#9660;</span>
97+
</div>
98+
</th>
99+
<th onclick="sortTable('attributesTable',4)">
100+
Attribute Type Name
101+
<div class="sort-icon">
102+
<span class="asc-icon">&#9650;</span>
103+
<span class="desc-icon">&#9660;</span>
104+
</div>
105+
</th>
106+
<th onclick="sortTable('attributesTable',4)">
107+
Attribute Of
108+
<div class="sort-icon">
109+
<span class="asc-icon">&#9650;</span>
110+
<span class="desc-icon">&#9660;</span>
111+
</div>
112+
</th>
113+
<th onclick="sortTable('attributesTable',5)">
114+
Required Level
115+
<div class="sort-icon">
116+
<span class="asc-icon">&#9650;</span>
117+
<span class="desc-icon">&#9660;</span>
118+
</div>
119+
</th>
76120
</thead>
77121
<tbody id="attrTable">
78122
!!{attributes}

resources/views/entitylist.html

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<!-- <ul id="tabs-swipe-demo" class="tabs">
2+
<li class="tab col s3"><a class="active" href="#entity">Entity Details</a></li>
3+
<li class="tab col s3"><a href="#attributes">Attributes</a></li>
4+
</ul> -->
5+
<br /><br />
6+
7+
<input class="form-control" id="entitiesSearch" type="text" placeholder="Search.." />
8+
<br />
9+
<table class="table table-bordered sortable" id="entitiesTable">
10+
<thead>
11+
<th onclick="sortTable('entitiesTable',0)">
12+
Id
13+
<div class="sort-icon">
14+
<span class="asc-icon">&#9650;</span>
15+
<span class="desc-icon">&#9660;</span>
16+
</div>
17+
</th>
18+
<th onclick="sortTable('entitiesTable',1)">
19+
Object Type Code
20+
<div class="sort-icon">
21+
<span class="asc-icon">&#9650;</span>
22+
<span class="desc-icon">&#9660;</span>
23+
</div>
24+
</th>
25+
<th onclick="sortTable('entitiesTable',2)">
26+
Logical Name
27+
<div class="sort-icon">
28+
<span class="asc-icon">&#9650;</span>
29+
<span class="desc-icon">&#9660;</span>
30+
</div>
31+
</th>
32+
<th onclick="sortTable('entitiesTable',3)">
33+
Schema Name
34+
<div class="sort-icon">
35+
<span class="asc-icon">&#9650;</span>
36+
<span class="desc-icon">&#9660;</span>
37+
</div>
38+
</th>
39+
<th onclick="sortTable('entitiesTable',4)">
40+
Description
41+
<div class="sort-icon">
42+
<span class="asc-icon">&#9650;</span>
43+
<span class="desc-icon">&#9660;</span>
44+
</div>
45+
</th>
46+
<th onclick="sortTable('entitiesTable',5)">
47+
Table Type
48+
<div class="sort-icon">
49+
<span class="asc-icon">&#9650;</span>
50+
<span class="desc-icon">&#9660;</span>
51+
</div>
52+
</th>
53+
<th onclick="sortTable('entitiesTable',6)">
54+
Has Activities
55+
<div class="sort-icon">
56+
<span class="asc-icon">&#9650;</span>
57+
<span class="desc-icon">&#9660;</span>
58+
</div>
59+
</th>
60+
<th onclick="sortTable('entitiesTable',7)">
61+
Has Notes
62+
<div class="sort-icon">
63+
<span class="asc-icon">&#9650;</span>
64+
<span class="desc-icon">&#9660;</span>
65+
</div>
66+
</th>
67+
<th onclick="sortTable('entitiesTable',8)">
68+
Is Activity
69+
<div class="sort-icon">
70+
<span class="asc-icon">&#9650;</span>
71+
<span class="desc-icon">&#9660;</span>
72+
</div>
73+
</th>
74+
<th onclick="sortTable('entitiesTable',9)">
75+
Is Activity Party
76+
<div class="sort-icon">
77+
<span class="asc-icon">&#9650;</span>
78+
<span class="desc-icon">&#9660;</span>
79+
</div>
80+
</th>
81+
<th onclick="sortTable('entitiesTable',10)">
82+
Is Audit Enabled
83+
<div class="sort-icon">
84+
<span class="asc-icon">&#9650;</span>
85+
<span class="desc-icon">&#9660;</span>
86+
</div>
87+
</th>
88+
<th onclick="sortTable('entitiesTable',11)">
89+
Is Custom Entity
90+
<div class="sort-icon">
91+
<span class="asc-icon">&#9650;</span>
92+
<span class="desc-icon">&#9660;</span>
93+
</div>
94+
</th>
95+
<th onclick="sortTable('entitiesTable',12)">
96+
Is Customizable
97+
<div class="sort-icon">
98+
<span class="asc-icon">&#9650;</span>
99+
<span class="desc-icon">&#9660;</span>
100+
</div>
101+
</th>
102+
<th onclick="sortTable('entitiesTable',13)">
103+
Is Document Management Enabled
104+
<div class="sort-icon">
105+
<span class="asc-icon">&#9650;</span>
106+
<span class="desc-icon">&#9660;</span>
107+
</div>
108+
</th>
109+
<th onclick="sortTable('entitiesTable',14)">
110+
Is Duplicate Detection Enabled
111+
<div class="sort-icon">
112+
<span class="asc-icon">&#9650;</span>
113+
<span class="desc-icon">&#9660;</span>
114+
</div>
115+
</th>
116+
<th onclick="sortTable('entitiesTable',15)">
117+
Is Managed
118+
<div class="sort-icon">
119+
<span class="asc-icon">&#9650;</span>
120+
<span class="desc-icon">&#9660;</span>
121+
</div>
122+
</th>
123+
<th onclick="sortTable('entitiesTable',16)">
124+
Ownership Type
125+
<div class="sort-icon">
126+
<span class="asc-icon">&#9650;</span>
127+
<span class="desc-icon">&#9660;</span>
128+
</div>
129+
</th>
130+
</thead>
131+
<tbody id="entTable">
132+
!!{entities}
133+
</tbody>
134+
</table>

0 commit comments

Comments
 (0)