Skip to content

feat: withdraw doc #1356

Open
rudimatz wants to merge 3 commits into
ietf-tools:mainfrom
rudimatz:feat/withdraw-docs
Open

feat: withdraw doc #1356
rudimatz wants to merge 3 commits into
ietf-tools:mainfrom
rudimatz:feat/withdraw-docs

Conversation

@rudimatz

Copy link
Copy Markdown
Contributor

fixes #1348
adds dedicated "Withdraw@ button in UI, displayed only for active drafts

in withdraw dialog, the user can also add a optional comment for the withdrawal

@rudimatz

Copy link
Copy Markdown
Contributor Author
image

@rudimatz rudimatz requested a review from holloway June 18, 2026 04:30
<BaseButton
v-if="props.rfcToBe?.disposition === 'in_progress'"
@click="isWithdrawDialogShown = true"
class="flex items-center !bg-rose-600 hover:!bg-rose-500"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use btn-type prop (mapped to classForBtnType) rather than these one-off styles?


const props = defineProps<Props>()
const emit = defineEmits<{ assignmentsChanged: [] }>()
const emit = defineEmits<{ assignmentsChanged: []; withdrawn: [] }>()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the type really an empty array or will it have a length during runtime?

afaik emits have broadcasters and receivers so it's probably worth having a shared type on both ends, from a utils file

</div>
</div>
<div class="bg-gray-50 dark:bg-neutral-800 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6 gap-2">
<button

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to use BaseButton for these?


// Withdraw committed — the comment is a best-effort annotation.
try {
if (comment.value.trim()) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a tmp var for this trimmed value so it doesn't get out of sync with the duplicate trimmed value?

<Icon v-if="isSubmitting" name="ei:spinner-3" size="1.1em" class="animate-spin mr-1" />
Withdraw
</button>
<button type="button" class="btn-secondary" :disabled="isSubmitting" @click="cancel">Cancel</button>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the screenshot is still accurate then perhaps we might need more spacing between the cancel and withdraw buttons? Obv don't want people clicking something accidentally.

@holloway holloway left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just minor feedback

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.

Can't withdraw document from the queue

2 participants