Skip to content

feat(supertasks): add "skip completed pretasks" option to apply-hashlist form#688

Open
linuxkd wants to merge 1 commit into
hashtopolis:masterfrom
linuxkd:feat/skip-completed-pretasks
Open

feat(supertasks): add "skip completed pretasks" option to apply-hashlist form#688
linuxkd wants to merge 1 commit into
hashtopolis:masterfrom
linuxkd:feat/skip-completed-pretasks

Conversation

@linuxkd
Copy link
Copy Markdown

@linuxkd linuxkd commented May 28, 2026

Summary

Adds the client-side control for the server-side supertask dedup feature (server PR hashtopolis/server#2177, feature request hashtopolis/server#2167).

A "Skip pretasks already completed" checkbox is added to the apply-supertask ("Use Supertask") form. When checked, it sends skipCompleted: true to the createSupertask helper and surfaces the server's meta.skippedPretasks response — an info toast listing the skipped pretasks, plus the all-skipped (taskWrapperId == null, no wrapper created) case. Defaults off, so existing behavior is unchanged.

Depends on

Changes

  • applyhashlist.component.ts — adds a skipCompleted FormControl (buildForm() + initForm()), sends it in the createSupertask body, types the call ResponseWrapper<CreateSupertaskMeta>, surfaces meta.skippedPretasks and the all-skipped case via AlertService, and uses the { next, error, complete } subscribe form (resets isCreatingLoading on error/complete).
  • applyhashlist.component.html — the checkbox + explanatory tooltip.

Testing

Refs hashtopolis/server#2167

…ist form

Adds a skipCompleted checkbox to the apply-supertask form that passes the
flag to the createSupertask helper and surfaces meta.skippedPretasks from
the response (info toast for skipped pretasks, plus the all-skipped /
taskWrapperId=null case). Defaults off, so existing behavior is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant