feat: add paste hint on homescreen

Inform users they can paste a list of items to create a new task.
This commit is contained in:
Julien Calixte
2026-01-24 13:20:42 +01:00
parent d3fd8ff5bb
commit 428336a663

View File

@@ -27,7 +27,10 @@ const handlePaste = (event: ClipboardEvent) => {
return return
} }
router.push({ name: 'new-task', state: { initialSteps: JSON.stringify(steps) } }) router.push({
name: 'new-task',
state: { initialSteps: JSON.stringify(steps) }
})
} }
onMounted(() => { onMounted(() => {
@@ -42,7 +45,8 @@ onUnmounted(() => {
<template> <template>
<main> <main>
<div class="content-tasks columns is-centered is-vcentered"> <div class="content-tasks columns is-centered is-vcentered">
<div class="new-task-container column buttons"> <div class="new-task-container column">
<div class="buttons">
<router-link :to="{ name: 'new-task' }" class="button is-primary"> <router-link :to="{ name: 'new-task' }" class="button is-primary">
new task new task
</router-link> </router-link>
@@ -50,6 +54,12 @@ onUnmounted(() => {
clear the list clear the list
</button> </button>
</div> </div>
<section class="message is-info paste-hint">
<div class="message-body">
Paste a list of items to directly create a new task
</div>
</section>
</div>
<task-list class="column task-list" /> <task-list class="column task-list" />
</div> </div>
<!-- <!--
@@ -87,6 +97,11 @@ main {
align-items: center; align-items: center;
} }
.paste-hint {
margin: 1rem;
text-align: center;
}
.task-list { .task-list {
max-height: 60vh; max-height: 60vh;
overflow-y: auto; overflow-y: auto;