Skip to content

Commit c68556c

Browse files
authored
Merge pull request #411 from pixlise/feature/expr-inputs
Feature/expr inputs
2 parents 6831879 + 644e10f commit c68556c

8 files changed

Lines changed: 5 additions & 89 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
- ROI Picker now remembers your last selected sections
66
- MIST ROIs can now include a per-PMC confidence value column that affects ROI opacity on context image
77
- **Custom ROI Colors** Adds support for custom ROI colors via a color picker. Preset colors should still be preferred where possible.
8+
- Expression language (in Lua only) now has 2 new functions: `readCache` and `writeCache` to allow reuse of calculated data between other expressions. Also added new constants: `instrument`, `scanId`, `quantId`, `maxSpectrumChannel` and `elevAngle`. Running expressions is also about 10% faster due to not recomputing the results of `spectrum()` calls when the same channels are requested.
9+
- Removed Back to V3 button
810

911
## 4.44.0 (2024-09-27)
1012

@@ -20,7 +22,6 @@
2022
- Fixes bug with sharing workspaces that include expression groups
2123
- Allows longer RGB Mix names to be saved
2224

23-
2425
## 4.42.0 (2024-09-18)
2526

2627
### Bug Fixes

client/src/app/components/toolbar/toolbar.component.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,13 @@
2828
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
POSSIBILITY OF SUCH DAMAGE.
3030
-->
31-
<ng-template #v3ConfirmDialog>
32-
<feedback-dialog></feedback-dialog>
33-
</ng-template>
3431

3532
<ng-template #changeLogDialog>
3633
<div class="change-log-container">
3734
<h1>
3835
Change Log (Updated {{ uiVersionLastCommitDate * 1000 | date: "mediumDate" }})
3936
<action-button (onClick)="closeChangeLogDialog()" action="close" color="rgb(var(--clr-gray-30))"></action-button>
4037
</h1>
41-
<div class="v3-container">
42-
<span class="title">NOTE: PIXLISE v3 will be retired at the end of September 2024!</span>
43-
<push-button class="back-to-v3" [customDialog]="v3ConfirmDialog" buttonStyle="v3Button">Back to v3</push-button>
44-
</div>
4538
<div class="change-log">
4639
<markdown lineHighlight [lineOffset]="5" src="/assets/CHANGELOG.md"> </markdown>
4740
</div>
@@ -154,7 +147,6 @@ <h1>
154147
<!-- <span>Updated {{ uiVersionLastCommitDate * 1000 | date: "mediumDate" }}</span> -->
155148
<span>{{ uiVersion }}</span>
156149
</push-button>
157-
<!-- <push-button class="back-to-v3" [customDialog]="v3ConfirmDialog" buttonStyle="v3Button">Back to v3</push-button> -->
158150
<icon-button
159151
title="Notifications"
160152
(click)="onNotificationsMenu()"

client/src/app/components/toolbar/toolbar.component.scss

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@
138138
}
139139
}
140140
}
141-
142-
.back-to-v3 {
143-
white-space: pre;
144-
}
145141
}
146142
}
147143
}
@@ -247,25 +243,6 @@ user-icon {
247243
}
248244
}
249245

250-
.v3-container {
251-
display: flex;
252-
align-items: center;
253-
254-
padding-left: 16px;
255-
256-
border-top: 1px solid rgb(68, 76, 80);
257-
padding-top: 8px;
258-
259-
margin-right: -16px;
260-
padding-right: 16px;
261-
262-
color: rgb(var(--clr-gray-30));
263-
264-
.back-to-v3 {
265-
margin-left: auto;
266-
}
267-
}
268-
269246
.change-log {
270247
height: 400px;
271248
width: 600px;

client/src/app/components/toolbar/toolbar.component.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -708,25 +708,6 @@ export class ToolbarComponent implements OnInit, OnDestroy {
708708
return "https://discuss." + EnvConfigurationInitService.appConfig.appDomain;
709709
}
710710

711-
private closeIssueDialog(): void {
712-
if (this.submitIssueDialog && this.submitIssueDialog instanceof PushButtonComponent) {
713-
(this.submitIssueDialog as PushButtonComponent).closeDialog();
714-
}
715-
}
716-
717-
onSubmitIssue(leftPage: boolean): void {
718-
let strippedIssue = this.userIssue.trim();
719-
if (strippedIssue.length > 0) {
720-
this._snackService.openSuccess("Thanks for the feedback!");
721-
this.userIssue = "";
722-
SentryHelper.logMsg(false, "User Feedback (Back to V3): \n" + strippedIssue);
723-
} else if (leftPage) {
724-
SentryHelper.logMsg(false, "User Feedback (Back to V3): No feedback given");
725-
}
726-
727-
this.closeIssueDialog();
728-
}
729-
730711
closeChangeLogDialog(): void {
731712
if (this.changeLogBtn && this.changeLogBtn instanceof PushButtonComponent) {
732713
(this.changeLogBtn as PushButtonComponent).closeDialog();

client/src/app/modules/pixlisecore/components/atoms/buttons/push-button/push-button.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export type PushButtonStyle =
4646
| "orange"
4747
| "dark-outline"
4848
| "hover-yellow"
49-
| "v3Button"
5049
| "changelog-new"
5150
| "changelog-viewed";
5251

@@ -96,7 +95,6 @@ export class PushButtonComponent implements OnInit {
9695
"orange",
9796
"dark-outline",
9897
"hover-yellow",
99-
"v3Button",
10098
"changelog-new",
10199
"changelog-viewed",
102100
];

client/src/app/modules/pixlisecore/components/feedback-dialog/feedback-dialog.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
</div>
99
<textarea [(ngModel)]="userIssue" [rows]="10" class="feedback-textarea" placeholder="Type your issue here"></textarea>
1010
<div class="bottom-buttons">
11-
<push-button class="submit-and-stay" buttonStyle="v3Button" (click)="onSubmitIssue(false)" #submitIssue>Submit feedback</push-button>
12-
<a (click)="onSubmitIssue(true)" class="link-to-v3" href="https://v3.pixlise.org" target="_blank">Open v3</a>
11+
<push-button class="submit-and-stay" (click)="onSubmitIssue()" #submitIssue>Submit feedback</push-button>
1312
</div>
1413
</div>

client/src/app/modules/pixlisecore/components/feedback-dialog/feedback-dialog.component.scss

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -44,34 +44,4 @@
4444
text-decoration: none;
4545
}
4646
}
47-
48-
.link-to-v3 {
49-
// margin-left: auto;
50-
}
51-
}
52-
53-
.link-to-v3 {
54-
color: black;
55-
background-color: rgb(255, 255, 141);
56-
57-
// color: #f8f8f8;
58-
text-align: center;
59-
font-feature-settings:
60-
"clig" off,
61-
"liga" off;
62-
font-family: Inter;
63-
font-size: 12px;
64-
font-style: normal;
65-
font-weight: 500;
66-
line-height: 16px;
67-
border-radius: 4px;
68-
// background: #444c50;
69-
padding: 4px 8px;
70-
margin-right: 4px;
71-
cursor: pointer;
72-
73-
&:hover {
74-
color: rgb(var(--clr-gray-60));
75-
text-decoration: none;
76-
}
7747
}

client/src/app/modules/pixlisecore/components/feedback-dialog/feedback-dialog.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ export class FeedbackDialogComponent {
3434
this.dialogRef.close(false);
3535
}
3636

37-
onSubmitIssue(backToV3: boolean = false): void {
37+
onSubmitIssue(): void {
3838
let strippedIssue = this.userIssue.trim();
3939
if (strippedIssue.length > 0) {
4040
this._snackService.openSuccess("Thanks for the feedback!");
4141
this.userIssue = "";
42-
SentryHelper.logMsg(false, "User Feedback (Back to V3): \n" + strippedIssue);
43-
} else if (backToV3) {
44-
SentryHelper.logMsg(false, "User Feedback (Back to V3): No feedback given");
42+
SentryHelper.logMsg(false, "User Feedback: \n" + strippedIssue);
4543
}
4644

4745
this.dialogRef.close(true);

0 commit comments

Comments
 (0)