File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,27 @@ export const handleWhatsappTask = (
4949 const descText = htmlToPlainFallback ( descHtml ) ;
5050
5151 const dueStatus = getDueStatus ( task . dueDate ) ; // <-- NEW
52-
52+ let deadLine = task . dueDate ;
53+ if ( dueStatus === "(OVERDUE)" || dueStatus === "(DUE TODAY)" ) {
54+ deadLine = dueStatus ;
55+ }
5356 const message = `Halo, saya ingin menanyakan update terkait task berikut:
5457
55- Project: ${ projectName }
56- Task: ${ task . title }
57- ${ descText ? descText + "\n\n" : "" } Status: ${ task . status || "-" }
58- Deadline: ${ task . dueDate || "-" } ${ dueStatus }
59- Prioritas: ${ task . priority || "-" }
58+ \`-${ projectName } -\`
59+
60+ - \`Task:\` ${ task . title }
61+ - \`Desc:\` ${ descText ? descText + "\n\n" : "" }
62+
63+ - \`Prioritas:\` _*${ task . priority ?. toUpperCase ( ) || "-" } *_
64+ - \`Status:\` _*${ task . status ?. toUpperCase ( ) || "-" } *_
65+ - \`Deadline:\` _*${ deadLine || "-" } *_
6066
6167Mohon informasikan perkembangan terbarunya ya.
62- Terima kasih.` . trim ( ) ;
68+ Terima kasih.
69+
70+
71+ \`-CommitFlow developed by Getech Indonesia-\`
72+ ` . trim ( ) ;
6373
6474 const url = `https://wa.me/${ normalized } ?text=${ encodeURIComponent ( message ) } ` ;
6575 window . open ( url , "_blank" , "noopener,noreferrer" ) ;
You can’t perform that action at this time.
0 commit comments