-
-
Notifications
You must be signed in to change notification settings - Fork 52
Add "deadline" and "finisheddate" attributes for the card. #46
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
Can you also change all finisheddate css class name suffixes to finished-date, like creation-time? Thanks! :)
src/boards.ts
Outdated
/** | ||
* The (optional) date, the cards has been finished. | ||
*/ | ||
finisheddate?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
src/workspaces.ts
Outdated
if ('' !== deadline) { | ||
META['Deadline'] = deadline; | ||
} | ||
let finisheddate = vscode_helpers.toStringSafe(C.finisheddate).trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
src/res/js/board.js
Outdated
@@ -1855,6 +1927,8 @@ jQuery(() => { | |||
const NEW_CARD = { | |||
assignedTo: vsckb_get_assigned_to_val( ASSIGNED_TO_FIELD ), | |||
category: category, | |||
deadline: deadline, | |||
finisheddate: finisheddate, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
src/res/js/board.js
Outdated
i.assignedTo = vsckb_get_assigned_to_val(ASSIGNED_TO_FIELD); | ||
i.title = TITLE; | ||
i.description = vsckb_get_card_description_markdown( descriptionField ); | ||
i.details = vsckb_get_card_description_markdown( detailsField ); | ||
i.prio = PRIO; | ||
i.type = type; | ||
i.category = category; | ||
i.deadline = deadline; | ||
i.finisheddate = finisheddate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
src/res/js/board.js
Outdated
} | ||
|
||
let finisheddate; | ||
if (card.finisheddate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
src/res/js/board.js
Outdated
@@ -899,6 +927,8 @@ function vsckb_refresh_card_view(onAdded) { | |||
assigned_to: assignedTo, | |||
cat: card.category, | |||
category: card.category, | |||
deadline: card.deadline, | |||
finisheddate: card.finisheddate, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
src/res/js/board.js
Outdated
NEW_ITEM_DEADLINE.show(); | ||
} | ||
|
||
let finisheddate = "Finished Date: " + vsckb_to_string(i.finisheddate).trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
src/res/js/board.js
Outdated
|
||
let finisheddate; | ||
if (card.finisheddate) { | ||
finisheddate = card.finisheddate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
src/res/js/board.js
Outdated
DEADLINE_FIELD.val( vsckb_to_string(i.deadline).trim() ); | ||
|
||
const FINISHED_FIELD = WIN.find('#vsckb-edit-card-finisheddate'); | ||
FINISHED_FIELD.val( vsckb_to_string(i.finisheddate).trim() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finished_date
After that, you should update the versions in all package files to 1.29.0, update the CHANGELOG file and add you, if you want, as contributor to the README. |
src/res/js/board.js
Outdated
deadline = undefined; | ||
} | ||
|
||
let finisheddate = vsckb_to_string( FINISHEDDATE_FIELD.val() ).trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: should be FINISHED_FIELD
src/workspaces.ts
Outdated
} | ||
let finisheddate = vscode_helpers.toStringSafe(C.finisheddate).trim(); | ||
if ('' !== finisheddate) { | ||
META['Finisheddate'] = finisheddate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Finished date"
Ok my review finished ... sorry I hope I did not spam your mailbox with my updates! Thanks a lot for your work! 👍 |
Hi, mkloubert, |
Sorry, I find the bug about "NEW_ITEM_ASSIGNEDTO". |
Add "deadline" and "finisheddate" attributes for the card. And show "Assinged To", "deadline" , "finisheddate" on board's cards.