Skip to content

Commit

Permalink
showing with sprint was last updated for plan revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
kapil1garg committed May 27, 2024
1 parent 84e2c10 commit 2e66b24
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions components/LastWeekIssuePane.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { htmlToText } from '../lib/helperFns';
import { htmlToText, longDate, shortDate } from '../lib/helperFns';
import NoteBlock from './NoteBlock';
import PracticeGapCard from './PracticeGapCard';
import { useEffect, useState } from 'react';
Expand Down Expand Up @@ -144,6 +144,8 @@ export default function LastWeekIssuePane({
(sprint) => sprint.name === newPracticeOutcome.sprintData.name
);
newPracticeOutcome.currentSprint = currentSprint;
newPracticeOutcome.currentSprint.lastUpdated =
newPracticeOutcome.projectData.sprint_log.lastUpdated;
}

setPracticeOutcome(newPracticeOutcome);
Expand Down Expand Up @@ -437,19 +439,30 @@ export default function LastWeekIssuePane({
>
{/* Plan Updating Practices */}
<div className="mb-4">
<div className="flex flex-row items-center text-xs font-normal border-b border-black">
<div className="text-sm font-semibold mr-1">
Plan Updates You Suggested
<div className="flex flex-col text-xs font-normal border-b border-black">
<div className="text-sm font-semibold mr-2 mb-auto">
Suggested Plan Updates
</div>
<div className="flex flex-row items-center">
<LinkIcon className="h-3 stroke-2 mr-0.5 text-blue-600" />
<a
href={practiceOutcome.currentSprint.url}
target="_blank"
rel="noreferrer"
className="text-blue-600 underline mr-1"
>
Sprint Log
</a>
<span className="italic">
(Last Updated:{' '}
{longDate(
new Date(
practiceOutcome.currentSprint.lastUpdated
)
)}
)
</span>
</div>
<LinkIcon className="h-4 stroke-2 mr-1 text-blue-600" />
<a
href={practiceOutcome.currentSprint.url}
target="_blank"
rel="noreferrer"
className="text-blue-600 underline"
>
Sprint Log
</a>
</div>

<div className="flex flex-wrap">
Expand Down

0 comments on commit 2e66b24

Please sign in to comment.