kalvium-worklog 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -41,7 +41,7 @@ program
|
|
|
41
41
|
// ─── submit ────────────────────────────────────────────────────────────────
|
|
42
42
|
program
|
|
43
43
|
.command("submit [text]")
|
|
44
|
-
.description("Submit worklog (default text: '
|
|
44
|
+
.description("Submit worklog (default text: 'Working on assigned task')")
|
|
45
45
|
.option("--status <type>", "Work status", "on_site")
|
|
46
46
|
.option("--dry-run", "Test without submitting")
|
|
47
47
|
.action(async (text, opts) => {
|
|
@@ -52,7 +52,7 @@ program
|
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
const result = await submitWorklog({
|
|
55
|
-
text: text ?? "
|
|
55
|
+
text: text ?? "Working on assigned task",
|
|
56
56
|
status: opts.status,
|
|
57
57
|
dryRun: opts.dryRun,
|
|
58
58
|
});
|
|
@@ -201,7 +201,7 @@ program
|
|
|
201
201
|
await generateWebapp();
|
|
202
202
|
console.log("\n✅ Setup complete!\n");
|
|
203
203
|
console.log("Commands:");
|
|
204
|
-
console.log(" kalvium-worklog submit # submit with
|
|
204
|
+
console.log(" kalvium-worklog submit # submit with default text");
|
|
205
205
|
console.log(" kalvium-worklog submit 'my update' # custom text");
|
|
206
206
|
console.log(" kalvium-worklog status # check status");
|
|
207
207
|
console.log(" kalvium-worklog schedule --remove # stop automation");
|
package/dist/submit.js
CHANGED
|
@@ -14,7 +14,7 @@ export const STATUS_OPTIONS = {
|
|
|
14
14
|
* for re-login and retries the submission.
|
|
15
15
|
*/
|
|
16
16
|
export async function submitWorklog(options = {}) {
|
|
17
|
-
const text = options.text ?? "
|
|
17
|
+
const text = options.text ?? "Working on assigned task";
|
|
18
18
|
const statusKey = options.status ?? "on_site";
|
|
19
19
|
const dryRun = options.dryRun ?? false;
|
|
20
20
|
const worklogApi = getWorklogApi();
|
|
@@ -185,7 +185,7 @@ export async function dailySubmit() {
|
|
|
185
185
|
return true;
|
|
186
186
|
}
|
|
187
187
|
log("[INFO] Starting daily worklog submission...");
|
|
188
|
-
const result = await submitWorklog({ text: "
|
|
188
|
+
const result = await submitWorklog({ text: "Working on assigned task", status: "on_site" });
|
|
189
189
|
if (result.success) {
|
|
190
190
|
log(`[INFO] SUCCESS: ${result.message}`);
|
|
191
191
|
}
|
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
</div>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
|
-
<textarea id="text" placeholder="What did you worked on today?">
|
|
83
|
+
<textarea id="text" placeholder="What did you worked on today?">Working on assigned task</textarea>
|
|
84
84
|
|
|
85
85
|
<button class="btn btn-submit" id="submitBtn" onclick="submitWorklog()">Submit Worklog</button>
|
|
86
86
|
<button class="btn btn-status" onclick="checkStatus()">Check Status</button>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</div>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
|
-
<textarea id="text" placeholder="What did you work on today?">
|
|
79
|
+
<textarea id="text" placeholder="What did you work on today?">Working on assigned task</textarea>
|
|
80
80
|
|
|
81
81
|
<button class="btn btn-submit" id="submitBtn" onclick="submitWorklog()">Submit Worklog</button>
|
|
82
82
|
<button class="btn btn-status" onclick="checkStatus()">Check Status</button>
|