Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DZGoldman committed Sep 1, 2023
1 parent afb7ca0 commit f251e38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src-ts/propMonUi/propMonUi.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ <h1>Proposal States</h1>
} else {
proposalDiv.innerHTML = `<h3>Proposal ID: ${stage.identifier}</h3>`;
}
if (stage.description){
if (stage.proposalDescription){
const descDiv = document.createElement('div');
descDiv.className = "desc";
descDiv.innerHTML = `<b>Description:</b> ${stage.description.slice(0,300)}...`
descDiv.innerHTML = `<b>Description:</b> ${stage.proposalDescription.slice(0,300)}...`
proposalDiv.appendChild(descDiv)
}

Expand Down
4 changes: 2 additions & 2 deletions src-ts/proposalMonitorCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ interface PipelineStage {
explorerLink?: string;
proposalLink?: string;
children: PipelineStage[];
description?: string
proposalDescription?: string
}

interface GovernorStatus {
Expand Down Expand Up @@ -166,7 +166,7 @@ class JsonLogger {
explorerLink: e.publicExecutionUrl,
proposalLink,
children: [],
description: e.description
proposalDescription: e.proposalDescription
};

if (prevKey === originKey && !emittedStages.has(key)) {
Expand Down
7 changes: 2 additions & 5 deletions src-ts/proposalPipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface TrackerEvent {
prevStage?: Omit<TrackerEvent, "status">;
publicExecutionUrl?: string;
error?: Error;
description?: string;
proposalDescription?: string;

}

Expand All @@ -86,8 +86,6 @@ export class StageTracker extends EventEmitter {
return super.on(eventName, listener);
}

private propagateTrackerSubscriptions(tracker: StageTracker) {}

public async run() {
let polling = true;
let consecutiveErrors = 0;
Expand All @@ -111,8 +109,7 @@ export class StageTracker extends EventEmitter {
status === ProposalStageStatus.EXECUTED
? await this.stage.getExecutionUrl()
: undefined,
// @ts-ignore
description: this.stage.description || undefined
proposalDescription: this.stage instanceof GovernorQueueStage ? this.stage.description : undefined
});
currentStatus = status;
}
Expand Down

0 comments on commit f251e38

Please sign in to comment.