Skip to content

Commit 3592b3d

Browse files
committed
Merge branch 'rc' of https://github.com/BEXIS2/Core into rc
2 parents d14b816 + 4ab5696 commit 3592b3d

File tree

15 files changed

+38
-34
lines changed

15 files changed

+38
-34
lines changed

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Controllers/CreateController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public JsonResult Create(CreateModel data)
370370
dm.EditDatasetVersion(workingCopy, null, null, null);
371371

372372
// close check out
373-
dm.CheckInDataset(datasetId, "Init creation a " + entityTemplate.EntityType.Name.ToLower() + " based on " + entityTemplate.Name.ToLower(), GetUsernameOrDefault(), ViewCreationBehavior.None, TagType.Copy);
373+
dm.CheckInDataset(datasetId, entityTemplate.EntityType.Name + " created based on category: " + entityTemplate.Name, GetUsernameOrDefault(), ViewCreationBehavior.None, TagType.Copy);
374374
}
375375

376376
#endregion update version

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/lib/components/Card.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
entitytemplate: ''
2424
};
2525
26-
export let authorLabel = 'Authors';
26+
export let authorLabel = 'Authors';
2727
2828
const { title, description, author, license, id, doi, entity, date, entitytemplate } = card;
2929
@@ -84,6 +84,7 @@
8484
on:keydown={() => window.open(`/ddm/data/Showdata/${id}`)}
8585
role="link"
8686
tabindex="0"
87+
title="View dataset details in a new tab"
8788
>
8889
<div class="flex flex-col w-full gap-4">
8990
<div class="justify-between flex gap-2">
@@ -122,15 +123,15 @@
122123
</div>
123124
<div class="ml-auto flex gap-2">
124125
{#if entitytemplate && entitytemplate.length > 0}
125-
<div title="Entity Template" class="rounded-full px-3 p-1 bg-primary-500">
126+
<div title="Entity Category" class="rounded-full px-3 p-1 bg-primary-500">
126127
<span class="text-sm font-semibold text-on-secondary-token"
127128
>{entitytemplate.toLowerCase()}</span
128129
>
129130
</div>
130131
{/if}
131132

132133
{#if entity && entity.length > 0}
133-
<div title="Entity" class="rounded-full px-3 p-1 bg-primary-500">
134+
<div title="Entity Type" class="rounded-full px-3 p-1 bg-primary-500">
134135
<span class="text-sm font-semibold text-on-secondary-token"
135136
>{entity.toLowerCase()}</span
136137
>

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/lib/components/Cards.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
select="!px-3 !py-1.5 select min-w-[150px]"
5757
showFirstLastButtons
5858
showPreviousNextButtons
59-
on:page ={e => paginationSettings.page = e.detail}
59+
on:page={(e) => (paginationSettings.page = e.detail)}
6060
/>
6161
{/if}
6262
</div>

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/lib/components/Search.svelte

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@
249249
250250
if (placeholders.length > 0) {
251251
const idIndex = headers.findIndex((header) => header.Name === 'ID');
252-
authorLabel = headers[headers.findIndex((header) => header.Placeholder === 'author')]?.DisplayName
252+
authorLabel =
253+
headers[headers.findIndex((header) => header.Placeholder === 'author')]?.DisplayName;
253254
const data = rows.map((row) => ({
254255
...placeholders.reduce(
255256
(acc, item) => {
@@ -265,13 +266,10 @@
265266
266267
placeholderStore.set(data);
267268
268-
console.log("🚀 ~ data ~ data:", data, authorLabel)
269+
console.log('🚀 ~ data ~ data:', data, authorLabel);
269270
}
270271
};
271272
272-
273-
274-
275273
const deleteCriteriaKey = (criterion: string, value: string) => {
276274
const temp = { ...$criteria };
277275
temp[criterion].values = temp[criterion].values.filter((v) => v !== value);
@@ -527,7 +525,7 @@
527525
placeholder="Search within selected category"
528526
/>
529527
<button
530-
title="Search"
528+
title="Apply selected search criteria"
531529
class="btn variant-filled-primary"
532530
on:click|preventDefault={async () => await handleSearch()}>Search</button
533531
>
@@ -549,7 +547,7 @@
549547
{#if $criteria[key].values.length < 3}
550548
{#each $criteria[key].values as value, index (`${key}-${value}`)}
551549
<CriteriaChip
552-
title="Click to remove search term {value}"
550+
title="Click to remove search term: {value}"
553551
on:remove={async () => {
554552
if ($criteria[key].type === 'Facet') {
555553
await toggleFacet(key, value);
@@ -594,7 +592,7 @@
594592
</div>
595593
{/if}
596594
<div class:hidden={currentView === 'table'}>
597-
<Cards store={placeholderStore} {authorLabel}/>
595+
<Cards store={placeholderStore} {authorLabel} />
598596
</div>
599597
</div>
600598
</div>

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/lib/components/ShowData.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
export let row;
66
</script>
77

8-
<a href="/ddm/data/Showdata/{row.iD}" target="_blank" class="btn variant-filled-primary">
8+
<a href="/ddm/data/Showdata/{row.iD}" target="_blank" class="btn variant-filled-primary" title="View dataset details in a new tab">
99
<Fa icon={faEye} size="xs" />
1010
</a>

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/routes/taginfo/TagInfoEdit.svelte

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@
105105
if (responce.status === 200) {
106106
notificationStore.showNotification({
107107
notificationType: notificationType.success,
108-
message: 'Tag is generated.'
108+
message: 'Release Tag is generated.'
109109
});
110110
111111
reload();
112112
dispatch('reload');
113113
} else {
114114
notificationStore.showNotification({
115115
notificationType: notificationType.error,
116-
message: 'Tag is not generated.'
116+
message: 'Release Tag is not generated.'
117117
});
118118
}
119119
}
@@ -179,7 +179,7 @@
179179
disableSorting: true
180180
},
181181
systemDescription: {
182-
header: 'System Description',
182+
header: 'General Type',
183183
disableFiltering: true,
184184
disableSorting: true,
185185
instructions: {
@@ -219,6 +219,10 @@
219219
},
220220
disableFiltering: true,
221221
disableSorting: true
222+
},
223+
link: {
224+
disableFiltering: true,
225+
exclude: true
222226
}
223227
}
224228
}}

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/routes/taginfo/TagInfoView.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
<TablePlaceholder cols={2} {rows} />
3131
</div>
3232
{:then model}
33-
<h2 class="h2">Tag Preview</h2>
33+
<h2 class="h2">Preview</h2>
3434
<table class="table table-compact bg-tertiary-200">
3535
<thead>
3636
<tr class="bg-primary-300">
37-
<th class="!p-2 w-16">Tag</th>
38-
<th class="!p-2">Release Note</th>
37+
<th scope="col" class="!p-2 w-16">Release Tag</th>
38+
<th scope="col" class="!p-2">Release Note</th>
3939
</tr>
4040
</thead>
4141
<tbody>

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/routes/taginfo/table/tableOptions.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
let noTag: boolean = hasNoTag();
1111
// use auto-subscription so changes to the store re-run reactive statements
1212
let withMinor: boolean;
13-
1413
$: withMinor = $withMinorStore;
1514
1615
function hasNoTag() {
@@ -43,12 +42,12 @@
4342
$: hasChanges = (() => {
4443
const originalRows = $originalTagInfoModelStore;
4544
const currentRow = $tagInfoModelStore.find((x) => x.versionId == row.versionId);
46-
console.log('🚀 ~ hasChanges ~ currentRow:', currentRow);
47-
if (!currentRow) return false;
48-
4945
const originalRow = originalRows.find((x) => x.versionId == row.versionId);
46+
47+
if (!currentRow) return false; // No current row
5048
if (!originalRow) return true; // New row
5149
50+
// Return true if there are changes, otherwise false
5251
return (
5352
currentRow.releaseNote !== originalRow.releaseNote ||
5453
currentRow.publish !== originalRow.publish ||
@@ -58,7 +57,8 @@
5857
</script>
5958

6059
<div class="flex gap-2 w-min p-2">
61-
{#if hasChanges}
60+
{row.tagId}
61+
{#if hasChanges && row.tagId > 0}
6262
<button
6363
class="btn btn-sm variant-filled-primary"
6464
title="Save changes"
@@ -72,13 +72,13 @@
7272
{#if withMinor}
7373
<button
7474
class="btn btn-sm variant-filled-primary"
75-
title="Create new minor version"
75+
title="Create new minor version. All untagged versions until this will belong to this minor version."
7676
on:click|preventDefault={() => eventDispatchFn('MINOR')}>minor</button
7777
>
7878
{/if}
7979
<button
8080
class="btn btn-sm variant-filled-primary"
81-
title="Create new major version"
81+
title="Create new major version. All untagged versions until this will belong to this major version."
8282
on:click|preventDefault={() => eventDispatchFn('MAJOR')}>major</button
8383
>
8484
{/if}

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/routes/taginfo/table/tablePublish.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
1010
$: currentRow = $tagInfoModelStore.find((x) => x.versionId == row.original.versionId);
1111
12+
// Update the store when the toggle is changed
1213
function togglePublish(versionId: number, value: boolean) {
1314
tagInfoModelStore.update((arr) =>
1415
arr.map((x) => (x.versionId === versionId ? { ...x, publish: !!value } : x))
@@ -17,7 +18,7 @@
1718
</script>
1819

1920
<div class="flex h-full items-center justify-center">
20-
<div title="Make this release tag visible; Click save to apply">
21+
<div title="Make this release tag visible; Click save to apply changes.">
2122
{#if currentRow.tagId > 0}
2223
<SlideToggle
2324
name={currentRow.versionId}

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/routes/taginfo/table/tableReleaseNote.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
</script>
2222

23-
<span title="Release Note; Click save to apply">
23+
<span title="Release Note; Click save to apply changes.">
2424
<TextArea
2525
bind:value={currentRow.releaseNote}
2626
on:input={() =>

0 commit comments

Comments
 (0)