From e4016dee4492bd775a2a566e4af709812bd714bd Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Sun, 21 Sep 2025 00:34:47 +0200 Subject: [PATCH] working on grid display for most important content Signed-off-by: Stephan Richter --- frontend/src/App.svelte | 1 + frontend/src/routes/tags/TagList.svelte | 6 +- frontend/src/routes/task/View.svelte | 257 ++++++++++-------------- 3 files changed, 108 insertions(+), 156 deletions(-) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 3406257..ec51fe9 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -52,6 +52,7 @@ async function testGuard({to, from, next}){ await checkUser(); + window.scrollTo(0,0); next(); } diff --git a/frontend/src/routes/tags/TagList.svelte b/frontend/src/routes/tags/TagList.svelte index b5735f0..e2c7ca4 100644 --- a/frontend/src/routes/tags/TagList.svelte +++ b/frontend/src/routes/tags/TagList.svelte @@ -91,12 +91,12 @@ {/if}
- - - {#each tags as tag,idx} show(tag)}>{tag}  {/each} + + +
diff --git a/frontend/src/routes/task/View.svelte b/frontend/src/routes/task/View.svelte index c1e7d2f..259ecf6 100644 --- a/frontend/src/routes/task/View.svelte +++ b/frontend/src/routes/task/View.svelte @@ -181,161 +181,112 @@ {error} {/if} {#if task} - - - {#if project} - - - - - {/if} - {#if task.parent} - - - - - {/if} - - - - - - - - - {#if task.description} - - - - - {/if} +
+ {#if project} +
{t('project')}
+ + {/if} + {#if task.parent} +
{t('parent_task')}
+ + {/if} +
{t('task')}
+
+ update({name:val})} /> + + +
+
{t('state')}
+
+ update({status:val})} {project} /> +
+ {#if task.description} +
{t('description')}
+
+ update({description:val})} /> +
+ {/if} + {#if task.start_date} +
{t('start_date')}
+
{task.start_date}
+ {/if} + {#if task.due_date} +
{t('due_date')}
+
{task.due_date}
+ {/if} + {#if task.estimated_time} +
{t('estimated_time')}
+
{task.estimated_time} h
+ {/if} +
{t('members')}
+
+
    + {#each Object.values(task.members) as member} +
  • {member.user.name} ({t('permission_'+member.permission.name.toLowerCase())})
  • + {/each} +
+
+ {#if showSettings} +
{t('extended_settings')}
+ - {#if task.start_date} -
- - - - {/if} - {#if task.due_date} - - - - - {/if} - {#if task.estimated_time} - - - - - {/if} - - - - - {#if showSettings} - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + +
{t('members')}
+
+ +
+ +
{t('start_date')}
+
+ update({start_date:task.start_date})} /> +
+ +
{t('due_date')}
+
+ update({due_date:task.due_date})} /> +
+ +
{t('estimated_time')}
+
+ update({estimated_time:task.estimated_time})} /> h +
+ +
{t('depends_on')}
+
+ +
+ {/if} + +
+ {t('subtasks')} + +
+
+ {#if children} + {/if} -
- - - - - - - - -
{t('project')} - {project.name} -
{t('parent_task')} - {task.parent.name} -
{t('task')} - update({name:val})} /> - - - -
{t('state')} - update({status:val})} {project} /> -
{t('description')} - update({description:val})} /> -
{t('start_date')}{task.start_date}
{t('due_date')}{task.due_date}
{t('estimated_time')}{task.estimated_time} h
{t('members')} -
    - {#each Object.values(task.members) as member} -
  • {member.user.name} ({t('permission_'+member.permission.name.toLowerCase())})
  • - {/each} -
-
- {t('extended_settings')} - - -
- -
- {t('members')} - - -
- {t('start_date')} - - update({start_date:task.start_date})} /> -
- {t('due_date')} - - update({due_date:task.due_date})} /> -
- {t('estimated_time')} - - update({estimated_time:task.estimated_time})} /> h -
- {t('depends_on')} - - -
- {t('subtasks')} - - - {#if children} - - {/if} -
- {t('tags')} - - +id)} /> -
-{/if} -
+
+ +
{t('tags')}
+
+ +id)} /> +

{t('notes')}

+
+
+{/if} +