Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

feat: web and mobile client in with nuxt-ui lib

Nikolai Giman3d0d3eca477e
diff --git a/web-nuxt-ui/.claude/settings.json b/web-nuxt-ui/.claude/settings.json
new file mode 100644
index 0000000..3288de3
--- /dev/null
+++ b/web-nuxt-ui/.claude/settings.json
@@ -0,0 +1,5 @@
+{
+ "enabledPlugins": {
+ "context7@claude-plugins-official": true
+ }
+}
diff --git a/web-nuxt-ui/.editorconfig b/web-nuxt-ui/.editorconfig
new file mode 100755
index 0000000..9142239
--- /dev/null
+++ b/web-nuxt-ui/.editorconfig
@@ -0,0 +1,13 @@
+# editorconfig.org
+root = true
+
+[*]
+indent_size = 2
+indent_style = space
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false
diff --git a/web-nuxt-ui/.github/workflows/ci.yml b/web-nuxt-ui/.github/workflows/ci.yml
new file mode 100644
index 0000000..789120e
--- /dev/null
+++ b/web-nuxt-ui/.github/workflows/ci.yml
@@ -0,0 +1,37 @@
+name: ci
+
+on: push
+
+jobs:
+ ci:
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+ node: [22]
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+
+ - name: Install pnpm
+ uses: pnpm/action-setup@v4
+
+ - name: Install node
+ uses: actions/setup-node@v6
+ with:
+ node-version: ${{ matrix.node }}
+ cache: pnpm
+
+ - name: Install dependencies
+ run: pnpm install
+
+ - name: Lint
+ run: pnpm run lint
+
+ - name: Build
+ run: pnpm run build
+
+ - name: Typecheck
+ run: pnpm run typecheck
diff --git a/web-nuxt-ui/.gitignore b/web-nuxt-ui/.gitignore
new file mode 100644
index 0000000..34cdd11
--- /dev/null
+++ b/web-nuxt-ui/.gitignore
@@ -0,0 +1,38 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+# Auto-generated type declarations
+auto-imports.d.ts
+components.d.ts
+tsconfig.app.tsbuildinfo
+tsconfig.node.tsbuildinfo
+
+# Environment variables
+.env
+Info.plist
+e2e_logs
+e2e_pgdata
+e2e_updates
+playwright-report
\ No newline at end of file
diff --git a/web-nuxt-ui/android/.gitignore b/web-nuxt-ui/android/.gitignore
new file mode 100644
index 0000000..d9936bd
--- /dev/null
+++ b/web-nuxt-ui/android/.gitignore
@@ -0,0 +1,101 @@
+# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
+
+# Built application files
+*.apk
+*.aar
+*.ap_
+*.aab
+
+# Files for the ART/Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+out/
+# Uncomment the following line in case you need and you don't have the release build type files in your app
+# release/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/
+
+# Log Files
+*.log
+
+# Android Studio Navigation editor temp files
+.navigation/
+
+# Android Studio captures folder
+captures/
+
+# IntelliJ
+*.iml
+.idea/workspace.xml
+.idea/tasks.xml
+.idea/gradle.xml
+.idea/assetWizardSettings.xml
+.idea/dictionaries
+.idea/libraries
+# Android Studio 3 in .gitignore file.
+.idea/caches
+.idea/modules.xml
+# Comment next line if keeping position of elements in Navigation Editor is relevant for you
+.idea/navEditor.xml
+
+# Keystore files
+# Uncomment the following lines if you do not want to check your keystore files in.
+*.jks
+*.keystore
+
+# External native build folder generated in Android Studio 2.2 and later
+.externalNativeBuild
+.cxx/
+
+# Google Services (e.g. APIs or Firebase)
+# google-services.json
+
+# Freeline
+freeline.py
+freeline/
+freeline_project_description.json
+
+# fastlane
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots
+fastlane/test_output
+fastlane/readme.md
+
+# Version control
+vcs.xml
+
+# lint
+lint/intermediates/
+lint/generated/
+lint/outputs/
+lint/tmp/
+# lint/reports/
+
+# Android Profiling
+*.hprof
+
+# Cordova plugins for Capacitor
+capacitor-cordova-android-plugins
+
+# Copied web assets
+app/src/main/assets/public
+
+# Generated Config files
+app/src/main/assets/capacitor.config.json
+app/src/main/assets/capacitor.plugins.json
+app/src/main/res/xml/config.xml
diff --git a/web-nuxt-ui/android/app/.gitignore b/web-nuxt-ui/android/app/.gitignore
new file mode 100644
index 0000000..043df80
--- /dev/null
+++ b/web-nuxt-ui/android/app/.gitignore
@@ -0,0 +1,2 @@
+/build/*
+!/build/.npmkeep
diff --git a/web-nuxt-ui/android/app/build.gradle b/web-nuxt-ui/android/app/build.gradle
new file mode 100644
index 0000000..a83eaee
--- /dev/null
+++ b/web-nuxt-ui/android/app/build.gradle
@@ -0,0 +1,54 @@
+apply plugin: 'com.android.application'
+
+android {
+ namespace = "com.handscream.taskview.app"
+ compileSdk = rootProject.ext.compileSdkVersion
+ defaultConfig {
+ applicationId "com.handscreamgnl.taskview.app"
+ minSdkVersion rootProject.ext.minSdkVersion
+ targetSdkVersion rootProject.ext.targetSdkVersion
+ versionCode 1201
+ versionName "1.20.1"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ aaptOptions {
+ // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
+ // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
+ ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
+ }
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+repositories {
+ flatDir{
+ dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
+ }
+}
+
+dependencies {
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
+ implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
+ implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
+ implementation project(':capacitor-android')
+ testImplementation "junit:junit:$junitVersion"
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
+ implementation project(':capacitor-cordova-android-plugins')
+}
+
+apply from: 'capacitor.build.gradle'
+
+try {
+ def servicesJSON = file('google-services.json')
+ if (servicesJSON.text) {
+ apply plugin: 'com.google.gms.google-services'
+ }
+} catch(Exception e) {
+ logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
+}
diff --git a/web-nuxt-ui/android/app/capacitor.build.gradle b/web-nuxt-ui/android/app/capacitor.build.gradle
new file mode 100644
index 0000000..89c30ab
--- /dev/null
+++ b/web-nuxt-ui/android/app/capacitor.build.gradle
@@ -0,0 +1,24 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+
+android {
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_21
+ targetCompatibility JavaVersion.VERSION_21
+ }
+}
+
+apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
+dependencies {
+ implementation project(':capacitor-app')
+ implementation project(':capacitor-browser')
+ implementation project(':capacitor-device')
+ implementation project(':capacitor-preferences')
+ implementation project(':capacitor-splash-screen')
+ implementation project(':capgo-capacitor-updater')
+
+}
+
+
+if (hasProperty('postBuildExtras')) {
+ postBuildExtras()
+}
diff --git a/web-nuxt-ui/android/app/proguard-rules.pro b/web-nuxt-ui/android/app/proguard-rules.pro
new file mode 100644
index 0000000..f1b4245
--- /dev/null
+++ b/web-nuxt-ui/android/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/web-nuxt-ui/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/web-nuxt-ui/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..f2c2217
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import android.content.Context;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+import androidx.test.platform.app.InstrumentationRegistry;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+
+ assertEquals("com.getcapacitor.app", appContext.getPackageName());
+ }
+}
diff --git a/web-nuxt-ui/android/app/src/main/AndroidManifest.xml b/web-nuxt-ui/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..fbde4da
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <application
+ android:allowBackup="true"
+ android:icon="@mipmap/ic_launcher"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_launcher_round"
+ android:supportsRtl="true"
+ android:networkSecurityConfig="@xml/network_security_config"
+ android:theme="@style/AppTheme">
+
+ <activity
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation|density"
+ android:name=".MainActivity"
+ android:label="@string/title_activity_main"
+ android:theme="@style/AppTheme.NoActionBarLaunch"
+ android:launchMode="singleTask"
+ android:exported="true">
+
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+
+ </activity>
+
+ <provider
+ android:name="androidx.core.content.FileProvider"
+ android:authorities="${applicationId}.fileprovider"
+ android:exported="false"
+ android:grantUriPermissions="true">
+ <meta-data
+ android:name="android.support.FILE_PROVIDER_PATHS"
+ android:resource="@xml/file_paths"></meta-data>
+ </provider>
+ </application>
+
+ <!-- Permissions -->
+
+ <uses-permission android:name="android.permission.INTERNET" />
+</manifest>
\ No newline at end of file
diff --git a/web-nuxt-ui/android/app/src/main/java/com/handscream/taskview/app/MainActivity.java b/web-nuxt-ui/android/app/src/main/java/com/handscream/taskview/app/MainActivity.java
new file mode 100644
index 0000000..34955e4
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/java/com/handscream/taskview/app/MainActivity.java
@@ -0,0 +1,5 @@
+package com.handscream.taskview.app;
+
+import com.getcapacitor.BridgeActivity;
+
+public class MainActivity extends BridgeActivity {}
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-hdpi/___splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-hdpi/___splash.png
new file mode 100644
index 0000000..666d433
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-hdpi/___splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-hdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-hdpi/splash.png
new file mode 100644
index 0000000..a6a6f21
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-hdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-land-hdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-land-hdpi/splash.png
new file mode 100644
index 0000000..e31573b
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-land-hdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-land-mdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-land-mdpi/splash.png
new file mode 100644
index 0000000..f7a6492
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-land-mdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-land-xhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-land-xhdpi/splash.png
new file mode 100644
index 0000000..8077255
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-land-xhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-land-xxhdpi/splash.png
new file mode 100644
index 0000000..14c6c8f
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-land-xxhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-land-xxxhdpi/splash.png
new file mode 100644
index 0000000..244ca25
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-land-xxxhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-ldpi/___splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-ldpi/___splash.png
new file mode 100644
index 0000000..88b0e36
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-ldpi/___splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-ldpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-ldpi/splash.png
new file mode 100644
index 0000000..a6a6f21
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-ldpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-mdpi/___splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-mdpi/___splash.png
new file mode 100644
index 0000000..8388bc9
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-mdpi/___splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-mdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-mdpi/splash.png
new file mode 100644
index 0000000..a6a6f21
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-mdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-port-hdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-port-hdpi/splash.png
new file mode 100644
index 0000000..74faaa5
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-port-hdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-port-mdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-port-mdpi/splash.png
new file mode 100644
index 0000000..e944f4a
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-port-mdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-port-xhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-port-xhdpi/splash.png
new file mode 100644
index 0000000..564a82f
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-port-xhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-port-xxhdpi/splash.png
new file mode 100644
index 0000000..bfabe68
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-port-xxhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-port-xxxhdpi/splash.png
new file mode 100644
index 0000000..6929071
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-port-xxxhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/web-nuxt-ui/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..c7bd21d
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:aapt="http://schemas.android.com/aapt"
+ android:width="108dp"
+ android:height="108dp"
+ android:viewportHeight="108"
+ android:viewportWidth="108">
+ <path
+ android:fillType="evenOdd"
+ android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
+ android:strokeColor="#00000000"
+ android:strokeWidth="1">
+ <aapt:attr name="android:fillColor">
+ <gradient
+ android:endX="78.5885"
+ android:endY="90.9159"
+ android:startX="48.7653"
+ android:startY="61.0927"
+ android:type="linear">
+ <item
+ android:color="#44000000"
+ android:offset="0.0" />
+ <item
+ android:color="#00000000"
+ android:offset="1.0" />
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path
+ android:fillColor="#FFFFFF"
+ android:fillType="nonZero"
+ android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
+ android:strokeColor="#00000000"
+ android:strokeWidth="1" />
+</vector>
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-xhdpi/___splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-xhdpi/___splash.png
new file mode 100644
index 0000000..0b1024d
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-xhdpi/___splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-xhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-xhdpi/splash.png
new file mode 100644
index 0000000..a6a6f21
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-xhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-xxhdpi/___splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-xxhdpi/___splash.png
new file mode 100644
index 0000000..b6cf1d6
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-xxhdpi/___splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-xxhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-xxhdpi/splash.png
new file mode 100644
index 0000000..a6a6f21
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-xxhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-xxxhdpi/___splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-xxxhdpi/___splash.png
new file mode 100644
index 0000000..5e37270
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-xxxhdpi/___splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable-xxxhdpi/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable-xxxhdpi/splash.png
new file mode 100644
index 0000000..a6a6f21
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable-xxxhdpi/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable/ic_launcher_background.xml b/web-nuxt-ui/android/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..d5fccc5
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="utf-8"?>
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="108dp"
+ android:height="108dp"
+ android:viewportHeight="108"
+ android:viewportWidth="108">
+ <path
+ android:fillColor="#26A69A"
+ android:pathData="M0,0h108v108h-108z" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M9,0L9,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,0L19,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M29,0L29,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M39,0L39,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M49,0L49,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M59,0L59,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M69,0L69,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M79,0L79,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M89,0L89,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M99,0L99,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,9L108,9"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,19L108,19"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,29L108,29"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,39L108,39"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,49L108,49"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,59L108,59"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,69L108,69"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,79L108,79"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,89L108,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,99L108,99"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,29L89,29"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,39L89,39"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,49L89,49"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,59L89,59"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,69L89,69"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,79L89,79"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M29,19L29,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M39,19L39,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M49,19L49,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M59,19L59,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M69,19L69,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M79,19L79,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+</vector>
diff --git a/web-nuxt-ui/android/app/src/main/res/drawable/splash.png b/web-nuxt-ui/android/app/src/main/res/drawable/splash.png
new file mode 100644
index 0000000..666d433
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/drawable/splash.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/layout/activity_main.xml b/web-nuxt-ui/android/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..b5ad138
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".MainActivity">
+
+ <WebView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/web-nuxt-ui/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..036d09b
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background"/>
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>
\ No newline at end of file
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/web-nuxt-ui/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..036d09b
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background"/>
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>
\ No newline at end of file
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..9363281
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..4f9348c
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..e4ebaaa
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-ldpi/ic_launcher.png b/web-nuxt-ui/android/app/src/main/res/mipmap-ldpi/ic_launcher.png
new file mode 100644
index 0000000..31fd18e
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-ldpi/ic_launcher.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..1108b0c
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..840f47e
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..1928529
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..f1e0840
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..f34b874
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..56176b5
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..50b5876
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..510b4fd
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..a8d71a5
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..3b8620b
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..25b9e51
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..77650da
Binary files /dev/null and b/web-nuxt-ui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/web-nuxt-ui/android/app/src/main/res/values/ic_launcher_background.xml b/web-nuxt-ui/android/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 0000000..beab31f
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="ic_launcher_background">#000000</color>
+</resources>
\ No newline at end of file
diff --git a/web-nuxt-ui/android/app/src/main/res/values/strings.xml b/web-nuxt-ui/android/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..612e621
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<resources>
+ <string name="app_name">TaskView</string>
+ <string name="title_activity_main">TaskView</string>
+ <string name="package_name">com.handscream.taskview.app</string>
+ <string name="custom_url_scheme">com.handscream.taskview.app</string>
+</resources>
diff --git a/web-nuxt-ui/android/app/src/main/res/values/styles.xml b/web-nuxt-ui/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..be874e5
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <!-- Base application theme. -->
+ <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
+ <!-- Customize your theme here. -->
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="colorAccent">@color/colorAccent</item>
+ </style>
+
+ <style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
+ <item name="windowActionBar">false</item>
+ <item name="windowNoTitle">true</item>
+ <item name="android:background">@null</item>
+ </style>
+
+
+ <style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
+ <item name="android:background">@drawable/splash</item>
+ </style>
+</resources>
\ No newline at end of file
diff --git a/web-nuxt-ui/android/app/src/main/res/xml/file_paths.xml b/web-nuxt-ui/android/app/src/main/res/xml/file_paths.xml
new file mode 100644
index 0000000..bd0c4d8
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/xml/file_paths.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<paths xmlns:android="http://schemas.android.com/apk/res/android">
+ <external-path name="my_images" path="." />
+ <cache-path name="my_cache_images" path="." />
+</paths>
\ No newline at end of file
diff --git a/web-nuxt-ui/android/app/src/main/res/xml/network_security_config.xml b/web-nuxt-ui/android/app/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..7448506
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<network-security-config>
+ <base-config cleartextTrafficPermitted="false">
+ <trust-anchors>
+ <certificates src="system" />
+ <certificates src="user" />
+ </trust-anchors>
+ </base-config>
+</network-security-config>
\ No newline at end of file
diff --git a/web-nuxt-ui/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/web-nuxt-ui/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
new file mode 100644
index 0000000..0297327
--- /dev/null
+++ b/web-nuxt-ui/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
@@ -0,0 +1,18 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+public class ExampleUnitTest {
+
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
diff --git a/web-nuxt-ui/android/build.gradle b/web-nuxt-ui/android/build.gradle
new file mode 100644
index 0000000..f8f0e43
--- /dev/null
+++ b/web-nuxt-ui/android/build.gradle
@@ -0,0 +1,29 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:8.13.0'
+ classpath 'com.google.gms:google-services:4.4.4'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+apply from: "variables.gradle"
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/web-nuxt-ui/android/capacitor.settings.gradle b/web-nuxt-ui/android/capacitor.settings.gradle
new file mode 100644
index 0000000..29285d7
--- /dev/null
+++ b/web-nuxt-ui/android/capacitor.settings.gradle
@@ -0,0 +1,21 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+include ':capacitor-android'
+project(':capacitor-android').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/android/capacitor')
+
+include ':capacitor-app'
+project(':capacitor-app').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/app/android')
+
+include ':capacitor-browser'
+project(':capacitor-browser').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/browser/android')
+
+include ':capacitor-device'
+project(':capacitor-device').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/device/android')
+
+include ':capacitor-preferences'
+project(':capacitor-preferences').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/preferences/android')
+
+include ':capacitor-splash-screen'
+project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/splash-screen/android')
+
+include ':capgo-capacitor-updater'
+project(':capgo-capacitor-updater').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capgo/capacitor-updater/android')
diff --git a/web-nuxt-ui/android/gradle.properties b/web-nuxt-ui/android/gradle.properties
new file mode 100644
index 0000000..2e87c52
--- /dev/null
+++ b/web-nuxt-ui/android/gradle.properties
@@ -0,0 +1,22 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
diff --git a/web-nuxt-ui/android/gradle/wrapper/gradle-wrapper.jar b/web-nuxt-ui/android/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..1b33c55
Binary files /dev/null and b/web-nuxt-ui/android/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/web-nuxt-ui/android/gradle/wrapper/gradle-wrapper.properties b/web-nuxt-ui/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..7705927
--- /dev/null
+++ b/web-nuxt-ui/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/web-nuxt-ui/android/gradlew b/web-nuxt-ui/android/gradlew
new file mode 100755
index 0000000..23d15a9
--- /dev/null
+++ b/web-nuxt-ui/android/gradlew
@@ -0,0 +1,251 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH="\\\"\\\""
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/web-nuxt-ui/android/gradlew.bat b/web-nuxt-ui/android/gradlew.bat
new file mode 100644
index 0000000..5eed7ee
--- /dev/null
+++ b/web-nuxt-ui/android/gradlew.bat
@@ -0,0 +1,94 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+@rem SPDX-License-Identifier: Apache-2.0
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/web-nuxt-ui/android/settings.gradle b/web-nuxt-ui/android/settings.gradle
new file mode 100644
index 0000000..3b4431d
--- /dev/null
+++ b/web-nuxt-ui/android/settings.gradle
@@ -0,0 +1,5 @@
+include ':app'
+include ':capacitor-cordova-android-plugins'
+project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
+
+apply from: 'capacitor.settings.gradle'
\ No newline at end of file
diff --git a/web-nuxt-ui/android/variables.gradle b/web-nuxt-ui/android/variables.gradle
new file mode 100644
index 0000000..ee4ba41
--- /dev/null
+++ b/web-nuxt-ui/android/variables.gradle
@@ -0,0 +1,16 @@
+ext {
+ minSdkVersion = 24
+ compileSdkVersion = 36
+ targetSdkVersion = 36
+ androidxActivityVersion = '1.11.0'
+ androidxAppCompatVersion = '1.7.1'
+ androidxCoordinatorLayoutVersion = '1.3.0'
+ androidxCoreVersion = '1.17.0'
+ androidxFragmentVersion = '1.8.9'
+ coreSplashScreenVersion = '1.2.0'
+ androidxWebkitVersion = '1.14.0'
+ junitVersion = '4.13.2'
+ androidxJunitVersion = '1.3.0'
+ androidxEspressoCoreVersion = '3.7.0'
+ cordovaAndroidVersion = '14.0.1'
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/capacitor.config.ts b/web-nuxt-ui/capacitor.config.ts
new file mode 100644
index 0000000..0f094af
--- /dev/null
+++ b/web-nuxt-ui/capacitor.config.ts
@@ -0,0 +1,31 @@
+import type { CapacitorConfig } from '@capacitor/cli'
+
+const config: CapacitorConfig = {
+ appId: 'com.handscream.taskview.app',
+ appName: 'TaskView',
+ webDir: 'dist',
+ zoomEnabled: false,
+ android: {
+ zoomEnabled: false,
+ },
+ ios: {
+ zoomEnabled: false,
+ webContentsDebuggingEnabled: true,
+ },
+ server: {
+ hostname: 'app.taskview.tech',
+ },
+ plugins: {
+ CapacitorUpdater: {
+ autoUpdate: false,
+ },
+ CapacitorCookies: {
+ enabled: true,
+ },
+ CapacitorHttp: {
+ enabled: true,
+ },
+ },
+}
+
+export default config
diff --git a/web-nuxt-ui/e2e/auth.spec.ts b/web-nuxt-ui/e2e/auth.spec.ts
new file mode 100644
index 0000000..6c708d1
--- /dev/null
+++ b/web-nuxt-ui/e2e/auth.spec.ts
@@ -0,0 +1,29 @@
+import { test, expect } from '@playwright/test'
+import { TEST_USER } from './fixtures/auth'
+
+test.describe('Login', () => {
+ test.beforeEach(async ({ page }) => {
+ await page.goto('/')
+ })
+
+ test('shows login page with welcome message', async ({ page }) => {
+ await expect(page.getByRole('heading', { level: 1 })).toContainText(/welcome|возвращением/i)
+ })
+
+ test('user can login with password and reach dashboard', async ({ page }) => {
+ // Switch to Password tab (default is Magic link)
+ await page.getByRole('tab', { name: /password|пароль/i }).click()
+
+ // Fill credentials
+ await page.getByTestId('login-input').fill(TEST_USER.login)
+ await page.getByTestId('password-input').fill(TEST_USER.password)
+
+ // Submit
+ await page.getByTestId('sign-in-button').click()
+
+ // Should redirect to user dashboard
+ await expect(page).toHaveURL(/\/user/)
+ // Dashboard should be visible (sidebar or main content)
+ await expect(page.locator('body')).not.toContainText(/invalid|неверный|error|ошибка/i)
+ })
+})
diff --git a/web-nuxt-ui/e2e/docker-compose.yml b/web-nuxt-ui/e2e/docker-compose.yml
new file mode 100644
index 0000000..95a674d
--- /dev/null
+++ b/web-nuxt-ui/e2e/docker-compose.yml
@@ -0,0 +1,51 @@
+# E2E test stack: PostgreSQL + migration + API
+# Run from repo root: bash build-dockers.sh (builds images first)
+# Then: docker compose -f se/web-nuxt-ui/e2e/docker-compose.yml up -d
+#
+# API is exposed on 1401 so web-nuxt-ui (useTaskViewMainUrl) can connect.
+
+services:
+ db:
+ image: postgres:17
+ restart: unless-stopped
+ env_file:
+ - ../../dockers-check/.env.postgresql
+ volumes:
+ - ./e2e_pgdata:/var/lib/postgresql/data
+ ports:
+ - "5433:5432"
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U tvdbuser -d taskviewdb"]
+ interval: 5s
+ timeout: 5s
+ retries: 5
+
+ migration:
+ image: gimanhead/taskview-se-db-migration:latest
+ restart: "no"
+ depends_on:
+ db:
+ condition: service_healthy
+ env_file:
+ - ../../dockers-check/.env.taskview
+
+ api:
+ image: gimanhead/taskview-se-api-server:latest
+ restart: "no"
+ ports:
+ - "1401:1401"
+ depends_on:
+ db:
+ condition: service_healthy
+ migration:
+ condition: service_completed_successfully
+ env_file:
+ - ../../dockers-check/.env.taskview
+ volumes:
+ - ./e2e_logs:/usr/src/app/logs
+ - ./e2e_updates:/usr/src/app/updates
+
+volumes:
+ e2e_pgdata:
+ e2e_logs:
+ e2e_updates:
diff --git a/web-nuxt-ui/e2e/fixtures/auth.ts b/web-nuxt-ui/e2e/fixtures/auth.ts
new file mode 100644
index 0000000..9b8cce1
--- /dev/null
+++ b/web-nuxt-ui/e2e/fixtures/auth.ts
@@ -0,0 +1,8 @@
+/**
+ * E2E auth fixtures. Credentials match DB seed from community migrations
+ * (user / user1!#Q from app_permissions.sql).
+ */
+export const TEST_USER = {
+ login: 'user',
+ password: 'user1!#Q',
+}
diff --git a/web-nuxt-ui/e2e/global-setup.ts b/web-nuxt-ui/e2e/global-setup.ts
new file mode 100644
index 0000000..ec43e69
--- /dev/null
+++ b/web-nuxt-ui/e2e/global-setup.ts
@@ -0,0 +1,25 @@
+import { execSync } from 'node:child_process'
+import { readFileSync, existsSync } from 'node:fs'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+
+function loadEnv(dir: string) {
+ const envPath = path.join(dir, '.env')
+ if (!existsSync(envPath)) return
+ for (const line of readFileSync(envPath, 'utf-8').split('\n')) {
+ const m = line.match(/^([^#=]+)=(.*)$/)
+ if (m) process.env[m[1].trim()] = m[2].trim()
+ }
+}
+
+export default async function globalSetup() {
+ const e2eDir = path.dirname(fileURLToPath(import.meta.url))
+ const projectDir = path.join(e2eDir, '..')
+ loadEnv(projectDir)
+ const setupScript = path.join(e2eDir, 'docker-setup.sh')
+ execSync(`bash "${setupScript}"`, {
+ stdio: 'inherit',
+ cwd: path.join(e2eDir, '../../..'),
+ env: process.env,
+ })
+}
diff --git a/web-nuxt-ui/e2e/global-teardown.ts b/web-nuxt-ui/e2e/global-teardown.ts
new file mode 100644
index 0000000..76553d9
--- /dev/null
+++ b/web-nuxt-ui/e2e/global-teardown.ts
@@ -0,0 +1,16 @@
+import { execSync } from 'node:child_process'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+
+export default async function globalTeardown() {
+ const e2eDir = path.dirname(fileURLToPath(import.meta.url))
+ const teardownScript = path.join(e2eDir, 'docker-teardown.sh')
+ try {
+ execSync(`bash "${teardownScript}"`, {
+ stdio: 'inherit',
+ cwd: path.join(e2eDir, '../../..'),
+ })
+ } catch {
+ console.warn('[e2e] Teardown: some containers may have already been stopped')
+ }
+}
diff --git a/web-nuxt-ui/e2e/projects.spec.ts b/web-nuxt-ui/e2e/projects.spec.ts
new file mode 100644
index 0000000..cab8d82
--- /dev/null
+++ b/web-nuxt-ui/e2e/projects.spec.ts
@@ -0,0 +1,71 @@
+import { test, expect } from '@playwright/test'
+import { login } from './test-helpers'
+
+async function addProject(page: import('@playwright/test').Page, name: string) {
+ const input = page.getByTestId('project-add-input').first()
+ await input.waitFor({ state: 'visible', timeout: 15000 })
+ await input.fill(name)
+ await input.press('Enter')
+ await expect(page.getByText(name).first()).toBeVisible({ timeout: 10000 })
+}
+
+async function openProjectMenu(page: import('@playwright/test').Page, projectName: string) {
+ const row = page.getByTestId(`project-row-${projectName}`)
+ await row.first().waitFor({ state: 'visible', timeout: 10000 })
+ await row.first().getByTestId('project-menu-trigger').click()
+}
+
+test.describe('Projects', () => {
+ test.setTimeout(15_000)
+
+ test.beforeEach(async ({ page }) => {
+ await page.goto('/')
+ await login(page)
+ })
+
+ test('user can add project', async ({ page }) => {
+ const projectName = `Test Project ${Date.now()}`
+ await addProject(page, projectName)
+ })
+
+ test('user can edit project', async ({ page }) => {
+ const projectName = `Edit Me ${Date.now()}`
+ await addProject(page, projectName)
+ const newName = `Edited ${Date.now()}`
+ await openProjectMenu(page, projectName)
+ await page.getByTestId('context-menu-edit').click()
+ await page.getByTestId('project-edit-name').fill(newName)
+ await page.getByTestId('project-edit-save').click()
+
+ await expect(page.getByText(newName).first()).toBeVisible({ timeout: 5000 })
+ })
+
+ test('user can delete project', async ({ page }) => {
+ const projectName = `Delete Me ${Date.now()}`
+ await addProject(page, projectName)
+ await openProjectMenu(page, projectName)
+ await page.getByTestId('context-menu-delete').click()
+ await page.getByRole('button', { name: /^yes|^да$/i }).click()
+ await expect(page.getByText(projectName)).toHaveCount(0)
+ })
+
+ test('user can archive project', async ({ page }) => {
+ const projectName = `Archive Me ${Date.now()}`
+ await addProject(page, projectName)
+ await openProjectMenu(page, projectName)
+ await page.getByTestId('context-menu-move-to-archive').click()
+ await page.getByTestId('archive-list-collapsible').click()
+ await expect(page.getByTestId(`project-row-${projectName}`)).toBeVisible()
+ })
+
+ test('user can unarchive project', async ({ page }) => {
+ const projectName = `Unarchive Me ${Date.now()}`
+ await addProject(page, projectName)
+ await openProjectMenu(page, projectName)
+ await page.getByTestId('context-menu-move-to-archive').click()
+ await page.getByTestId('archive-list-collapsible').click()
+ await openProjectMenu(page, projectName)
+ await page.getByTestId('context-menu-restore-from-archive').click({ force: true })
+ await expect(page.getByText(projectName).first()).toBeVisible({ timeout: 5000 })
+ })
+})
diff --git a/web-nuxt-ui/e2e/test-helpers.ts b/web-nuxt-ui/e2e/test-helpers.ts
new file mode 100644
index 0000000..5899f29
--- /dev/null
+++ b/web-nuxt-ui/e2e/test-helpers.ts
@@ -0,0 +1,8 @@
+import { TEST_USER } from './fixtures/auth'
+
+export async function login(page: Page) {
+ await page.getByRole('tab', { name: /password|пароль/i }).click()
+ await page.getByTestId('login-input').fill(TEST_USER.login)
+ await page.getByTestId('password-input').fill(TEST_USER.password)
+ await page.getByTestId('sign-in-button').click()
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/eslint.config.ts b/web-nuxt-ui/eslint.config.ts
new file mode 100644
index 0000000..99002c8
--- /dev/null
+++ b/web-nuxt-ui/eslint.config.ts
@@ -0,0 +1,95 @@
+import js from '@eslint/js'
+import eslintPluginVue from 'eslint-plugin-vue'
+import ts from 'typescript-eslint'
+import { fileURLToPath } from 'node:url'
+
+export default ts.config(
+ js.configs.recommended,
+ ...ts.configs.recommended,
+ ...eslintPluginVue.configs['flat/recommended'],
+ {
+ files: ['*.vue', '**/*.vue'],
+ languageOptions: {
+ parserOptions: {
+ parser: '@typescript-eslint/parser',
+ tsconfigRootDir: fileURLToPath(new URL('.', import.meta.url)),
+ },
+ },
+ rules: {
+ 'vue/multi-word-component-names': 'off',
+ 'no-undef': 'off',
+ '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
+
+ // Formatting rules
+ 'vue/script-indent': ['error', 2, { baseIndent: 0 }],
+ 'vue/html-indent': ['error', 2],
+ 'vue/max-attributes-per-line': [
+ 'error',
+ {
+ singleline: 1,
+ multiline: 1,
+ },
+ ],
+ 'vue/first-attribute-linebreak': [
+ 'error',
+ {
+ singleline: 'ignore',
+ multiline: 'below',
+ },
+ ],
+ 'vue/html-closing-bracket-newline': [
+ 'error',
+ {
+ singleline: 'never',
+ multiline: 'always',
+ },
+ ],
+ 'vue/html-self-closing': [
+ 'error',
+ {
+ html: {
+ void: 'always',
+ normal: 'always',
+ component: 'always',
+ },
+ svg: 'always',
+ math: 'always',
+ },
+ ],
+ 'vue/attribute-hyphenation': ['error', 'always'],
+ 'vue/v-bind-style': ['error', 'shorthand'],
+ 'vue/v-on-style': ['error', 'shorthand'],
+ 'vue/v-slot-style': ['error', 'shorthand'],
+ },
+ },
+ {
+ files: ['**/*.ts', '**/*.js', '**/*.vue'],
+ rules: {
+ semi: ['error', 'never'],
+ quotes: ['error', 'single'],
+ 'comma-dangle': ['error', 'always-multiline'],
+ 'keyword-spacing': ['error', { before: true, after: true }],
+ 'space-before-blocks': ['error', 'always'],
+ 'space-before-function-paren': ['error', { anonymous: 'always', named: 'never', asyncArrow: 'always' }],
+ 'space-infix-ops': 'error',
+ 'space-in-parens': ['error', 'never'],
+ 'object-curly-spacing': ['error', 'always'],
+ 'array-bracket-spacing': ['error', 'never'],
+ 'comma-spacing': ['error', { before: false, after: true }],
+ 'key-spacing': ['error', { beforeColon: false, afterColon: true }],
+ 'arrow-spacing': ['error', { before: true, after: true }],
+ },
+ },
+ {
+ files: ['**/*.ts', '**/*.js'],
+ rules: {
+ indent: ['error', 2],
+ },
+ },
+ {
+ files: ['**/*.vue'],
+ rules: {
+ indent: 'off',
+ },
+ },
+)
diff --git a/web-nuxt-ui/index.html b/web-nuxt-ui/index.html
new file mode 100644
index 0000000..575b875
--- /dev/null
+++ b/web-nuxt-ui/index.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <meta charset="UTF-8" />
+ <link rel="icon"
+ type="image/svg+xml"
+ href="/logo.svg" />
+ <meta name="viewport"
+ content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <link rel="preconnect"
+ href="https://fonts.bunny.net">
+ <link href="https://fonts.bunny.net/css?family=public-sans:400,500,600,700"
+ rel="stylesheet" />
+ <title>TaskView</title>
+ <meta name="description"
+ content="TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control.">
+</head>
+
+<body>
+ <div id="app"
+ class="isolate"></div>
+ <script type="module"
+ src="/src/main.ts"></script>
+</body>
+
+</html>
\ No newline at end of file
diff --git a/web-nuxt-ui/ios/.gitignore b/web-nuxt-ui/ios/.gitignore
new file mode 100644
index 0000000..f470299
--- /dev/null
+++ b/web-nuxt-ui/ios/.gitignore
@@ -0,0 +1,13 @@
+App/build
+App/Pods
+App/output
+App/App/public
+DerivedData
+xcuserdata
+
+# Cordova plugins for Capacitor
+capacitor-cordova-ios-plugins
+
+# Generated Config files
+App/App/capacitor.config.json
+App/App/config.xml
diff --git a/web-nuxt-ui/ios/App/App.xcodeproj/project.pbxproj b/web-nuxt-ui/ios/App/App.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..6f67556
--- /dev/null
+++ b/web-nuxt-ui/ios/App/App.xcodeproj/project.pbxproj
@@ -0,0 +1,378 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 60;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
+ 4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */ = {isa = PBXBuildFile; productRef = 4D22ABE82AF431CB00220026 /* CapApp-SPM */; };
+ 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
+ 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
+ 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };
+ 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };
+ 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
+ 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
+ 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
+ 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+ 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+ 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+ 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+ 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
+ 958DCC722DB07C7200EA8C5F /* debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = debug.xcconfig; path = ../debug.xcconfig; sourceTree = SOURCE_ROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 504EC3011FED79650016851F /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 504EC2FB1FED79650016851F = {
+ isa = PBXGroup;
+ children = (
+ 958DCC722DB07C7200EA8C5F /* debug.xcconfig */,
+ 504EC3061FED79650016851F /* App */,
+ 504EC3051FED79650016851F /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 504EC3051FED79650016851F /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 504EC3041FED79650016851F /* App.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 504EC3061FED79650016851F /* App */ = {
+ isa = PBXGroup;
+ children = (
+ 50379B222058CBB4000EE86E /* capacitor.config.json */,
+ 504EC3071FED79650016851F /* AppDelegate.swift */,
+ 504EC30B1FED79650016851F /* Main.storyboard */,
+ 504EC30E1FED79650016851F /* Assets.xcassets */,
+ 504EC3101FED79650016851F /* LaunchScreen.storyboard */,
+ 504EC3131FED79650016851F /* Info.plist */,
+ 2FAD9762203C412B000D30F8 /* config.xml */,
+ 50B271D01FEDC1A000F3C39B /* public */,
+ );
+ path = App;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 504EC3031FED79650016851F /* App */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */;
+ buildPhases = (
+ 504EC3001FED79650016851F /* Sources */,
+ 504EC3011FED79650016851F /* Frameworks */,
+ 504EC3021FED79650016851F /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = App;
+ packageProductDependencies = (
+ 4D22ABE82AF431CB00220026 /* CapApp-SPM */,
+ );
+ productName = App;
+ productReference = 504EC3041FED79650016851F /* App.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 504EC2FC1FED79650016851F /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 0920;
+ LastUpgradeCheck = 0920;
+ TargetAttributes = {
+ 504EC3031FED79650016851F = {
+ CreatedOnToolsVersion = 9.2;
+ LastSwiftMigration = 1100;
+ ProvisioningStyle = Automatic;
+ };
+ };
+ };
+ buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */;
+ compatibilityVersion = "Xcode 8.0";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 504EC2FB1FED79650016851F;
+ packageReferences = (
+ D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */,
+ );
+ productRefGroup = 504EC3051FED79650016851F /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 504EC3031FED79650016851F /* App */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 504EC3021FED79650016851F /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */,
+ 50B271D11FEDC1A000F3C39B /* public in Resources */,
+ 504EC30F1FED79650016851F /* Assets.xcassets in Resources */,
+ 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
+ 504EC30D1FED79650016851F /* Main.storyboard in Resources */,
+ 2FAD9763203C412B000D30F8 /* config.xml in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 504EC3001FED79650016851F /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 504EC3081FED79650016851F /* AppDelegate.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 504EC30B1FED79650016851F /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 504EC30C1FED79650016851F /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "<group>";
+ };
+ 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 504EC3111FED79650016851F /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 504EC3141FED79650016851F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 504EC3151FED79650016851F /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 504EC3171FED79650016851F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1.20.1;
+ DEVELOPMENT_TEAM = H2W2SG48JT;
+ INFOPLIST_FILE = App/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.20.1;
+ OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
+ PRODUCT_BUNDLE_IDENTIFIER = com.handscream.taskview.app;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 504EC3181FED79650016851F /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1.20.1;
+ DEVELOPMENT_TEAM = H2W2SG48JT;
+ INFOPLIST_FILE = App/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.20.1;
+ PRODUCT_BUNDLE_IDENTIFIER = com.handscream.taskview.app;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 504EC3141FED79650016851F /* Debug */,
+ 504EC3151FED79650016851F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 504EC3171FED79650016851F /* Debug */,
+ 504EC3181FED79650016851F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+
+/* Begin XCLocalSwiftPackageReference section */
+ D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */ = {
+ isa = XCLocalSwiftPackageReference;
+ relativePath = "CapApp-SPM";
+ };
+/* End XCLocalSwiftPackageReference section */
+
+/* Begin XCSwiftPackageProductDependency section */
+ 4D22ABE82AF431CB00220026 /* CapApp-SPM */ = {
+ isa = XCSwiftPackageProductDependency;
+ package = D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */;
+ productName = "CapApp-SPM";
+ };
+/* End XCSwiftPackageProductDependency section */
+ };
+ rootObject = 504EC2FC1FED79650016851F /* Project object */;
+}
diff --git a/web-nuxt-ui/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/web-nuxt-ui/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
new file mode 100644
index 0000000..44f4b69
--- /dev/null
+++ b/web-nuxt-ui/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -0,0 +1,51 @@
+{
+ "originHash" : "e5bfee72a3975177edbeb9593e2d4a7624097d5319fbcc2894685c2c76545af8",
+ "pins" : [
+ {
+ "identity" : "alamofire",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/Alamofire/Alamofire.git",
+ "state" : {
+ "revision" : "3f99050e75bbc6fe71fc323adabb039756680016",
+ "version" : "5.11.1"
+ }
+ },
+ {
+ "identity" : "bigint",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/attaswift/BigInt.git",
+ "state" : {
+ "revision" : "e07e00fa1fd435143a2dcf8b7eec9a7710b2fdfe",
+ "version" : "5.7.0"
+ }
+ },
+ {
+ "identity" : "capacitor-swift-pm",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/ionic-team/capacitor-swift-pm.git",
+ "state" : {
+ "revision" : "1f324fe7bdbdc8c5cc28bea48a231545a8c2e823",
+ "version" : "8.1.0"
+ }
+ },
+ {
+ "identity" : "version",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/mrackwitz/Version.git",
+ "state" : {
+ "revision" : "fd4b0eb5756aa7f1c33977fb626cf37d2140a3a0",
+ "version" : "0.8.0"
+ }
+ },
+ {
+ "identity" : "zipfoundation",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/weichsel/ZIPFoundation.git",
+ "state" : {
+ "revision" : "22787ffb59de99e5dc1fbfe80b19c97a904ad48d",
+ "version" : "0.9.20"
+ }
+ }
+ ],
+ "version" : 3
+}
diff --git a/web-nuxt-ui/ios/App/App/AppDelegate.swift b/web-nuxt-ui/ios/App/App/AppDelegate.swift
new file mode 100644
index 0000000..c3cd83b
--- /dev/null
+++ b/web-nuxt-ui/ios/App/App/AppDelegate.swift
@@ -0,0 +1,49 @@
+import UIKit
+import Capacitor
+
+@UIApplicationMain
+class AppDelegate: UIResponder, UIApplicationDelegate {
+
+ var window: UIWindow?
+
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
+ // Override point for customization after application launch.
+ return true
+ }
+
+ func applicationWillResignActive(_ application: UIApplication) {
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
+ }
+
+ func applicationDidEnterBackground(_ application: UIApplication) {
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+ }
+
+ func applicationWillEnterForeground(_ application: UIApplication) {
+ // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
+ }
+
+ func applicationDidBecomeActive(_ application: UIApplication) {
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+ }
+
+ func applicationWillTerminate(_ application: UIApplication) {
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
+ }
+
+ func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
+ // Called when the app was launched with a url. Feel free to add additional processing here,
+ // but if you want the App API to support tracking app url opens, make sure to keep this call
+ return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
+ }
+
+ func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
+ // Called when the app was launched with an activity, including Universal Links.
+ // Feel free to add additional processing here, but if you want the App API to support
+ // tracking app url opens, make sure to keep this call
+ return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler)
+ }
+
+}
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/100.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/100.png
new file mode 100644
index 0000000..a64c2ac
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/100.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/102.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/102.png
new file mode 100644
index 0000000..4dab9db
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/102.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/1024.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/1024.png
new file mode 100644
index 0000000..1b20ea6
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/1024.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/114.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/114.png
new file mode 100644
index 0000000..1d90783
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/114.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/120.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/120.png
new file mode 100644
index 0000000..232f07c
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/120.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/128.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/128.png
new file mode 100644
index 0000000..0df96db
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/128.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/144.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/144.png
new file mode 100644
index 0000000..f7604a3
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/144.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/152.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/152.png
new file mode 100644
index 0000000..6f41702
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/152.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/16.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/16.png
new file mode 100644
index 0000000..dcf9294
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/16.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/167.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/167.png
new file mode 100644
index 0000000..0a7b3ec
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/167.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/172.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/172.png
new file mode 100644
index 0000000..94934ae
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/172.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/180.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/180.png
new file mode 100644
index 0000000..8f37f60
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/180.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/196.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/196.png
new file mode 100644
index 0000000..f61c70a
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/196.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/20.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/20.png
new file mode 100644
index 0000000..8af2f54
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/20.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/216.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/216.png
new file mode 100644
index 0000000..b56f59c
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/216.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/256.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/256.png
new file mode 100644
index 0000000..ce71c7d
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/256.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/29.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/29.png
new file mode 100644
index 0000000..c0ac23d
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/29.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/32.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/32.png
new file mode 100644
index 0000000..5a52bd9
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/32.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/40.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/40.png
new file mode 100644
index 0000000..c020316
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/40.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/48.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/48.png
new file mode 100644
index 0000000..07c0b20
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/48.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/50.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/50.png
new file mode 100644
index 0000000..892bf44
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/50.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/512.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/512.png
new file mode 100644
index 0000000..4bb424c
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/512.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/55.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/55.png
new file mode 100644
index 0000000..bada042
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/55.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/57.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/57.png
new file mode 100644
index 0000000..e4c936f
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/57.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/58.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/58.png
new file mode 100644
index 0000000..11d32f6
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/58.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/60.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/60.png
new file mode 100644
index 0000000..d22f668
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/60.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/64.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/64.png
new file mode 100644
index 0000000..527c77c
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/64.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/66.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/66.png
new file mode 100644
index 0000000..9edf5e3
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/66.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/72.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/72.png
new file mode 100644
index 0000000..03d4b4c
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/72.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/76.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/76.png
new file mode 100644
index 0000000..365cf94
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/76.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/80.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/80.png
new file mode 100644
index 0000000..ab07d80
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/80.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/87.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/87.png
new file mode 100644
index 0000000..d68a09d
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/87.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/88.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/88.png
new file mode 100644
index 0000000..cde14fa
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/88.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/92.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/92.png
new file mode 100644
index 0000000..22d3953
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/92.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/[email protected] b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/[email protected]
new file mode 100644
index 0000000..adf6ba0
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..2e5c79d
--- /dev/null
+++ b/web-nuxt-ui/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,347 @@
+{
+ "images" : [
+ {
+ "filename" : "40.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "60.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "29.png",
+ "idiom" : "iphone",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "58.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "87.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "80.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "120.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "57.png",
+ "idiom" : "iphone",
+ "scale" : "1x",
+ "size" : "57x57"
+ },
+ {
+ "filename" : "114.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "57x57"
+ },
+ {
+ "filename" : "120.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "180.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "20.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "40.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "29.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "58.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "40.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "80.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "50.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "50x50"
+ },
+ {
+ "filename" : "100.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "50x50"
+ },
+ {
+ "filename" : "72.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "72x72"
+ },
+ {
+ "filename" : "144.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "72x72"
+ },
+ {
+ "filename" : "76.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "152.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "167.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "83.5x83.5"
+ },
+ {
+ "filename" : "1024.png",
+ "idiom" : "ios-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ },
+ {
+ "filename" : "16.png",
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "16x16"
+ },
+ {
+ "filename" : "32.png",
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "16x16"
+ },
+ {
+ "filename" : "32.png",
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "32x32"
+ },
+ {
+ "filename" : "64.png",
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "32x32"
+ },
+ {
+ "filename" : "128.png",
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "128x128"
+ },
+ {
+ "filename" : "256.png",
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "128x128"
+ },
+ {
+ "filename" : "256.png",
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "256x256"
+ },
+ {
+ "filename" : "512.png",
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "256x256"
+ },
+ {
+ "filename" : "512.png",
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "512x512"
+ },
+ {
+ "filename" : "1024.png",
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "512x512"
+ },
+ {
+ "filename" : "48.png",
+ "idiom" : "watch",
+ "role" : "notificationCenter",
+ "scale" : "2x",
+ "size" : "24x24",
+ "subtype" : "38mm"
+ },
+ {
+ "filename" : "55.png",
+ "idiom" : "watch",
+ "role" : "notificationCenter",
+ "scale" : "2x",
+ "size" : "27.5x27.5",
+ "subtype" : "42mm"
+ },
+ {
+ "filename" : "58.png",
+ "idiom" : "watch",
+ "role" : "companionSettings",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "87.png",
+ "idiom" : "watch",
+ "role" : "companionSettings",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "66.png",
+ "idiom" : "watch",
+ "role" : "notificationCenter",
+ "scale" : "2x",
+ "size" : "33x33",
+ "subtype" : "45mm"
+ },
+ {
+ "filename" : "80.png",
+ "idiom" : "watch",
+ "role" : "appLauncher",
+ "scale" : "2x",
+ "size" : "40x40",
+ "subtype" : "38mm"
+ },
+ {
+ "filename" : "88.png",
+ "idiom" : "watch",
+ "role" : "appLauncher",
+ "scale" : "2x",
+ "size" : "44x44",
+ "subtype" : "40mm"
+ },
+ {
+ "filename" : "92.png",
+ "idiom" : "watch",
+ "role" : "appLauncher",
+ "scale" : "2x",
+ "size" : "46x46",
+ "subtype" : "41mm"
+ },
+ {
+ "filename" : "100.png",
+ "idiom" : "watch",
+ "role" : "appLauncher",
+ "scale" : "2x",
+ "size" : "50x50",
+ "subtype" : "44mm"
+ },
+ {
+ "filename" : "102.png",
+ "idiom" : "watch",
+ "role" : "appLauncher",
+ "scale" : "2x",
+ "size" : "51x51",
+ "subtype" : "45mm"
+ },
+ {
+ "idiom" : "watch",
+ "role" : "appLauncher",
+ "scale" : "2x",
+ "size" : "54x54",
+ "subtype" : "49mm"
+ },
+ {
+ "filename" : "172.png",
+ "idiom" : "watch",
+ "role" : "quickLook",
+ "scale" : "2x",
+ "size" : "86x86",
+ "subtype" : "38mm"
+ },
+ {
+ "filename" : "196.png",
+ "idiom" : "watch",
+ "role" : "quickLook",
+ "scale" : "2x",
+ "size" : "98x98",
+ "subtype" : "42mm"
+ },
+ {
+ "filename" : "216.png",
+ "idiom" : "watch",
+ "role" : "quickLook",
+ "scale" : "2x",
+ "size" : "108x108",
+ "subtype" : "44mm"
+ },
+ {
+ "idiom" : "watch",
+ "role" : "quickLook",
+ "scale" : "2x",
+ "size" : "117x117",
+ "subtype" : "45mm"
+ },
+ {
+ "idiom" : "watch",
+ "role" : "quickLook",
+ "scale" : "2x",
+ "size" : "129x129",
+ "subtype" : "49mm"
+ },
+ {
+ "filename" : "1024.png",
+ "idiom" : "watch-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/Contents.json b/web-nuxt-ui/ios/App/App/Assets.xcassets/Contents.json
new file mode 100644
index 0000000..da4a164
--- /dev/null
+++ b/web-nuxt-ui/ios/App/App/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
new file mode 100644
index 0000000..9f76111
--- /dev/null
+++ b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "filename" : "logo-1024-a.png",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "logo-1024-a.png",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "logo-1024-a.png",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/logo-1024-a.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/logo-1024-a.png
new file mode 100644
index 0000000..9328acb
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/logo-1024-a.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png
new file mode 100644
index 0000000..33ea6c9
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png
new file mode 100644
index 0000000..33ea6c9
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png differ
diff --git a/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png
new file mode 100644
index 0000000..33ea6c9
Binary files /dev/null and b/web-nuxt-ui/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png differ
diff --git a/web-nuxt-ui/ios/App/App/Base.lproj/LaunchScreen.storyboard b/web-nuxt-ui/ios/App/App/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..e7ae5d7
--- /dev/null
+++ b/web-nuxt-ui/ios/App/App/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17132" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17105"/>
+ <capability name="System colors in document resources" minToolsVersion="11.0"/>
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+ </dependencies>
+ <scenes>
+ <!--View Controller-->
+ <scene sceneID="EHf-IW-A2E">
+ <objects>
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+ <imageView key="view" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Splash" id="snD-IY-ifK">
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <color key="backgroundColor" systemColor="systemBackgroundColor"/>
+ </imageView>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="53" y="375"/>
+ </scene>
+ </scenes>
+ <resources>
+ <image name="Splash" width="1366" height="1366"/>
+ <systemColor name="systemBackgroundColor">
+ <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+ </systemColor>
+ </resources>
+</document>
diff --git a/web-nuxt-ui/ios/App/App/Base.lproj/Main.storyboard b/web-nuxt-ui/ios/App/App/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..b44df7b
--- /dev/null
+++ b/web-nuxt-ui/ios/App/App/Base.lproj/Main.storyboard
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14111" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
+ <device id="retina4_7" orientation="portrait">
+ <adaptation id="fullscreen"/>
+ </device>
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
+ </dependencies>
+ <scenes>
+ <!--Bridge View Controller-->
+ <scene sceneID="tne-QT-ifu">
+ <objects>
+ <viewController id="BYZ-38-t0r" customClass="CAPBridgeViewController" customModule="Capacitor" sceneMemberID="viewController"/>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+ </objects>
+ </scene>
+ </scenes>
+</document>
diff --git a/web-nuxt-ui/ios/App/CapApp-SPM/.gitignore b/web-nuxt-ui/ios/App/CapApp-SPM/.gitignore
new file mode 100644
index 0000000..3b29812
--- /dev/null
+++ b/web-nuxt-ui/ios/App/CapApp-SPM/.gitignore
@@ -0,0 +1,9 @@
+.DS_Store
+/.build
+/Packages
+/*.xcodeproj
+xcuserdata/
+DerivedData/
+.swiftpm/config/registries.json
+.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
+.netrc
diff --git a/web-nuxt-ui/ios/App/CapApp-SPM/Package.swift b/web-nuxt-ui/ios/App/CapApp-SPM/Package.swift
new file mode 100644
index 0000000..f1c501c
--- /dev/null
+++ b/web-nuxt-ui/ios/App/CapApp-SPM/Package.swift
@@ -0,0 +1,37 @@
+// swift-tools-version: 5.9
+import PackageDescription
+
+// DO NOT MODIFY THIS FILE - managed by Capacitor CLI commands
+let package = Package(
+ name: "CapApp-SPM",
+ platforms: [.iOS(.v15)],
+ products: [
+ .library(
+ name: "CapApp-SPM",
+ targets: ["CapApp-SPM"])
+ ],
+ dependencies: [
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.1.0"),
+ .package(name: "CapacitorApp", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/app"),
+ .package(name: "CapacitorBrowser", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/browser"),
+ .package(name: "CapacitorDevice", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/device"),
+ .package(name: "CapacitorPreferences", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/preferences"),
+ .package(name: "CapacitorSplashScreen", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/splash-screen"),
+ .package(name: "CapgoCapacitorUpdater", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capgo/capacitor-updater")
+ ],
+ targets: [
+ .target(
+ name: "CapApp-SPM",
+ dependencies: [
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
+ .product(name: "Cordova", package: "capacitor-swift-pm"),
+ .product(name: "CapacitorApp", package: "CapacitorApp"),
+ .product(name: "CapacitorBrowser", package: "CapacitorBrowser"),
+ .product(name: "CapacitorDevice", package: "CapacitorDevice"),
+ .product(name: "CapacitorPreferences", package: "CapacitorPreferences"),
+ .product(name: "CapacitorSplashScreen", package: "CapacitorSplashScreen"),
+ .product(name: "CapgoCapacitorUpdater", package: "CapgoCapacitorUpdater")
+ ]
+ )
+ ]
+)
diff --git a/web-nuxt-ui/ios/App/CapApp-SPM/README.md b/web-nuxt-ui/ios/App/CapApp-SPM/README.md
new file mode 100644
index 0000000..5e22a2f
--- /dev/null
+++ b/web-nuxt-ui/ios/App/CapApp-SPM/README.md
@@ -0,0 +1,5 @@
+# CapApp-SPM
+
+This SPM is used to host SPM dependencies for you Capacitor project
+
+Do not modify the contents of it or there may be unintended consequences.
diff --git a/web-nuxt-ui/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift b/web-nuxt-ui/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift
new file mode 100644
index 0000000..945afec
--- /dev/null
+++ b/web-nuxt-ui/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift
@@ -0,0 +1 @@
+public let isCapacitorApp = true
diff --git a/web-nuxt-ui/ios/debug.xcconfig b/web-nuxt-ui/ios/debug.xcconfig
new file mode 100644
index 0000000..53ce18d
--- /dev/null
+++ b/web-nuxt-ui/ios/debug.xcconfig
@@ -0,0 +1 @@
+CAPACITOR_DEBUG = true
diff --git a/web-nuxt-ui/package.json b/web-nuxt-ui/package.json
new file mode 100644
index 0000000..05dd6a7
--- /dev/null
+++ b/web-nuxt-ui/package.json
@@ -0,0 +1,84 @@
+{
+ "name": "web-nuxt-ui",
+ "private": true,
+ "type": "module",
+ "version": "1.19.6",
+ "scripts": {
+ "dev": "vite",
+ "build": "pnpm run typecheck && vite build",
+ "build-only": "vite build",
+ "preview": "vite preview",
+ "lint": "eslint src",
+ "lint:fix": "eslint src --fix",
+ "format": "eslint src --fix",
+ "typecheck": "vue-tsc -p ./tsconfig.app.json",
+ "test:e2e": "playwright test",
+ "test:e2e:ui": "playwright test --ui",
+ "test:e2e:headed": "playwright test --headed",
+ "test:e2e:install": "playwright install chromium",
+ "test:e2e:skip-build": "SKIP_BUILD=1 playwright test"
+ },
+ "dependencies": {
+ "@capacitor/android": "^8.1.0",
+ "@capacitor/app": "8.0.1",
+ "@capacitor/browser": "^8.0.1",
+ "@capacitor/core": "^8.1.0",
+ "@capacitor/device": "8.0.1",
+ "@capacitor/ios": "^8.1.0",
+ "@capacitor/preferences": "8.0.1",
+ "@capacitor/splash-screen": "^8.0.1",
+ "@capgo/capacitor-updater": "^8.43.2",
+ "@dagrejs/dagre": "^1.1.5",
+ "@iconify-json/carbon": "^1.2.18",
+ "@iconify-json/lucide": "^1.2.90",
+ "@iconify-json/mdi": "^1.2.3",
+ "@iconify/vue": "^5.0.0",
+ "@internationalized/date": "^3.10.1",
+ "@nuxt/ui": "^4.4.0",
+ "@tanstack/table-core": "^8.21.3",
+ "@tiptap/core": "^3.18.0",
+ "@tiptap/extension-drag-handle-vue-3": "^3.18.0",
+ "@tiptap/extension-text-align": "^3.18.0",
+ "@tiptap/extension-underline": "^3.18.0",
+ "@tiptap/pm": "^3.18.0",
+ "@tiptap/starter-kit": "^3.18.0",
+ "@tiptap/vue-3": "^3.18.0",
+ "@types/qs": "^6.14.0",
+ "@unovis/ts": "^1.6.2",
+ "@unovis/vue": "^1.6.2",
+ "@vue-flow/background": "^1.3.2",
+ "@vue-flow/controls": "^1.1.3",
+ "@vue-flow/core": "^1.48.1",
+ "@vue-flow/minimap": "^1.5.4",
+ "@vue-flow/node-resizer": "^1.5.0",
+ "@vue-flow/node-toolbar": "^1.1.1",
+ "@vueuse/core": "^14.1.0",
+ "arktype": "2.1.20",
+ "axios": "^1.13.4",
+ "date-fns": "^4.1.0",
+ "pinia": "^2.3.1",
+ "qs": "^6.14.1",
+ "scule": "^1.3.0",
+ "tailwindcss": "^4.1.18",
+ "taskview-api": "workspace:^",
+ "vue": "^3.5.27",
+ "vue-i18n": "^11.2.8",
+ "vue-router": "^4.6.4",
+ "vuedraggable": "^4.1.0",
+ "zod": "^4.3.5"
+ },
+ "devDependencies": {
+ "@capacitor/assets": "^3.0.5",
+ "@capacitor/cli": "^8.1.0",
+ "@playwright/test": "^1.49.0",
+ "@vitejs/plugin-vue": "^6.0.3",
+ "eslint": "^9.39.2",
+ "eslint-plugin-vue": "^10.7.0",
+ "playwright": "^1.49.0",
+ "typescript": "^5.9.3",
+ "typescript-eslint": "^8.53.1",
+ "vite": "^7.3.1",
+ "vue-tsc": "^3.2.2"
+ },
+ "packageManager": "[email protected]"
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/playwright.config.ts b/web-nuxt-ui/playwright.config.ts
new file mode 100644
index 0000000..274f974
--- /dev/null
+++ b/web-nuxt-ui/playwright.config.ts
@@ -0,0 +1,28 @@
+import { defineConfig, devices } from '@playwright/test'
+
+export default defineConfig({
+ testDir: './e2e',
+ // globalSetup: './e2e/global-setup.ts',
+ // globalTeardown: './e2e/global-teardown.ts',
+ fullyParallel: true,
+ forbidOnly: !!process.env.CI,
+ retries: process.env.CI ? 2 : 0,
+ workers: process.env.CI ? 1 : undefined,
+ reporter: 'html',
+ use: {
+ baseURL: process.env.PLAYWRIGHT_BASE_URL ?? 'http://localhost:5173',
+ trace: 'on-first-retry',
+ screenshot: 'only-on-failure',
+ },
+ projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
+ webServer: process.env.CI
+ ? undefined
+ : {
+ command: 'pnpm dev',
+ url: 'http://localhost:5173',
+ reuseExistingServer: !process.env.CI,
+ timeout: 120_000,
+ },
+ timeout: 15_000,
+ expect: { timeout: 5_000 },
+})
diff --git a/web-nuxt-ui/public/logo.svg b/web-nuxt-ui/public/logo.svg
new file mode 100644
index 0000000..8d483ab
--- /dev/null
+++ b/web-nuxt-ui/public/logo.svg
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="_Слой_2" data-name="Слой_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 68.27 68.25">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: none;
+ }
+
+ .cls-2 {
+ fill: #82ffbb;
+ }
+
+ .cls-3 {
+ clip-path: url(#clippath-1);
+ }
+
+ .cls-4 {
+ clip-path: url(#clippath);
+ }
+ </style>
+ <clipPath id="clippath">
+ <path class="cls-1" d="M68.27,34.12c0,18.85-15.28,34.13-34.13,34.13S0,52.97,0,34.12c0-.42,0-.85.03-1.27h17.77c-.03.42-.05.84-.05,1.26,0,9.05,7.33,16.38,16.38,16.38s16.38-7.33,16.38-16.38-6.87-15.9-15.5-16.36h-.02c-.18-.01-.37-.02-.55-.02-2.7-.16-5.07-1.53-6.58-3.57-1.1-1.48-1.75-3.31-1.75-5.3s.65-3.82,1.75-5.29c1.56-2.11,4.04-3.5,6.84-3.58.38,0,.76.01,1.13.03,18.06.88,32.44,15.81,32.44,34.09Z"/>
+ </clipPath>
+ <clipPath id="clippath-1">
+ <rect class="cls-1" x="-5" y="-5" width="78.27" height="78.25"/>
+ </clipPath>
+ </defs>
+ <g id="_Слой_1-2" data-name="Слой_1">
+ <circle class="cls-2" cx="34.13" cy="34.13" r="11.44"/>
+ <g class="cls-4">
+ <g class="cls-3">
+ <image width="164" height="164" transform="translate(-5.05 -5.28) scale(.48)" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAACjCAYAAAAEsLX5AAAACXBIWXMAABcRAAAXEQHKJvM/AAAgAElEQVR4nO2dWbAtV3nf/6v3uRISuhqQkJAQIIQmwMjlMpYtJokyYBNCXJWhKpVyeYpjJ6lKnOQhsR0HrLdMjitJ8eQHpxwTByexncROKg+gi4khuAwhJkYKg7nIcKWLJDRhJun0ykP3t/q//utbq3ufs88941fVp1evqbt3//r/fWt1731CjDHixGbtzDPAB58Bfv5LUhDXSI/rey8fFgC45wrg3is2eqiH2sIJkHVLEJ6jTP20FkLo5tE6YADTAL3nyt0c+eG1EyAdO/MMcN+5YV3YToGcKQsCJ+IE5rtevt7xH2Y7AVLsvodJEb1PZrdAap1xOzhwBil/18uBe64C3nTV/HkcVjsBcrQzzwBv/rRk7iWQFXUE6kBa/j1XDmD+3Cv8cznMdgIkBhAXuWcvbxdxo61dIMl1K6ABE6Bvugr4uVuAN77AP7fDZsceyCqMwO6BXOCug5TXXHcNSk7/w1uAn721ci6HxI41kE0YgfWA3Km7tu011NHyWSm53s/eCvzMbY3zOsB2bIGchRGYB3IT8aNtt4BkRQQB6IFJ6Z++Dfjp22fO8YDZsQTyzZ8ZYZw7870EUgYwLSBbMaSWu2DeDvz9O2bO9YBYt98HcKHtvocXKGPNlty6ngtf2iWBmsWTVJFBY0sQcp0x/U8fBH7gQ8CHH1t2TPtpx0ohz3yVpnbWgcvb3oC7rg5qnEELq6U3oLGlm1HLN1wD/MabFpz7PtmxUsj7Ht7vIxitAnAYk0HrYFI7blPEjlZX8jj94UeB6/8j8JFHN3g+G7RjA+TarrqloLWymqJ6bnxdtWVFRA6d1XHddvTL/+IZ4C+dqZzHPtqxcNmZqwYOnrteOKDxXHAzH366k+1ffzPwPdcu+EwugB0LhVzbVe/kFp1rs1OVhK+Gauqai23pg7f/8geAf/l/Z47/AtmRV8iDqo6Wbj6ZmVO9Rn63oF037tcU8+4XAu99y4LPZw/tyCvkBy1uZBBatht1XKdtC2wDU7az8kq8mFSQ+wBK9aQ8K//oeeDW9wK/f36N89iwHXmFDB9bs0FLHXl7A+po6+r0jigbPOVz4kNgVD2OGRsxJW9b+199K3DXdUs+sM3akVbItSfAl8aBO7EawJKvE96eYrrTOh6AEjdiBkZLdxH44f8BvOf/7OJ8d2hHWiEXPa9ma6njXHqH6lhTRqACGhzwUNYDpvJO+kz99L5qcr93XQf88vfPfnIbsxOFNNvJbbm0TQvgMW0u2Sy5cVE5hZbbcz6rpJVnAPeTGirorLx/8DDwY/994XluwI40kIvNA2uJOmqeB9vMfhnEYl6Sqmaul/MUIgjM1E+mppB9eyHAuP2xh4Ef/28Lz2mXdgLkHIxz7Vp11U17aeQghto2Shdubb2YsFA9zhfgTCWTWjrLxx4GfuJ3Fnwuu7QjC+SiyfB1wFuaV3HJc2n3OfW47Y6qITEjt1Ml9PqC06fXP6U/9jDwk7/tnPsG7cgCOWs1GFvuuba9JF/TqpbsktnlEiRACSJPB+kgxoUOJWy2z7knPCECHz8H/I3/ij2z4wnkbmBsuWqv/UyfxKM77VOb2slcLrWtLnDcNW2785sCpoUBHz8H/M3/4pz/Buz4AJld+Up5q+1c2TqgVrYj5Xmj5FrcCILFU9ICRgHRm7esKazV/cQ54H/zL3psyI4+kC0IuU5rW/OXli9RXNpmuIAcLlvXoKrNT2bAAaVbVvAw9eE97eF507/1W5uH8ugCuQREq7ekvKV80alXK3MgbQLSULbqc+xKftfngHnK6E2i277g1Pnbvwl8Qn+Aaxd2dIFcYp5qtVSN85aCCl+BFBKL4dJawMsABOqgctuY1wfmJ8ILNw6/b755fuo32x/zOnY8gfTUs7W9pqsuJp8r/S5WQ1G2GiA6MIFsq6pWH0V6N48HJ23/3d+ofDZr2vEDsgbVTvpguIASQKpXi9G8+C5TxRpY2sbrp+WeSTELRW7BCL/sD78I/MpHd//RHi8g5xROtyPqLpph0z6kv4C8TC9udcpFXTBK9fViwMJtezcCfNeuI/y5Jzic/28/MoC5GzuyQL77BtpgsNRaMNbqIFciVzE9N4gJBA9CN0YzeEB1+go0PYaXJipqV3svsnh0WKnfwe9bodyNHVkgAcyPtGswztRPbtkDldxh9riOyjz14dFsggQolc1RO1XbpIA9bXuKN9apTft47plvJi/s+OSfAP/g12c+x4YdaSB//sWNwhaMDXUsYKQ1x49Z7IfygmcjZpQXvoj3RGl5eqemth5MrYGJB31x3LWFzuuTfzIsO7EjDeQ9p51MTzVrysjQxQkCVspasM/loAuuF7coM+UCCmCTyvWVuI7qegB7UziIPoSq3G7sCWf/Y/pn3jd3dXw70kDey0B6IAKlGqryIb/IhdsGbTtqwe09ddQ5v7Td57FiR+WFy7a+VOUEJgYH1EcRsy5Qxmy+VPcxbv/a77Wujm9HGkhghHJOARum4AGklGMfQfNFGb240VO2AgTUR7heTFjkodxnASgEOjrvqluuHIvu633/c/7zVTvyQL67FkcqaKqUlfo6qs6UU+q0YsUaUM3pFa8vp79C5Sp9a17mmmuQVxTUPW4A/+jfLbhIZEceyHtPT/+kCMB8DEnppI66tvIxr1AaoFQeT/2kjvW1QglDa1DhzSe6c5LwgSv2ZXlYtn8Fk+H81BeAP3po+fU68kACpJIN5dO0wpjcGW1n7jrmdVxXh/LCZjEgyrqu250DaSbNMaD257ngYpYAMthBpe64/IcPLb9WxwLIe0/LAMfMAxQOjFxm5Qwf1XHddJwuYlNlHDhU2VYeQFgDRFto/pGh8o6jpageuPo06lNnl0N5LIAEgPtfKRkKowNf2hZAuR7HkEvmE12VQl3pCrXS/oDpjaEKNJma2X7h98/l7jF7L3r0cux0XnZzP3B22XU6NkACBGULRgc+M1ZEYPqws/lJTyG5DkrXbOpS+5mUjvdJS6dtkber5jfUrqWAHR2PB3sRz1L6gbPAA19oXBz6bI6N3Xu58/SmAWMRM2o9lABkitlQSFcR+d1I0EXFUGbLii+481y7qqhjn6u+PG4Gjt1u7d3IVghSg/U/nZm/RscKSAB494006laFI/NgLAY9lW12VRpLcp/6Mm4xiIEoGXIodBCR9aOKh7LcboIlKrnkpd3WzdBF4MGz86772AEJAPe/aoIyc7e8VosTpJn7jAKfXPRMLUEwwFETBwaFRuvzIEcVbRUdsHSh+t60EMeObpmeB+BDOeb/1pn2tTmWQAI5lLX5RYDUkS2W+bydICUIg6ZVrTRfQGNVW8XB7RaQyOAmA7f2/LuiioUye4oIv79WfPr/Pj8oZc2OLZAAcP+ry0lzz3176gjI3e9tax4pjbrYLHaEf4Fr7t1TzCzOZPBbx9yCC85x8OjayvsSUt4nRihrdqyBBIAPvBq49wq4E+SuOsKBVtUQyFyZqk5VkVj1MKNaCh7KMKC4GUTZPNhYkT1AQfnu5DrKMo1p//MH6tfj2AMJDFDe/225q06m6ijwsWUjVFVT+MpWKCUmJfUGLJ7bzQD1XPkaSyue9UbjS8IA7xxqKnkC5Gj3XAFsvx5490uH7aQGXIkho3Ke7lFQixhS1QXlRVv1U5yoT2ZUGZeC6D3hyeBZAnHv18/mUisgsjqHCHz6j/3rcAKk2LteCnzgNQOgyRy1s3xofkQ2soZeIOnTu5C7UTRvQMKxXRXW1jFYXOjUYeVb9fm2Dno4/dvv9z//EyAdu+cK4P13As+9EXjXy6b8wqUHZBPgqpopHfN6TTWZmeLRC1vAhLLvlXy3JtsHUAy0FDR3wIJK2MHbfaOsopJH+jfGN2m/+yTwwSeB330C+NCT9ZgpfesPmJ6q6AV3nrho3ZX0W3ODHe2riEflBmDFTiGGUx+o5FNZqkP9ZmGLUxfIb+o/+xbgHfJ/cU6A3KExmHYR/vFnJc6KNP/Hc4QEn4GnMeBq7HdFbRgkD1pvVOupWRbT9ihVXOoDZRpAAaSWZWtJW/33/JP8cz0Bco/s9x4HPvw48AsPEnj9BCmrIasiA+vGhyNAK3l9TIHjPGBhmaN46gXMPGC5jOsU+UAC8qf+OnDrzVznBMgLYv/iAeBffWqCb2v8Un+ayOa4rgJkArPPwfLU0OrahVdXbmWF63agVDg9t8wqCTjKaQVxSocIvP2twNvfNrU7GdRcIPt7rwTO/gXg77yKRqUV4LyYsaaAxYjZiUWz/fT5aLg1qs6Ar/zglXdcOqDJjhXUB4DPfS7/nE4Ucp/sR94//Ih8ei7NQHmP5AxiZ6TrKSUPZFjJrI6nckk1SRnBdfpcMbM+SPm8hwn6yJXXv/gLU9mJQu6T/ZvvBX75rTLKlkHNKg6u3QY8mVtnNXRgLJRzQR1PxVZ8fE55bVTvPbPnwR3XZZU8AXIf7bXXAb/0ttytbjkT2BmcApiBwn0UL1aogoIAQl1hzfUWwHp5Ch/8/Kz+eByf++z0mZwAuc/2nS8CPvqjw1oVsIj74INg5asIbNHFzkDVkbwDvYFUiwtdAL2JfOmj+NU05JD+8Wemz+MEyANi//od+chaVVGfbbtgSSzqueyirBIO1Pqpun16GsSuv4hrnfTnTxTyYNovvnMAwOLGrW2BU2Dl/OJliwpMVXXEfL0gbTieTJPsAlsWl8KJKeM0uAFOgDxQ9u03AP/8BwbALJa0UXdSSlKzzEU31NBT0xUpb2sKqOayvfhUFbQ5eEIOqKnkCZAHzO58MXDnDRVl7Cc1NDATsFS/k3SCt/E6WwJZnrPPKaWneDUX786hIo8jT4A8gPZX7ppANPetcaSOrNlN89dcq7+gC1TfLJp7Rp7ARa6i/FaQzoU2QcXktrf25yM/sZa9+sZBKR98SOCAwNEP9e1i8kUGML1zSRPa4D6oHudnb8cjr8vpaP1C2lFbPj6gUg7u5+RJzYG1H/pnpZvjNFCqjKmRB9/4+mYR/0WMQMiTmFRmsAmoBbiSjlxH02R2Lve958RlH2j7868DVqC4EPk00FZfjrBrI3EezPCap23cpz7yWpw7gMF8jNga8LBCnrjsA2yvfAnwOxar8fuQICUE8l/DUJftqJu6647rwm9r5rl0SDqpN0iRpaq2PwHyENjtLwVOiRKxO+0IxNpLEVam9dI24ELqxZic1jjVSwP5gMXMc9tmJy77gNs731BOzWQLuXD+TnTmpmm7+A5OP815tqZuqlM/qAy6eAEt6uKpT+BEIQ+8dXFQSVU1vtgA0kRzDySF48GNfRPS8iL1pa4/c9PqnivKCDj5kmeuOtba4jgAaSfc8hMH2Gygkk3tYDytQAMJIIv7EnyYttPgYcZVR6rjuXezVJfLMdVjCLO+kK/NHvr0UXPZ0VkOub31ngHIUxG4KA4KssI4aR7lMWOcYs4VJlddjLThP+eefTpjbxw5L2MU70PCcePIF/B2HIA8Ggp5BMBr2SlRpWSkfHwDbmFwi+aevVG3DnS4H5uZ9lx16HNlK0bbcoxRj5fbiQUcViCPOIBqK8cdAjKqFvccHXecAcntqF6IOUTNkTZni4u2OHGtSCkeJiB3CyEHM4fMtoDy/BUqTZN5Uz/ahqeEYqVtYRFFPBglv2mimIdDIXcDYvbJ7vZA9s+2HBcY05/J9BQjJpV0QXG2M8hiXpT2Ubs5xIIWRydPbP+BzM5U8nbb5xGxFVCcUxQl09Gv1eE8T+08lx/KaotBLADXvIpdeIWcg2SnEB0x+NS+dHZQyMQMnW+ac7QMViB1vdypunDkFT2gC4vZqoBY+y12k4LNPH9vgdwrWNbpd7ww4ZC67HOfH0fN43aPKRzuPFcswBYjYq5Si/VGUMK4brnrFoRc3kXnsknG3e/cJJB7rVSV/udO0vLiNhD2P0BZ2zpMQMY4uG9Ls6d14z1xw2zVyzUqZKQhszvSrjf3ldmLAxzb/SXaCxAX9hmLxM76Ocj2ifsHKGVQXKQzExfvhecZKNI2QZjN4xCkZLVHgJ7VYOW89YDUs9nEBV+jj10BGAFsYxwhHA47fxbYCkBPgNXAhOdeHZB4miYGiRMDlY0dB6sjkC69bO5rZ04d628ZkAtGV2tbo49FbrhVp3K8cRsIhwjIL58d7p9uhKIP5KrpKqpSZkrWAbF3OmdXHGjAxPEjKM0Q8sCH8uZG1Uu89jyQm3Z7jcB3rf1WYsVqHo8KDskT/E+dGS6QDWQ6SiuEylwEgaTASTqaEsJRQY4lMSlqVp+OZWGoWDUfyE1CuATApfvjuGauDycQjxHAs0C4eOH+9tEeODOoY0+DjBgHtWQXDmAaiIxpdyQcRDmDwGWxJsEYnL6CKKH1aWnv7XA17xJ+158b1hOQm1ZC6bPa/Towav05MKlNesLRA+EQxJKf/iCwGi+wqqIBxDFgoHJQHVBeDLQdS6A45uQpHh5xu6Lg9AGqirKqmw8YkHvsltd2yesooeZJOrkqulrxW0C4pLH/fbb/9SsTjGGEoycALYZk4JIKxvLj08FLoPrmotmlZ2qLcsRtgxwrK5SZFZdN2zi2+Zm5OVWcg99TQq9txUVHLuM1q+U2gK8B4dKZY9kHe+ILwFNfGAQ8hGFCuQewHXIogSHdI583ZDAxplUNOXb0FJIBZdiSa5f+GUpLB9pHYYH4HctvuG1YbwZIZ6dF1pwi7iY/5ieX6lSARAT654DuIhyoyfInHwI+/qvjmIvctaW3Qw5REi6B1Mosn+M7dcumduxGOZ5k5ZyDMqWRl8H6EEs3CYAbbh/WG50Yr3ra3QJXyY/RyZ9RxxRPRqB/GuhOA+FUZX8X2P7wvaOrHofTfZi+KxMxAqrxI7lphi2C4EVeNwjAlgcHoiDtPThTGw4L+GYYyzNQK7bldbbYYrYq0n5GI39dRfR2XnPTnE+jhP5JoLty/6H8o1+blBG2JvB6THFlJPedBj0a4yFvGwQ8nrbJ2iJXuwK4kLdhkIsnORwOSB53e/3tU/H6CqkqtbBeM39dRdTyhiqmSWEr0yFrBLYfB1YvAMJFlePYY3vw3wNPPzQOYGIOZgIPpcrZ9E820JA8bqvQalyZTf1gys/SrTXydNY/m6jl9bdNRTt7dOhv7swWABo1rwai5JlrTubAaHW2HwVW1+CCzlF+9YvAZ943gLXqkL6vYm/p2GJPaXpML1f0omg8Ag8CKCSvGPCQGgN5eaj0mbUx5QTVQQVwMlPp9RVyHRBrgHl3ytw2Gqqo2y0Qo79ETvfAc48MKrl1vXMOG7ZHPwo88pFhohsgNaOLaF9ttclxfsnCHjZFyOQ5BBwgG9wAvguPAh+oHwPNhbACOWgfZsX85lj9Ra5CzgAzq4ZzFRaCFWfKs7QDHkMGYHqm1udtYhzzbLH8rwPPfhborgJWV8+c0w7s6+eAx34feGZ00d34rNnALKZk7KKDVDBMXqMPw5fAvDlKS6eYbzzNDhNg/OJEpoR2LJpurZHnMdxFbDnmMYyAp5DrqOGSSjXF3Mm2ByWmuz8buDgKGYHcbY/pKFAiAtuPAdvnBze+urZ6dovtmw8DT/wB8KdfHNxtN140G6yY++0InDjSY3Gwuek+TiNwVbc0kPFiR5Bi2ufGCsmfIYGs/RQhQSU0SAptO8ZUz/bxInLXgAK5jiLOVVwjP7bKWzASeJkyarkqJyuiAtrndZ97BHjuS0B3KRAuA7ZeXDkvx751HvjmI8DTHwf6baDvaeAShgtsL0x0fCH5NEjd7Dy7sY9taZe+0iAKlc1dCryeu043A7nkdFAOlAlsp05xzSSvrZDi82dtHRjXVcoagJSX4iJPESk/6mAGzrYex9jG1GH7aQBPAM+eHfqLzwGnXoYJ4HH97Hngm+eBuD1AaL8yG8Look0NCcaszA6BVNCexnQEHTAoK79o0WFSSOvLVNVAYfddUzeDMt0M9jlUlNF186qIXkgYgOtmXfaczQG7FOiYrZbDKOtsAGMgWboFIasmxZLJfXN/XB9T3rOfG8BL8I2L48mSMXzmDtOAhdTTBioY+7G3fBJ0GLYN9p7AsFG6QV8886ZjYZB4IjvYjq0tq6XCbdsgoFURHUgVRsBRyLVd8Fx5RYFirc4CoKsQE3gxYvoVBqdeGtRonkCaDX6oL/2o0mcdJujsItnSBWA75tt2oVJMKF6qeEaNSfVSDIncdTOE+cFNB25uvVeQIKDxyTbWyeVDjgfSBx3PPJDaEJKu2V7AWFHJaNsLlK+IK2UJc3WACUqg3OdogYusb0wXyAAtHqWF6cJZ6JHFlJj6SgBRGpimgvj+AvLYMcWYAmMM07cBs+NzXHvxDHsG0qSw9FlloQCA17wDhRVAZjzuFMYGoNW+F9wEGYycuc5Cg5ZsHtKpW8SeDDLtm8HhQUlgtxzyxd7iSWoSJggNyhVoAjxO7tog4vlEg1wh1Jd7ExCZb56OX+cYo+QxnFUYSWmBKT/tLgDf9mf8a+wrpPcdDM+WAEv1qtUbAKekB7AqlgJfK7er2YA2lZPxHQ7IzRu44rSpnipIWQgD+Oaue+rb9tmNAPVw0rQTA9Yg1hgvfQ4CVoIOeb62ySbBFdzafrg9pv1d67hroDaoUbettrQsOkkPrLm+BSpvKQY3SxcbTZsi9tLf3D55f845ZBCOF88GLRZDGlSdXXDk+QaZAWfwmUJmI2lMYYDOGxp4+gjRpqIYbh1xF1M8AinkGFgVWZkNzGtvLS8zUAFSH/l4H/RsmQdjq02tfaQihcLKl8AITAMUgdEWu4O1ryyfy0YrfhUj5KcTMMWIrI7WtguiashjOWCa8jFXD3HxPLr2vvDF++Tjyt4mFxdfvJKmoAqMmY5xXqTzAfCqt6NqdYVUq1HVgLQoci5mC8pZBYrSRN/s4bYVSBlMvgnth5kMxJrT0N9TZIj5+Bg02DpMdVnxujgq6NimJ2hCGOtGgS9MYPJ8pK6rrtvLExg9hUTMb5zpg5H9WBrACyvqCDTmIYM9slpHFS17ifI10t4FrqY9wBwFXOKCW3Gl96Qn0ADJvYdDnm/QAQ6YQJqP1N/kSd/apRiTBzg2ek4dRtq/KVU/QcmDocwaMBbPvdVNM6wojyGO+7zmlh0C2Ywjl4A4185JLx64LIFLYerLfrjvQo0rwJoi6g++F/OdENUY/Xaa7A6TmhmkDKPFnjZvSV3ITpCNZtnlAiMQPQGEfI6QXXDxVMc+l7mYsRJDpuksyn9VZXRt1nxSE+jB/nB29bouTLV2Xlktr6WKXt7SZUnbiqVpDefQzVW7NxG1YVVlyAxEc8spdqTt5IItD8hccwLPdk95/DRH1a+YzKY61fjSW8NPX3PLsLSs/eiQb991YMwKl6Uj5ykwlJ57icJVvpl6pnjZcci+dBI9SN8cc6oHTcoSJX+09Iw65G/wIBKMQD7IoLYGpjfKZWO3a/GmzjsyqMX0kCikOx+JMm3t7mgMZsxmn2WHDsPXRiu2WBlr0LZg5LZz9RzoFrlhTLAk8CDp0Uz9FHIdsMSxzzB1O12zsZ0pHkA3hKVpfwlojIOc8QL3dGC879RQP++Q9215Gg+mx47aRytm9G4G5H1ffeu8OgJLXq7QoCVmqyLf3a6kM2B0XUsD/gsUtXxdWhPiDJsByu9MquLQ7hRk7/zYXfN25rJD3jZ9KSvtiLadtILBXwrzRtM1eAsp9wSl4q6L2DEAd3y/096xZUDyre4dWw0+3pY7elbhxnRygQpfRe3SMdbq19ItaGkwo3WSugakG0IVK8HEhZGeW8MZfbP6QC4wpExdLGjkbfvi+FDiQctjxeM4OY2uKZ0B6+Vh6u/qVwBXL1BHYOHrZ2ELiN/yb5JFMOqmB4ZuEwCRy2oA11Sud9pVwMtulIa53ozBibRN4Hl9q0pae3t6ovVsI5sgj/TKGTB9N4eBqx085XlfDuPyCN9FJ+U1E8hvW6iOwDrvQ64wvKKsO53bjrSag9dTRqcvDy4emDQhnAE6xLJfLsvmHaUOT5InMDHFk6mAZi70LaAUM8YcwvScmo69pZL8hTB3pIy8/qzrTidVmueiLe/qWwaFXGqLgQzj9y/dyfIaaB6MWu70FWW9CC7N0/5b7ewcW/2Ma66TPdkB3RQguEazpy52vyRA+kosidyVQ+uwgobppYv0mVu5F+dROw9C/VJYmlyPUr3V57i+9fuwlq31xngx4q6BSNsZVDN1Mwhra2dJd6goWtb/uguQJtQzNaRuGcJsBMvHpRdxrBfD1HcNSICgDNKWVMl+YoWhUECpi3xjjA152qh4FOhA7amifWam1q/4PuAFa6gjsO5XGDrMP1KMkmzAV10zUEtGzgwLAZLkSPfB/Xn7pH60rjsfiRJGNoOypzqeknpAAqVrTmo7gsFfd1iiWln8NyazL5nRuvbuo47YGVCD8pa3YW1b+zs14RQQv0EZepFBB+qtK2XFBDZQn95B3q6AQetrnvO1V2gfXrqyn+xFjNEC3Rh6o7A75p9pdoGUAYwHHpe3YCyeFhE8RTuvvznY7TwD8J0/iR3Zjn79rLsI6L+F8iJ5aTUHAO85cBWmCujFWzkz9at9z+0r5uDo9bO1NbcXcM29cyzJ9bVPur5DHRqs9AoOJoWrvVttTXQ6yFvbsQLIYlGGl1+a4PgyBODKm4Gr1nTVZjv7Ob6OpJw+GFcZa3netuXVwJA6HDsWbbmuN+qu7U+OTR/5aZslo3I7Ro7rUsyLXDGBXME4lrMLXqikU56NyEVNvR8O4HrWT7rZ6Zi4LFaOZafqCOzi9yHDxUD8+rS9GMaKsqU8D0AtkwvPfbjPuqkPfmUsuyiyn6DtnTa8beefjcLhx4qcn+V59egAsy+EidvMXO+UPe9udee1NmxOfwbqd/wEdmW7+sHS7mJg+xuYV8OlMOq6BUUUKEiRrG4xAIkCHkqFK2Ac+wje8ZAVL6iC9kf7jpwfpn6zZ9yB+nTcc+bex4MrmqkAAAhVSURBVD741bUoALuHTSBlfY79pYGSs/8asDd97+Cud2O7+wXdDuhOjfEkUIfLySt+t1Hr8Kcor8ClJn0OWAYjShjnwEuQw6nHJnWjhgSgNpX8ImZUNyp1au40TYCTq/YA0jlJfdGC+/XmMAsFlrpX3gzc9Bbs2nb9k87hFBC2gfjcmFGDkbarbwg50GgfqjgGqwLo3RzcHceexdMXz6hPbwK9ANmOjW8OlG+E23uI/OOjSfEqMSJDoZPzATLitiQDbfv33K6etwcl8nYIwLf/tcrntqZt5H9adc8bE97FFDjcmFHTXvua2qHimhUgVNorjI1jCtwX8nzdtkd/HaXZPVu+/YZ4wPgjUtRfBg5tByB9k7GjdLHWNO2jk7pdcPpy6qRjo7I7NwQjsMF/C9JdAvRfQ6lqlI6c5yloTSktu6ayDaUq4HX27eVlZv00jlUh91w/i0qyIH1ZtrhlVT1ur09VqvOSjXVzPhJlHSt+zY8DV7wcG7ON/de/sAI6+78vzgUrYKxAV3O3hbsc8/W7LUmFpW7xSNF7L1K/rhEndePj0dguSGZWTu1ZXWw7U0NRs0IJK/VY2UD74P45PzsWOQ47n1QvlHUs78qbNwsjsEEggQqUS5RR01p/hCwDzmBUmGpqCwJUB1Sqnqx62gcfptZpWAuElpudOvDh8crcfkO+b3gu2mnD++E+rrgZePVfbZ/zTmzj/zYobAHd84H+q8O2C+OcKsrivWxbKOW4VrXMYK4dC0hpVQUVUD12lNvm9VJHArN6xFBJV7/vHPN6Wlbd0Vy9Wn1pc/lNwCt/rFJvl7Yn/8cqbA1L/yzaMNbUjD4Ug8QuwJI4ck758s7lokcHApQAeHBmEOriQKkWgfItcWqUsdOiW28QA1vK3H4CqvFkHGG840edg9+Q7dl/ju4uw/Rv29aEsfheC/J8L45M5T382JGPg94AypRTXjWzvlUtZ4H1VDTkySB5Wb5ssysF0IzrPLfbGom7+9JQIAzLXsMI7CGQALA6LVC2YCTL1FAXLksb07oY7TbAZxi95+LVF3bFqgpsXXEsJrFcBgDnaxwH1AF12jTbSr00naP9YTre0zcBt+8xjMAeAwkAq8uHKSFXJeHkm7LRhDdXa6pjy6R/fVbtKWO1D8zU4/rZDqqbrpd3y1QJkc9fuv0KcNqnZWhdKz99E3DbjzTOc4N2Qf4XancpEE4B209SZkMh9aKrUqrrLqZ5bHEe6RXmPfbTOs5NVNTxjO6mKNsIOczeIQbdiFRv3PZeoHVvkkC/LSn1p7t93AfVvexlwCt+eMnJbsb2XCHNwilgdSV8+ASeIlYk4Nwv/8O5CKrCFVc9u/bUfA3LQDRT+cO8y+Xqi5ZKrOgdDqshu+rLbrqwMAIXSCHNwilgdRWw/RUUipfFjai4akyZ6bWuGnicx+3g1KF67tSO1J1782eRLVDIsZqvZlpJyiPQ/v0drW/HM+a9/IeA579spye3c7tgCmkWLhr+82qWB7jxWe0LW6pwc+8uct0izxtxaxvdl+evK6BwPAZpyv8QyX1KU1u8zrz9ekVyLN4k/E37BCNwgRXSzP7B5fZjQP8NUceIcuAyrlUNs5FxDTiCLujjQkhdbS/b7qh7TilV1Wi7JnhLbFEMyzuRGFR/RCAAuPQm4Jo3ApfuE4zAPgFptroGCE8D/VMVV60wKqxw0h4wcC6gF1d6Cx/HXphQWZuorjatuGF+CcKLGbXNJS8FXvKDGzqnXdi+AgkA3eVAuBjYfgrA1+EDAT+dqeOc2671hQps2m5dKfOU0foZ47VIZfxVB68rDyJ9ybY4fNuPxId6fDf+4ADkQbB9BxIYgNy6Fth+BIjfyD8zdtX6BEYHOlWI1L3uFLLmSSAHZkndhd0CPttLBitmUdtggPCqNx4cGIEDAqTZ6kUDkM+dQwInc9WY8gp1NKt9naACZ+C81ltA61gFuBov2Y81xRy49MtjHAeuE3xWXPiVbwCuesM6J3Vh7EABCQDhecCpm4H+K8OS2ZLYUeoXKqrpmmpqWNBaKyBrwJK5butK40rqtnpzzKikufBLXgJc8XrgeQdIFdkOHJBm3QuAcAmw/TiAP0WmmFV1nIsneRsCG8ryLN2CTMsaI2vOc2GUbe4+Kyflm3tsGgJw8UuAy18/rA+yHVgggQHIrRuB+DVg+yEqWKhG1ZG1Zx54rbyW1eo0XK0qY62qfvd6iWqefj1w+nUzx3xA7EADaRYuBbbuAPpHgf7L8N3sEqVEpU6l3AV60QEvbGMqR9WSKjamceb6SyC+DrjskIBodiiANOteOCz9l4H+PNpumfMcYEOtntqcos7VM9vFLHjF41fjxee/Dnj+3Tvb137boQLSrLt2WPrzQHxmWJKNYNW+3D/rfq196wB2CJZrBJX3Rf9MPWcmyy+9e1gOsx1KIM266wBcB8SvAv05ID6NedWE87SnZuvEjksVcK4eufG0W2cAxHbJ3cAl37Ng34fAQoyzr7YeKuvPAfGLqP/7D/6KA+Vl64jpubfNTTb+i2w1b8yPyPPST91ZOk510npMZ3VpffF3A6sbh0HfUbIjB6RZfBrA00D/EPIJbwNSAQPqQC4Br1HmvmAMWvfTtl0MzYsROPXdwOrFA4hH1Y4skGzxKQBPAf3nHXXcDZACeg1UfY2Of2gr0jarpLXZumvYPnXXBj+QA2zHAsjCngTiEwCeAOJXULjsUAPQcfEByH/9rAYlMP1jJVK/bBvA6rVDevVde3Deh8COJ5BqBmYE8DiAx+DCB/h5Ic5DmQEZgXA9gOuRVLN77R6e3yGyEyDn7MFxHWltyvbJYc1AhjvLurYZvmPvD/ew2/8HngrdiXnVCCoAAAAASUVORK5CYII="/>
+ </g>
+ </g>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/web-nuxt-ui/renovate.json b/web-nuxt-ui/renovate.json
new file mode 100644
index 0000000..7180aab
--- /dev/null
+++ b/web-nuxt-ui/renovate.json
@@ -0,0 +1,13 @@
+{
+ "extends": [
+ "github>nuxt/renovate-config-nuxt"
+ ],
+ "lockFileMaintenance": {
+ "enabled": true
+ },
+ "packageRules": [{
+ "matchDepTypes": ["resolutions"],
+ "enabled": false
+ }],
+ "postUpdateOptions": ["pnpmDedupe"]
+}
diff --git a/web-nuxt-ui/src/App.vue b/web-nuxt-ui/src/App.vue
new file mode 100644
index 0000000..bd79a9d
--- /dev/null
+++ b/web-nuxt-ui/src/App.vue
@@ -0,0 +1,9 @@
+<template>
+ <UApp>
+ <RouterView />
+ </UApp>
+</template>
+
+<script setup lang="ts">
+import { RouterView } from 'vue-router'
+</script>
diff --git a/web-nuxt-ui/src/assets/css/main.css b/web-nuxt-ui/src/assets/css/main.css
new file mode 100644
index 0000000..b33a1ba
--- /dev/null
+++ b/web-nuxt-ui/src/assets/css/main.css
@@ -0,0 +1,83 @@
+@import "tailwindcss" theme(static);
+
+@import "@nuxt/ui";
+
+@theme static {
+ --font-sans: 'Public Sans', sans-serif;
+}
+
+@theme {
+ --tv-ui-bg-elevated: #fff;
+ --color-tv-ui-bg-elevated: var(--tv-ui-bg-elevated);
+}
+
+/* Safe area utilities */
+@utility pt-safe {
+ padding-top: var(--tv-safe-area-inset-top);
+}
+
+@utility pb-safe {
+ padding-bottom: var(--tv-safe-area-inset-bottom);
+}
+
+@utility pl-safe {
+ padding-left: var(--tv-safe-area-inset-left);
+}
+
+@utility pr-safe {
+ padding-right: var(--tv-safe-area-inset-right);
+}
+
+@utility px-safe {
+ padding-left: var(--tv-safe-area-inset-left);
+ padding-right: var(--tv-safe-area-inset-right);
+}
+
+@utility py-safe {
+ padding-top: var(--tv-safe-area-inset-top);
+ padding-bottom: var(--tv-safe-area-inset-bottom);
+}
+
+@utility p-safe {
+ padding-top: var(--tv-safe-area-inset-top);
+ padding-right: var(--tv-safe-area-inset-right);
+ padding-bottom: var(--tv-safe-area-inset-bottom);
+ padding-left: var(--tv-safe-area-inset-left);
+}
+
+@utility mt-safe {
+ margin-top: var(--tv-safe-area-inset-top);
+}
+
+@utility mb-safe {
+ margin-bottom: var(--tv-safe-area-inset-bottom);
+}
+
+@utility ml-safe {
+ margin-left: var(--tv-safe-area-inset-left);
+}
+
+@utility mr-safe {
+ margin-right: var(--tv-safe-area-inset-right);
+}
+
+@layer base {
+ html {
+ touch-action: manipulation;
+ }
+
+ :root {
+ --tv-safe-area-inset-top: env(safe-area-inset-top, 0px);
+ --tv-safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
+ --tv-safe-area-inset-left: env(safe-area-inset-left, 0px);
+ --tv-safe-area-inset-right: env(safe-area-inset-right, 0px);
+ /* --tv-safe-area-inset-top: 30px;
+ --tv-safe-area-inset-bottom: 30px;
+ --tv-safe-area-inset-left: 30px;
+ --tv-safe-area-inset-right: 30px; */
+ }
+
+ .dark {
+ --tv-ui-bg-elevated: var(--color-neutral-800);
+ }
+}
diff --git a/web-nuxt-ui/src/assets/images/avatar-1.jpeg b/web-nuxt-ui/src/assets/images/avatar-1.jpeg
new file mode 100644
index 0000000..432992b
Binary files /dev/null and b/web-nuxt-ui/src/assets/images/avatar-1.jpeg differ
diff --git a/web-nuxt-ui/src/components/UserMenu.vue b/web-nuxt-ui/src/components/UserMenu.vue
new file mode 100644
index 0000000..5b58411
--- /dev/null
+++ b/web-nuxt-ui/src/components/UserMenu.vue
@@ -0,0 +1,264 @@
+<template>
+ <UDropdownMenu
+ :items="items"
+ :content="{ align: 'center', collisionPadding: 12 }"
+ :ui="{ content: collapsed ? 'w-48' : 'w-(--reka-dropdown-menu-trigger-width)' }"
+ >
+ <UButton
+ v-bind="{
+ ...user,
+ label: collapsed ? undefined : user?.name,
+ trailingIcon: collapsed ? undefined : 'i-lucide-chevrons-up-down'
+ }"
+ color="neutral"
+ variant="ghost"
+ block
+ :square="collapsed"
+ class="data-[state=open]:bg-elevated"
+ :ui="{
+ trailingIcon: 'text-dimmed'
+ }"
+ />
+
+ <template #chip-leading="{ item }">
+ <div class="inline-flex items-center justify-center shrink-0 size-5">
+ <span
+ class="rounded-full ring ring-bg bg-(--chip-light) dark:bg-(--chip-dark) size-2"
+ :style="{
+ '--chip-light': `var(--color-${(item as any).chip}-500)`,
+ '--chip-dark': `var(--color-${(item as any).chip}-400)`
+ }"
+ />
+ </div>
+ </template>
+ </UDropdownMenu>
+</template>
+
+<script setup lang="ts">
+import { ref, computed, onMounted } from 'vue'
+import type { DropdownMenuItem } from '@nuxt/ui'
+import { useColorMode } from '@vueuse/core'
+import { useI18n } from 'vue-i18n'
+import { useRouter } from 'vue-router'
+import { useAppStore } from '@/stores/app.store'
+import { useLogout } from '@/composables/useLogout'
+import { useUpdater } from '@/composables/useUpdater'
+import { useUserStore } from '@/stores/user.store'
+import { $ls } from '@/plugins/axios'
+import avatarImg from '@/assets/images/avatar-1.jpeg'
+
+defineProps<{
+ collapsed?: boolean
+}>()
+
+const { t, locale } = useI18n()
+const colorMode = useColorMode()
+const appStore = useAppStore()
+const router = useRouter()
+const toast = useToast()
+const userStore = useUserStore()
+
+const prodOrDev = ref<'prod' | 'dev'>('prod')
+let counter = 0
+let timeout: number
+let timeoutChangeProdOrDev: number
+
+onMounted(async () => {
+ prodOrDev.value = (await $ls.getValue('update_loading')) === 'dev' ? 'dev' : 'prod'
+})
+
+async function checkForUpdates() {
+ counter++
+
+ if (timeout) clearTimeout(timeout)
+ if (timeoutChangeProdOrDev) clearTimeout(timeoutChangeProdOrDev)
+
+ timeout = window.setTimeout(() => {
+ counter = 0
+ }, 500)
+
+ if (counter === 7) {
+ timeoutChangeProdOrDev = window.setTimeout(async () => {
+ if ((await $ls.getValue('update_loading')) !== 'dev') {
+ await $ls.setValue('update_loading', 'dev')
+ prodOrDev.value = 'dev'
+ } else {
+ await $ls.setValue('update_loading', 'prod')
+ prodOrDev.value = 'prod'
+ }
+ console.log(await $ls.getValue('update_loading'))
+ await useUpdater(true)
+ clearTimeout(timeoutChangeProdOrDev)
+ }, 2000)
+ }
+}
+
+async function handleLogout() {
+ const success = await useLogout()
+ if (success) {
+ router.push('/')
+ } else {
+ toast.add({
+ title: t('userMenu.logoutFailed'),
+ description: t('userMenu.logoutFailedDescription'),
+ color: 'error',
+ })
+ }
+}
+
+const user = computed(() => ({
+ name: userStore.email || userStore.login,
+ avatar: {
+ src: avatarImg,
+ alt: userStore.email || userStore.login,
+ },
+}))
+
+const items = computed<DropdownMenuItem[][]>(() => [
+ [
+ {
+ type: 'label',
+ label: user.value.name,
+ avatar: user.value.avatar,
+ },
+ ],
+ [
+ // {
+ // label: t('userMenu.profile'),
+ // icon: 'i-lucide-user',
+ // },
+ {
+ label: t('userMenu.accountSettings'),
+ icon: 'i-lucide-settings',
+ onSelect() {
+ router.push({ name: 'account' })
+ },
+ },
+ ],
+ [
+ {
+ label: t('userMenu.appearance'),
+ icon: 'i-lucide-sun-moon',
+ children: [
+ {
+ label: t('userMenu.light'),
+ icon: 'i-lucide-sun',
+ type: 'checkbox',
+ checked: colorMode.value === 'light',
+ onSelect(e: Event) {
+ e.preventDefault()
+ colorMode.value = 'light'
+ },
+ },
+ {
+ label: t('userMenu.dark'),
+ icon: 'i-lucide-moon',
+ type: 'checkbox',
+ checked: colorMode.value === 'dark',
+ onUpdateChecked(checked: boolean) {
+ if (checked) {
+ colorMode.value = 'dark'
+ }
+ },
+ onSelect(e: Event) {
+ e.preventDefault()
+ },
+ },
+ ],
+ },
+ {
+ label: t('userMenu.language'),
+ icon: 'i-lucide-languages',
+ children: [
+ {
+ label: 'English',
+ type: 'checkbox',
+ checked: locale.value === 'en',
+ onSelect(e: Event) {
+ e.preventDefault()
+ locale.value = 'en'
+ },
+ },
+ {
+ label: 'Русский',
+ type: 'checkbox',
+ checked: locale.value === 'ru',
+ onSelect(e: Event) {
+ e.preventDefault()
+ locale.value = 'ru'
+ },
+ },
+ ],
+ },
+ {
+ label: t('userMenu.taskDetailView'),
+ icon: 'i-lucide-panel-right',
+ children: [
+ {
+ label: t('userMenu.taskDetailSlideover'),
+ icon: 'i-lucide-panel-right',
+ type: 'checkbox',
+ checked: appStore.taskDetailDisplayMode === 'slideover',
+ onSelect(e: Event) {
+ e.preventDefault()
+ appStore.setTaskDetailDisplayMode('slideover')
+ },
+ },
+ {
+ label: t('userMenu.taskDetailModal'),
+ icon: 'i-lucide-square',
+ type: 'checkbox',
+ checked: appStore.taskDetailDisplayMode === 'modal',
+ onSelect(e: Event) {
+ e.preventDefault()
+ appStore.setTaskDetailDisplayMode('modal')
+ },
+ },
+ ],
+ },
+ ],
+ [
+ {
+ label: t('userMenu.site'),
+ icon: 'i-lucide-globe',
+ to: 'https://taskview.tech/',
+ target: '_blank',
+ },
+ {
+ label: t('userMenu.documentation'),
+ icon: 'i-lucide-book-open',
+ to: 'https://taskview.tech/docs/',
+ target: '_blank',
+ },
+ {
+ label: t('userMenu.github'),
+ icon: 'simple-icons:github',
+ to: 'https://github.com/Gimanh/taskview-community',
+ target: '_blank',
+ },
+ {
+ label: t('userMenu.docker'),
+ icon: 'simple-icons:docker',
+ to: 'https://hub.docker.com/u/gimanhead',
+ target: '_blank',
+ },
+ ],
+ [
+ {
+ label: `v ${APP_VERSION}${prodOrDev.value === 'dev' ? '_d' : ''}`,
+ icon: 'i-lucide-info',
+ onSelect(e: Event) {
+ e.preventDefault()
+ checkForUpdates()
+ },
+ },
+ ],
+ [
+ {
+ label: t('userMenu.logout'),
+ icon: 'i-lucide-log-out',
+ onSelect: handleLogout,
+ },
+ ],
+])
+</script>
diff --git a/web-nuxt-ui/src/components/features/account/AccountSettings.vue b/web-nuxt-ui/src/components/features/account/AccountSettings.vue
new file mode 100644
index 0000000..b462357
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/account/AccountSettings.vue
@@ -0,0 +1,49 @@
+<template>
+ <div class="flex flex-col gap-6 p-4 lg:p-6 w-full max-w-full lg:max-w-2xl m-0 lg:mx-auto">
+ <h1 class="text-2xl font-bold">
+ {{ t('account.title') }}
+ </h1>
+
+ <UPageCard class="w-full">
+ <div class="flex flex-col gap-4">
+ <h2 class="text-lg font-semibold">
+ {{ t('account.management') }}
+ </h2>
+
+ <div class="text-muted">
+ {{ userStore.email }}
+ </div>
+
+ <div>
+ <DeleteAccountButton
+ @code-sent="showCodeModal = true"
+ @error="onCodeSendError"
+ />
+ </div>
+ </div>
+ </UPageCard>
+
+ <DeleteAccountCodeModal v-model:open="showCodeModal" />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useUserStore } from '@/stores/user.store'
+import DeleteAccountButton from './parts/DeleteAccountButton.vue'
+import DeleteAccountCodeModal from './parts/DeleteAccountCodeModal.vue'
+
+const { t } = useI18n()
+const userStore = useUserStore()
+const toast = useToast()
+
+const showCodeModal = ref(false)
+
+function onCodeSendError() {
+ toast.add({
+ title: t('account.codeSendError'),
+ color: 'error',
+ })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/account/parts/DeleteAccountButton.vue b/web-nuxt-ui/src/components/features/account/parts/DeleteAccountButton.vue
new file mode 100644
index 0000000..b893b09
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/account/parts/DeleteAccountButton.vue
@@ -0,0 +1,33 @@
+<template>
+ <UButton
+ color="error"
+ @click="handleClick"
+ >
+ {{ t('account.deleteAccount') }}
+ </UButton>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import $api from '@/helpers/axios'
+
+const emit = defineEmits<{
+ codeSent: []
+ error: []
+}>()
+
+const { t } = useI18n()
+
+async function handleClick() {
+ const answer = confirm(t('account.deleteConfirm'))
+ if (!answer) return
+
+ try {
+ await $api.post('/module/auth/delete/account/code')
+ emit('codeSent')
+ } catch (err) {
+ console.log(err)
+ emit('error')
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/account/parts/DeleteAccountCodeModal.vue b/web-nuxt-ui/src/components/features/account/parts/DeleteAccountCodeModal.vue
new file mode 100644
index 0000000..b124e6e
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/account/parts/DeleteAccountCodeModal.vue
@@ -0,0 +1,68 @@
+<template>
+ <UModal v-model:open="open">
+ <template #content>
+ <div class="flex flex-col gap-4 p-6">
+ <UAlert
+ color="error"
+ icon="i-lucide-triangle-alert"
+ :title="t('account.deleteWarning')"
+ />
+
+ <UInput
+ v-model="code"
+ :placeholder="t('account.enterCode')"
+ spellcheck="false"
+ />
+
+ <div class="flex justify-end gap-2">
+ <UButton
+ color="neutral"
+ variant="outline"
+ @click="open = false"
+ >
+ {{ t('account.cancel') }}
+ </UButton>
+ <UButton
+ color="error"
+ :disabled="!code"
+ @click="handleConfirm"
+ >
+ {{ t('account.confirm') }}
+ </UButton>
+ </div>
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useRouter } from 'vue-router'
+import $api from '@/helpers/axios'
+import { $ls } from '@/plugins/axios'
+import type { AppResponse } from '@/types/global-app.types'
+
+const open = defineModel<boolean>('open', { required: true })
+
+const { t } = useI18n()
+const router = useRouter()
+const toast = useToast()
+
+const code = ref('')
+
+async function handleConfirm() {
+ const result = await $api
+ .post<AppResponse<{ del: boolean }>>('/module/auth/delete/account', { code: code.value })
+ .catch((err) => console.log(err))
+
+ if (result && result.data.response.del) {
+ toast.add({
+ title: t('account.deleted'),
+ color: 'success',
+ })
+ $ls.invalidateTokens()
+ router.push('/')
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/auth/ForgotPassword.vue b/web-nuxt-ui/src/components/features/auth/ForgotPassword.vue
new file mode 100644
index 0000000..d07ba61
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/auth/ForgotPassword.vue
@@ -0,0 +1,142 @@
+<template>
+ <div class="space-y-4">
+ <!-- Success state -->
+ <template v-if="isSent">
+ <div class="text-center space-y-4">
+ <div class="mx-auto w-12 h-12 rounded-full bg-success/10 flex items-center justify-center">
+ <UIcon
+ name="i-lucide-mail-check"
+ class="w-6 h-6 text-success"
+ />
+ </div>
+ <div>
+ <h3 class="font-medium">
+ {{ t('auth.checkYourEmail') }}
+ </h3>
+ <p class="text-sm text-muted mt-1">
+ {{ t('auth.resetLinkSent') }}
+ <span class="font-medium">{{ state.email }}</span>
+ </p>
+ </div>
+ <UButton
+ :label="t('auth.backToLogin')"
+ variant="outline"
+ color="neutral"
+ block
+ @click="emit('back')"
+ />
+ </div>
+ </template>
+
+ <!-- Form -->
+ <template v-else>
+ <div class="text-center mb-4">
+ <p class="text-sm text-muted">
+ {{ t('auth.forgotPasswordDescription') }}
+ </p>
+ </div>
+
+ <UForm
+ :state="state"
+ :schema="EmailSchema"
+ class="space-y-4"
+ @submit="onSubmit"
+ >
+ <UFormField
+ :label="t('auth.email')"
+ name="email"
+ >
+ <UInput
+ v-model="state.email"
+ type="email"
+ :placeholder="t('auth.emailPlaceholder')"
+ icon="i-lucide-mail"
+ class="w-full"
+ />
+ </UFormField>
+
+ <UButton
+ :label="t('auth.sendResetLink')"
+ type="submit"
+ color="primary"
+ block
+ :loading="isLoading"
+ />
+
+ <UButton
+ :label="t('auth.backToLogin')"
+ variant="link"
+ color="neutral"
+ block
+ @click="emit('back')"
+ />
+ </UForm>
+ </template>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { type } from 'arktype'
+import qs from 'qs'
+import { ref, reactive } from 'vue'
+import { useI18n } from 'vue-i18n'
+import $api from '@/helpers/axios'
+
+const { t } = useI18n()
+
+const emit = defineEmits<{
+ back: []
+ success: []
+}>()
+
+const toast = useToast()
+const isLoading = ref(false)
+const isSent = ref(false)
+
+const EmailSchema = type({
+ email: type('string.email').configure({ message: t('auth.invalidEmail') }),
+})
+
+type RecoveryResponse = {
+ sent: boolean
+}
+
+const state = reactive({
+ email: '',
+})
+
+async function onSubmit() {
+ isLoading.value = true
+
+ try {
+ const result = await $api.post<RecoveryResponse>(
+ '/module/auth/email/recovery',
+ qs.stringify({ email: state.email }),
+ )
+
+ if (result.data.sent) {
+ isSent.value = true
+ toast.add({
+ title: t('auth.emailSent'),
+ description: t('auth.checkInboxForReset'),
+ color: 'success',
+ })
+ emit('success')
+ } else {
+ toast.add({
+ title: t('auth.error'),
+ description: t('auth.failedToSendResetLink'),
+ color: 'error',
+ })
+ }
+ } catch {
+ toast.add({
+ title: t('auth.error'),
+ description: t('auth.failedToSendResetLink'),
+ color: 'error',
+ })
+ } finally {
+ isLoading.value = false
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/auth/LoginByCode.vue b/web-nuxt-ui/src/components/features/auth/LoginByCode.vue
new file mode 100644
index 0000000..b952f49
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/auth/LoginByCode.vue
@@ -0,0 +1,211 @@
+<template>
+ <div class="space-y-4">
+ <UForm
+ :state="state"
+ :schema="activeSchema"
+ class="space-y-4"
+ @submit="handleSubmit"
+ >
+ <UFormField
+ :label="t('auth.email')"
+ name="email"
+ >
+ <UInput
+ v-model="state.email"
+ type="email"
+ :placeholder="t('auth.emailPlaceholder')"
+ icon="i-lucide-mail"
+ class="w-full"
+ />
+ </UFormField>
+
+ <UFormField
+ v-if="showCodeField"
+ :label="t('auth.verificationCode')"
+ name="code"
+ >
+ <UInput
+ v-model="state.code"
+ placeholder="000000"
+ icon="i-lucide-key-round"
+ class="w-full text-center tracking-widest"
+ />
+ </UFormField>
+
+ <p
+ v-if="showCodeField"
+ class="text-sm text-muted"
+ >
+ {{ t('auth.enterCode') }}
+ <span class="font-medium">{{ state.email }}</span>
+ </p>
+
+ <UButton
+ :label="showCodeField ? t('auth.verifyAndSignIn') : t('auth.sendCode')"
+ type="submit"
+ color="primary"
+ block
+ :loading="isLoading"
+ />
+
+ <div
+ v-if="showCodeField"
+ class="flex items-center justify-between text-sm"
+ >
+ <UButton
+ :label="t('auth.back')"
+ variant="link"
+ color="neutral"
+ size="sm"
+ @click="goBack"
+ />
+ <UButton
+ :label="t('auth.resendCode')"
+ variant="link"
+ color="neutral"
+ size="sm"
+ :loading="isLoading"
+ @click="resendCode"
+ />
+ </div>
+ </UForm>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { type } from 'arktype'
+import { ref, reactive, computed, onMounted } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useRouter } from 'vue-router'
+import $api from '@/helpers/axios'
+import { $ls } from '@/plugins/axios'
+import { redirectToUser } from './auth.helper'
+
+const { t } = useI18n()
+const router = useRouter()
+
+const emit = defineEmits<{
+ success: [token: string]
+}>()
+
+const toast = useToast()
+
+const showCodeField = ref(false)
+const isLoading = ref(false)
+
+const emailType = type('string.email').configure({ message: t('auth.invalidEmail') })
+const codeType = type('string > 0').configure({ message: t('auth.codeMustBe6') })
+
+const EmailSchema = type({
+ email: emailType,
+})
+
+const CodeSchema = type({
+ email: emailType,
+ code: codeType,
+})
+
+const activeSchema = computed(() => showCodeField.value ? CodeSchema : EmailSchema)
+
+type LoginResponse = {
+ access: string
+ refresh: string
+}
+
+const state = reactive({
+ email: '',
+ code: '',
+})
+
+onMounted(async () => {
+ const savedEmail = await $ls.getValue('user-email')
+ if (savedEmail) {
+ state.email = savedEmail
+ }
+})
+
+async function handleSubmit() {
+ isLoading.value = true
+
+ try {
+ if (showCodeField.value) {
+ const result = await $api.post<LoginResponse>('/module/auth/login-by-code', {
+ code: state.code,
+ email: state.email,
+ })
+
+ if (result.data.access) {
+ $ls.setToken(result.data.access)
+ $ls.setRefreshToken(result.data.refresh)
+ await $ls.updateUserStoreByToken()
+
+ toast.add({
+ title: t('auth.success'),
+ description: t('auth.loggedIn'),
+ color: 'success',
+ })
+
+ emit('success', result.data.access)
+ redirectToUser(router)
+ }
+ } else {
+ await $api.post('/module/auth/send-login-code', { email: state.email })
+ await $ls.setValue('user-email', state.email)
+
+ toast.add({
+ title: t('auth.codeSent'),
+ description: t('auth.checkInbox', { email: state.email }),
+ color: 'success',
+ })
+
+ showCodeField.value = true
+ }
+ } catch (error: unknown) {
+ const axiosError = error as { response?: { status?: number } }
+ if (showCodeField.value) {
+ toast.add({
+ title: t('auth.error'),
+ description: axiosError.response?.status === 403 ? t('auth.invalidCode') : t('auth.loginFailed'),
+ color: 'error',
+ })
+ } else {
+ toast.add({
+ title: t('auth.error'),
+ description: t('auth.failedToSendCode'),
+ color: 'error',
+ })
+ }
+ } finally {
+ isLoading.value = false
+ }
+}
+
+function goBack() {
+ showCodeField.value = false
+ state.code = ''
+}
+
+async function resendCode() {
+ if (!state.email) return
+
+ isLoading.value = true
+
+ try {
+ await $api.post('/module/auth/send-login-code', { email: state.email })
+
+ toast.add({
+ title: t('auth.codeResent'),
+ description: t('auth.newCodeSent', { email: state.email }),
+ color: 'success',
+ })
+ } catch {
+ toast.add({
+ title: t('auth.error'),
+ description: t('auth.failedToResendCode'),
+ color: 'error',
+ })
+ } finally {
+ isLoading.value = false
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/auth/LoginByPassword.vue b/web-nuxt-ui/src/components/features/auth/LoginByPassword.vue
new file mode 100644
index 0000000..ac917a3
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/auth/LoginByPassword.vue
@@ -0,0 +1,147 @@
+<template>
+ <UForm
+ :state="state"
+ :schema="LoginSchema"
+ class="space-y-4"
+ @submit="onSubmit"
+ >
+ <UFormField
+ :label="t('auth.login')"
+ name="login"
+ >
+ <UInput
+ v-model="state.login"
+ :placeholder="t('auth.loginPlaceholder')"
+ icon="i-lucide-user"
+ class="w-full"
+ data-testid="login-input"
+ />
+ </UFormField>
+
+ <UFormField
+ :label="t('auth.passwordLabel')"
+ name="password"
+ >
+ <UInput
+ v-model="state.password"
+ :type="showPassword ? 'text' : 'password'"
+ :placeholder="t('auth.passwordPlaceholder')"
+ icon="i-lucide-lock"
+ class="w-full"
+ data-testid="password-input"
+ >
+ <template #trailing>
+ <UButton
+ :icon="showPassword ? 'i-lucide-eye-off' : 'i-lucide-eye'"
+ color="neutral"
+ variant="link"
+ size="sm"
+ :padded="false"
+ @click="showPassword = !showPassword"
+ />
+ </template>
+ </UInput>
+ </UFormField>
+
+ <div class="flex justify-end">
+ <UButton
+ :label="t('auth.forgotPassword')"
+ variant="link"
+ color="neutral"
+ size="sm"
+ @click="emit('forgotPassword')"
+ />
+ </div>
+
+ <UButton
+ :label="t('auth.signIn')"
+ type="submit"
+ color="primary"
+ block
+ :loading="isLoading"
+ data-testid="sign-in-button"
+ />
+ </UForm>
+</template>
+
+<script setup lang="ts">
+import { type } from 'arktype'
+import qs from 'qs'
+import { ref, reactive } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useRouter } from 'vue-router'
+import $api from '@/helpers/axios'
+import { $ls } from '@/plugins/axios'
+import { redirectToUser } from './auth.helper'
+
+const { t } = useI18n()
+const router = useRouter()
+
+const emit = defineEmits<{
+ success: [token: string]
+ forgotPassword: []
+}>()
+
+const toast = useToast()
+const isLoading = ref(false)
+const showPassword = ref(false)
+
+const LoginSchema = type({
+ login: type('string > 0').configure({ message: t('auth.loginRequired') }),
+ password: type('string > 0').configure({ message: t('auth.passwordRequired') }),
+})
+
+type LoginState = typeof LoginSchema.infer
+
+type LoginResponse = {
+ access: string
+ refresh: string
+}
+
+const state = reactive<LoginState>({
+ login: 'user',
+ password: 'user1!#Q',
+})
+
+async function onSubmit() {
+ isLoading.value = true
+
+ try {
+ const { login, password } = state
+ const result = await $api.post<LoginResponse>('/module/auth/login', qs.stringify({ login, password }))
+
+ if (result.data.access) {
+ $ls.setToken(result.data.access)
+ $ls.setRefreshToken(result.data.refresh)
+ await $ls.updateUserStoreByToken()
+
+ toast.add({
+ title: t('auth.success'),
+ description: t('auth.loggedIn'),
+ color: 'success',
+ })
+
+ emit('success', result.data.access)
+
+ redirectToUser(router)
+ }
+ } catch (error: unknown) {
+ const axiosError = error as { response?: { status?: number } }
+ if (axiosError.response?.status === 403) {
+ toast.add({
+ title: t('auth.error'),
+ description: t('auth.invalidCredentials'),
+ color: 'error',
+ })
+ } else {
+ toast.add({
+ title: t('auth.error'),
+ description: t('auth.loginFailed'),
+ color: 'error',
+ })
+ }
+ } finally {
+ isLoading.value = false
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/auth/LoginForm.vue b/web-nuxt-ui/src/components/features/auth/LoginForm.vue
new file mode 100644
index 0000000..1057f8d
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/auth/LoginForm.vue
@@ -0,0 +1,127 @@
+<template>
+ <div class="w-full max-w-sm mx-auto space-y-6">
+ <!-- Header -->
+ <div class="text-center">
+ <h1 class="text-2xl font-bold">
+ {{ t('auth.welcome') }}
+ </h1>
+ <p class="text-muted mt-1">
+ {{ t('auth.signInToAccount') }}
+ </p>
+ </div>
+
+ <!-- Forgot Password View -->
+ <template v-if="currentView === 'forgot'">
+ <ForgotPassword
+ @back="currentView = 'password'"
+ @success="currentView = 'password'"
+ />
+ </template>
+
+ <!-- Login Views -->
+ <template v-else>
+ <SocialButtons />
+
+ <!-- Divider -->
+ <div class="relative">
+ <div class="absolute inset-0 flex items-center">
+ <div class="w-full border-t border-default" />
+ </div>
+ <div class="relative flex justify-center text-xs uppercase">
+ <span class="bg-default px-2 text-muted">{{ t('auth.orContinueWith') }}</span>
+ </div>
+ </div>
+
+ <!-- Tabs -->
+ <UTabs
+ v-model="currentView"
+ :items="tabs"
+ class="w-full"
+ @update:model-value="onTabChange"
+ >
+ <template #code>
+ <div class="pt-4">
+ <LoginByCode @success="handleSuccess" />
+ </div>
+ </template>
+
+ <template #password>
+ <div class="pt-4">
+ <LoginByPassword
+ @success="handleSuccess"
+ @forgot-password="currentView = 'forgot'"
+ />
+ </div>
+ </template>
+ </UTabs>
+ </template>
+
+ <!-- Server Selector -->
+ <UCollapsible class="flex flex-col gap-2">
+ <UButton
+ class="group"
+ :label="t('server.selectServer')"
+ color="neutral"
+ variant="ghost"
+ icon="i-lucide-server"
+ trailing-icon="i-lucide-chevron-down"
+ :ui="{
+ trailingIcon: 'group-data-[state=open]:rotate-180 transition-transform duration-200'
+ }"
+ block
+ />
+
+ <template #content>
+ <ServerSelector class="p-2 border border-default rounded-lg" />
+ </template>
+ </UCollapsible>
+
+ <!-- Footer -->
+ <p class="text-center text-xs text-muted">
+ {{ t('auth.termsText') }}
+ <a
+ href="#"
+ class="underline hover:text-foreground"
+ >{{ t('auth.termsOfService') }}</a>
+ {{ t('auth.and') }}
+ <a
+ href="#"
+ class="underline hover:text-foreground"
+ >{{ t('auth.privacyPolicy') }}</a>.
+ </p>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import LoginByCode from './LoginByCode.vue'
+import LoginByPassword from './LoginByPassword.vue'
+import ForgotPassword from './ForgotPassword.vue'
+import SocialButtons from './SocialButtons.vue'
+import ServerSelector from './ServerSelector.vue'
+
+const { t } = useI18n()
+
+const emit = defineEmits<{
+ success: [token: string]
+}>()
+
+type View = 'code' | 'password' | 'forgot'
+
+const currentView = ref<View>('code')
+
+const tabs = computed(() => [
+ { value: 'code', label: t('auth.magicLink'), slot: 'code' as const },
+ { value: 'password', label: t('auth.password'), slot: 'password' as const },
+])
+
+function onTabChange(value: string | number) {
+ currentView.value = value as View
+}
+
+function handleSuccess(token: string) {
+ emit('success', token)
+}
+
+</script>
diff --git a/web-nuxt-ui/src/components/features/auth/ResetPassword.vue b/web-nuxt-ui/src/components/features/auth/ResetPassword.vue
new file mode 100644
index 0000000..02ca090
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/auth/ResetPassword.vue
@@ -0,0 +1,231 @@
+<template>
+ <div class="space-y-4">
+ <!-- Success state -->
+ <template v-if="isReset">
+ <div class="text-center space-y-4">
+ <div class="mx-auto w-12 h-12 rounded-full bg-success/10 flex items-center justify-center">
+ <UIcon
+ name="i-lucide-check-circle"
+ class="w-6 h-6 text-success"
+ />
+ </div>
+ <div>
+ <h3 class="font-medium">
+ {{ t('auth.passwordReset') }}
+ </h3>
+ <p class="text-sm text-muted mt-1">
+ {{ t('auth.passwordResetSuccess') }}
+ </p>
+ </div>
+ <UButton
+ :label="t('auth.backToLogin')"
+ color="primary"
+ block
+ @click="goToLogin"
+ />
+ </div>
+ </template>
+
+ <!-- Error state - invalid reset link -->
+ <template v-else-if="!isValidLink">
+ <div class="text-center space-y-4">
+ <div class="mx-auto w-12 h-12 rounded-full bg-error/10 flex items-center justify-center">
+ <UIcon
+ name="i-lucide-alert-circle"
+ class="w-6 h-6 text-error"
+ />
+ </div>
+ <div>
+ <h3 class="font-medium">
+ {{ t('auth.invalidResetLink') }}
+ </h3>
+ <p class="text-sm text-muted mt-1">
+ {{ t('auth.invalidResetLinkDescription') }}
+ </p>
+ </div>
+ <UButton
+ :label="t('auth.backToLogin')"
+ variant="outline"
+ color="neutral"
+ block
+ @click="goToLogin"
+ />
+ </div>
+ </template>
+
+ <!-- Form -->
+ <template v-else>
+ <div class="text-center mb-4">
+ <h3 class="font-medium">
+ {{ t('auth.setNewPassword') }}
+ </h3>
+ <p class="text-sm text-muted mt-1">
+ {{ t('auth.setNewPasswordDescription') }}
+ </p>
+ </div>
+
+ <UForm
+ :state="state"
+ :schema="PasswordSchema"
+ :validate="validatePasswordsMatch"
+ class="space-y-4"
+ @submit="onSubmit"
+ >
+ <UFormField
+ :label="t('auth.newPassword')"
+ name="password"
+ >
+ <UInput
+ v-model="state.password"
+ :type="showPassword ? 'text' : 'password'"
+ :placeholder="t('auth.newPasswordPlaceholder')"
+ icon="i-lucide-lock"
+ class="w-full"
+ >
+ <template #trailing>
+ <UButton
+ :icon="showPassword ? 'i-lucide-eye-off' : 'i-lucide-eye'"
+ color="neutral"
+ variant="link"
+ size="sm"
+ :padded="false"
+ @click="showPassword = !showPassword"
+ />
+ </template>
+ </UInput>
+ </UFormField>
+
+ <UFormField
+ :label="t('auth.confirmPassword')"
+ name="passwordRepeat"
+ >
+ <UInput
+ v-model="state.passwordRepeat"
+ :type="showPasswordRepeat ? 'text' : 'password'"
+ :placeholder="t('auth.confirmPasswordPlaceholder')"
+ icon="i-lucide-lock"
+ class="w-full"
+ >
+ <template #trailing>
+ <UButton
+ :icon="showPasswordRepeat ? 'i-lucide-eye-off' : 'i-lucide-eye'"
+ color="neutral"
+ variant="link"
+ size="sm"
+ :padded="false"
+ @click="showPasswordRepeat = !showPasswordRepeat"
+ />
+ </template>
+ </UInput>
+ </UFormField>
+
+ <UButton
+ :label="t('auth.resetPassword')"
+ type="submit"
+ color="primary"
+ block
+ :loading="isLoading"
+ />
+
+ <UButton
+ :label="t('auth.backToLogin')"
+ variant="link"
+ color="neutral"
+ block
+ @click="goToLogin"
+ />
+ </UForm>
+ </template>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { type } from 'arktype'
+import qs from 'qs'
+import { ref, reactive, computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useRoute, useRouter } from 'vue-router'
+import $api from '@/helpers/axios'
+
+const { t } = useI18n()
+const route = useRoute()
+const router = useRouter()
+
+const toast = useToast()
+
+const isLoading = ref(false)
+const isReset = ref(false)
+const showPassword = ref(false)
+const showPasswordRepeat = ref(false)
+
+const resetCode = computed(() => route.query.resetCode as string | undefined)
+const login = computed(() => route.query.login as string | undefined)
+const isValidLink = computed(() => !!resetCode.value && !!login.value)
+
+const PasswordSchema = type({
+ password: type('string >= 6').configure({ message: t('auth.passwordTooShort') }),
+ passwordRepeat: type('string >= 6').configure({ message: t('auth.passwordTooShort') }),
+})
+
+type ResetResponse = {
+ reset: boolean
+}
+
+const state = reactive({
+ password: '',
+ passwordRepeat: '',
+})
+
+function validatePasswordsMatch(state: Partial<{ password: string; passwordRepeat: string }>) {
+ const errors = []
+ if (state.password && state.passwordRepeat && state.password !== state.passwordRepeat) {
+ errors.push({ name: 'passwordRepeat', message: t('auth.passwordsDoNotMatch') })
+ }
+ return errors
+}
+
+async function onSubmit() {
+ if (!isValidLink.value) return
+
+ isLoading.value = true
+
+ try {
+ const result = await $api.post<ResetResponse>(
+ '/module/auth/password/reset',
+ qs.stringify({
+ code: resetCode.value,
+ login: login.value,
+ password: state.password,
+ passwordRepeat: state.passwordRepeat,
+ }),
+ )
+
+ if (result.data.reset) {
+ isReset.value = true
+ toast.add({
+ title: t('auth.success'),
+ description: t('auth.passwordResetSuccess'),
+ color: 'success',
+ })
+ } else {
+ toast.add({
+ title: t('auth.error'),
+ description: t('auth.canNotResetPassword'),
+ color: 'error',
+ })
+ }
+ } catch {
+ toast.add({
+ title: t('auth.error'),
+ description: t('auth.canNotResetPassword'),
+ color: 'error',
+ })
+ } finally {
+ isLoading.value = false
+ }
+}
+
+function goToLogin() {
+ router.push('/')
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/auth/ServerSelector.vue b/web-nuxt-ui/src/components/features/auth/ServerSelector.vue
new file mode 100644
index 0000000..ff0cc39
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/auth/ServerSelector.vue
@@ -0,0 +1,191 @@
+<template>
+ <div class="space-y-2">
+ <USelectMenu
+ v-model="selectedServer"
+ :items="serverOptions"
+ :placeholder="t('server.selectServer')"
+ value-key="value"
+ class="w-full"
+ variant="subtle"
+ >
+ <template #item="{ item }">
+ <div class="flex items-center justify-between w-full gap-2">
+ <div class="flex items-center gap-2 min-w-0">
+ <UIcon
+ :name="item.isSystem ? 'i-lucide-server' : 'i-lucide-cloud'"
+ class="size-4 shrink-0"
+ />
+ <span class="truncate">{{ item.label }}</span>
+ </div>
+ <UButton
+ v-if="!item.isSystem"
+ icon="i-lucide-trash-2"
+ color="error"
+ variant="ghost"
+ size="xs"
+ @click.stop="deleteServer(item.value)"
+ />
+ </div>
+ </template>
+ </USelectMenu>
+
+ <UButton
+ :label="t('server.addServer')"
+ icon="i-lucide-plus"
+ variant="ghost"
+ size="sm"
+ class="w-full"
+ @click="showAddDialog = true"
+ />
+
+ <UModal v-model:open="showAddDialog">
+ <template #content>
+ <UCard>
+ <template #header>
+ <div class="flex items-center justify-between">
+ <h3 class="text-lg font-semibold">
+ {{ t('server.addNewServer') }}
+ </h3>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ @click="showAddDialog = false"
+ />
+ </div>
+ </template>
+
+ <div class="space-y-4">
+ <UFormField :label="t('server.serverUrl')">
+ <UInput
+ v-model="newServerUrl"
+ placeholder="https://api.example.com"
+ class="w-full"
+ @keyup.enter="handleAddServer"
+ />
+ </UFormField>
+ <p class="text-xs text-muted">
+ {{ t('server.serverUrlHint') }}
+ </p>
+ </div>
+
+ <template #footer>
+ <div class="flex justify-end gap-2">
+ <UButton
+ color="neutral"
+ variant="outline"
+ @click="showAddDialog = false"
+ >
+ {{ t('common.cancel') }}
+ </UButton>
+ <UButton
+ :disabled="!isValidUrl"
+ variant="outline"
+ @click="handleAddServer"
+ >
+ {{ t('common.add') }}
+ </UButton>
+ </div>
+ </template>
+ </UCard>
+ </template>
+ </UModal>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed, onMounted, ref, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useAdditionalServer } from '@/composables/useAdditionalServer'
+
+const { t } = useI18n()
+
+const mainServer = ref('')
+const allServers = ref<string[]>([])
+const systemServer = ref('')
+const setMainServer = ref<(server: string) => void>(() => {})
+const addServerFn = ref<(server: string) => void>(() => {})
+const deleteServerFn = ref<(server: string) => void>(() => {})
+
+const showAddDialog = ref(false)
+const newServerUrl = ref('')
+const selectedServer = ref<string | undefined>(undefined)
+
+onMounted(async () => {
+ const serverApi = await useAdditionalServer()
+ mainServer.value = serverApi.mainServer.value
+ allServers.value = serverApi.allServers.value
+ systemServer.value = serverApi.systemServer.value
+ setMainServer.value = serverApi.setMainServer
+ addServerFn.value = serverApi.addServer
+ deleteServerFn.value = serverApi.deleteServer
+ selectedServer.value = mainServer.value
+})
+
+const serverOptions = computed(() => {
+ const options = [
+ {
+ label: systemServer.value || t('server.defaultServer'),
+ value: systemServer.value,
+ isSystem: true,
+ },
+ ]
+
+ allServers.value.forEach((server) => {
+ if (server !== systemServer.value) {
+ options.push({
+ label: server,
+ value: server,
+ isSystem: false,
+ })
+ }
+ })
+
+ return options
+})
+
+const isValidUrl = computed(() => {
+ if (!newServerUrl.value) return false
+ try {
+ const url = new URL(newServerUrl.value)
+ return url.protocol === 'http:' || url.protocol === 'https:'
+ } catch {
+ return false
+ }
+})
+
+watch(selectedServer, (newServer) => {
+ if (newServer && newServer !== mainServer.value) {
+ setMainServer.value(newServer)
+ mainServer.value = newServer
+ }
+})
+
+function handleAddServer() {
+ if (!isValidUrl.value) return
+
+ const url = newServerUrl.value.trim().replace(/\/$/, '')
+
+ if (!allServers.value.includes(url) && url !== systemServer.value) {
+ addServerFn.value(url)
+ allServers.value = [...allServers.value, url]
+ }
+
+ selectedServer.value = url
+ setMainServer.value(url)
+ mainServer.value = url
+
+ newServerUrl.value = ''
+ showAddDialog.value = false
+}
+
+function deleteServer(server: string) {
+ deleteServerFn.value(server)
+ allServers.value = allServers.value.filter((s) => s !== server)
+
+ if (selectedServer.value === server) {
+ selectedServer.value = systemServer.value
+ mainServer.value = systemServer.value
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/auth/SocialButtons.vue b/web-nuxt-ui/src/components/features/auth/SocialButtons.vue
new file mode 100644
index 0000000..f9f226c
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/auth/SocialButtons.vue
@@ -0,0 +1,67 @@
+<template>
+ <div class="space-y-3">
+ <UButton
+ :label="t('auth.continueWithGoogle')"
+ icon="i-lucide-chrome"
+ color="neutral"
+ variant="outline"
+ block
+ :loading="isLoading === 'google'"
+ :disabled="isLoading !== null"
+ @click="handleLogin('google')"
+ />
+ <UButton
+ :label="t('auth.continueWithGithub')"
+ icon="i-lucide-github"
+ color="neutral"
+ variant="outline"
+ block
+ :loading="isLoading === 'github'"
+ :disabled="isLoading !== null"
+ @click="handleLogin('github')"
+ />
+ <UButton
+ :label="t('auth.continueWithApple')"
+ icon="i-lucide-apple"
+ color="neutral"
+ variant="outline"
+ block
+ :loading="isLoading === 'apple'"
+ :disabled="isLoading !== null"
+ @click="handleLogin('apple')"
+ />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { Capacitor } from '@capacitor/core'
+import { Browser } from '@capacitor/browser'
+import { useAdditionalServer } from '@/composables/useAdditionalServer'
+
+type Provider = 'google' | 'github' | 'apple'
+
+const { t } = useI18n()
+
+const isLoading = ref<Provider | null>(null)
+
+async function handleLogin(provider: Provider) {
+ isLoading.value = provider
+
+ setTimeout(() => {
+ isLoading.value = null
+ }, 2000)
+
+ const { mainServer } = await useAdditionalServer()
+
+ const platform = Capacitor.isNativePlatform() ? 'mobile' : 'web'
+ const url = `${mainServer.value}/module/auth/provider/${provider}?platform=${platform}`
+
+ if (Capacitor.isNativePlatform()) {
+ await Browser.open({ url })
+ } else {
+ window.location.href = url
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/auth/auth.helper.ts b/web-nuxt-ui/src/components/features/auth/auth.helper.ts
new file mode 100644
index 0000000..b713b3b
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/auth/auth.helper.ts
@@ -0,0 +1,9 @@
+import { useUserStore } from '@/stores/user.store'
+import { Router } from 'vue-router'
+
+export const redirectToUser = async (router: Router) => {
+ const userStore: ReturnType<typeof useUserStore> = useUserStore()
+ if (userStore.accessToken) {
+ await router.push({ name: 'user', params: { user: userStore.login } })
+ }
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/src/components/features/base/TvCollapseSidebarDesktop.vue b/web-nuxt-ui/src/components/features/base/TvCollapseSidebarDesktop.vue
new file mode 100644
index 0000000..449f62c
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/base/TvCollapseSidebarDesktop.vue
@@ -0,0 +1,19 @@
+<template>
+ <UButton
+ :icon="isSidebarCollapsed ? 'i-lucide-panel-right' : 'i-lucide-panel-left'"
+ color="neutral"
+ variant="soft"
+ class="lg:flex hidden cursor-pointer"
+ @click="toggleSidebar"
+ />
+</template>
+
+<script setup lang="ts">
+import { useDashboard } from '@/composables/useDashboard'
+
+const { isSidebarCollapsed } = useDashboard()
+
+function toggleSidebar() {
+ isSidebarCollapsed.value = !isSidebarCollapsed.value
+}
+</script>
\ No newline at end of file
diff --git a/web-nuxt-ui/src/components/features/base/TvContextMenu.vue b/web-nuxt-ui/src/components/features/base/TvContextMenu.vue
new file mode 100644
index 0000000..515f0af
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/base/TvContextMenu.vue
@@ -0,0 +1,64 @@
+<template>
+ <UPopover
+ v-model:open="isOpen"
+ :content="{ side: 'bottom', align: 'start', updatePositionStrategy: 'always' }"
+ >
+ <template #default>
+ <div
+ class="fixed pointer-events-none"
+ :style="anchorStyle"
+ />
+ </template>
+ <template #content>
+ <slot />
+ </template>
+ </UPopover>
+</template>
+
+<script setup lang="ts">
+import { ref, computed, onMounted, onUnmounted } from 'vue'
+
+const isOpen = defineModel<boolean>('open', { default: false })
+
+const anchorPosition = ref({ x: 0, y: 0 })
+
+const anchorStyle = computed(() => ({
+ left: `${anchorPosition.value.x}px`,
+ top: `${anchorPosition.value.y}px`,
+ width: '1px',
+ height: '1px',
+}))
+
+function onScroll() {
+ if (isOpen.value) {
+ isOpen.value = false
+ }
+}
+
+onMounted(() => {
+ window.addEventListener('scroll', onScroll, true)
+})
+
+onUnmounted(() => {
+ window.removeEventListener('scroll', onScroll, true)
+})
+
+function openAt(event: MouseEvent) {
+ const target = event.currentTarget as HTMLElement
+ const rect = target.getBoundingClientRect()
+ anchorPosition.value = {
+ x: rect.right,
+ y: rect.bottom,
+ }
+ isOpen.value = true
+}
+
+function close() {
+ isOpen.value = false
+}
+
+defineExpose({
+ openAt,
+ close,
+})
+</script>
diff --git a/web-nuxt-ui/src/components/features/base/TvGoalLikeItem.vue b/web-nuxt-ui/src/components/features/base/TvGoalLikeItem.vue
new file mode 100644
index 0000000..7bb9b06
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/base/TvGoalLikeItem.vue
@@ -0,0 +1,19 @@
+<template>
+ <UPageCard
+ v-bind="{ ...props }"
+ class="shadow-sm"
+ :class="{ 'bg-primary/10 border border-primary/30': active }"
+ >
+ <div class="flex items-center justify-between">
+ <slot />
+ </div>
+ </UPageCard>
+</template>
+<script setup lang="ts">
+import type { RouteLocationRaw } from 'vue-router'
+
+const props = defineProps<{
+ to?: RouteLocationRaw
+ active?: boolean
+}>()
+</script>
\ No newline at end of file
diff --git a/web-nuxt-ui/src/components/features/base/TvMobileBottomNav.vue b/web-nuxt-ui/src/components/features/base/TvMobileBottomNav.vue
new file mode 100644
index 0000000..358c8d9
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/base/TvMobileBottomNav.vue
@@ -0,0 +1,110 @@
+<template>
+ <nav class="fixed bottom-0 left-0 right-0 z-50 lg:hidden border-t border-default pb-safe">
+ <div class="flex items-center justify-between min-h-14">
+ <UButton
+ v-for="item in navItems"
+ :key="item.label"
+ :icon="item.icon"
+ :to="item.to"
+ color="neutral"
+ variant="ghost"
+ size="lg"
+ class="flex-1 h-full rounded-none"
+ :class="{ 'text-primary': item.active?.() }"
+ :ui="{
+ base: ' justify-center',
+ }"
+ @click="item.onClick?.()"
+ />
+ </div>
+ </nav>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import { useRoute } from 'vue-router'
+import { useI18n } from 'vue-i18n'
+import { useDashboard } from '@/composables/useDashboard'
+import { useAppRouteInfo } from '@/composables/useAppRouteInfo'
+import { ALL_TASKS_LIST_ID } from 'taskview-api'
+
+const route = useRoute()
+const { t } = useI18n()
+const { isSidebarOpen } = useDashboard()
+const { isUserRoute, isAccountRoute, hasProject, projectId, hasList } = useAppRouteInfo()
+
+const navItems = computed(() => {
+ if (isAccountRoute.value) {
+ return [
+ {
+ label: t('main'),
+ icon: 'i-lucide-house',
+ to: { name: 'user' },
+ active: (): boolean => false,
+ },
+ ]
+ }
+
+ if (isUserRoute.value && !hasProject.value) {
+ return [
+ {
+ label: t('projects.title'),
+ icon: 'i-lucide-folder',
+ active: (): boolean => isSidebarOpen.value,
+ onClick: () => { isSidebarOpen.value = !isSidebarOpen.value },
+ },
+ {
+ label: t('account.title'),
+ icon: 'i-lucide-settings',
+ to: { name: 'account' },
+ active: (): boolean => false,
+ },
+ ]
+ }
+
+ return [
+ {
+ label: t('main'),
+ icon: 'i-lucide-house',
+ to: { name: 'user' },
+ active: (): boolean => false,
+ },
+ {
+ label: t('projects.title'),
+ icon: 'i-lucide-folder',
+ active: (): boolean => isSidebarOpen.value,
+ onClick: () => { isSidebarOpen.value = !isSidebarOpen.value },
+ },
+ {
+ label: t('projects.kanban'),
+ icon: 'i-lucide-kanban',
+ to: { name: 'kanban', params: { projectId: projectId.value } },
+ active: (): boolean => route.name === 'kanban',
+ },
+ {
+ label: t('projects.graph'),
+ icon: 'i-lucide-git-fork',
+ to: { name: 'graph', params: { projectId: projectId.value } },
+ active: (): boolean => route.name === 'graph',
+ },
+ {
+ label: t('projects.collaboration'),
+ icon: 'i-lucide-users',
+ to: { name: 'collaboration', params: { projectId: projectId.value } },
+ active: (): boolean => route.name === 'collaboration',
+ },
+ {
+ label: t('lists.title'),
+ icon: 'i-lucide-list',
+ to: { name: 'user', params: { projectId: projectId.value } },
+ active: (): boolean => isUserRoute.value && hasProject.value && !hasList.value,
+ },
+ {
+ label: t('tasks.allTasks'),
+ icon: 'i-lucide-list-checks',
+ to: { name: 'user', params: { projectId: projectId.value, listId: ALL_TASKS_LIST_ID } },
+ active: (): boolean => isUserRoute.value && hasList.value,
+ },
+ ]
+})
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/CollaborationPanel.vue b/web-nuxt-ui/src/components/features/collaboration/CollaborationPanel.vue
new file mode 100644
index 0000000..5aeae7c
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/CollaborationPanel.vue
@@ -0,0 +1,163 @@
+<template>
+ <div class="p-4">
+ <div
+ v-if="!hasGoalSelected"
+ class="flex flex-col items-center justify-center h-64 text-muted"
+ >
+ <UIcon
+ name="i-lucide-users"
+ class="size-12 mb-4"
+ />
+ <p>{{ t('collaboration.selectProject') }}</p>
+ </div>
+
+ <template v-else>
+ <h2 class="text-lg font-semibold mb-4">
+ {{ projectName }}
+ </h2>
+ <UTabs
+ v-model="activeTab"
+ :items="tabs"
+ class="w-full"
+ >
+ <template #members>
+ <MembersList
+ :members="users"
+ :roles="roles"
+ :goal-id="projectId"
+ :loading="loading"
+ @invite="handleInvite"
+ @update-roles="handleUpdateMemberRoles"
+ @remove="handleRemoveMember"
+ />
+ </template>
+
+ <template #roles>
+ <RolesList
+ :roles="roles"
+ :permissions="permissions"
+ :roles-permissions="rolesPermissions"
+ :goal-id="projectId"
+ :loading="loading"
+ @create="handleCreateRole"
+ @toggle-permission="handleTogglePermission"
+ @delete="handleDeleteRole"
+ />
+ </template>
+ </UTabs>
+ </template>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, computed, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+// import { useRoute } from 'vue-router'
+import { storeToRefs } from 'pinia'
+import { useCollaborationStore } from '@/stores/collaboration.store'
+import { useCollaborationRolesStore } from '@/stores/collaboration-roles.store'
+import { useCollaborationPermissionsStore } from '@/stores/collaboration-permissions.store'
+import MembersList from './parts/members/MembersList.vue'
+import RolesList from './parts/roles/RolesList.vue'
+import { useAppRouteInfo } from '@/composables/useAppRouteInfo'
+import { useGoalsStore } from '@/stores/goals.store'
+
+const { t } = useI18n()
+const { projectId } = useAppRouteInfo()
+const goalsStore = useGoalsStore()
+
+const projectName = computed(() => {
+ const goal = goalsStore.goalMap.get(projectId.value)
+ return goal?.name ?? ''
+})
+const collaborationStore = useCollaborationStore()
+const rolesStore = useCollaborationRolesStore()
+const permissionsStore = useCollaborationPermissionsStore()
+
+const { users } = storeToRefs(collaborationStore)
+const { roles, rolesPermissions } = storeToRefs(rolesStore)
+const { permissions } = storeToRefs(permissionsStore)
+
+const activeTab = ref('members')
+const loading = ref(false)
+
+const hasGoalSelected = computed(() => projectId.value > 0)
+
+const tabs = computed(() => [
+ {
+ label: t('collaboration.tabs.members'),
+ slot: 'members',
+ value: 'members',
+ },
+ {
+ label: t('collaboration.tabs.roles'),
+ slot: 'roles',
+ value: 'roles',
+ },
+])
+
+async function fetchData() {
+ if (!hasGoalSelected.value) {
+ return
+ }
+
+ loading.value = true
+ try {
+ await Promise.all([
+ collaborationStore.fetchCollaborationUsersForGoal(projectId.value),
+ rolesStore.fetchCollaborationRolesForGoal(projectId.value),
+ permissionsStore.fetchAllPermissions(),
+ rolesStore.fetchAllRolePermissionsForGoal(projectId.value),
+ ])
+ } finally {
+ loading.value = false
+ }
+}
+
+watch(projectId, () => {
+ fetchData()
+}, { immediate: true })
+
+async function handleInvite(email: string) {
+ await collaborationStore.addCollaborationUser({
+ goalId: projectId.value,
+ email,
+ })
+}
+
+async function handleUpdateMemberRoles(data: { userId: number; roles: number[] }) {
+ await collaborationStore.toggleUserRole({
+ userId: data.userId,
+ goalId: projectId.value,
+ roles: data.roles,
+ })
+}
+
+async function handleRemoveMember(userId: number) {
+ await collaborationStore.deleteUserFromCollaboration({
+ id: userId,
+ goalId: projectId.value,
+ })
+}
+
+async function handleCreateRole(roleName: string) {
+ await rolesStore.addCollaborationRole({
+ goalId: projectId.value,
+ roleName,
+ })
+}
+
+async function handleTogglePermission(data: { roleId: number; permissionId: number }) {
+ await rolesStore.togglePermissionForRole({
+ roleId: data.roleId,
+ permissionId: data.permissionId,
+ })
+}
+
+async function handleDeleteRole(roleId: number) {
+ await rolesStore.deleteCollaborationRole({
+ id: roleId,
+ goalId: projectId.value,
+ })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberAddInput.vue b/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberAddInput.vue
new file mode 100644
index 0000000..0f43013
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberAddInput.vue
@@ -0,0 +1,63 @@
+<template>
+ <UInput
+ v-model="email"
+ type="email"
+ :placeholder="t('collaboration.members.emailPlaceholder')"
+ size="xl"
+ variant="soft"
+ class="w-full"
+ :ui="{
+ base: 'bg-tv-ui-bg-elevated',
+ }"
+ @keydown.enter="addMember"
+ >
+ <template #trailing>
+ <UButton
+ v-if="isValid"
+ icon="i-lucide-corner-down-left"
+ color="primary"
+ variant="ghost"
+ size="xs"
+ :aria-label="t('collaboration.members.add')"
+ @click="addMember"
+ />
+ <UIcon
+ v-else
+ name="i-lucide-keyboard"
+ class="size-4 text-dimmed"
+ />
+ </template>
+ </UInput>
+</template>
+
+<script setup lang="ts">
+import { ref, computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { type } from 'arktype'
+
+defineProps<{
+ loading?: boolean
+}>()
+
+const emit = defineEmits<{
+ add: [email: string]
+}>()
+
+const { t } = useI18n()
+
+const emailSchema = type('string.email')
+
+const email = ref('')
+
+const isValid = computed(() => {
+ const result = emailSchema(email.value)
+ return !(result instanceof type.errors)
+})
+
+function addMember() {
+ if (isValid.value) {
+ emit('add', email.value)
+ email.value = ''
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberEditModal.vue b/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberEditModal.vue
new file mode 100644
index 0000000..97a1933
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberEditModal.vue
@@ -0,0 +1,111 @@
+<template>
+ <UModal
+ v-model:open="isOpen"
+ :title="t('collaboration.members.assignRoles')"
+ >
+ <template #body>
+ <div class="space-y-4">
+ <div class="flex items-center gap-3 p-3 bg-elevated rounded-lg">
+ <UAvatar
+ :alt="member?.email"
+ size="sm"
+ >
+ {{ member?.email?.slice(0, 2).toUpperCase() }}
+ </UAvatar>
+ <div>
+ <p class="text-sm font-medium">
+ {{ member?.email }}
+ </p>
+ </div>
+ </div>
+
+ <UFormField :label="t('collaboration.members.selectRoles')">
+ <div class="space-y-2">
+ <label
+ v-for="role in roles"
+ :key="role.id"
+ class="flex items-center gap-3 p-2 rounded hover:bg-elevated cursor-pointer"
+ >
+ <UCheckbox
+ :model-value="selectedRoleIds.includes(role.id)"
+ @update:model-value="toggleRole(role.id, $event)"
+ />
+ <div class="flex-1">
+ <p class="text-sm font-medium">
+ {{ role.name }}
+ </p>
+ </div>
+ </label>
+ </div>
+ </UFormField>
+ </div>
+ </template>
+
+ <template #footer>
+ <div class="flex justify-end gap-2 w-full">
+ <UButton
+ :label="t('common.cancel')"
+ color="neutral"
+ variant="outline"
+ @click="isOpen = false"
+ />
+ <UButton
+ :label="t('common.save')"
+ color="primary"
+ variant="outline"
+ @click="handleSave"
+ />
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { ref, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { CollaborationResponseFetchAllUsers } from 'taskview-api'
+import type { CollaborationRole } from '@/types/collaboration-roles.types'
+
+const props = defineProps<{
+ member: CollaborationResponseFetchAllUsers | null
+ roles: CollaborationRole[]
+}>()
+
+const emit = defineEmits<{
+ save: [data: { userId: number; roles: number[] }]
+}>()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+const { t } = useI18n()
+
+const selectedRoleIds = ref<number[]>([])
+
+watch(
+ () => props.member,
+ (member) => {
+ if (member) {
+ selectedRoleIds.value = [...member.roles]
+ }
+ },
+ { immediate: true },
+)
+
+function toggleRole(roleId: number, enabled: boolean | string) {
+ if (enabled) {
+ selectedRoleIds.value = [...selectedRoleIds.value, roleId]
+ } else {
+ selectedRoleIds.value = selectedRoleIds.value.filter(id => id !== roleId)
+ }
+}
+
+function handleSave() {
+ if (props.member) {
+ emit('save', {
+ userId: props.member.id,
+ roles: selectedRoleIds.value,
+ })
+ isOpen.value = false
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberItem.vue b/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberItem.vue
new file mode 100644
index 0000000..88a8bfa
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/members/MemberItem.vue
@@ -0,0 +1,78 @@
+<template>
+ <div class="flex items-center justify-between p-3 rounded-lg border border-default hover:bg-elevated transition-colors">
+ <div class="flex items-center gap-3">
+ <UAvatar
+ :alt="member.email"
+ size="sm"
+ >
+ {{ member.email.slice(0, 2).toUpperCase() }}
+ </UAvatar>
+ <div>
+ <p class="text-sm font-medium">
+ {{ member.email }}
+ </p>
+ <p class="text-xs text-muted">
+ {{ t('collaboration.members.invitedAt') }}: {{ formatDate(member.invitation_date) }}
+ </p>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-2">
+ <div
+ v-if="roleNames.length > 0"
+ class="flex flex-wrap gap-1"
+ >
+ <UBadge
+ v-for="roleName in roleNames"
+ :key="roleName"
+ :label="roleName"
+ color="primary"
+ variant="outline"
+ size="xs"
+ />
+ </div>
+ <span
+ v-else
+ class="text-xs text-muted"
+ >
+ {{ t('collaboration.members.noRoles') }}
+ </span>
+ <UButton
+ icon="i-lucide-ellipsis"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ @click.stop="$emit('menu', $event)"
+ />
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { CollaborationResponseFetchAllUsers } from 'taskview-api'
+import type { CollaborationRole } from '@/types/collaboration-roles.types'
+
+const props = defineProps<{
+ member: CollaborationResponseFetchAllUsers
+ roles: CollaborationRole[]
+}>()
+
+defineEmits<{
+ menu: [event: MouseEvent]
+}>()
+
+const { t } = useI18n()
+
+const roleNames = computed(() => {
+ return props.member.roles
+ .map(roleId => props.roles.find(r => r.id === roleId)?.name)
+ .filter(Boolean) as string[]
+})
+
+function formatDate(dateString: string): string {
+ const date = new Date(dateString)
+ return date.toLocaleDateString()
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/members/MembersList.vue b/web-nuxt-ui/src/components/features/collaboration/parts/members/MembersList.vue
new file mode 100644
index 0000000..28de627
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/members/MembersList.vue
@@ -0,0 +1,131 @@
+<template>
+ <div class="space-y-4">
+ <h3 class="text-lg font-semibold">
+ {{ t('collaboration.members.title') }}
+ </h3>
+
+ <MemberAddInput
+ :loading="loading"
+ @add="$emit('invite', $event)"
+ />
+
+ <div
+ v-if="loading"
+ class="flex items-center justify-center py-12"
+ >
+ <UIcon
+ name="i-lucide-loader-2"
+ class="size-8 animate-spin text-muted"
+ />
+ </div>
+
+ <div
+ v-else-if="invitedMembers.length === 0"
+ class="flex flex-col items-center justify-center py-12 text-muted"
+ >
+ <UIcon
+ name="i-lucide-users"
+ class="size-12 mb-4"
+ />
+ <p>{{ t('collaboration.members.empty') }}</p>
+ </div>
+
+ <div
+ v-else
+ class="space-y-2"
+ >
+ <MemberItem
+ v-for="member in invitedMembers"
+ :key="member.id"
+ :member="member"
+ :roles="roles"
+ @menu="openContextMenu($event, member)"
+ />
+ </div>
+
+ <TvContextMenu ref="contextMenu">
+ <div class="p-1 flex flex-col gap-1">
+ <UButton
+ :label="t('collaboration.members.assignRoles')"
+ icon="i-lucide-user-cog"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ @click="openEditModal"
+ />
+ <USeparator class="my-1" />
+ <UButton
+ :label="t('collaboration.members.remove')"
+ icon="i-lucide-user-minus"
+ variant="ghost"
+ color="error"
+ class="w-full justify-start"
+ :disabled="selectedMember?.goalOwner"
+ @click="handleRemove"
+ />
+ </div>
+ </TvContextMenu>
+
+ <MemberEditModal
+ v-model:open="isEditModalOpen"
+ :member="selectedMember"
+ :roles="roles"
+ @save="handleUpdateRoles"
+ />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { CollaborationResponseFetchAllUsers } from 'taskview-api'
+import type { CollaborationRole } from '@/types/collaboration-roles.types'
+import TvContextMenu from '@/components/features/base/TvContextMenu.vue'
+import MemberItem from './MemberItem.vue'
+import MemberAddInput from './MemberAddInput.vue'
+import MemberEditModal from './MemberEditModal.vue'
+
+const props = defineProps<{
+ members: CollaborationResponseFetchAllUsers[]
+ roles: CollaborationRole[]
+ goalId: number
+ loading?: boolean
+}>()
+
+const invitedMembers = computed(() =>
+ props.members.filter(member => !member.goalOwner),
+)
+
+const emit = defineEmits<{
+ invite: [email: string]
+ updateRoles: [data: { userId: number; roles: number[] }]
+ remove: [userId: number]
+}>()
+
+const { t } = useI18n()
+
+const contextMenu = ref<InstanceType<typeof TvContextMenu> | null>(null)
+const selectedMember = ref<CollaborationResponseFetchAllUsers | null>(null)
+const isEditModalOpen = ref(false)
+
+function openContextMenu(event: MouseEvent, member: CollaborationResponseFetchAllUsers) {
+ selectedMember.value = member
+ contextMenu.value?.openAt(event)
+}
+
+function openEditModal() {
+ contextMenu.value?.close()
+ isEditModalOpen.value = true
+}
+
+function handleUpdateRoles(data: { userId: number; roles: number[] }) {
+ emit('updateRoles', data)
+}
+
+function handleRemove() {
+ if (selectedMember.value) {
+ emit('remove', selectedMember.value.id)
+ }
+ contextMenu.value?.close()
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/roles/PermissionsEditor.vue b/web-nuxt-ui/src/components/features/collaboration/parts/roles/PermissionsEditor.vue
new file mode 100644
index 0000000..9ff011d
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/roles/PermissionsEditor.vue
@@ -0,0 +1,128 @@
+<template>
+ <div class="space-y-4">
+ <UInput
+ v-model="searchQuery"
+ :placeholder="t('collaboration.permissions.searchPlaceholder')"
+ size="xl"
+ variant="soft"
+ class="w-full"
+ :ui="{
+ base: 'bg-tv-ui-bg-elevated',
+ }"
+ >
+ <template #trailing>
+ <UButton
+ v-if="searchQuery"
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ @click="searchQuery = ''"
+ />
+ <UIcon
+ v-else
+ name="i-lucide-search"
+ class="size-4 text-dimmed"
+ />
+ </template>
+ </UInput>
+
+ <div
+ v-for="group in filteredPermissionGroups"
+ :key="group.groupId"
+ class="space-y-2"
+ >
+ <h4 class="text-sm font-medium">
+ {{ getGroupName(group.groupId) }}
+ </h4>
+ <div class="space-y-1">
+ <label
+ v-for="permission in group.permissions"
+ :key="permission.id"
+ class="flex items-start gap-3 p-2 rounded hover:bg-elevated cursor-pointer"
+ >
+ <UCheckbox
+ :model-value="!!selectedPermissions[permission.id]"
+ class="mt-0.5"
+ @update:model-value="$emit('toggle', permission.id)"
+ />
+ <div class="flex-1">
+ <p class="text-base ">
+ {{ getLocalizedDescription(permission) }}
+ </p>
+ <p class="text-xs text-muted">
+ {{ permission.name }}
+ </p>
+ </div>
+ </label>
+ </div>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed, ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { CollaborationPermission } from 'taskview-api'
+import { PermissionGroups, type PermissioinGroupsIds } from '@/types/collaboration-permissions.types'
+
+const props = defineProps<{
+ permissions: CollaborationPermission[]
+ selectedPermissions: Record<number, true>
+}>()
+
+defineEmits<{
+ toggle: [permissionId: number]
+}>()
+
+const { t, locale } = useI18n()
+
+const searchQuery = ref('')
+
+const permissionGroups = computed(() => {
+ const groups: Record<number, CollaborationPermission[]> = {}
+
+ for (const permission of props.permissions) {
+ const groupId = permission.permission_group
+ if (!groups[groupId]) {
+ groups[groupId] = []
+ }
+ groups[groupId].push(permission)
+ }
+
+ return Object.entries(groups).map(([groupId, permissions]) => ({
+ groupId: Number(groupId) as PermissioinGroupsIds,
+ permissions,
+ }))
+})
+
+function getLocalizedDescription(permission: CollaborationPermission): string {
+ try {
+ const locales = JSON.parse(permission.descriptionLocales || '{}')
+ return locales[locale.value] || locales.en || permission.description
+ } catch {
+ return permission.description
+ }
+}
+
+const filteredPermissionGroups = computed(() => {
+ const query = searchQuery.value.toLowerCase().trim()
+ if (!query) return permissionGroups.value
+
+ return permissionGroups.value
+ .map(group => ({
+ ...group,
+ permissions: group.permissions.filter(permission => {
+ const localizedDesc = getLocalizedDescription(permission).toLowerCase()
+ return permission.name.toLowerCase().includes(query) || localizedDesc.includes(query)
+ }),
+ }))
+ .filter(group => group.permissions.length > 0)
+})
+
+function getGroupName(groupId: PermissioinGroupsIds): string {
+ const group = PermissionGroups[groupId]
+ if (!group) return ''
+ return group[locale.value as 'en' | 'ru'] || group.en
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleAddInput.vue b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleAddInput.vue
new file mode 100644
index 0000000..36bedfc
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleAddInput.vue
@@ -0,0 +1,55 @@
+<template>
+ <UInput
+ v-model="name"
+ :placeholder="t('collaboration.roles.namePlaceholder')"
+ size="xl"
+ variant="soft"
+ class="w-full"
+ :ui="{
+ base: 'bg-tv-ui-bg-elevated',
+ }"
+ @keydown.enter="addRole"
+ >
+ <template #trailing>
+ <UButton
+ v-if="name.trim()"
+ icon="i-lucide-corner-down-left"
+ color="primary"
+ variant="ghost"
+ size="xs"
+ :aria-label="t('collaboration.roles.create')"
+ @click="addRole"
+ />
+ <UIcon
+ v-else
+ name="i-lucide-keyboard"
+ class="size-4 text-dimmed"
+ />
+ </template>
+ </UInput>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+
+defineProps<{
+ loading?: boolean
+}>()
+
+const emit = defineEmits<{
+ add: [name: string]
+}>()
+
+const { t } = useI18n()
+
+const name = ref('')
+
+function addRole() {
+ const trimmed = name.value.trim()
+ if (trimmed) {
+ emit('add', trimmed)
+ name.value = ''
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleDeleteDialog.vue b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleDeleteDialog.vue
new file mode 100644
index 0000000..81d70b5
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleDeleteDialog.vue
@@ -0,0 +1,53 @@
+<template>
+ <UModal
+ v-model:open="isOpen"
+ :title="t('collaboration.roles.deleteConfirm')"
+ >
+ <template #body>
+ <p class="text-muted">
+ {{ t('collaboration.roles.deleteMessage', { name: role?.name }) }}
+ </p>
+ </template>
+
+ <template #footer>
+ <div class="flex justify-end gap-2 w-full">
+ <UButton
+ :label="t('common.cancel')"
+ color="neutral"
+ variant="outline"
+ @click="isOpen = false"
+ />
+ <UButton
+ :label="t('contextMenu.delete')"
+ color="error"
+ variant="outline"
+ @click="handleDelete"
+ />
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import type { CollaborationRole } from '@/types/collaboration-roles.types'
+
+const props = defineProps<{
+ role: CollaborationRole | null
+}>()
+
+const emit = defineEmits<{
+ confirm: []
+}>()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+const { t } = useI18n()
+
+function handleDelete() {
+ if (props.role) {
+ emit('confirm')
+ isOpen.value = false
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleEditModal.vue b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleEditModal.vue
new file mode 100644
index 0000000..269cedd
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleEditModal.vue
@@ -0,0 +1,71 @@
+<template>
+ <UModal
+ v-model:open="isOpen"
+ :fullscreen="isMobile"
+ >
+ <template #header="{close}">
+ <div class="flex items-center justify-between w-full">
+ <h3 class="text-lg font-semibold">
+ {{ t('collaboration.roles.assignPermissions') }}
+ </h3>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ @click="close"
+ />
+ </div>
+ </template>
+ <template #body>
+ <div class="space-y-4">
+ <div class="flex items-center gap-2 p-3 bg-elevated rounded-lg">
+ <UIcon
+ name="i-lucide-shield"
+ class="size-5"
+ />
+ <span class="font-medium">{{ role?.name }}</span>
+ </div>
+
+ <PermissionsEditor
+ :permissions="permissions"
+ :selected-permissions="rolePermissions"
+ @toggle="$emit('togglePermission', $event)"
+ />
+ </div>
+ </template>
+
+ <template #footer>
+ <div class="flex justify-end w-full">
+ <UButton
+ :label="t('common.done')"
+ color="primary"
+ variant="outline"
+ @click="isOpen = false"
+ />
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import type { CollaborationPermission } from 'taskview-api'
+import type { CollaborationRole } from '@/types/collaboration-roles.types'
+import PermissionsEditor from './PermissionsEditor.vue'
+import { useTaskView } from '@/composables/useTaskView'
+
+defineProps<{
+ role: CollaborationRole | null
+ permissions: CollaborationPermission[]
+ rolePermissions: Record<number, true>
+}>()
+
+defineEmits<{
+ togglePermission: [permissionId: number]
+}>()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+const { t } = useI18n()
+const { isMobile } = useTaskView()
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleItem.vue b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleItem.vue
new file mode 100644
index 0000000..e294023
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RoleItem.vue
@@ -0,0 +1,40 @@
+<template>
+ <div class="flex items-center justify-between p-3 rounded-lg border border-default hover:bg-elevated transition-colors">
+ <div class="flex items-center gap-2">
+ <UIcon
+ name="i-lucide-shield"
+ class="size-4 text-muted"
+ />
+ <p class="text-sm font-medium">
+ {{ role.name }}
+ </p>
+ <span class="text-xs text-muted">
+ {{ t('collaboration.roles.permissionsCount', { count: permissionsCount }) }}
+ </span>
+ </div>
+
+ <UButton
+ icon="i-lucide-ellipsis"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ @click.stop="$emit('menu', $event)"
+ />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import type { CollaborationRole } from '@/types/collaboration-roles.types'
+
+defineProps<{
+ role: CollaborationRole
+ permissionsCount: number
+}>()
+
+defineEmits<{
+ menu: [event: MouseEvent]
+}>()
+
+const { t } = useI18n()
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/parts/roles/RolesList.vue b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RolesList.vue
new file mode 100644
index 0000000..ccbf341
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/parts/roles/RolesList.vue
@@ -0,0 +1,156 @@
+<template>
+ <div class="space-y-4">
+ <h3 class="text-lg font-semibold">
+ {{ t('collaboration.roles.title') }}
+ </h3>
+
+ <RoleAddInput
+ :loading="loading"
+ @add="$emit('create', $event)"
+ />
+
+ <div
+ v-if="loading"
+ class="flex items-center justify-center py-12"
+ >
+ <UIcon
+ name="i-lucide-loader-2"
+ class="size-8 animate-spin text-muted"
+ />
+ </div>
+
+ <div
+ v-else-if="roles.length === 0"
+ class="flex flex-col items-center justify-center py-12 text-muted"
+ >
+ <UIcon
+ name="i-lucide-shield"
+ class="size-12 mb-4"
+ />
+ <p>{{ t('collaboration.roles.empty') }}</p>
+ </div>
+
+ <div
+ v-else
+ class="space-y-2"
+ >
+ <RoleItem
+ v-for="role in roles"
+ :key="role.id"
+ :role="role"
+ :permissions-count="getPermissionsCount(role.id)"
+ @menu="openContextMenu($event, role)"
+ />
+ </div>
+
+ <TvContextMenu ref="contextMenu">
+ <div class="p-1 flex flex-col gap-1">
+ <UButton
+ :label="t('collaboration.roles.assignPermissions')"
+ icon="i-lucide-shield-check"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ @click="openEditModal"
+ />
+ <USeparator class="my-1" />
+ <UButton
+ :label="t('contextMenu.delete')"
+ icon="i-lucide-trash-2"
+ variant="ghost"
+ color="error"
+ class="w-full justify-start"
+ @click="openDeleteDialog"
+ />
+ </div>
+ </TvContextMenu>
+
+ <RoleEditModal
+ v-model:open="isEditModalOpen"
+ :role="selectedRole"
+ :permissions="permissions"
+ :role-permissions="getRolePermissions(selectedRole?.id)"
+ @toggle-permission="handleTogglePermission"
+ />
+
+ <RoleDeleteDialog
+ v-model:open="isDeleteDialogOpen"
+ :role="selectedRole"
+ @confirm="handleDelete"
+ />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { CollaborationPermission } from 'taskview-api'
+import type { CollaborationRole, CollaborationRolesStore } from '@/types/collaboration-roles.types'
+import TvContextMenu from '@/components/features/base/TvContextMenu.vue'
+import RoleItem from './RoleItem.vue'
+import RoleAddInput from './RoleAddInput.vue'
+import RoleEditModal from './RoleEditModal.vue'
+import RoleDeleteDialog from './RoleDeleteDialog.vue'
+
+const props = defineProps<{
+ roles: CollaborationRole[]
+ permissions: CollaborationPermission[]
+ rolesPermissions: CollaborationRolesStore['rolesPermissions']
+ goalId: number
+ loading?: boolean
+}>()
+
+const emit = defineEmits<{
+ create: [name: string]
+ togglePermission: [data: { roleId: number; permissionId: number }]
+ delete: [roleId: number]
+}>()
+
+const { t } = useI18n()
+
+const contextMenu = ref<InstanceType<typeof TvContextMenu> | null>(null)
+const selectedRole = ref<CollaborationRole | null>(null)
+const isEditModalOpen = ref(false)
+const isDeleteDialogOpen = ref(false)
+
+function getPermissionsCount(roleId: number): number {
+ const perms = props.rolesPermissions[roleId]
+ return perms ? Object.keys(perms).length : 0
+}
+
+function getRolePermissions(roleId?: number): Record<number, true> {
+ if (!roleId) return {}
+ return props.rolesPermissions[roleId] || {}
+}
+
+function openContextMenu(event: MouseEvent, role: CollaborationRole) {
+ selectedRole.value = role
+ contextMenu.value?.openAt(event)
+}
+
+function openEditModal() {
+ contextMenu.value?.close()
+ isEditModalOpen.value = true
+}
+
+function openDeleteDialog() {
+ contextMenu.value?.close()
+ isDeleteDialogOpen.value = true
+}
+
+function handleTogglePermission(permissionId: number) {
+ if (selectedRole.value) {
+ emit('togglePermission', {
+ roleId: selectedRole.value.id,
+ permissionId,
+ })
+ }
+}
+
+function handleDelete() {
+ if (selectedRole.value) {
+ emit('delete', selectedRole.value.id)
+ isDeleteDialogOpen.value = false
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/collaboration/types.ts b/web-nuxt-ui/src/components/features/collaboration/types.ts
new file mode 100644
index 0000000..98a09fa
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/collaboration/types.ts
@@ -0,0 +1,68 @@
+export interface Permission {
+ id: string
+ key: string
+ name: string
+ description: string
+ group: 'tasks' | 'lists' | 'members' | 'roles'
+}
+
+export interface Role {
+ id: string
+ name: string
+ permissions: string[]
+ isSystem?: boolean
+}
+
+export interface Member {
+ id: string
+ email: string
+ name?: string
+ avatar?: string
+ roleIds: string[]
+ status: 'pending' | 'active'
+ invitedAt: Date
+}
+
+export const PERMISSIONS: Permission[] = [
+ // Tasks
+ { id: 'view_tasks', key: 'view_tasks', name: 'View Tasks', description: 'Can view tasks in the project', group: 'tasks' },
+ { id: 'create_tasks', key: 'create_tasks', name: 'Create Tasks', description: 'Can create new tasks', group: 'tasks' },
+ { id: 'edit_tasks', key: 'edit_tasks', name: 'Edit Tasks', description: 'Can edit existing tasks', group: 'tasks' },
+ { id: 'delete_tasks', key: 'delete_tasks', name: 'Delete Tasks', description: 'Can delete tasks', group: 'tasks' },
+
+ // Lists
+ { id: 'view_lists', key: 'view_lists', name: 'View Lists', description: 'Can view lists in the project', group: 'lists' },
+ { id: 'create_lists', key: 'create_lists', name: 'Create Lists', description: 'Can create new lists', group: 'lists' },
+ { id: 'edit_lists', key: 'edit_lists', name: 'Edit Lists', description: 'Can edit existing lists', group: 'lists' },
+ { id: 'delete_lists', key: 'delete_lists', name: 'Delete Lists', description: 'Can delete lists', group: 'lists' },
+
+ // Members
+ { id: 'view_members', key: 'view_members', name: 'View Members', description: 'Can view project members', group: 'members' },
+ { id: 'invite_members', key: 'invite_members', name: 'Invite Members', description: 'Can invite new members', group: 'members' },
+ { id: 'remove_members', key: 'remove_members', name: 'Remove Members', description: 'Can remove members from project', group: 'members' },
+
+ // Roles
+ { id: 'view_roles', key: 'view_roles', name: 'View Roles', description: 'Can view roles', group: 'roles' },
+ { id: 'manage_roles', key: 'manage_roles', name: 'Manage Roles', description: 'Can create, edit and delete roles', group: 'roles' },
+]
+
+export const DEFAULT_ROLES: Role[] = [
+ {
+ id: 'admin',
+ name: 'Admin',
+ permissions: PERMISSIONS.map(p => p.id),
+ isSystem: true,
+ },
+ {
+ id: 'member',
+ name: 'Member',
+ permissions: ['view_tasks', 'create_tasks', 'edit_tasks', 'view_lists', 'create_lists', 'edit_lists', 'view_members'],
+ isSystem: true,
+ },
+ {
+ id: 'viewer',
+ name: 'Viewer',
+ permissions: ['view_tasks', 'view_lists', 'view_members'],
+ isSystem: true,
+ },
+]
diff --git a/web-nuxt-ui/src/components/features/graph/AddNewTaskToGraph.vue b/web-nuxt-ui/src/components/features/graph/AddNewTaskToGraph.vue
new file mode 100644
index 0000000..58e57d8
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/graph/AddNewTaskToGraph.vue
@@ -0,0 +1,94 @@
+<template>
+ <UModal v-model:open="model">
+ <template #content>
+ <UCard>
+ <template #header>
+ <div class="flex items-center justify-between">
+ <h3 class="text-lg font-semibold">
+ {{ t('graph.addTask') }}
+ </h3>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ @click="close"
+ />
+ </div>
+ </template>
+
+ <UFormField :label="t('tasks.description')">
+ <UInput
+ v-model="taskName"
+ :placeholder="t('tasks.addPlaceholder')"
+ class="w-full"
+ @keyup.enter="addTask"
+ />
+ </UFormField>
+
+ <template #footer>
+ <div class="flex justify-end gap-2">
+ <UButton
+ color="neutral"
+ variant="outline"
+ @click="close"
+ >
+ {{ t('common.cancel') }}
+ </UButton>
+ <UButton
+ :disabled="!taskName.trim()"
+ variant="outline"
+ @click="addTask"
+ >
+ {{ t('tasks.add') }}
+ </UButton>
+ </div>
+ </template>
+ </UCard>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useTasksStore } from '@/stores/tasks.store'
+import type { TaskItem } from '@/types/tasks.types'
+
+const emit = defineEmits<{
+ addTask: [task: TaskItem]
+ close: []
+}>()
+
+const model = defineModel<boolean>({ required: true })
+const props = defineProps<{
+ goalId: number
+ nodePosition: { x: number; y: number } | undefined
+}>()
+
+const { t } = useI18n()
+const taskName = ref('')
+const store = useTasksStore()
+
+const addTask = async () => {
+ if (!props.goalId) return
+ if (!taskName.value.trim()) return
+
+ const task = await store.addTask({
+ description: taskName.value,
+ goalId: props.goalId,
+ nodeGraphPosition: props.nodePosition,
+ })
+
+ if (!task) {
+ return
+ }
+
+ emit('addTask', task)
+ taskName.value = ''
+}
+
+const close = () => {
+ taskName.value = ''
+ emit('close')
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/graph/ProjectGraph.vue b/web-nuxt-ui/src/components/features/graph/ProjectGraph.vue
new file mode 100644
index 0000000..937b8aa
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/graph/ProjectGraph.vue
@@ -0,0 +1,274 @@
+<template>
+ <VueFlow
+ v-if="canViewGraph"
+ v-model:nodes="store.nodes"
+ v-model:edges="store.edges"
+ :min-zoom="-2"
+ fit-view-on-init
+ elevate-edges-on-select
+ elevate-nodes-on-select
+ :pan-on-scroll-mode="PanOnScrollMode.Free"
+ :pan-on-scroll="true"
+ :default-edge-options="defaultEdgeOptions"
+ :connection-mode="ConnectionMode.Loose"
+ :nodes-connectable="canManageGraph"
+ :nodes-draggable="canManageGraph"
+ class="h-full w-full"
+ @connect-start="onConnectStart"
+ @connect-end="onConnectEnd"
+ >
+ <AddNewTaskToGraph
+ v-model="addNewTaskToGraph"
+ :goal-id="+projectId"
+ :node-position="nodePosition"
+ @close="addNewTaskToGraph = false"
+ @add-task="addTaskToGraph"
+ />
+
+ <Controls />
+ <Background />
+
+ <template #node-task="taskNodeProps">
+ <TaskNode :data="{ ...taskNodeProps.data, direction: layoutDirection }" />
+ </template>
+
+ <!-- Selected Edge Panel -->
+ <div
+ v-if="selectedEdge"
+ class="w-80 max-w-[calc(100%-16px)] absolute bottom-0 left-1/2 -translate-x-1/2 mb-3 z-50 p-3 rounded-lg bg-elevated shadow-lg"
+ >
+ <p class="text-sm text-muted mb-3">
+ {{ t('graph.selectedEdge') }}
+ </p>
+ <UButton
+ icon="i-lucide-trash-2"
+ color="error"
+ variant="soft"
+ class="w-full"
+ @click="deleteSelectedEdge(+selectedEdge?.id)"
+ >
+ {{ t('common.delete') }}
+ </UButton>
+ </div>
+
+ <!-- Controls Panel -->
+ <div class="absolute bottom-4 right-4 z-40 flex gap-2">
+ <UButton
+ icon="i-lucide-git-graph"
+ :variant="layoutDirection === 'LR' ? 'solid' : 'outline'"
+ color="neutral"
+ class="rotate-90"
+ @click="layoutGraph('LR')"
+ />
+ <UButton
+ icon="i-lucide-git-graph"
+ :variant="layoutDirection === 'TB' ? 'solid' : 'outline'"
+ color="neutral"
+ @click="layoutGraph('TB')"
+ />
+ <UButton
+ v-if="canManageGraph"
+ icon="i-lucide-plus"
+ @click="addNewTaskToGraph = true"
+ />
+ </div>
+ </VueFlow>
+</template>
+
+<script setup lang="ts">
+import { Background } from '@vue-flow/background'
+import { Controls } from '@vue-flow/controls'
+import {
+ ConnectionMode,
+ type DefaultEdgeOptions,
+ type Edge,
+ MarkerType,
+ type OnConnectStartParams,
+ PanOnScrollMode,
+ useVueFlow,
+ VueFlow,
+} from '@vue-flow/core'
+import { nextTick, ref, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useGraphStore } from '@/stores/graph.store'
+import type { TaskItem } from '@/types/tasks.types'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+import { useAppRouteInfo } from '@/composables/useAppRouteInfo'
+import AddNewTaskToGraph from './AddNewTaskToGraph.vue'
+import { useLayout } from './composables/useLayout'
+import TaskNode from './TaskNode.vue'
+
+const {
+ fitView,
+ onConnect,
+ addEdges,
+ onEdgesChange,
+ onEdgeClick,
+ onNodeDragStop,
+ getEdges,
+ updateEdgeData,
+ removeEdges,
+ screenToFlowCoordinate,
+} = useVueFlow()
+
+const { projectId } = useAppRouteInfo()
+const { layout } = useLayout()
+const store = useGraphStore()
+const { t } = useI18n()
+const { canManageGraph, canViewGraph } = useGoalPermissions()
+
+const addNewTaskToGraph = ref(false)
+const currentSession = ref<number | null>(null)
+const successfulSession = ref<number | null>(null)
+const targetNodeId = ref<{ event?: MouseEvent } & OnConnectStartParams>()
+const nodePosition = ref<{ x: number; y: number } | undefined>(undefined)
+
+const defaultEdgeOptions: DefaultEdgeOptions = {
+ type: 'smoothstep',
+ animated: true,
+ style: {
+ strokeWidth: 3,
+ },
+ markerEnd: {
+ type: MarkerType.ArrowClosed,
+ width: 22,
+ height: 22,
+ },
+}
+
+const selectedEdge = ref<Edge | null>(null)
+const layoutDirection = ref<'LR' | 'TB'>('TB')
+
+watch(
+ projectId,
+ (id) => {
+ if (!id) return
+ store.fetchAllTasksAndLists(id).then(() => {
+ layoutGraph(layoutDirection.value)
+ })
+ },
+ { immediate: true },
+)
+
+onNodeDragStop((params) => {
+ store.updateTaskPosition({
+ nodeGraphPosition: { x: params.node.position.x, y: params.node.position.y },
+ id: +params.node.id,
+ })
+})
+
+onConnect(async (params) => {
+ if (currentSession.value != null) {
+ successfulSession.value = currentSession.value
+ }
+
+ const newEdge = await store.addEdge({
+ source: +params.source,
+ target: +params.target,
+ })
+
+ if (!newEdge) return
+
+ addEdges([newEdge])
+})
+
+onEdgesChange((params) => {
+ params.forEach((param) => {
+ if (param.type === 'select' && !param.selected) {
+ selectedEdge.value = null
+ }
+ if (param.type === 'remove') {
+ deleteSelectedEdge(+param.id)
+ selectedEdge.value = null
+ }
+ })
+})
+
+onEdgeClick((params) => {
+ selectedEdge.value = params.edge
+})
+
+const newToken = () => {
+ return Date.now() + Math.random()
+}
+
+const onConnectStart = (payload: { event?: MouseEvent } & OnConnectStartParams) => {
+ const token = newToken()
+ currentSession.value = token
+ successfulSession.value = null
+ targetNodeId.value = payload
+}
+
+const onConnectEnd = (event?: MouseEvent | TouchEvent) => {
+ if (!event) return
+
+ const { clientX, clientY } = 'changedTouches' in event ? (event as TouchEvent).changedTouches[0] : event
+
+ const el = document.querySelector('[data-id]')
+ const position = el?.getBoundingClientRect()
+
+ nodePosition.value = screenToFlowCoordinate({ x: clientX - (position?.width || 2) / 2, y: clientY })
+
+ const isSuccess = currentSession.value != null && successfulSession.value === currentSession.value
+
+ if (!isSuccess) {
+ handleCancelledConnection()
+ }
+
+ currentSession.value = null
+ successfulSession.value = null
+}
+
+const handleCancelledConnection = () => {
+ addNewTaskToGraph.value = true
+}
+
+const addTaskToGraph = async (task: TaskItem) => {
+ addNewTaskToGraph.value = false
+
+ await store.addNode(task)
+
+ if (targetNodeId.value && targetNodeId.value.nodeId) {
+ const edge = {
+ source: +task.id,
+ target: +task.id,
+ }
+ edge[targetNodeId.value.handleType as 'source' | 'target'] = +targetNodeId.value.nodeId
+ await store.addEdge(edge)
+ }
+
+ nodePosition.value = { x: 0, y: 0 }
+ targetNodeId.value = undefined
+}
+
+const deleteSelectedEdge = async (id: number) => {
+ if (!Number.isFinite(id)) return
+
+ await store.deleteEdge(+id)
+
+ if (selectedEdge.value?.id === id.toString()) {
+ selectedEdge.value = null
+ }
+
+ removeEdges([id.toString()])
+}
+
+const layoutGraph = async (direction: 'LR' | 'TB') => {
+ layoutDirection.value = direction
+ store.nodes = layout(store.nodes, store.edges, direction)
+ nextTick(() => {
+ fitView()
+ getEdges.value.forEach((edge) => {
+ updateEdgeData(edge.id, edge)
+ })
+ })
+}
+</script>
+
+<style>
+@import '@vue-flow/core/dist/style.css';
+@import '@vue-flow/core/dist/theme-default.css';
+@import '@vue-flow/node-resizer/dist/style.css';
+@import '@vue-flow/controls/dist/style.css';
+@import '@vue-flow/minimap/dist/style.css';
+</style>
diff --git a/web-nuxt-ui/src/components/features/graph/TaskNode.vue b/web-nuxt-ui/src/components/features/graph/TaskNode.vue
new file mode 100644
index 0000000..1591713
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/graph/TaskNode.vue
@@ -0,0 +1,78 @@
+<template>
+ <div class="bg-elevated rounded-lg w-72 shadow-lg">
+ <Handle
+ v-if="props.data.direction !== 'LR'"
+ type="target"
+ :position="Position.Bottom"
+ :style="targetHandleStyle"
+ />
+
+ <Handle
+ v-if="props.data.direction !== 'LR'"
+ type="source"
+ :position="Position.Top"
+ :style="sourceHandleStyle"
+ />
+
+ <Handle
+ v-if="props.data.direction === 'LR'"
+ type="target"
+ :position="Position.Left"
+ :style="targetHandleStyle"
+ />
+ <Handle
+ v-if="props.data.direction === 'LR'"
+ type="source"
+ :position="Position.Right"
+ :style="sourceHandleStyle"
+ />
+
+ <TaskItem
+ :task="props.data.task"
+ class="w-full"
+ @toggle="toggleComplete($event)"
+ />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { Handle, Position } from '@vue-flow/core'
+import { computed } from 'vue'
+import type { TaskItem } from '@/types/tasks.types'
+import { useTasksStore } from '@/stores/tasks.store'
+import { Task } from 'taskview-api'
+
+type TaskNodeProps = {
+ toolbarVisible: boolean
+ toolbarPosition: Position
+ label: string
+ task: TaskItem
+ direction?: 'LR' | 'TB'
+}
+
+const props = defineProps<{ data: TaskNodeProps }>()
+const tasksStore = useTasksStore()
+
+async function toggleComplete(task: Task) {
+ await tasksStore.updateTaskCompleteStatus({
+ id: task.id,
+ complete: !task.complete,
+ })
+}
+
+const handleStyle = computed(() => ({
+ width: '16px',
+ height: '16px',
+ borderRadius: '50%',
+}))
+
+const targetHandleStyle = computed(() => ({
+ ...handleStyle.value,
+ background: '#f43f5e',
+}))
+
+const sourceHandleStyle = computed(() => ({
+ ...handleStyle.value,
+ background: '#22c55e',
+}))
+</script>
diff --git a/web-nuxt-ui/src/components/features/graph/composables/useLayout.ts b/web-nuxt-ui/src/components/features/graph/composables/useLayout.ts
new file mode 100644
index 0000000..cc0063e
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/graph/composables/useLayout.ts
@@ -0,0 +1,120 @@
+import dagre from '@dagrejs/dagre'
+import { type Edge, type Node, Position, useVueFlow } from '@vue-flow/core'
+import { ref } from 'vue'
+
+/**
+ * Composable to run the layout algorithm on the graph.
+ * It uses the `dagre` library to calculate the layout of the nodes and edges.
+ */
+export function useLayout() {
+ const { findNode } = useVueFlow()
+
+ const graph = ref(new dagre.graphlib.Graph())
+
+ const previousDirection = ref('LR')
+
+ function layout(nodes: Node[], edges: Edge[], direction: 'LR' | 'TB') {
+ // we create a new graph instance, in case some nodes/edges were removed, otherwise dagre would act as if they were still there
+ const dagreGraph = new dagre.graphlib.Graph()
+
+ graph.value = dagreGraph
+
+ dagreGraph.setDefaultEdgeLabel(() => ({}))
+
+ const isHorizontal = direction === 'LR'
+ dagreGraph.setGraph({
+ rankdir: direction,
+ // align: 'UL', // Align to upper left
+ nodesep: 50, // Minimum space between nodes
+ ranksep: 100, // Minimum space between ranks
+ marginx: 20,
+ marginy: 20,
+ })
+
+ previousDirection.value = direction
+
+ for (const node of nodes) {
+ // if you need width+height of nodes for your layout, you can use the dimensions property of the internal node (`GraphNode` type)
+ const graphNode = findNode(node.id)
+
+ dagreGraph.setNode(node.id, {
+ width: graphNode?.dimensions.width || 150,
+ height: graphNode?.dimensions.height || 50,
+ })
+ }
+
+ for (const edge of edges) {
+ dagreGraph.setEdge(edge.source, edge.target)
+ }
+
+ dagre.layout(dagreGraph)
+
+ // set nodes with updated positions
+ const layoutedNodes = nodes.map((node) => {
+ const nodeWithPosition = dagreGraph.node(node.id)
+
+ return {
+ ...node,
+ targetPosition: isHorizontal ? Position.Left : Position.Top,
+ sourcePosition: isHorizontal ? Position.Right : Position.Bottom,
+ position: { x: nodeWithPosition.x, y: nodeWithPosition.y },
+ }
+ })
+
+ // For TB mode, invert Y coordinates to put root at top
+ if (!isHorizontal) {
+ const maxY = Math.max(...layoutedNodes.map((node) => node.position.y))
+
+ layoutedNodes.forEach((node) => {
+ const graphNode = findNode(node.id)
+ const nodeHeight = graphNode?.dimensions.height || 50
+
+ // Invert Y coordinate and adjust for node height to keep center aligned
+ node.position.y = maxY - node.position.y + nodeHeight
+ })
+ }
+
+ return layoutedNodes
+ }
+
+ // function layout(nodes: Node[], edges: Edge[], direction: 'LR' | 'TB') {
+ // // we create a new graph instance, in case some nodes/edges were removed, otherwise dagre would act as if they were still there
+ // const dagreGraph = new dagre.graphlib.Graph()
+
+ // graph.value = dagreGraph
+
+ // dagreGraph.setDefaultEdgeLabel(() => ({}))
+
+ // const isHorizontal = direction === 'LR'
+ // dagreGraph.setGraph({ rankdir: direction })
+
+ // previousDirection.value = direction
+
+ // for (const node of nodes) {
+ // // if you need width+height of nodes for your layout, you can use the dimensions property of the internal node (`GraphNode` type)
+ // const graphNode = findNode(node.id)
+
+ // dagreGraph.setNode(node.id, { width: graphNode.dimensions.width || 150, height: graphNode.dimensions.height || 50 })
+ // }
+
+ // for (const edge of edges) {
+ // dagreGraph.setEdge(edge.source, edge.target)
+ // }
+
+ // dagre.layout(dagreGraph)
+
+ // // set nodes with updated positions
+ // return nodes.map((node) => {
+ // const nodeWithPosition = dagreGraph.node(node.id)
+
+ // return {
+ // ...node,
+ // targetPosition: isHorizontal ? Position.Left : Position.Top,
+ // sourcePosition: isHorizontal ? Position.Right : Position.Bottom,
+ // position: { x: nodeWithPosition.x, y: nodeWithPosition.y },
+ // }
+ // })
+ // }
+
+ return { graph, layout, previousDirection }
+}
diff --git a/web-nuxt-ui/src/components/features/kanban/KanbanBoard.vue b/web-nuxt-ui/src/components/features/kanban/KanbanBoard.vue
new file mode 100644
index 0000000..dadbcfd
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/kanban/KanbanBoard.vue
@@ -0,0 +1,309 @@
+<template>
+ <div
+ v-if="canViewKanban"
+ ref="kanbanContainer"
+ class="flex gap-2 h-full"
+ @pointermove="handlePointerMove"
+ @pointerleave="boardStopScrolling"
+ @pointerdown="pointerDownHandler"
+ @touchend="boardStopScrolling"
+ >
+ <div
+ v-for="status in kanbanStore.statuses"
+ :key="status.id"
+ class="h-full max-w-[340px] min-w-[272px] shadow-lg gap-2 flex flex-col w-[91.666667%] rounded-lg"
+ >
+ <div class="bg-elevated rounded-lg p-2 px-3 flex items-center text-base h-10">
+ <span class="grow truncate">
+ {{ t(status.name) }}
+ </span>
+ <KanbanTitleMenu
+ v-if="status.id !== DEFAULT_ID"
+ :status="status"
+ />
+ </div>
+
+ <KanbanAddTask
+ v-if="canAddTask"
+ :goal-id="kanbanStore.goalId"
+ :status-id="status.id"
+ />
+
+ <draggable
+ v-bind="sortableOptions"
+ :list="kanbanStore.tasksData[status.id]?.tasks"
+ :data-column-id="status.id"
+ :animation="150"
+ class="flex gap-2 p-2 h-full flex-col overflow-auto overflow-x-hidden"
+ item-key="id"
+ group="kanban-tasks"
+ @start="startHandler"
+ @end="onDragEnd"
+ @clone="onClone"
+ >
+ <template #item="{ element }">
+ <div
+ :data-order="element.kanbanOrder"
+ :data-task-id="element.id"
+ >
+ <TaskItem
+ :task="element"
+ :ui="{ additionalInfo: 'flex-col items-stretch flex-nowrap' }"
+ @toggle="updateTaskChecked"
+ />
+ </div>
+ </template>
+
+ <template #footer>
+ <UButton
+ v-if="kanbanStore.tasksData[status.id]?.nextCursor !== null"
+ icon="i-lucide-circle-arrow-down"
+ variant="soft"
+ color="info"
+ class="w-full mt-2"
+ @click="loadMoreTasks(status.id)"
+ >
+ {{ t('kanban.loadMore') }}
+ </UButton>
+ </template>
+ </draggable>
+ </div>
+
+ <KanbanAddStatus :goal-id="kanbanStore.goalId" />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
+import draggable from 'vuedraggable'
+import type { Task } from 'taskview-api'
+import { useRoute } from 'vue-router'
+import { useI18n } from 'vue-i18n'
+import KanbanAddStatus from '@/components/features/kanban/parts/KanbanAddStatus.vue'
+import KanbanAddTask from '@/components/features/kanban/parts/KanbanAddTask.vue'
+import KanbanTitleMenu from '@/components/features/kanban/parts/KanbanTitleMenu.vue'
+import TaskItem from '@/components/features/tasks/parts/TaskItem.vue'
+import { useKanbanStore } from '@/stores/kanban.store'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+import { DEFAULT_ID } from '@/types/app.types'
+
+const kanbanStore = useKanbanStore()
+const tasksStore = useTasksStore()
+const route = useRoute()
+
+const { t } = useI18n()
+const { canViewKanban, canAddTask, canManageKanban } = useGoalPermissions()
+
+const kanbanContainer = ref<HTMLElement>()
+const goalId = computed(() => route.params.projectId as string)
+
+let boardScrollDirection: string | null = null
+let boardScrollSpeed = 3
+let boardAnimationFrameId: number | null = null
+let cloneEl: HTMLElement | null = null
+let dragStartPositionX: number | null = null
+let speedDelta = 0
+
+const sortableOptions = computed(() => ({
+ delay: 100,
+ delayOnTouchOnly: false,
+ forceFallback: true,
+ swapThreshold: 1,
+ scroll: true,
+ scrollSensitivity: 50,
+ scrollSpeed: 10,
+ disabled: !canManageKanban.value,
+}))
+
+const initLoadTasksForEachColumn = async () => {
+ await Promise.all(kanbanStore.statuses.map((status) => {
+ kanbanStore.fetchTasksForColumn(kanbanStore.goalId, status.id === DEFAULT_ID ? null : status.id, null)
+ }))
+}
+
+watch(goalId, (lGoalId) => {
+ kanbanStore.$reset()
+ if (lGoalId) {
+ kanbanStore.goalId = +lGoalId
+ }
+}, { immediate: true })
+
+watch(
+ () => kanbanStore.statuses,
+ (statuses) => {
+ if (statuses.length > 0) {
+ initLoadTasksForEachColumn()
+ }
+ },
+)
+
+const updateTaskChecked = async (task: Task) => {
+ const newStatus = !task.complete
+ await tasksStore.updateTaskCompleteStatus({
+ id: task.id,
+ complete: newStatus,
+ })
+
+ for (const [, value] of Object.entries(kanbanStore.tasksData)) {
+ if (!value) continue
+ for (const t of value.tasks) {
+ if (t.id === task.id) {
+ t.complete = newStatus
+ return
+ }
+ }
+ }
+}
+
+const loadMoreTasks = (columnId: number) => {
+ kanbanStore.fetchTasksForColumn(
+ kanbanStore.goalId,
+ columnId === DEFAULT_ID ? null : columnId,
+ kanbanStore.tasksData[columnId]?.tasks[kanbanStore.tasksData[columnId]?.tasks.length - 1]?.kanbanOrder || null,
+ )
+}
+
+const startHandler = (event: MouseEvent) => {
+ event.preventDefault()
+}
+
+const onClone = (evt: { clone: HTMLElement }) => {
+ cloneEl = evt.clone as HTMLElement
+}
+
+const pointerDownHandler = (event: PointerEvent) => {
+ speedDelta = 0
+ dragStartPositionX = event.clientX
+}
+
+const detectScrollDirectionFromStart = (clientX: number): 'right' | 'left' | undefined => {
+ if (!dragStartPositionX) return
+
+ const threshold = window.innerWidth < 1024 ? 80 : 240
+ const delta = clientX - dragStartPositionX
+ if (Math.abs(delta) < threshold) return
+
+ const percentage = (100 / threshold) * (Math.abs(delta) - threshold)
+
+ speedDelta = ((boardScrollSpeed / 100) * Math.min(percentage, 250)) / 20
+
+ if (delta < 0) {
+ return 'left'
+ }
+ return 'right'
+}
+
+const boardStopScrolling = () => {
+ boardScrollDirection = null
+
+ if (boardAnimationFrameId) {
+ cancelAnimationFrame(boardAnimationFrameId)
+ boardAnimationFrameId = null
+ }
+}
+
+const handlePointerMove = (event: MouseEvent) => {
+ if (!kanbanContainer.value || !cloneEl) return
+ detectScrollDirectionFromStart(event.clientX)
+
+ if (detectScrollDirectionFromStart(event.clientX) === 'right') {
+ boardStartScrolling('right')
+ } else if (detectScrollDirectionFromStart(event.clientX) === 'left') {
+ boardStartScrolling('left')
+ } else {
+ boardStopScrolling()
+ }
+}
+
+const boardStartScrolling = (direction: 'left' | 'right') => {
+ boardScrollDirection = direction
+ if (!boardAnimationFrameId) {
+ boardScrollStep()
+ }
+}
+
+const boardScrollStep = () => {
+ if (!kanbanContainer.value || !boardScrollDirection) return
+
+ if (boardScrollDirection === 'right') {
+ kanbanContainer.value.scrollLeft += boardScrollSpeed + speedDelta
+ } else if (boardScrollDirection === 'left') {
+ kanbanContainer.value.scrollLeft -= boardScrollSpeed + speedDelta
+ }
+
+ boardAnimationFrameId = requestAnimationFrame(boardScrollStep)
+}
+
+function scrollToColumn(targetColumn: HTMLElement) {
+ const board = kanbanContainer.value
+ if (!board) return
+ if (targetColumn) {
+ const boardRect = board.getBoundingClientRect()
+ const columnRect = targetColumn.getBoundingClientRect()
+
+ const scrollLeft =
+ board.scrollLeft + (columnRect.left - boardRect.left) - board.clientWidth / 2 + columnRect.width / 2
+
+ board.scrollTo({
+ left: scrollLeft,
+ behavior: 'smooth',
+ })
+ }
+}
+
+async function onDragEnd(evt: {
+ to: HTMLElement
+ item: HTMLElement
+ newDraggableIndex: number
+ oldDraggableIndex: number
+}) {
+ cloneEl = null
+ boardStopScrolling()
+ const targetColumn = evt.to as HTMLElement
+
+ const newColumnId = targetColumn.dataset.columnId
+
+ if (newColumnId === undefined) {
+ console.error('Can not find columns id in dataset for element')
+ return
+ }
+
+ let taskId: string | number | undefined = (evt.item as HTMLElement).dataset.taskId
+
+ if (taskId === undefined) {
+ return
+ }
+
+ taskId = +taskId
+ const newColumnIdNum = +newColumnId
+
+ const columnTasks = kanbanStore.tasksData[newColumnIdNum]?.tasks ?? []
+
+ const activeTasks = columnTasks.filter((task: Task) => task.id !== taskId)
+
+ const nextItemInColumn = activeTasks[evt.newDraggableIndex] || null
+ const prevItemInColumn = activeTasks[evt.newDraggableIndex - 1] || null
+
+ await kanbanStore.updateTasksOrderAndColumn({
+ taskId,
+ prevTaskId: prevItemInColumn?.id ?? null,
+ nextTaskId: nextItemInColumn?.id ?? null,
+ columnId: newColumnIdNum === DEFAULT_ID ? null : newColumnIdNum,
+ goalId: kanbanStore.goalId,
+ })
+
+ if (targetColumn) {
+ scrollToColumn(targetColumn)
+ }
+}
+
+onMounted(() => {
+ boardScrollSpeed = window.innerWidth < 1024 ? 7 : 5
+})
+
+onUnmounted(() => {
+ kanbanStore.$reset()
+ boardStopScrolling()
+})
+</script>
\ No newline at end of file
diff --git a/web-nuxt-ui/src/components/features/kanban/parts/KanbanAddStatus.vue b/web-nuxt-ui/src/components/features/kanban/parts/KanbanAddStatus.vue
new file mode 100644
index 0000000..1bfd8a8
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/kanban/parts/KanbanAddStatus.vue
@@ -0,0 +1,38 @@
+<template>
+ <div class="tv-kanban__col">
+ <div class="w-full flex flex-col gap-3">
+ <UInput
+ v-model="statusName"
+ :placeholder="t('kanban.addColumn')"
+ icon="i-lucide-plus"
+ size="xl"
+ class="h-full max-w-[340px] min-w-[272px] bg-neutral-800 flex flex-col w-[91.666667%] rounded-lg"
+ />
+
+ <UButton
+ v-if="statusName.trim()"
+ @click="addStatus"
+ >
+ {{ t('kanban.addColumn') }}
+ </UButton>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { GoalItem } from 'taskview-api'
+import { useKanbanStore } from '@/stores/kanban.store'
+
+const props = defineProps<{ goalId: GoalItem['id'] }>()
+
+const { t } = useI18n()
+const kanbanStore = useKanbanStore()
+const statusName = ref('')
+
+async function addStatus() {
+ await kanbanStore.addStatus({ goalId: props.goalId, name: statusName.value })
+ statusName.value = ''
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/kanban/parts/KanbanAddTask.vue b/web-nuxt-ui/src/components/features/kanban/parts/KanbanAddTask.vue
new file mode 100644
index 0000000..99df78e
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/kanban/parts/KanbanAddTask.vue
@@ -0,0 +1,53 @@
+<template>
+ <UInput
+ v-model="taskName"
+ :loading="loading"
+ :placeholder="t('kanban.addTask')"
+ :trailing-icon="inputIcon"
+ icon="i-lucide-plus"
+ size="xl"
+ class="mt-1 rounded-lg"
+ enterkeyhint="go"
+ spellcheck="false"
+ @keyup.enter="addTask"
+ />
+</template>
+
+<script setup lang="ts">
+import { computed, ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { GoalItem } from 'taskview-api'
+import { useKanbanStore } from '@/stores/kanban.store'
+import { DEFAULT_ID } from '@/types/app.types'
+import type { TaskItem } from '@/types/tasks.types'
+
+const props = defineProps<{
+ goalId: GoalItem['id']
+ statusId: TaskItem['statusId']
+}>()
+
+const { t } = useI18n()
+const kanbanStore = useKanbanStore()
+
+const taskName = ref('')
+const loading = ref(false)
+const inputIcon = computed(() => taskName.value.trim() ? 'i-lucide-corner-down-left' : 'i-lucide-keyboard')
+
+const addTask = async () => {
+ if (!taskName.value.trim()) {
+ return
+ }
+
+ loading.value = true
+
+ await kanbanStore.addTask({
+ goalId: props.goalId,
+ goalListId: null,
+ description: taskName.value,
+ statusId: props.statusId === DEFAULT_ID ? null : props.statusId,
+ })
+
+ taskName.value = ''
+ loading.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/kanban/parts/KanbanDeleteModal.vue b/web-nuxt-ui/src/components/features/kanban/parts/KanbanDeleteModal.vue
new file mode 100644
index 0000000..f2198e6
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/kanban/parts/KanbanDeleteModal.vue
@@ -0,0 +1,61 @@
+<template>
+ <UModal v-model:open="model">
+ <template #content>
+ <UCard>
+ <template #header>
+ <div class="flex items-center justify-between">
+ <h3 class="text-lg font-semibold">
+ {{ t('kanban.deleteColumn') }}
+ </h3>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ @click="model = false"
+ />
+ </div>
+ </template>
+
+ <p class="text-muted">
+ {{ t('kanban.deleteColumnConfirm') }}
+ </p>
+
+ <template #footer>
+ <div class="flex justify-end gap-2">
+ <UButton
+ color="neutral"
+ variant="outline"
+ @click="model = false"
+ >
+ {{ t('common.cancel') }}
+ </UButton>
+ <UButton
+ color="error"
+ @click="confirmDelete"
+ >
+ {{ t('common.delete') }}
+ </UButton>
+ </div>
+ </template>
+ </UCard>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import type { KanbanColumnItem } from 'taskview-api'
+import { useKanbanStore } from '@/stores/kanban.store'
+
+const props = defineProps<{ status: KanbanColumnItem }>()
+
+const model = defineModel<boolean>({ required: true })
+
+const { t } = useI18n()
+const store = useKanbanStore()
+
+async function confirmDelete() {
+ await store.deleteStatus({ id: props.status.id })
+ model.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/kanban/parts/KanbanEditModal.vue b/web-nuxt-ui/src/components/features/kanban/parts/KanbanEditModal.vue
new file mode 100644
index 0000000..1212675
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/kanban/parts/KanbanEditModal.vue
@@ -0,0 +1,73 @@
+<template>
+ <UModal v-model:open="model">
+ <template #content>
+ <UCard>
+ <template #header>
+ <div class="flex items-center justify-between">
+ <h3 class="text-lg font-semibold">
+ {{ t('kanban.editColumn') }}
+ </h3>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ @click="model = false"
+ />
+ </div>
+ </template>
+
+ <UFormField :label="t('kanban.columnName')">
+ <UInput
+ v-model="name"
+ :placeholder="t('kanban.columnName')"
+ class="w-full"
+ />
+ </UFormField>
+
+ <template #footer>
+ <div class="flex justify-end gap-2">
+ <UButton
+ color="neutral"
+ variant="outline"
+ @click="model = false"
+ >
+ {{ t('common.cancel') }}
+ </UButton>
+ <UButton
+ variant="outline"
+ @click="save"
+ >
+ {{ t('common.save') }}
+ </UButton>
+ </div>
+ </template>
+ </UCard>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { ref, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { KanbanColumnItem } from 'taskview-api'
+import { useKanbanStore } from '@/stores/kanban.store'
+
+const props = defineProps<{ status: KanbanColumnItem }>()
+
+const model = defineModel<boolean>({ required: true })
+
+const { t } = useI18n()
+const store = useKanbanStore()
+const name = ref(props.status.name)
+
+watch(model, (open) => {
+ if (open) {
+ name.value = props.status.name
+ }
+})
+
+async function save() {
+ await store.updateStatus({ id: props.status.id, name: name.value })
+ model.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/kanban/parts/KanbanTitleMenu.vue b/web-nuxt-ui/src/components/features/kanban/parts/KanbanTitleMenu.vue
new file mode 100644
index 0000000..7f667d2
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/kanban/parts/KanbanTitleMenu.vue
@@ -0,0 +1,67 @@
+<template>
+ <UDropdownMenu
+ :items="menuItems"
+ :ui="{ content: 'z-50' }"
+ size="lg"
+ >
+ <UButton
+ icon="i-lucide-ellipsis"
+ color="neutral"
+ variant="ghost"
+ size="sm"
+ />
+ </UDropdownMenu>
+
+ <KanbanEditModal
+ v-model="editOpen"
+ :status="props.status"
+ />
+
+ <KanbanDeleteModal
+ v-model="deleteOpen"
+ :status="props.status"
+ />
+</template>
+
+<script setup lang="ts">
+import { ref, computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { KanbanColumnItem } from 'taskview-api'
+import type { DropdownMenuItem } from '@nuxt/ui'
+import KanbanEditModal from './KanbanEditModal.vue'
+import KanbanDeleteModal from './KanbanDeleteModal.vue'
+
+const props = defineProps<{ status: KanbanColumnItem }>()
+
+const { t } = useI18n()
+
+const editOpen = ref(false)
+const deleteOpen = ref(false)
+
+const ui = {
+ itemLeadingIcon: 'size-4',
+ item: 'items-center',
+}
+const menuItems = computed<DropdownMenuItem[][]>(() => [
+ [
+ {
+ label: t('kanban.edit'),
+ icon: 'i-lucide-pencil',
+ ui,
+ // size: 'lg',
+ onSelect: () => {
+ editOpen.value = true
+ },
+ },
+ {
+ label: t('kanban.delete'),
+ icon: 'i-lucide-trash-2',
+ color: 'error' as const,
+ ui,
+ onSelect: () => {
+ deleteOpen.value = true
+ },
+ },
+ ],
+])
+</script>
diff --git a/web-nuxt-ui/src/components/features/lists/ListsArchive.vue b/web-nuxt-ui/src/components/features/lists/ListsArchive.vue
new file mode 100644
index 0000000..e0fa1ba
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/lists/ListsArchive.vue
@@ -0,0 +1,43 @@
+<template>
+ <ListsListBase
+ v-model:open="open"
+ :title="t('archive.title')"
+ :lists="lists"
+ :is-archive="true"
+ @save="handleSave"
+ @delete="handleDelete"
+ @restore="handleRestore"
+ />
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import ListsListBase from '@/components/features/lists/parts/ListsListBase.vue'
+import type { List } from '@/components/features/lists/types'
+
+defineProps<{
+ lists: List[]
+}>()
+
+const emit = defineEmits<{
+ save: [list: List, data: { name: string }]
+ delete: [list: List]
+ restore: [list: List]
+}>()
+
+const { t } = useI18n()
+
+const open = defineModel<boolean>('open', { required: false, default: false })
+
+function handleSave(list: List, data: { name: string }) {
+ emit('save', list, data)
+}
+
+function handleDelete(list: List) {
+ emit('delete', list)
+}
+
+function handleRestore(list: List) {
+ emit('restore', list)
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/lists/ListsContainer.vue b/web-nuxt-ui/src/components/features/lists/ListsContainer.vue
new file mode 100644
index 0000000..5ec2e51
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/lists/ListsContainer.vue
@@ -0,0 +1,112 @@
+<template>
+ <UDashboardPanel
+ id="lists"
+ collapsible
+ :resizable="false"
+ :default-size="25"
+ :min-size="15"
+ :max-size="35"
+ :class="[
+ 'lg:flex',
+ hasListSelected || hasTaskSelected ? 'hidden' : 'flex'
+ ]"
+ >
+ <template #header>
+ <UDashboardNavbar :ui="{ right: 'flex-1', root: 'px-2!' }">
+ <template #leading>
+ <TvCollapseSidebarDesktop />
+ </template>
+ <template #right>
+ <ListAddInput
+ v-if="canAddTaskList"
+ @add="handleAdd"
+ />
+ </template>
+ </UDashboardNavbar>
+ </template>
+
+ <template #body>
+ <div class="flex flex-col gap-2">
+ <ListsList
+ :lists="activeLists"
+ @save="handleSave"
+ @delete="handleDelete"
+ @archive="handleArchive"
+ />
+ <ListsArchive
+ v-if="archivedLists.length > 0"
+ :lists="archivedLists"
+ @save="handleSave"
+ @delete="handleDelete"
+ @restore="handleRestore"
+ />
+ </div>
+ </template>
+ </UDashboardPanel>
+</template>
+
+<script setup lang="ts">
+import { computed, watch } from 'vue'
+import { storeToRefs } from 'pinia'
+import { useRoute, useRouter } from 'vue-router'
+import { useGoalListsStore } from '@/stores/goal-lists.store'
+import ListAddInput from './parts/ListAddInput.vue'
+import ListsList from './ListsList.vue'
+import ListsArchive from './ListsArchive.vue'
+import type { List } from './types'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const { canAddTaskList } = useGoalPermissions()
+
+const route = useRoute()
+const router = useRouter()
+
+const listsStore = useGoalListsStore()
+const { lists } = storeToRefs(listsStore)
+
+const projectId = computed(() => Number(route.params.projectId) || null)
+const hasListSelected = computed(() => !!route.params.listId)
+const hasTaskSelected = computed(() => !!route.params.taskId)
+
+const activeLists = computed(() => lists.value.filter(l => l.archive === 0))
+const archivedLists = computed(() => lists.value.filter(l => l.archive === 1))
+
+watch(projectId, async (newProjectId) => {
+ if (newProjectId) {
+ await listsStore.fetchLists(newProjectId)
+ }
+}, { immediate: true })
+
+async function handleAdd(name: string) {
+ if (!projectId.value) return
+ const newList = await listsStore.addList({ name, goalId: projectId.value })
+ if (newList) {
+ router.push({ name: 'user', params: { projectId: projectId.value, listId: newList.id } })
+ }
+}
+
+async function handleSave(list: List, data: { name: string }) {
+ await listsStore.updateList({
+ id: list.id,
+ name: data.name,
+ })
+}
+
+async function handleDelete(list: List) {
+ await listsStore.deleteList(list.id)
+}
+
+async function handleArchive(list: List) {
+ await listsStore.updateList({
+ id: list.id,
+ archive: 1,
+ })
+}
+
+async function handleRestore(list: List) {
+ await listsStore.updateList({
+ id: list.id,
+ archive: 0,
+ })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/lists/ListsList.vue b/web-nuxt-ui/src/components/features/lists/ListsList.vue
new file mode 100644
index 0000000..8a0220b
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/lists/ListsList.vue
@@ -0,0 +1,146 @@
+<template>
+ <div class="flex flex-col gap-2 w-full">
+ <template v-if="canViewLists">
+ <TvGoalLikeItem
+ v-for="list in lists"
+ :key="list.id"
+ :to="{ name: 'user', params: { projectId, listId: list.id } }"
+ :active="currentListId === list.id"
+ variant="taskview"
+ >
+ <div class="flex items-center justify-between w-full">
+ <span>{{ list.name }}</span>
+ <UButton
+ icon="i-lucide-ellipsis"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ class="z-10 cursor-pointer"
+ @click.prevent.stop="openContextMenu($event, list)"
+ />
+ </div>
+ </TvGoalLikeItem>
+ </template>
+ </div>
+
+ <TvContextMenu ref="contextMenu">
+ <div class="p-1 flex flex-col gap-1">
+ <UButton
+ v-if="canEditList"
+ :label="t('contextMenu.edit')"
+ icon="i-lucide-pencil"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ @click="openEditModal"
+ />
+
+ <UButton
+ v-if="canEditList"
+ :label="t('contextMenu.moveToArchive')"
+ icon="i-lucide-archive"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ @click="handleArchive"
+ />
+
+ <USeparator class="my-1" />
+
+ <UButton
+ v-if="canDeleteList"
+ :label="t('contextMenu.delete')"
+ icon="i-lucide-trash-2"
+ variant="ghost"
+ color="error"
+ class="w-full justify-start"
+ @click="openDeleteDialog"
+ />
+ </div>
+ </TvContextMenu>
+
+ <ListEditModal
+ v-model:open="isEditModalOpen"
+ :list="selectedList"
+ @save="handleSave"
+ />
+
+ <ListDeleteDialog
+ v-model:open="isDeleteDialogOpen"
+ :list="selectedList"
+ @confirm="handleDelete"
+ />
+</template>
+
+<script setup lang="ts">
+import { ref, computed } from 'vue'
+import { useRoute } from 'vue-router'
+import { useI18n } from 'vue-i18n'
+import TvContextMenu from '@/components/features/base/TvContextMenu.vue'
+import ListEditModal from '@/components/features/lists/parts/ListEditModal.vue'
+import ListDeleteDialog from '@/components/features/lists/parts/ListDeleteDialog.vue'
+import type { List } from '@/components/features/lists/types'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const {
+ canViewLists,
+ canDeleteList,
+ canEditList,
+} = useGoalPermissions()
+
+defineProps<{
+ lists: List[]
+}>()
+
+const emit = defineEmits<{
+ save: [list: List, data: { name: string }]
+ delete: [list: List]
+ archive: [list: List]
+}>()
+
+const { t } = useI18n()
+const route = useRoute()
+
+const projectId = computed(() => route.params.projectId)
+const currentListId = computed(() => Number(route.params.listId) || null)
+
+const contextMenu = ref<InstanceType<typeof TvContextMenu> | null>(null)
+const selectedList = ref<List | null>(null)
+
+const isEditModalOpen = ref(false)
+const isDeleteDialogOpen = ref(false)
+
+function openContextMenu(event: MouseEvent, list: List) {
+ selectedList.value = list
+ contextMenu.value?.openAt(event)
+}
+
+function openEditModal() {
+ contextMenu.value?.close()
+ isEditModalOpen.value = true
+}
+
+function handleSave(data: { name: string }) {
+ if (selectedList.value) {
+ emit('save', selectedList.value, data)
+ }
+}
+
+function handleArchive() {
+ if (selectedList.value) {
+ emit('archive', selectedList.value)
+ }
+ contextMenu.value?.close()
+}
+
+function openDeleteDialog() {
+ contextMenu.value?.close()
+ isDeleteDialogOpen.value = true
+}
+
+function handleDelete() {
+ if (selectedList.value) {
+ emit('delete', selectedList.value)
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/lists/parts/ListAddInput.vue b/web-nuxt-ui/src/components/features/lists/parts/ListAddInput.vue
new file mode 100644
index 0000000..b7091db
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/lists/parts/ListAddInput.vue
@@ -0,0 +1,51 @@
+<template>
+ <UInput
+ v-model="listName"
+ :placeholder="t('lists.addPlaceholder')"
+ size="xl"
+ variant="soft"
+ class="w-full"
+ :ui="{
+ base: 'bg-tv-ui-bg-elevated',
+ }"
+ @keydown.enter="addList"
+ >
+ <template #trailing>
+ <UButton
+ v-if="listName.trim()"
+ icon="i-lucide-corner-down-left"
+ color="primary"
+ variant="ghost"
+ size="xs"
+ :aria-label="t('lists.add')"
+ @click="addList"
+ />
+ <UIcon
+ v-else
+ name="i-lucide-keyboard"
+ class="size-4 text-dimmed"
+ />
+ </template>
+ </UInput>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+
+const emit = defineEmits<{
+ add: [name: string]
+}>()
+
+const { t } = useI18n()
+
+const listName = ref('')
+
+function addList() {
+ const name = listName.value.trim()
+ if (name) {
+ emit('add', name)
+ listName.value = ''
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/lists/parts/ListDeleteDialog.vue b/web-nuxt-ui/src/components/features/lists/parts/ListDeleteDialog.vue
new file mode 100644
index 0000000..14b856e
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/lists/parts/ListDeleteDialog.vue
@@ -0,0 +1,51 @@
+<template>
+ <UModal
+ v-model:open="isOpen"
+ :title="t('lists.deleteConfirm')"
+ :ui="{ footer: 'justify-end!' }"
+ >
+ <template #body>
+ <p class="text-muted">
+ {{ t('lists.deleteMessage', { name: list?.name }) }}
+ </p>
+ </template>
+
+ <template #footer>
+ <div class="flex justify-end gap-2">
+ <UButton
+ :label="t('common.cancel')"
+ color="neutral"
+ variant="outline"
+ @click="isOpen = false"
+ />
+ <UButton
+ :label="t('contextMenu.delete')"
+ color="error"
+ @click="confirmDelete"
+ />
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import type { List } from '@/components/features/lists/types'
+
+defineProps<{
+ list: List | null
+}>()
+
+const emit = defineEmits<{
+ confirm: []
+}>()
+
+const { t } = useI18n()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+function confirmDelete() {
+ emit('confirm')
+ isOpen.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/lists/parts/ListEditModal.vue b/web-nuxt-ui/src/components/features/lists/parts/ListEditModal.vue
new file mode 100644
index 0000000..df3eee1
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/lists/parts/ListEditModal.vue
@@ -0,0 +1,71 @@
+<template>
+ <UModal
+ v-model:open="isOpen"
+ :title="t('lists.edit')"
+ :ui="{ footer: 'justify-end!' }"
+ >
+ <template #body>
+ <div class="space-y-4">
+ <UFormField :label="t('lists.name')">
+ <UInput
+ v-model="formData.name"
+ :placeholder="t('lists.namePlaceholder')"
+ class="w-full"
+ />
+ </UFormField>
+ </div>
+ </template>
+
+ <template #footer>
+ <UButton
+ :label="t('common.cancel')"
+ color="neutral"
+ variant="outline"
+ @click="isOpen = false"
+ />
+ <UButton
+ :label="t('common.save')"
+ color="primary"
+ variant="outline"
+ @click="save"
+ />
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { ref, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { List } from '@/components/features/lists/types'
+
+const props = defineProps<{
+ list: List | null
+}>()
+
+const emit = defineEmits<{
+ save: [data: { name: string }]
+}>()
+
+const { t } = useI18n()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+const formData = ref({
+ name: '',
+})
+
+watch(
+ () => props.list,
+ (list) => {
+ if (list) {
+ formData.value.name = list.name
+ }
+ },
+ { immediate: true },
+)
+
+function save() {
+ emit('save', { name: formData.value.name })
+ isOpen.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/lists/parts/ListsListBase.vue b/web-nuxt-ui/src/components/features/lists/parts/ListsListBase.vue
new file mode 100644
index 0000000..70db1d7
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/lists/parts/ListsListBase.vue
@@ -0,0 +1,191 @@
+<template>
+ <UCollapsible
+ v-model:open="isOpen"
+ class="flex flex-col gap-2 w-full group"
+ >
+ <TvGoalLikeItem variant="taskview">
+ {{ title }}
+
+ <UIcon
+ name="i-lucide-chevron-down"
+ class="group-data-[state=open]:rotate-180 transition-transform duration-200"
+ />
+ </TvGoalLikeItem>
+ <template #content>
+ <UPageList class="w-full gap-2 flex flex-col">
+ <ListAddInput
+ v-if="!isArchive"
+ @add="handleAdd"
+ />
+ <TvGoalLikeItem
+ v-for="list in lists"
+ :key="list.id"
+ variant="taskview"
+ :to="{ name: 'user', params: { projectId, listId: list.id } }"
+ :active="currentListId === list.id"
+ >
+ <div class="flex items-center justify-between w-full">
+ <span>{{ list.name }}</span>
+ <UButton
+ icon="i-lucide-ellipsis"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ class="z-10 cursor-pointer"
+ @click.prevent.stop="openContextMenu($event, list)"
+ />
+ </div>
+ </TvGoalLikeItem>
+ </UPageList>
+ </template>
+ </UCollapsible>
+
+ <TvContextMenu ref="contextMenu">
+ <div class="p-1 flex flex-col gap-1">
+ <!-- Edit -->
+ <UButton
+ :label="t('contextMenu.edit')"
+ icon="i-lucide-pencil"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ @click="openEditModal"
+ />
+
+ <!-- Archive/Restore -->
+ <UButton
+ v-if="!isArchive"
+ :label="t('contextMenu.moveToArchive')"
+ icon="i-lucide-archive"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ @click="handleArchive"
+ />
+ <UButton
+ v-else
+ :label="t('contextMenu.restoreFromArchive')"
+ icon="i-lucide-archive-restore"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ @click="handleRestore"
+ />
+
+ <USeparator class="my-1" />
+
+ <!-- Delete -->
+ <UButton
+ :label="t('contextMenu.delete')"
+ icon="i-lucide-trash-2"
+ variant="ghost"
+ color="error"
+ class="w-full justify-start"
+ @click="openDeleteDialog"
+ />
+ </div>
+ </TvContextMenu>
+
+ <!-- Edit Modal -->
+ <ListEditModal
+ v-model:open="isEditModalOpen"
+ :list="selectedList"
+ @save="handleSave"
+ />
+
+ <!-- Delete Confirmation Dialog -->
+ <ListDeleteDialog
+ v-model:open="isDeleteDialogOpen"
+ :list="selectedList"
+ @confirm="handleDelete"
+ />
+</template>
+
+<script setup lang="ts">
+import { ref, computed } from 'vue'
+import { useRoute } from 'vue-router'
+import { useI18n } from 'vue-i18n'
+import TvContextMenu from '@/components/features/base/TvContextMenu.vue'
+import ListEditModal from '@/components/features/lists/parts/ListEditModal.vue'
+import ListDeleteDialog from '@/components/features/lists/parts/ListDeleteDialog.vue'
+import ListAddInput from '@/components/features/lists/parts/ListAddInput.vue'
+import type { List } from '@/components/features/lists/types'
+
+withDefaults(
+ defineProps<{
+ title: string
+ lists: List[]
+ isArchive?: boolean
+ }>(),
+ {
+ isArchive: false,
+ },
+)
+
+const emit = defineEmits<{
+ save: [list: List, data: { name: string }]
+ delete: [list: List]
+ archive: [list: List]
+ restore: [list: List]
+ add: [name: string]
+}>()
+
+const { t } = useI18n()
+const route = useRoute()
+
+const isOpen = defineModel<boolean>('open', { required: false, default: true })
+
+const projectId = computed(() => route.params.projectId)
+const currentListId = computed(() => Number(route.params.listId) || null)
+
+const contextMenu = ref<InstanceType<typeof TvContextMenu> | null>(null)
+const selectedList = ref<List | null>(null)
+
+const isEditModalOpen = ref(false)
+const isDeleteDialogOpen = ref(false)
+
+function openContextMenu(event: MouseEvent, list: List) {
+ selectedList.value = list
+ contextMenu.value?.openAt(event)
+}
+
+function openEditModal() {
+ contextMenu.value?.close()
+ isEditModalOpen.value = true
+}
+
+function handleSave(data: { name: string }) {
+ if (selectedList.value) {
+ emit('save', selectedList.value, data)
+ }
+}
+
+function handleArchive() {
+ if (selectedList.value) {
+ emit('archive', selectedList.value)
+ }
+ contextMenu.value?.close()
+}
+
+function handleRestore() {
+ if (selectedList.value) {
+ emit('restore', selectedList.value)
+ }
+ contextMenu.value?.close()
+}
+
+function openDeleteDialog() {
+ contextMenu.value?.close()
+ isDeleteDialogOpen.value = true
+}
+
+function handleDelete() {
+ if (selectedList.value) {
+ emit('delete', selectedList.value)
+ }
+}
+
+function handleAdd(name: string) {
+ emit('add', name)
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/lists/types.ts b/web-nuxt-ui/src/components/features/lists/types.ts
new file mode 100644
index 0000000..3c9ee35
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/lists/types.ts
@@ -0,0 +1,3 @@
+import type { GoalListItem } from 'taskview-api'
+
+export type List = GoalListItem
diff --git a/web-nuxt-ui/src/components/features/main/MainScreen.vue b/web-nuxt-ui/src/components/features/main/MainScreen.vue
new file mode 100644
index 0000000..92d9545
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/MainScreen.vue
@@ -0,0 +1,25 @@
+<template>
+ <UDashboardPanel
+ id="main-screen"
+ >
+ <template #header>
+ <UDashboardNavbar :title="t('main')">
+ <template #leading>
+ <TvCollapseSidebarDesktop />
+ </template>
+ </UDashboardNavbar>
+ </template>
+
+ <template #body>
+ <DesktopScreen />
+ </template>
+ </UDashboardPanel>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import TvCollapseSidebarDesktop from '@/components/features/base/TvCollapseSidebarDesktop.vue'
+import DesktopScreen from './screen-main/DesktopScreen.vue'
+
+const { t } = useI18n()
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/DesktopScreen.vue b/web-nuxt-ui/src/components/features/main/screen-main/DesktopScreen.vue
new file mode 100644
index 0000000..f83ae04
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/DesktopScreen.vue
@@ -0,0 +1,47 @@
+<template>
+ <div class="overflow-auto flex flex-col gap-0">
+ <div class="md:block sticky top-0 p-2 lg:p-5 z-10 bg-default">
+ <SearchAll />
+ </div>
+ <div class="flex flex-col gap-5 p-2 md:p-5 md:pt-0 w-full mx-auto">
+ <div class="flex gap-5 flex-col md:flex-row">
+ <WidgetToday />
+ <WidgetUpcoming />
+ </div>
+ <WidgetLastAddedTasks />
+ </div>
+ </div>
+</template>
+<script async setup lang="ts">
+import { watch } from 'vue'
+import SearchAll from './parts/SearchAll.vue'
+import WidgetLastAddedTasks from './parts/WidgetLastAddedTasks.vue'
+import WidgetToday from './parts/WidgetToday.vue'
+import WidgetUpcoming from './parts/WidgetUpcoming.vue'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+import { useCollaborationStore } from '@/stores/collaboration.store'
+import { useTaskView } from '@/composables/useTaskView'
+
+const baseScreenStore = useBaseScreenStore()
+const collaborationStore = useCollaborationStore()
+const { isMobile } = useTaskView()
+
+
+watch(
+ () => isMobile.value,
+ (newVal) => {
+ if (!newVal) {
+ baseScreenStore.activeWidgetInMobile = 'all'
+ } else {
+ baseScreenStore.activeWidgetInMobile = 'today'
+ }
+ },
+ { immediate: true },
+)
+
+Promise.allSettled([
+ baseScreenStore.fetchAllState(),
+ baseScreenStore.fetchAllAvailableLists(),
+ collaborationStore.fetchAllCollaborationUsers(),
+])
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/parts/MainScreenAddTaskDialog.vue b/web-nuxt-ui/src/components/features/main/screen-main/parts/MainScreenAddTaskDialog.vue
new file mode 100644
index 0000000..d547de2
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/parts/MainScreenAddTaskDialog.vue
@@ -0,0 +1,252 @@
+<template>
+ <UModal
+ v-model:open="model"
+ :fullscreen="isMobile"
+
+ >
+ <template #header>
+ <div class="flex items-center justify-between w-full">
+ <h3 class="text-lg font-semibold">
+ {{ title }}
+ </h3>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ @click="close"
+ />
+ </div>
+ </template>
+
+ <template #body>
+ <UCard>
+ <div class="flex flex-col gap-4">
+ <UFormField :label="t('tasks.description')">
+ <UInput
+ v-model="taskDescription"
+ :placeholder="t('tasks.addPlaceholder')"
+ class="w-full"
+ @keyup.enter="addTask"
+ />
+ </UFormField>
+
+ <UFormField :label="t('projects.project')">
+ <USelectMenu
+ v-model="selectedGoalId"
+ :items="goalOptions"
+ :placeholder="t('projects.selectProject')"
+ :search-input="false"
+ size="xl"
+ value-key="value"
+ option-key="value"
+ class="w-full"
+ />
+ </UFormField>
+
+ <UFormField
+ v-if="!noDates"
+ :label="t('tasks.deadline')"
+ >
+ <UPopover>
+ <UButton
+ :label="formattedDeadline || t('tasks.addDueDate')"
+ icon="i-lucide-calendar"
+ color="neutral"
+ variant="outline"
+ class="w-full justify-start"
+ :ui="{leadingIcon: 'size-4.5'}"
+ />
+ <template #content>
+ <UCalendar
+ v-model="(deadline as any)"
+ class="p-2"
+ />
+ </template>
+ </UPopover>
+ </UFormField>
+ </div>
+ </UCard>
+ </template>
+
+ <template #default="slotProps">
+ <slot
+ name="activator"
+ v-bind="slotProps"
+ />
+ </template>
+
+ <template #footer>
+ <div class="flex justify-end gap-2 w-full">
+ <UButton
+ color="neutral"
+ variant="outline"
+ @click="close"
+ >
+ {{ t('common.cancel') }}
+ </UButton>
+ <UButton
+ :disabled="!canAdd"
+ :loading="loading"
+ variant="outline"
+ @click="addTask"
+ >
+ {{ t('tasks.add') }}
+ </UButton>
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { computed, onMounted, ref, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { CalendarDate } from '@internationalized/date'
+import { useGoalsStore } from '@/stores/goals.store'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+import { $ls, $tvApi } from '@/plugins/axios'
+import { useTaskView } from '@/composables/useTaskView'
+
+const LAST_SELECTED_PROJECT_KEY = 'lastSelectedProjectId'
+
+const props = withDefaults(defineProps<{
+ title?: string
+ disabled?: boolean
+ upcomingTask?: boolean
+ noDates?: boolean
+ taskName?: string
+}>(), {
+ title: '',
+ disabled: false,
+ upcomingTask: false,
+ noDates: false,
+ taskName: '',
+})
+
+const emit = defineEmits<{
+ added: []
+ close: []
+}>()
+
+const model = defineModel<boolean>({ default: false })
+
+const { t } = useI18n()
+const goalsStore = useGoalsStore()
+const baseScreenStore = useBaseScreenStore()
+const { isMobile } = useTaskView()
+
+const taskDescription = ref(props.taskName)
+const selectedGoalId = ref<number | undefined>(undefined)
+const deadline = ref<CalendarDate | null>(null)
+const loading = ref(false)
+const lastSavedProjectId = ref<number | undefined>(undefined)
+
+onMounted(async () => {
+ const saved = await $ls.getValue(LAST_SELECTED_PROJECT_KEY)
+ if (saved) {
+ lastSavedProjectId.value = Number(saved)
+ }
+})
+
+watch(() => props.taskName, (newVal) => {
+ taskDescription.value = newVal
+})
+
+watch(model, async (isOpen) => {
+ if (isOpen) {
+ // Set default deadline based on widget type
+ if (!props.noDates) {
+ const today = new Date()
+ if (props.upcomingTask) {
+ today.setDate(today.getDate() + 1)
+ }
+ deadline.value = new CalendarDate(
+ today.getFullYear(),
+ today.getMonth() + 1,
+ today.getDate(),
+ )
+ }
+
+ // Set default goal from localStorage or first available
+ const activeGoals = goalsStore.goals.filter(g => !g.archive)
+
+ if (lastSavedProjectId.value) {
+ const savedGoal = activeGoals.find(g => g.id === lastSavedProjectId.value)
+ if (savedGoal) {
+ selectedGoalId.value = savedGoal.id
+ } else if (activeGoals.length === 1) {
+ selectedGoalId.value = activeGoals[0].id
+ }
+ } else if (activeGoals.length === 1) {
+ selectedGoalId.value = activeGoals[0].id
+ }
+ } else {
+ // Reset form on close
+ taskDescription.value = props.taskName
+ selectedGoalId.value = undefined
+ deadline.value = null
+ }
+})
+
+const goalOptions = computed(() =>
+ goalsStore.goals
+ .filter(g => !g.archive)
+ .map(g => ({
+ label: g.name,
+ value: g.id,
+ })),
+)
+
+const formattedDeadline = computed(() => {
+ if (!deadline.value) return ''
+ return `${deadline.value.day}.${String(deadline.value.month).padStart(2, '0')}.${deadline.value.year}`
+})
+
+const canAdd = computed(() =>
+ taskDescription.value.trim() && selectedGoalId.value !== undefined,
+)
+
+async function addTask() {
+ if (!canAdd.value || !selectedGoalId.value) return
+
+ loading.value = true
+
+ try {
+ // Save selected project to localStorage
+ await $ls.setValue(LAST_SELECTED_PROJECT_KEY, selectedGoalId.value.toString())
+ lastSavedProjectId.value = selectedGoalId.value
+
+ const endDate = deadline.value
+ ? `${deadline.value.year}-${String(deadline.value.month).padStart(2, '0')}-${String(deadline.value.day).padStart(2, '0')}`
+ : null
+
+ const task = await $tvApi.tasks.createTask({
+ description: taskDescription.value.trim(),
+ goalId: selectedGoalId.value,
+ goalListId: null,
+ endDate,
+ })
+
+ if (task) {
+ // Add task to appropriate list based on deadline
+ if (props.noDates) {
+ baseScreenStore.tasks.unshift(task)
+ } else if (props.upcomingTask) {
+ baseScreenStore.tasksUpcoming.unshift(task)
+ } else {
+ baseScreenStore.tasksToday.unshift(task)
+ }
+
+ emit('added')
+ close()
+ }
+ }
+ finally {
+ loading.value = false
+ }
+}
+
+function close() {
+ model.value = false
+ emit('close')
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/parts/MainScreenWidgetTemplate.vue b/web-nuxt-ui/src/components/features/main/screen-main/parts/MainScreenWidgetTemplate.vue
new file mode 100644
index 0000000..a92574d
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/parts/MainScreenWidgetTemplate.vue
@@ -0,0 +1,56 @@
+<template>
+ <div class="rounded-2xl w-full flex flex-col overflow-hidden shadow-md">
+ <div
+ class="h-16 min-h-16 gap-2 w-full flex items-center px-5 bg-gray-200 dark:bg-gray-700 cursor-pointer"
+ @click="changeActiveWidget(props.widgetType)"
+ >
+ <UIcon
+ v-if="baseScreenStore.activeWidgetInMobile !== 'all'"
+ name="i-lucide-chevron-right"
+ :class="[
+ 'size-5 transition-all duration-300',
+ baseScreenStore.activeWidgetInMobile === props.widgetType ? 'rotate-90' : 'rotate-0'
+ ]"
+ />
+ <h1 class="font-bold text-lg text-black dark:text-white">
+ <slot name="title" />
+ </h1>
+ <div class="grow h-full" />
+ <slot name="actions" />
+ </div>
+ <slot name="content" />
+ </div>
+</template>
+
+<script lang="ts" setup>
+import { useTaskView } from '@/composables/useTaskView'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+
+interface Props {
+ gradientFrom?: string
+ gradientTo?: string
+ gradientDirection?: 'to-r' | 'to-l' | 'to-t' | 'to-b' | 'to-tr' | 'to-tl' | 'to-br' | 'to-bl'
+ widgetType: 'today' | 'lastAdded' | 'upcoming'
+}
+
+const props = withDefaults(defineProps<Props>(), {
+ gradientFrom: 'var(--gradient-today-start, #4f46e5)',
+ gradientTo: 'var(--gradient-today-end, #7c3aed)',
+ gradientDirection: 'to-r',
+})
+
+const baseScreenStore = useBaseScreenStore()
+
+const { isMobile } = useTaskView()
+const changeActiveWidget = (widgetType: 'today' | 'lastAdded' | 'upcoming') => {
+ if (!isMobile.value) {
+ baseScreenStore.activeWidgetInMobile = 'all'
+ return
+ }
+ if (baseScreenStore.activeWidgetInMobile === widgetType) {
+ baseScreenStore.activeWidgetInMobile = null
+ } else {
+ baseScreenStore.activeWidgetInMobile = widgetType
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/parts/NoGoals.vue b/web-nuxt-ui/src/components/features/main/screen-main/parts/NoGoals.vue
new file mode 100644
index 0000000..afd5599
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/parts/NoGoals.vue
@@ -0,0 +1,28 @@
+<template>
+ <div
+ v-if="noGoals"
+ class="text-center p-5 rounded-md w-full"
+ >
+ <UAlert
+ color="info"
+ :title="$t('msg.addFirstProject')"
+ variant="subtle"
+ icon="i-lucide-terminal"
+ class="mb-4"
+ />
+ <ProjectAddInput @add="addProject" />
+ </div>
+</template>
+<script lang="ts" setup>
+import { computed } from 'vue'
+import ProjectAddInput from '@/components/features/projects/parts/ProjectAddInput.vue'
+import { useGoalsStore } from '@/stores/goals.store'
+
+const goalsStore = useGoalsStore()
+
+const noGoals = computed(() => goalsStore.goals.filter((g) => !g.archive).length === 0)
+
+async function addProject(name: string) {
+ await goalsStore.addGoal({ name })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/parts/SearchAll.vue b/web-nuxt-ui/src/components/features/main/screen-main/parts/SearchAll.vue
new file mode 100644
index 0000000..99cd874
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/parts/SearchAll.vue
@@ -0,0 +1,141 @@
+<template>
+ <div>
+ <UDashboardSearchButton
+ :label="t('admin.search')"
+ :disabled="!hasActiveGoals"
+ class="w-full"
+ variant="subtle"
+ />
+
+ <UDashboardSearch
+ v-model:search-term="searchTerm"
+ v-model:open="isOpen"
+ :loading="loading"
+ :groups="groups"
+ :placeholder="t('admin.search')"
+ :color-mode="false"
+ :fuse="{ resultLimit: 20 }"
+ :fullscreen="isMobile"
+ :ui="{
+ group: 'p-4',
+ item: 'p-0',
+ }"
+ >
+ <template #item="{ item: task }">
+ <ULink
+ :to="{
+ name: 'user',
+ params: {
+ projectId: task.goalId,
+ listId: task.listId || ALL_TASKS_LIST_ID,
+ taskId: task.id,
+ },
+ }"
+ class="flex w-full text-base px-4 py-2"
+ >
+ {{ task.description }}
+ </ULink>
+ </template>
+
+ <template #empty>
+ <div
+ v-if="searchTerm && !loading"
+ class="flex flex-col items-center justify-center p-4 gap-2"
+ >
+ <p class="text-muted text-sm">
+ {{ t('tasks.noTasks') }}
+ </p>
+ <UButton
+ :label="`${t('msg.addTask')} (${searchTerm})`"
+ icon="i-lucide-plus"
+ variant="soft"
+ @click="openAddTaskDialog"
+ />
+ </div>
+ <div
+ v-else-if="!searchTerm"
+ class="flex items-center justify-center p-4"
+ >
+ <p class="text-muted text-sm">
+ {{ t('admin.search') }}
+ </p>
+ </div>
+ </template>
+ </UDashboardSearch>
+
+ <MainScreenAddTaskDialog
+ v-model="addTaskDialogModel"
+ :title="t('msg.addTaskToUpcoming')"
+ :task-name="searchTerm"
+ upcoming-task
+ @added="taskAdded"
+ @close="closeAddTaskDialog"
+ />
+ </div>
+</template>
+
+<script lang="ts" setup>
+import { computed, ref, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { refDebounced } from '@vueuse/core'
+import MainScreenAddTaskDialog from './MainScreenAddTaskDialog.vue'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+import { useGoalsStore } from '@/stores/goals.store'
+import { ALL_TASKS_LIST_ID } from 'taskview-api'
+import type { TaskItem } from '@/types/tasks.types'
+import { useTaskView } from '@/composables/useTaskView'
+
+const { t } = useI18n()
+const { isMobile } = useTaskView()
+const searchTerm = ref('')
+const searchTermDebounced = refDebounced(searchTerm, 300)
+const loading = ref(false)
+const isOpen = ref(false)
+const baseScreenStore = useBaseScreenStore()
+const tasks = ref<TaskItem[]>([])
+const addTaskDialogModel = ref(false)
+const goalsStore = useGoalsStore()
+
+const hasActiveGoals = computed(() => goalsStore.goals.length > 0)
+
+watch(searchTermDebounced, async (term) => {
+ if (!term) {
+ tasks.value = []
+ return
+ }
+
+ loading.value = true
+ try {
+ const result = await baseScreenStore.searchTaskRequest(term)
+ tasks.value = result
+ }
+ finally {
+ loading.value = false
+ }
+})
+
+const groups = computed(() => {
+ if (!tasks.value.length) return []
+
+ return [{
+ id: 'tasks',
+ label: t('tasks.allTasks'),
+ items: tasks.value,
+ ignoreFilter: true,
+ }]
+})
+
+function openAddTaskDialog() {
+ isOpen.value = false
+ addTaskDialogModel.value = true
+}
+
+function taskAdded() {
+ addTaskDialogModel.value = false
+ searchTerm.value = ''
+}
+
+function closeAddTaskDialog() {
+ addTaskDialogModel.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetBase.vue b/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetBase.vue
new file mode 100644
index 0000000..7d9b467
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetBase.vue
@@ -0,0 +1,128 @@
+<template>
+ <MainScreenWidgetTemplate
+ :gradient-from="props.gradientFrom"
+ :gradient-to="props.gradientTo"
+ :widget-type="props.widgetType"
+ >
+ <template #title>
+ <div>
+ {{ props.title }}
+ </div>
+ </template>
+ <template #actions>
+ <slot name="actions" />
+ </template>
+ <template
+ v-if="props.widgetType === baseScreenStore.activeWidgetInMobile || baseScreenStore.activeWidgetInMobile === 'all'"
+ #content
+ >
+ <UTabs
+ v-model="activeBasicTab"
+ :items="tabs"
+ variant="pill"
+ size="xl"
+ class="w-full"
+ :ui="{list: 'rounded-none'}"
+ >
+ <template #pending>
+ <div
+ v-if="props.notCompletedTasks.length === 0"
+ :class="noTasksClass"
+ >
+ <div class="text-xl text-muted p-5 text-center mt-5">
+ {{ props.motivation }}
+ </div>
+
+ <div
+ v-if="props.explanation"
+ class="p-5"
+ >
+ <div class="text-center bg-elevated px-5 py-2 rounded-lg shadow-md opacity-50 text-sm font-normal">
+ {{ props.explanation }}
+ </div>
+ </div>
+ <div class="grow" />
+ <NoGoals />
+ </div>
+ <div
+ v-else
+ v-bind="scrollContainerData"
+ >
+ <TaskItem
+ v-for="task in props.notCompletedTasks"
+ :key="task.id"
+ :task="task"
+ @toggle="handleTaskToggle"
+ />
+ </div>
+ </template>
+ <template #completed>
+ <div
+ v-if="props.completedTasks.length === 0"
+ :class="noTasksClass"
+ >
+ <div class="p-5 opacity-50">
+ {{ t('msg.noTasks') }}
+ </div>
+ <NoGoals />
+ </div>
+ <div
+ v-else
+ v-bind="scrollContainerData"
+ >
+ <TaskItem
+ v-for="task in props.completedTasks"
+ :key="task.id"
+ :task="task"
+ @toggle="handleTaskToggle"
+ />
+ </div>
+ </template>
+ </UTabs>
+ </template>
+ </MainScreenWidgetTemplate>
+</template>
+<script lang="ts" setup>
+import { computed, ref } from 'vue'
+import type { TabsItem } from '@nuxt/ui'
+import { useI18n } from 'vue-i18n'
+import type { Task } from 'taskview-api'
+import TaskItem from '@/components/features/tasks/parts/TaskItem.vue'
+import { useWidgetScrollContainer } from '@/components/features/main/screen-main/useWidgetScrollContainer'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+import type { TaskItem as TaskItemType } from '@/types/tasks.types'
+import MainScreenWidgetTemplate from './MainScreenWidgetTemplate.vue'
+import NoGoals from './NoGoals.vue'
+
+const props = defineProps<{
+ title: string
+ completedTasks: TaskItemType[]
+ notCompletedTasks: TaskItemType[]
+ gradientFrom: string
+ gradientTo: string
+ explanation?: string
+ dateColor?: (date: string) => boolean
+ motivation?: string
+ widgetType: 'today' | 'lastAdded' | 'upcoming'
+}>()
+
+const emit = defineEmits<(e: 'update:task-status', data: { status: boolean; taskId: TaskItemType['id'] }) => void>()
+
+const { t } = useI18n()
+
+const scrollContainerData = useWidgetScrollContainer()
+const baseScreenStore = useBaseScreenStore()
+
+const activeBasicTab = ref('pending')
+
+const noTasksClass = 'min-h-24 flex flex-col items-center justify-center font-bold gap-2 h-full'
+
+const tabs = computed<TabsItem[]>(() => [
+ { label: t('msg.pending'), value: 'pending', badge: props.notCompletedTasks.length.toString(), slot: 'pending' },
+ { label: t('msg.completed'), value: 'completed', badge: props.completedTasks.length.toString(), slot: 'completed' },
+])
+
+function handleTaskToggle(task: Task) {
+ emit('update:task-status', { status: !task.complete, taskId: task.id })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetLastAddedTasks.vue b/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetLastAddedTasks.vue
new file mode 100644
index 0000000..ccfa2ce
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetLastAddedTasks.vue
@@ -0,0 +1,146 @@
+<template>
+ <MainScreenWidgetTemplate
+ gradient-from="#4f46e5"
+ gradient-to="#7c3aed"
+ widget-type="lastAdded"
+ >
+ <template #title>
+ <div>
+ {{ t('msg.lastTasks') }}
+ </div>
+ </template>
+ <template #actions>
+ <MainScreenAddTaskDialog
+ v-model="addTaskDialogModel"
+ :title="t('msg.addTask')"
+ :disabled="!hasActiveGoals"
+ :no-dates="true"
+ >
+ <template #activator="props">
+ <UButton
+ v-bind="props"
+ icon="i-lucide-plus"
+ :disabled="!hasActiveGoals"
+ variant="soft"
+ size="lg"
+ class="rounded-full"
+ />
+ </template>
+ </MainScreenAddTaskDialog>
+ </template>
+ <template
+ v-if="baseScreenStore.activeWidgetInMobile === 'lastAdded' || baseScreenStore.activeWidgetInMobile === 'all'"
+ #content
+ >
+ <UTabs
+ v-model="activeBasicTab"
+ :items="tabs"
+ variant="pill"
+ size="xl"
+ class="w-full"
+ :ui="{list: 'rounded-none'}"
+ >
+ <template #lastAdded>
+ <div
+ v-if="baseScreenStore.tasks.length === 0"
+ :class="noTasksClass"
+ >
+ <div class="p-5">
+ {{ t('msg.noTasks') }}
+ </div>
+
+ <div
+ class="p-5"
+ >
+ <div class="text-center bg-elevated px-5 py-2 rounded-lg shadow-md opacity-50 text-sm font-normal">
+ {{ t('msg.lastAddedTasksExplanation') }}
+ </div>
+ </div>
+ <div class="grow" />
+ <NoGoals />
+ </div>
+ <div
+ v-else
+ v-bind="scrollContainerData"
+ >
+ <TaskItem
+ v-for="task in baseScreenStore.tasks"
+ :key="task.id"
+ :task="task"
+ @toggle="(t) => updateTaskStatus({ status: !t.complete, taskId: t.id }, 'tasks')"
+ />
+ </div>
+ </template>
+ <template #lastCompleted>
+ <div
+ v-if="baseScreenStore.tasksLastCompleted.length === 0"
+ :class="noTasksClass"
+ >
+ {{ t('msg.noTasks') }}
+ <div
+ class="p-5"
+ >
+ <div class="text-center bg-elevated px-5 py-2 rounded-lg shadow-md opacity-50 text-sm font-normal">
+ {{ t('msg.lastCompletedTasksExplanation') }}
+ </div>
+ </div>
+ <div class="grow" />
+ <NoGoals />
+ </div>
+ <div
+ v-else
+ v-bind="scrollContainerData"
+ >
+ <TaskItem
+ v-for="task in baseScreenStore.tasksLastCompleted"
+ :key="task.id"
+ :task="task"
+ @toggle="(t) => updateTaskStatus({ status: !t.complete, taskId: t.id }, 'tasksLastCompleted')"
+ />
+ </div>
+ </template>
+ </UTabs>
+ </template>
+ </MainScreenWidgetTemplate>
+</template>
+<script lang="ts" setup>
+import { computed, ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { TabsItem } from '@nuxt/ui'
+import { useDebounceFn } from '@vueuse/core'
+import MainScreenAddTaskDialog from './MainScreenAddTaskDialog.vue'
+import TaskItem from '@/components/features/tasks/parts/TaskItem.vue'
+import { useWidgetScrollContainer } from '@/components/features/main/screen-main/useWidgetScrollContainer'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+import { useTaskView } from '@/composables/useTaskView'
+import type { TaskItem as TaskItemType } from '@/types/tasks.types'
+import MainScreenWidgetTemplate from './MainScreenWidgetTemplate.vue'
+import NoGoals from './NoGoals.vue'
+
+const { t } = useI18n()
+const baseScreenStore = useBaseScreenStore()
+const activeBasicTab = ref('lastAdded')
+const addTaskDialogModel = ref(false)
+const scrollContainerData = useWidgetScrollContainer()
+const { hasActiveGoals } = useTaskView()
+
+
+const noTasksClass = 'min-h-24 flex flex-col items-center justify-center font-bold gap-2 h-full'
+
+const tabs = computed<TabsItem[]>(() => [
+ { label: t('msg.lastAddedTasks'), value: 'lastAdded', badge: baseScreenStore.tasks.length.toString(), slot: 'lastAdded' },
+ {
+ label: t('msg.lastCompletedTasks'),
+ value: 'lastCompleted',
+ badge: baseScreenStore.tasksLastCompleted.length.toString(),
+ slot: 'lastCompleted',
+ },
+])
+
+const updateTaskStatus = useDebounceFn(
+ (data: { status: boolean; taskId: TaskItemType['id'] }, param: 'tasks' | 'tasksLastCompleted') => {
+ baseScreenStore.updateTaskStatusNew(data, param)
+ },
+ 500,
+)
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetToday.vue b/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetToday.vue
new file mode 100644
index 0000000..0c4244c
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetToday.vue
@@ -0,0 +1,62 @@
+<template>
+ <WidgetBase
+ :completed-tasks="tasksCompleted"
+ :not-completed-tasks="tasksNotCompleted"
+ :title="t('msg.todayTasks')"
+ :date-color="dateColor"
+ :explanation="t('msg.todayExplanation')"
+ :motivation="motivation"
+ gradient-from="#4f46e5"
+ gradient-to="#7c3aed"
+ widget-type="today"
+ @update:task-status="updateTaskStatus"
+ >
+ <template #actions>
+ <MainScreenAddTaskDialog
+ v-model="addTaskDialogModel"
+ :title="t('msg.addTaskToToday')"
+ :disabled="!hasActiveGoals"
+ >
+ <template #activator="props">
+ <UButton
+ v-bind="props"
+ icon="i-lucide-plus"
+ :disabled="!hasActiveGoals"
+ variant="soft"
+ size="lg"
+ class="rounded-full"
+ @click.stop
+ />
+ </template>
+ </MainScreenAddTaskDialog>
+ </template>
+ </WidgetBase>
+</template>
+<script lang="ts" setup>
+import { computed, ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import MainScreenAddTaskDialog from './MainScreenAddTaskDialog.vue'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+import { useTaskView } from '@/composables/useTaskView'
+import type { TaskItem } from '@/types/tasks.types'
+import WidgetBase from './WidgetBase.vue'
+
+const { tm, t } = useI18n()
+
+const baseScreenStore = useBaseScreenStore()
+const addTaskDialogModel = ref(false)
+const { hasActiveGoals } = useTaskView()
+
+const motivation = computed(() => tm('motivationToday')[Math.floor(Math.random() * tm('motivationToday').length)])
+
+const tasksNotCompleted = computed(() => baseScreenStore.tasksToday.filter((task) => !task.complete))
+const tasksCompleted = computed(() => baseScreenStore.tasksToday.filter((task) => task.complete))
+
+const updateTaskStatus = (data: { status: boolean; taskId: TaskItem['id'] }) => {
+ baseScreenStore.updateTaskStatusNew(data, 'tasksToday')
+}
+
+const dateColor = (date: string) => {
+ return date !== t('msg.today')
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetUpcoming.vue b/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetUpcoming.vue
new file mode 100644
index 0000000..bd3bde8
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/parts/WidgetUpcoming.vue
@@ -0,0 +1,59 @@
+<template>
+ <WidgetBase
+ :completed-tasks="tasksCompleted"
+ :not-completed-tasks="tasksNotCompleted"
+ :title="t('msg.upcomingTasks')"
+ :explanation="t('msg.upcomingExplanation')"
+ :motivation="motivation"
+ gradient-from="#8b5cf6"
+ gradient-to="#d946ef"
+ widget-type="upcoming"
+ @update:task-status="updateTaskStatus"
+ >
+ <template #actions>
+ <MainScreenAddTaskDialog
+ v-model="addUpcomingTaskDialogModel"
+ :title="t('msg.addTaskToUpcoming')"
+ :disabled="!hasActiveGoals"
+ upcoming-task
+ >
+ <template #activator="props">
+ <UButton
+ v-bind="props"
+ icon="i-lucide-plus"
+ :disabled="!hasActiveGoals"
+ variant="soft"
+ size="lg"
+ class="rounded-full"
+ />
+ </template>
+ </MainScreenAddTaskDialog>
+ </template>
+ </WidgetBase>
+</template>
+<script lang="ts" setup>
+import { computed, ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useDebounceFn } from '@vueuse/core'
+import MainScreenAddTaskDialog from './MainScreenAddTaskDialog.vue'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+import { useTaskView } from '@/composables/useTaskView'
+import type { TaskItem } from '@/types/tasks.types'
+import WidgetBase from './WidgetBase.vue'
+
+const { tm, t } = useI18n()
+const baseScreenStore = useBaseScreenStore()
+const addUpcomingTaskDialogModel = ref(false)
+const { hasActiveGoals } = useTaskView()
+
+const motivation = computed(
+ () => tm('motivationUpcoming')[Math.floor(Math.random() * tm('motivationUpcoming').length)],
+)
+
+const tasksNotCompleted = computed(() => baseScreenStore.tasksUpcoming.filter((task) => !task.complete))
+const tasksCompleted = computed(() => baseScreenStore.tasksUpcoming.filter((task) => task.complete))
+
+const updateTaskStatus = useDebounceFn((data: { status: boolean; taskId: TaskItem['id'] }) => {
+ baseScreenStore.updateTaskStatusNew(data, 'tasksUpcoming')
+}, 500)
+</script>
diff --git a/web-nuxt-ui/src/components/features/main/screen-main/useWidgetScrollContainer.ts b/web-nuxt-ui/src/components/features/main/screen-main/useWidgetScrollContainer.ts
new file mode 100644
index 0000000..8d8da9f
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/main/screen-main/useWidgetScrollContainer.ts
@@ -0,0 +1,5 @@
+export const useWidgetScrollContainer = () => {
+ return {
+ class: 'flex flex-col gap-2 overflow-y-auto overflow-x-hidden h-full md:max-h-[400px] p-2 md:p-2',
+ }
+}
diff --git a/web-nuxt-ui/src/components/features/projects/ArchiveList.vue b/web-nuxt-ui/src/components/features/projects/ArchiveList.vue
new file mode 100644
index 0000000..defc1fe
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/projects/ArchiveList.vue
@@ -0,0 +1,44 @@
+<template>
+ <ProjectListBase
+ v-model:open="open"
+ :title="t('archive.title')"
+ :projects="projects"
+ :is-archive="true"
+ data-testid="archive-list-collapsible"
+ @save="handleSave"
+ @delete="handleDelete"
+ @restore="handleRestore"
+ />
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import ProjectListBase from '@/components/features/projects/parts/ProjectListBase.vue'
+import type { Project } from '@/components/features/projects/types'
+
+defineProps<{
+ projects: Project[]
+}>()
+
+const emit = defineEmits<{
+ save: [project: Project, data: { name: string; description: string }]
+ delete: [project: Project]
+ restore: [project: Project]
+}>()
+
+const { t } = useI18n()
+
+const open = defineModel<boolean>('open', { required: false, default: false })
+
+function handleSave(project: Project, data: { name: string; description: string }) {
+ emit('save', project, data)
+}
+
+function handleDelete(project: Project) {
+ emit('delete', project)
+}
+
+function handleRestore(project: Project) {
+ emit('restore', project)
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/projects/ProjectsList.vue b/web-nuxt-ui/src/components/features/projects/ProjectsList.vue
new file mode 100644
index 0000000..e60a467
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/projects/ProjectsList.vue
@@ -0,0 +1,48 @@
+<template>
+ <ProjectListBase
+ v-model:open="open"
+ :title="t('projects.title')"
+ :projects="projects"
+ @save="handleSave"
+ @delete="handleDelete"
+ @archive="handleArchive"
+ @add="handleAdd"
+ />
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import ProjectListBase from '@/components/features/projects/parts/ProjectListBase.vue'
+import type { Project } from '@/components/features/projects/types'
+
+defineProps<{
+ projects: Project[]
+}>()
+
+const emit = defineEmits<{
+ save: [project: Project, data: { name: string; description: string }]
+ delete: [project: Project]
+ archive: [project: Project]
+ add: [name: string]
+}>()
+
+const { t } = useI18n()
+
+const open = defineModel<boolean>('open', { required: false, default: true })
+
+function handleSave(project: Project, data: { name: string; description: string }) {
+ emit('save', project, data)
+}
+
+function handleDelete(project: Project) {
+ emit('delete', project)
+}
+
+function handleArchive(project: Project) {
+ emit('archive', project)
+}
+
+function handleAdd(name: string) {
+ emit('add', name)
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/projects/ProjectsSidebar.vue b/web-nuxt-ui/src/components/features/projects/ProjectsSidebar.vue
new file mode 100644
index 0000000..a2d8feb
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/projects/ProjectsSidebar.vue
@@ -0,0 +1,73 @@
+<template>
+ <div class="flex flex-col gap-2">
+ <ProjectsList
+ :projects="activeProjects"
+ @save="handleSave"
+ @delete="handleDelete"
+ @archive="handleArchive"
+ @add="handleAdd"
+ />
+ <ArchiveList
+ :projects="archivedProjects"
+ @save="handleSave"
+ @delete="handleDelete"
+ @restore="handleRestore"
+ />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed, onMounted } from 'vue'
+import { storeToRefs } from 'pinia'
+import { useRouter } from 'vue-router'
+import { useGoalsStore } from '@/stores/goals.store'
+import ProjectsList from '@/components/features/projects/ProjectsList.vue'
+import ArchiveList from '@/components/features/projects/ArchiveList.vue'
+import type { Project } from '@/components/features/projects/types'
+import { ALL_TASKS_LIST_ID } from 'taskview-api'
+
+const router = useRouter()
+
+const goalsStore = useGoalsStore()
+const { goals } = storeToRefs(goalsStore)
+
+const activeProjects = computed(() => goals.value.filter(p => p.archive === 0))
+const archivedProjects = computed(() => goals.value.filter(p => p.archive === 1))
+
+onMounted(async () => {
+ await goalsStore.fetchGoals()
+})
+
+async function handleSave(project: Project, data: { name: string; description: string }) {
+ await goalsStore.updateGoal({
+ id: project.id,
+ name: data.name,
+ description: data.description,
+ })
+}
+
+async function handleDelete(project: Project) {
+ await goalsStore.deleteGoal(project.id)
+}
+
+async function handleArchive(project: Project) {
+ await goalsStore.updateGoal({
+ id: project.id,
+ archive: 1,
+ })
+}
+
+async function handleRestore(project: Project) {
+ await goalsStore.updateGoal({
+ id: project.id,
+ archive: 0,
+ })
+}
+
+async function handleAdd(name: string) {
+ const newProject = await goalsStore.addGoal({ name })
+ if (newProject) {
+ router.push({ name: 'user', params: { projectId: newProject.id, listId: ALL_TASKS_LIST_ID } })
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/projects/parts/ProjectAddInput.vue b/web-nuxt-ui/src/components/features/projects/parts/ProjectAddInput.vue
new file mode 100644
index 0000000..4238eb2
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/projects/parts/ProjectAddInput.vue
@@ -0,0 +1,54 @@
+<template>
+ <div class="shadow-sm rounded-lg">
+ <UInput
+ v-model="projectName"
+ :placeholder="t('projects.addPlaceholder')"
+ size="xl"
+ variant="soft"
+ class="w-full"
+ data-testid="project-add-input"
+ :ui="{
+ base: 'bg-tv-ui-bg-elevated',
+ }"
+ @keydown.enter="addProject"
+ >
+ <template #trailing>
+ <UButton
+ v-if="projectName.trim()"
+ icon="i-lucide-corner-down-left"
+ color="primary"
+ variant="ghost"
+ size="xs"
+ :aria-label="t('projects.add')"
+ @click="addProject"
+ />
+ <UIcon
+ v-else
+ name="i-lucide-keyboard"
+ class="size-4 text-dimmed"
+ />
+ </template>
+ </UInput>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { useI18n } from 'vue-i18n'
+
+const emit = defineEmits<{
+ add: [name: string]
+}>()
+
+const { t } = useI18n()
+
+const projectName = ref('')
+
+function addProject() {
+ const name = projectName.value.trim()
+ if (name) {
+ emit('add', name)
+ projectName.value = ''
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/projects/parts/ProjectDeleteDialog.vue b/web-nuxt-ui/src/components/features/projects/parts/ProjectDeleteDialog.vue
new file mode 100644
index 0000000..788ed89
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/projects/parts/ProjectDeleteDialog.vue
@@ -0,0 +1,59 @@
+<template>
+ <UModal v-model:open="isOpen">
+ <template #header>
+ <h3 class="font-semibold">
+ {{ t('projects.deleteConfirm') }}
+ </h3>
+ </template>
+
+ <template #body>
+ <p class="text-muted">
+ {{ t('projects.deleteMessage', { name: project?.name }) }}
+ </p>
+ </template>
+
+ <template #footer>
+ <div class="flex justify-end gap-2 w-full">
+ <UButton
+ :label="t('common.no')"
+ color="neutral"
+ variant="outline"
+ @click="close"
+ />
+ <UButton
+ :label="t('common.yes')"
+ color="error"
+ class="min-w-12"
+ :ui="{base: 'justify-center'}"
+ @click="confirm"
+ />
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import type { Project } from '@/components/features/projects/types'
+
+defineProps<{
+ project: Project | null
+}>()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+const emit = defineEmits<{
+ confirm: []
+}>()
+
+const { t } = useI18n()
+
+function close() {
+ isOpen.value = false
+}
+
+function confirm() {
+ emit('confirm')
+ close()
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/projects/parts/ProjectEditModal.vue b/web-nuxt-ui/src/components/features/projects/parts/ProjectEditModal.vue
new file mode 100644
index 0000000..d406935
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/projects/parts/ProjectEditModal.vue
@@ -0,0 +1,91 @@
+<template>
+ <UModal v-model:open="isOpen">
+ <template #header>
+ <h3 class="font-semibold">
+ {{ t('projects.edit') }}
+ </h3>
+ </template>
+
+ <template #body>
+ <div class="space-y-4">
+ <UFormField :label="t('projects.name')">
+ <UInput
+ v-model="form.name"
+ :placeholder="t('projects.namePlaceholder')"
+ class="w-full"
+ data-testid="project-edit-name"
+ />
+ </UFormField>
+ <UFormField :label="t('projects.description')">
+ <UTextarea
+ v-model="form.description"
+ :placeholder="t('projects.descriptionPlaceholder')"
+ :rows="3"
+ class="w-full"
+ />
+ </UFormField>
+ </div>
+ </template>
+
+ <template #footer>
+ <div class="flex gap-2 w-full justify-end">
+ <UButton
+ :label="t('common.cancel')"
+ color="neutral"
+ variant="outline"
+ @click="close"
+ />
+ <UButton
+ :label="t('common.save')"
+ color="primary"
+ variant="outline"
+ data-testid="project-edit-save"
+ @click="save"
+ />
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { reactive, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { Project } from '@/components/features/projects/types'
+
+const props = defineProps<{
+ project: Project | null
+}>()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+const emit = defineEmits<{
+ save: [data: { name: string; description: string }]
+}>()
+
+const { t } = useI18n()
+
+const form = reactive({
+ name: '',
+ description: '',
+})
+
+watch(
+ () => props.project,
+ (project) => {
+ if (project) {
+ form.name = project.name
+ form.description = project.description || ''
+ }
+ },
+ { immediate: true },
+)
+
+function close() {
+ isOpen.value = false
+}
+
+function save() {
+ emit('save', { name: form.name, description: form.description })
+ close()
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/projects/parts/ProjectListBase.vue b/web-nuxt-ui/src/components/features/projects/parts/ProjectListBase.vue
new file mode 100644
index 0000000..5df065d
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/projects/parts/ProjectListBase.vue
@@ -0,0 +1,255 @@
+<template>
+ <UCollapsible
+ v-model:open="isOpen"
+ v-bind="$attrs"
+ class="flex flex-col gap-2 w-full group"
+ :ui="{
+ content: 'p-0 pl-3',
+ }"
+ >
+ <TvGoalLikeItem variant="taskview">
+ {{ title }}
+
+ <UIcon
+ name="i-lucide-chevron-down"
+ class="group-data-[state=open]:rotate-180 transition-transform duration-200"
+ />
+ </TvGoalLikeItem>
+
+ <template #content>
+ <UPageList class="w-full gap-2 flex flex-col">
+ <ProjectAddInput
+ v-if="!isArchive"
+ @add="handleAdd"
+ />
+ <TvGoalLikeItem
+ v-for="project in projects"
+ :key="project.id"
+ variant="taskview"
+ :to="{ name: 'user', params: { projectId: project.id, listId: '-1401' } }"
+ :active="currentProjectId === project.id"
+ >
+ <div
+ class="flex items-center justify-between w-full"
+ :data-testid="`project-row-${project.name}`"
+ >
+ <span>{{ project.name }}</span>
+ <UButton
+ icon="i-lucide-ellipsis"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ class="z-10 cursor-pointer"
+ data-testid="project-menu-trigger"
+ @click.prevent.stop="openContextMenu($event, project)"
+ />
+ </div>
+ </TvGoalLikeItem>
+ </UPageList>
+ </template>
+ </UCollapsible>
+
+ <TvContextMenu ref="contextMenu">
+ <div class="p-1 flex flex-col gap-1">
+ <!-- Navigation items -->
+ <!-- Kanban -->
+ <UButton
+ v-if="canViewKanban"
+ :label="t('contextMenu.kanban')"
+ icon="i-lucide-kanban"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ :to="{ name: 'kanban', params: { projectId: selectedProject?.id } }"
+ @click="contextMenu?.close()"
+ />
+ <!-- Graph -->
+ <UButton
+ v-if="canViewGraph"
+ :label="t('contextMenu.graph')"
+ icon="i-lucide-git-graph"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ :to="{ name: 'graph', params: { projectId: selectedProject?.id } }"
+ @click="contextMenu?.close()"
+ />
+ <!-- Collaboration -->
+ <UButton
+ v-if="canManageUsers"
+ :label="t('contextMenu.collaboration')"
+ icon="i-lucide-users"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ :to="{ name: 'collaboration', params: { projectId: selectedProject?.id } }"
+ @click="contextMenu?.close()"
+ />
+
+ <USeparator class="my-1" />
+
+ <!-- Edit -->
+ <UButton
+ v-if="canEditGoal"
+ :label="t('contextMenu.edit')"
+ icon="i-lucide-pencil"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ data-testid="context-menu-edit"
+ @click="openEditModal"
+ />
+
+ <!-- Archive/Restore -->
+ <template v-if="canEditGoal">
+ <UButton
+ v-if="!isArchive"
+ :label="t('contextMenu.moveToArchive')"
+ icon="i-lucide-archive"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ data-testid="context-menu-move-to-archive"
+ @click="handleArchive"
+ />
+ <UButton
+ v-else
+ :label="t('contextMenu.restoreFromArchive')"
+ icon="i-lucide-archive-restore"
+ variant="ghost"
+ color="neutral"
+ class="w-full justify-start"
+ data-testid="context-menu-restore-from-archive"
+ @click="handleRestore"
+ />
+ </template>
+
+ <USeparator class="my-1" />
+
+ <!-- Delete -->
+ <UButton
+ v-if="canDeleteGoal"
+ :label="t('contextMenu.delete')"
+ icon="i-lucide-trash-2"
+ variant="ghost"
+ color="error"
+ class="w-full justify-start"
+ data-testid="context-menu-delete"
+ @click="openDeleteDialog"
+ />
+ </div>
+ </TvContextMenu>
+
+ <!-- Edit Modal -->
+ <ProjectEditModal
+ v-model:open="isEditModalOpen"
+ :project="selectedProject"
+ @save="handleSave"
+ />
+
+ <!-- Delete Confirmation Dialog -->
+ <ProjectDeleteDialog
+ v-model:open="isDeleteDialogOpen"
+ :project="selectedProject"
+ @confirm="handleDelete"
+ />
+</template>
+
+<script setup lang="ts">
+import { ref, computed } from 'vue'
+import { useRoute } from 'vue-router'
+import TvContextMenu from '@/components/features/base/TvContextMenu.vue'
+import ProjectEditModal from '@/components/features/projects/parts/ProjectEditModal.vue'
+import ProjectDeleteDialog from '@/components/features/projects/parts/ProjectDeleteDialog.vue'
+import ProjectAddInput from '@/components/features/projects/parts/ProjectAddInput.vue'
+import type { Project } from '@/components/features/projects/types'
+import { useGoalPermissionsFor } from '@/composables/useGoalPermissions'
+import { useI18n } from 'vue-i18n'
+
+const route = useRoute()
+const currentProjectId = computed(() => Number(route.params.projectId) || null)
+
+withDefaults(
+ defineProps<{
+ title: string
+ projects: Project[]
+ isArchive?: boolean
+ }>(),
+ {
+ isArchive: false,
+ },
+)
+
+const emit = defineEmits<{
+ save: [project: Project, data: { name: string; description: string }]
+ delete: [project: Project]
+ archive: [project: Project]
+ restore: [project: Project]
+ add: [name: string]
+}>()
+
+const { t } = useI18n()
+
+const isOpen = defineModel<boolean>('open', { required: false, default: true })
+
+const contextMenu = ref<InstanceType<typeof TvContextMenu> | null>(null)
+
+const selectedProject = ref<Project | null>(null)
+
+const {
+ canViewKanban,
+ canViewGraph,
+ canManageUsers,
+ canEditGoal,
+ canDeleteGoal,
+} = useGoalPermissionsFor(selectedProject)
+
+const isEditModalOpen = ref(false)
+
+const isDeleteDialogOpen = ref(false)
+
+function openContextMenu(event: MouseEvent, project: Project) {
+ selectedProject.value = project
+ contextMenu.value?.openAt(event)
+}
+
+function openEditModal() {
+ contextMenu.value?.close()
+ isEditModalOpen.value = true
+}
+
+function handleSave(data: { name: string; description: string }) {
+ if (selectedProject.value) {
+ emit('save', selectedProject.value, data)
+ }
+}
+
+function handleArchive() {
+ if (selectedProject.value) {
+ emit('archive', selectedProject.value)
+ }
+ contextMenu.value?.close()
+}
+
+function handleRestore() {
+ if (selectedProject.value) {
+ emit('restore', selectedProject.value)
+ }
+ contextMenu.value?.close()
+}
+
+function openDeleteDialog() {
+ contextMenu.value?.close()
+ isDeleteDialogOpen.value = true
+}
+
+function handleDelete() {
+ if (selectedProject.value) {
+ emit('delete', selectedProject.value)
+ }
+}
+
+function handleAdd(name: string) {
+ emit('add', name)
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/projects/types.ts b/web-nuxt-ui/src/components/features/projects/types.ts
new file mode 100644
index 0000000..7f7dc8c
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/projects/types.ts
@@ -0,0 +1,3 @@
+import type { GoalItem } from 'taskview-api'
+
+export type Project = GoalItem
diff --git a/web-nuxt-ui/src/components/features/tasks/TaskDetailPanel.vue b/web-nuxt-ui/src/components/features/tasks/TaskDetailPanel.vue
new file mode 100644
index 0000000..b836383
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/TaskDetailPanel.vue
@@ -0,0 +1,184 @@
+<template>
+ <div class="h-full relative flex flex-col gap-4 @container">
+ <template v-if="task">
+ <!-- Title & Checkbox -->
+ <div class="flex items-start gap-3 shadow-sm rounded-lg dark:bg-tv-ui-bg-elevated">
+ <div class="flex-1">
+ <UTextarea
+ :value="task.description"
+ type="text"
+ variant="ghost"
+ :autoresize="true"
+ class="w-full"
+ :class="{ 'text-muted': task.complete }"
+ @blur="updateTaskTitle($event)"
+ >
+ <template #leading>
+ <div class="h-full">
+ <UCheckbox
+ :disabled="!canEditTaskStatus"
+ :model-value="!!task.complete"
+ class="mt-0.5"
+ @update:model-value="toggleComplete"
+ />
+ </div>
+ </template>
+ </UTextarea>
+ </div>
+ </div>
+
+ <!-- Subtasks -->
+ <TaskSubtasks
+ :parent-task-id="task.id"
+ :goal-id="task.goalId"
+ :subtasks="task.subtasks"
+ class="pl-10"
+ />
+
+ <!-- Note -->
+ <NoteEditor
+ :key="task.id"
+ :content="task.note || ''"
+ :placeholder="t('tasks.addNote')"
+ @save="updateNote"
+ />
+
+ <div class="flex flex-col-reverse @lg:flex-row gap-4">
+ <!-- Status -->
+ <TaskKanbanStatusSelect
+ :task-id="task.id"
+ :current-status-id="task.statusId"
+ class="flex-1 w-full @lg:max-w-1/2"
+ />
+
+ <!-- Priority -->
+ <TaskPrioritySelect
+ :model-value="task.priorityId"
+ class="flex-1 w-full @lg:max-w-1/2"
+ @update:model-value="updatePriority"
+ />
+ </div>
+
+ <!-- Assignees -->
+ <div class="flex flex-col @lg:flex-row gap-4">
+ <TaskAssigneeSelect
+ :task-id="task.id"
+ :assigned-user-ids="task.assignedUsers"
+ class="flex-1 w-full @lg:max-w-1/2"
+ />
+
+ <!-- List -->
+ <TaskListSelect
+ :task-id="task.id"
+ :current-list-id="task.goalListId"
+ class="flex-1 w-full @lg:max-w-1/2"
+ />
+ </div>
+
+ <div class="flex flex-col @lg:flex-row gap-4">
+ <!-- Tags -->
+ <TaskTagsManager
+ :task-id="task.id"
+ :task-tag-ids="task.tags"
+ :goal-id="projectId"
+ class="flex-1 w-full @lg:max-w-1/2"
+ />
+ <!-- Deadline -->
+ <TaskDeadline
+ :task="task"
+ class="flex-1 w-full @lg:max-w-1/2 h-fit"
+ />
+ </div>
+
+ <!-- Amount -->
+ <TaskAmountEditor
+ :task-id="task.id"
+ :amount="task.amount"
+ :transaction-type="task.transactionType"
+ class="flex-1"
+ />
+
+ <!-- History -->
+ <TaskHistory
+ :task-id="task.id"
+ class="flex-1"
+ />
+ <br />
+ </template>
+
+ <template v-else>
+ <div class="flex flex-col items-center justify-center h-full text-muted">
+ <UIcon
+ name="i-lucide-file-question"
+ class="size-12 mb-4"
+ />
+ <p>{{ t('tasks.notFound') }}</p>
+ </div>
+ </template>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useTasksStore } from '@/stores/tasks.store'
+import NoteEditor from '@/components/features/tasks/parts/NoteEditor.vue'
+import TaskPrioritySelect from '@/components/features/tasks/parts/TaskPrioritySelect.vue'
+import TaskTagsManager from '@/components/features/tasks/parts/tags/TaskTagsManager.vue'
+import TaskAssigneeSelect from '@/components/features/tasks/parts/TaskAssigneeSelect.vue'
+import TaskListSelect from '@/components/features/tasks/parts/TaskListSelect.vue'
+import TaskKanbanStatusSelect from '@/components/features/tasks/parts/TaskKanbanStatusSelect.vue'
+import TaskAmountEditor from '@/components/features/tasks/parts/TaskAmountEditor.vue'
+import TaskHistory from '@/components/features/tasks/parts/TaskHistory.vue'
+import TaskDeadline from '@/components/features/tasks/parts/TaskDeadline.vue'
+import TaskSubtasks from '@/components/features/tasks/parts/TaskSubtasks.vue'
+import type { TaskBase } from 'taskview-api'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const { t } = useI18n()
+const tasksStore = useTasksStore()
+const {
+ canEditTaskStatus,
+} = useGoalPermissions()
+const task = computed(() => tasksStore.selectedTask ?? null)
+const projectId = computed(() => task.value?.goalId ?? 0)
+
+async function toggleComplete() {
+ if (!task.value) return
+ await tasksStore.updateTaskCompleteStatus({
+ id: task.value.id,
+ complete: !task.value.complete,
+ })
+}
+
+async function updateTaskTitle(event: Event) {
+ if (!task.value) return
+ const input = event.target as HTMLInputElement
+ if (input.value !== task.value.description) {
+ await tasksStore.updateTaskDescription({
+ id: task.value.id,
+ description: input.value,
+ })
+ }
+}
+
+async function updateNote(note: string) {
+ if (!task.value) return
+ if (note !== task.value.note) {
+ await tasksStore.updateTaskNote({
+ id: task.value.id,
+ note,
+ })
+ }
+}
+
+async function updatePriority(priorityId: TaskBase['priorityId']) {
+ if (!task.value) return
+ await tasksStore.udpatePriority({
+ id: task.value.id,
+ priorityId,
+ })
+}
+
+
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/TasksContainer.vue b/web-nuxt-ui/src/components/features/tasks/TasksContainer.vue
new file mode 100644
index 0000000..8b862bd
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/TasksContainer.vue
@@ -0,0 +1,79 @@
+<template>
+ <!-- Tasks Panel: visible on desktop always, on mobile only when list selected -->
+ <UDashboardPanel
+ id="tasks"
+ :class="[
+ 'lg:flex',
+ hasListSelected ? 'flex' : 'hidden lg:flex'
+ ]"
+ >
+ <template #header>
+ <UDashboardNavbar
+
+ :ui="{ right: 'flex-1', root: 'px-2!' }"
+ >
+ <template #leading>
+ <!-- Back button on mobile -->
+ <UButton
+ icon="i-lucide-arrow-left"
+ color="neutral"
+ variant="ghost"
+ size="sm"
+ class="lg:hidden"
+ @click="goBackToLists"
+ />
+ </template>
+ <template #right>
+ <TaskSearchAdd
+ v-if="hasListSelected && canAddTask"
+ @add="handleAddTask"
+ />
+ </template>
+ </UDashboardNavbar>
+ </template>
+
+ <template #body>
+ <TasksPanel />
+ </template>
+ </UDashboardPanel>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import { useRoute, useRouter } from 'vue-router'
+import TasksPanel from './TasksPanel.vue'
+import TaskSearchAdd from '@/components/features/tasks/parts/TaskSearchAdd.vue'
+import { useTasksStore } from '@/stores/tasks.store'
+import { ALL_TASKS_LIST_ID } from 'taskview-api'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const route = useRoute()
+const router = useRouter()
+const tasksStore = useTasksStore()
+const {
+ canAddTask,
+} = useGoalPermissions()
+
+const hasListSelected = computed(() => !!route.params.listId)
+
+async function goBackToLists() {
+ if (route.params.projectId) {
+ await router.push({ name:'user', params: { projectId: route.params.projectId } })
+ } else {
+ await router.push({ name:'user' })
+ }
+}
+
+async function handleAddTask(description: string) {
+ const listId = route.params.listId
+ const projectId = route.params.projectId
+
+ if (!projectId) return
+
+ await tasksStore.addTask({
+ description,
+ goalId: Number(projectId),
+ goalListId: listId ? Number(listId) : ALL_TASKS_LIST_ID,
+ })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/TasksPanel.vue b/web-nuxt-ui/src/components/features/tasks/TasksPanel.vue
new file mode 100644
index 0000000..cb6dda1
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/TasksPanel.vue
@@ -0,0 +1,167 @@
+<template>
+ <div class="relative h-full flex flex-col">
+ <template v-if="!route.params.listId">
+ <div class="flex flex-col items-center justify-center h-64 text-muted">
+ <UIcon
+ name="i-lucide-list-todo"
+ class="size-12 mb-4"
+ />
+ <p>{{ t('lists.selectListToViewTasks') }}</p>
+ </div>
+ </template>
+
+ <template v-else-if="loading && tasks.length === 0">
+ <div class="flex flex-col items-center justify-center h-64 text-muted">
+ <UIcon
+ name="i-lucide-loader-2"
+ class="size-12 mb-4 animate-spin"
+ />
+ <p>{{ t('common.loading') }}</p>
+ </div>
+ </template>
+
+ <template v-else>
+ <!-- Toolbar -->
+ <TasksToolbar
+ v-if="canViewTasks"
+ class="shrink-0 mb-2"
+ />
+
+ <!-- Empty state -->
+ <div
+ v-if="tasks.length === 0"
+ class="flex flex-col items-center justify-center h-64 text-muted"
+ >
+ <UIcon
+ name="i-lucide-clipboard-list"
+ class="size-12 mb-4"
+ />
+ <p>{{ t('tasks.noTasks') }}</p>
+ </div>
+
+ <!-- Tasks list -->
+ <UScrollArea
+ v-else
+ ref="scrollAreaRef"
+ class="flex-1 min-h-0 lg:pb-0"
+ >
+ <div
+ v-if="canViewTasks"
+ class="space-y-2 p-1"
+ >
+ <!-- <TasksToolbar class="shrink-0 sticky top-0 z-10" /> -->
+ <TaskItem
+ v-for="task in tasks"
+ :key="task.id"
+ :task="task"
+ @toggle="toggleTask"
+ />
+ </div>
+ </UScrollArea>
+
+ <UProgress
+ v-if="loading"
+ indeterminate
+ size="xs"
+ class="absolute bottom-0 inset-x-0 z-10"
+ :ui="{ base: 'bg-default' }"
+ />
+ </template>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, watch, useTemplateRef, nextTick } from 'vue'
+import { storeToRefs } from 'pinia'
+import { useRoute } from 'vue-router'
+import { useI18n } from 'vue-i18n'
+import { useInfiniteScroll } from '@vueuse/core'
+import { useTasksStore } from '@/stores/tasks.store'
+import { ALL_TASKS_LIST_ID, type Task } from 'taskview-api'
+import TaskItem from '@/components/features/tasks/parts/TaskItem.vue'
+import TasksToolbar from '@/components/features/tasks/parts/TasksToolbar.vue'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const { t } = useI18n()
+const route = useRoute()
+const { canViewTasks } = useGoalPermissions()
+const tasksStore = useTasksStore()
+const { tasks, loading, fetchRules } = storeToRefs(tasksStore)
+
+const scrollAreaRef = useTemplateRef('scrollAreaRef')
+
+const prevProjectId = ref<number | null>(null)
+const prevListId = ref<number | null>(null)
+
+watch(
+ () => [route.params.projectId, route.params.listId] as const,
+ async ([projectId, listId]) => {
+ if (!projectId || !listId) return
+
+ const numProjectId = Number(projectId)
+ const numListId = Number(listId)
+
+ if (numProjectId === prevProjectId.value && numListId === prevListId.value) return
+
+ prevProjectId.value = numProjectId
+ prevListId.value = numListId
+
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ goalId: numProjectId,
+ currentListId: numListId,
+ currentPage: 0,
+ endOfTasks: false,
+ })
+ await tasksStore.fetchTasks()
+ },
+ { immediate: true },
+)
+
+watch(
+ scrollAreaRef,
+ async (scrollArea) => {
+ if (scrollArea) {
+ await nextTick()
+ useInfiniteScroll(
+ scrollArea.$el,
+ loadMoreTasks,
+ {
+ distance: 200,
+ canLoadMore: () => !loading.value && !fetchRules.value.endOfTasks,
+ },
+ )
+ }
+ },
+)
+
+async function loadMoreTasks() {
+ if (!loading.value && !fetchRules.value.endOfTasks) {
+ await tasksStore.fetchTasks()
+ }
+}
+
+async function toggleTask(task: Task) {
+ await tasksStore.updateTaskCompleteStatus({
+ id: task.id,
+ complete: !task.complete,
+ })
+}
+
+async function addTask(description: string) {
+ const listId = route.params.listId
+ const projectId = route.params.projectId
+
+ if (!projectId) return
+
+ await tasksStore.addTask({
+ description,
+ goalId: Number(projectId),
+ goalListId: listId ? Number(listId) : ALL_TASKS_LIST_ID,
+ })
+}
+
+defineExpose({
+ addTask,
+})
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/TvTaskDetailOverlay.vue b/web-nuxt-ui/src/components/features/tasks/TvTaskDetailOverlay.vue
new file mode 100644
index 0000000..05238b7
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/TvTaskDetailOverlay.vue
@@ -0,0 +1,146 @@
+<template>
+ <template v-if="canViewTaskDetails">
+ <!-- Task Detail Slideover -->
+ <USlideover
+ v-if="displayMode === 'slideover'"
+ v-model:open="isOpen"
+ >
+ <template #header>
+ <div class="flex items-center justify-between w-full">
+ <UButton
+ icon="i-lucide-arrow-left"
+ color="neutral"
+ variant="ghost"
+ size="sm"
+ @click="closeTask"
+ />
+ <h3 class="font-semibold">
+ {{ t('tasks.details') }}
+ </h3>
+ </div>
+ </template>
+
+ <template #body>
+ <TaskDetailPanel />
+ </template>
+ </USlideover>
+
+ <!-- Task Detail Modal -->
+ <UModal
+ v-else
+ v-model:open="isOpen"
+ :fullscreen="isMobile"
+ :ui="{
+ overlay: 'sm:items-center sm:justify-center ',
+ content: 'sm:max-w-[1100px] sm:max-h-[80vh] sm:rounded-lg sm:m-auto w-full',
+ body: 'p-4!',
+ footer: 'p-4!',
+ }"
+ >
+ <template #header>
+ <div class="flex items-center justify-between w-full">
+ <h3 class="font-semibold">
+ {{ t('tasks.details') }}
+ </h3>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ size="sm"
+ @click="closeTask"
+ />
+ </div>
+ </template>
+
+ <template #body>
+ <TaskDetailPanel />
+ </template>
+ <template #footer>
+ <div class="flex justify-end gap-2 w-full">
+ <UButton
+ :label="t('common.delete')"
+ color="error"
+ variant="outline"
+ @click="openDeleteDialog"
+ />
+ <UButton
+ :label="t('common.close')"
+ color="neutral"
+ variant="outline"
+ @click="closeTask"
+ />
+ </div>
+ </template>
+ </UModal>
+
+ <!-- Delete Confirmation Dialog -->
+ <TaskDeleteDialog
+ v-model:open="isDeleteDialogOpen"
+ :task="task"
+ @confirm="handleDelete"
+ />
+ </template>
+</template>
+
+<script setup lang="ts">
+import { computed, ref } from 'vue'
+import { storeToRefs } from 'pinia'
+import { useI18n } from 'vue-i18n'
+import TaskDetailPanel from './TaskDetailPanel.vue'
+import TaskDeleteDialog from '@/components/features/tasks/parts/TaskDeleteDialog.vue'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useGoalsStore } from '@/stores/goals.store'
+import { useAppStore } from '@/stores/app.store'
+import { provideGoalPermissions } from '@/composables/useGoalPermissions'
+import { provideProjectContext } from '@/composables/useProjectContext'
+import { AllGoalPermissions } from '@/types/goals.types'
+import { useTaskView } from '@/composables/useTaskView'
+import { useTaskDetailPanel } from '@/composables/useTaskDetailPanel'
+import { useSelectedTaskSync } from '@/composables/useSelectedTaskSync'
+
+const { t } = useI18n()
+const tasksStore = useTasksStore()
+const goalsStore = useGoalsStore()
+const appStore = useAppStore()
+const { isMobile } = useTaskView()
+const { isOpen, closeTask } = useTaskDetailPanel()
+const { broadcastRemoval } = useSelectedTaskSync()
+
+const task = computed(() => tasksStore.selectedTask ?? null)
+
+// Provide goal context based on the task's project so all child components
+// get permissions from the task's goal, not the sidebar selection
+const taskGoal = computed(() => {
+ const goalId = task.value?.goalId
+ return goalId ? goalsStore.goalMap.get(goalId) ?? null : null
+})
+provideGoalPermissions(taskGoal)
+
+// Provide project-scoped data (tags, collaborators, statuses) for child components
+// without overwriting global stores
+const taskGoalId = computed(() => task.value?.goalId ?? -1)
+provideProjectContext(taskGoalId)
+
+// Compute canViewTaskDetails from the task's goal directly,
+// since provide doesn't affect inject in the same component
+const canViewTaskDetails = computed(() =>
+ !!taskGoal.value?.permissions[AllGoalPermissions.TASK_CAN_WATCH_DETAILS],
+)
+
+const isDeleteDialogOpen = ref(false)
+const { taskDetailDisplayMode: displayMode } = storeToRefs(appStore)
+
+function openDeleteDialog() {
+ isDeleteDialogOpen.value = true
+}
+
+async function handleDelete() {
+ if (!task.value) return
+ const taskId = task.value.id
+ const success = await tasksStore.deleteTask(taskId)
+ if (success) {
+ broadcastRemoval(taskId)
+ closeTask()
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/NoteEditor.vue b/web-nuxt-ui/src/components/features/tasks/parts/NoteEditor.vue
new file mode 100644
index 0000000..9906b9f
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/NoteEditor.vue
@@ -0,0 +1,233 @@
+<template>
+ <div class="note-editor border border-default rounded-lg dark:bg-tv-ui-bg-elevated!">
+ <UEditor
+ v-if="canViewTaskNote"
+ #default="{ editor }"
+ v-model="initialContent"
+ :placeholder="placeholder"
+ :extensions="extensions"
+ :editable="canEditTaskNote"
+ class="min-h-32"
+ @update:model-value="handleUpdate"
+ >
+ <UEditorToolbar
+ :editor="editor"
+ :items="toolbarItems"
+ class="border-b border-default overflow-x-auto"
+ />
+ <!-- <UEditorDragHandle :editor="editor" /> -->
+ </UEditor>
+ </div>
+</template>
+
+<script setup lang="ts">
+import type { EditorToolbarItem } from '@nuxt/ui'
+import { useDebounceFn } from '@vueuse/core'
+import TextAlign from '@tiptap/extension-text-align'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const {
+ canEditTaskNote,
+ canViewTaskNote,
+} = useGoalPermissions()
+
+const extensions = [
+ TextAlign.configure({
+ types: ['heading', 'paragraph'],
+ }),
+]
+
+const props = defineProps<{
+ content: string
+ placeholder?: string
+ debounce?: number
+}>()
+
+const emit = defineEmits<{
+ save: [value: string]
+}>()
+
+// Initial content - set once when component mounts
+const initialContent = props.content
+
+// Debounced save - triggers after user stops typing
+const debouncedSave = useDebounceFn((value: string) => {
+ emit('save', value)
+}, props.debounce ?? 500)
+
+function handleUpdate(value: string) {
+ debouncedSave(value)
+}
+
+const toolbarItemUi = {
+ leadingIcon: 'size-5',
+}
+
+const toolbarItems: EditorToolbarItem[][] = [
+ // History controls
+ [{
+ kind: 'undo',
+ icon: 'i-lucide-undo',
+ tooltip: { text: 'Undo' },
+ ui: toolbarItemUi,
+ }, {
+ kind: 'redo',
+ icon: 'i-lucide-redo',
+ tooltip: { text: 'Redo' },
+ ui: toolbarItemUi,
+ }],
+ // Block types
+ [{
+ icon: 'i-lucide-heading',
+ tooltip: { text: 'Headings' },
+ content: {
+ align: 'start',
+ },
+ items: [{
+ kind: 'heading',
+ level: 1,
+ icon: 'i-lucide-heading-1',
+ label: 'Heading 1',
+ ui: toolbarItemUi,
+ }, {
+ kind: 'heading',
+ level: 2,
+ icon: 'i-lucide-heading-2',
+ label: 'Heading 2',
+ ui: toolbarItemUi,
+ }, {
+ kind: 'heading',
+ level: 3,
+ icon: 'i-lucide-heading-3',
+ label: 'Heading 3',
+ ui: toolbarItemUi,
+ }, {
+ kind: 'heading',
+ level: 4,
+ icon: 'i-lucide-heading-4',
+ label: 'Heading 4',
+ ui: toolbarItemUi,
+ }],
+ }, {
+ icon: 'i-lucide-list',
+ tooltip: { text: 'Lists' },
+ content: {
+ align: 'start',
+ },
+ items: [{
+ kind: 'bulletList',
+ icon: 'i-lucide-list',
+ label: 'Bullet List',
+ ui: toolbarItemUi,
+ }, {
+ kind: 'orderedList',
+ icon: 'i-lucide-list-ordered',
+ label: 'Ordered List',
+ ui: toolbarItemUi,
+ }],
+ }, {
+ kind: 'blockquote',
+ icon: 'i-lucide-text-quote',
+ tooltip: { text: 'Blockquote' },
+ ui: toolbarItemUi,
+ }, {
+ kind: 'codeBlock',
+ icon: 'i-lucide-square-code',
+ tooltip: { text: 'Code Block' },
+ ui: toolbarItemUi,
+ }, {
+ kind: 'horizontalRule',
+ icon: 'i-lucide-separator-horizontal',
+ tooltip: { text: 'Horizontal Rule' },
+ ui: toolbarItemUi,
+ }],
+ // Text formatting
+ [{
+ kind: 'mark',
+ mark: 'bold',
+ icon: 'i-lucide-bold',
+ tooltip: { text: 'Bold' },
+ ui: toolbarItemUi,
+ }, {
+ kind: 'mark',
+ mark: 'italic',
+ icon: 'i-lucide-italic',
+ tooltip: { text: 'Italic' },
+ ui: toolbarItemUi,
+ }, {
+ kind: 'mark',
+ mark: 'underline',
+ icon: 'i-lucide-underline',
+ tooltip: { text: 'Underline' },
+ ui: toolbarItemUi,
+ }, {
+ kind: 'mark',
+ mark: 'strike',
+ icon: 'i-lucide-strikethrough',
+ tooltip: { text: 'Strikethrough' },
+ ui: toolbarItemUi,
+ }, {
+ kind: 'mark',
+ mark: 'code',
+ icon: 'i-lucide-code',
+ tooltip: { text: 'Code' },
+ ui: toolbarItemUi,
+ }],
+ // Link
+ [{
+ kind: 'link',
+ icon: 'i-lucide-link',
+ tooltip: { text: 'Link' },
+ ui: toolbarItemUi,
+ }],
+ // Text alignment
+ [{
+ icon: 'i-lucide-align-justify',
+ tooltip: { text: 'Text Align' },
+ content: {
+ align: 'end',
+ },
+ items: [{
+ kind: 'textAlign',
+ align: 'left',
+ icon: 'i-lucide-align-left',
+ label: 'Align Left',
+ ui: toolbarItemUi,
+ }, {
+ kind: 'textAlign',
+ align: 'center',
+ icon: 'i-lucide-align-center',
+ label: 'Align Center',
+ ui: toolbarItemUi,
+ }, {
+ kind: 'textAlign',
+ align: 'right',
+ icon: 'i-lucide-align-right',
+ label: 'Align Right',
+ ui: toolbarItemUi,
+ }, {
+ kind: 'textAlign',
+ align: 'justify',
+ icon: 'i-lucide-align-justify',
+ label: 'Align Justify',
+ ui: toolbarItemUi,
+ }],
+ }],
+]
+</script>
+
+<style scoped>
+.note-editor :deep(.tiptap) {
+ padding: 0.75rem;
+ padding-left: 2rem;
+ outline: none;
+}
+
+.note-editor :deep(.tiptap p.is-editor-empty:first-child::before) {
+ color: var(--color-text-muted);
+ content: attr(data-placeholder);
+ float: left;
+ height: 0;
+ pointer-events: none;
+}
+</style>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskAmountEditor.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskAmountEditor.vue
new file mode 100644
index 0000000..a16708a
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskAmountEditor.vue
@@ -0,0 +1,151 @@
+<template>
+ <div class="w-full h-fit shadow-sm rounded-lg p-2 dark:bg-tv-ui-bg-elevated">
+ <!-- <label class="text-sm text-muted mb-2 block">{{ t('tasks.amount') }}</label> -->
+
+ <div class="flex gap-2">
+ <div class="flex flex-col lg:flex-row gap-2 flex-1">
+ <!-- Amount Input -->
+ <UInput
+ :disabled="!canDeleteTask"
+ :model-value="localAmount"
+ type="text"
+ inputmode="decimal"
+ size="xl"
+ :placeholder="t('tasks.enterAmount')"
+ class="flex-1"
+ :variant="isDark ? 'subtle' : 'soft'"
+ @update:model-value="handleAmountInput"
+ >
+ <template #leading>
+ <UIcon
+ name="i-lucide-coins"
+ class="size-4 text-muted"
+ />
+ </template>
+ </UInput>
+
+ <!-- Transaction Type Tabs -->
+ <UTabs
+ :key="tabResetKey"
+ :model-value="selectedTabValue"
+ :items="tabItems"
+ :content="false"
+ variant="pill"
+ size="md"
+ color="success"
+ :class="{'pointer-events-none': !canDeleteTask}"
+ class="shrink-0 shadow-sm rounded-lg border border-accented flex-1"
+ @update:model-value="handleTabChange"
+ />
+ </div>
+
+
+ <!-- Clear Button -->
+ <UButton
+ v-if="hasValue"
+ :disabled="!canDeleteTask"
+ icon="i-lucide-x"
+ color="info"
+ variant="soft"
+ size="sm"
+ @click="clearAmount"
+ />
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, computed, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useDebounceFn } from '@vueuse/core'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useColor } from '@/composables/useColotMode'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const props = defineProps<{
+ taskId: number
+ amount: number | string | null
+ transactionType: 1 | 0 | null
+}>()
+
+const { t } = useI18n()
+const tasksStore = useTasksStore()
+const { isDark } = useColor()
+const { canDeleteTask } = useGoalPermissions()
+
+const localAmount = ref<string>(props.amount?.toString() ?? '')
+const tabResetKey = ref(0)
+
+// Watch for external changes, skip if numeric value is the same
+watch(() => props.amount, (newAmount) => {
+ const incoming = newAmount === null ? null : parseFloat(newAmount.toString())
+ const current = localAmount.value === '' ? null : parseFloat(localAmount.value)
+
+ if (incoming !== current) {
+ localAmount.value = newAmount?.toString() ?? ''
+ }
+})
+
+const tabItems = computed(() => [
+ {
+ label: t('tasks.income'),
+ icon: 'i-lucide-trending-up',
+ value: 'income',
+ },
+ {
+ label: t('tasks.expense'),
+ icon: 'i-lucide-trending-down',
+ value: 'expense',
+ },
+])
+
+const selectedTabValue = computed(() => {
+ if (props.transactionType === 1) return 'income'
+ if (props.transactionType === 0) return 'expense'
+ return undefined
+})
+
+async function handleTabChange(value: string | number) {
+ const newType = value === 'income' ? 1 : 0
+ if (newType === props.transactionType) return
+
+ await tasksStore.updateTaskTransactionType({
+ id: props.taskId,
+ transactionType: newType as 1 | 0,
+ })
+}
+
+const hasValue = computed(() =>
+ localAmount.value !== '' || props.transactionType !== null,
+)
+
+const debouncedUpdateAmount = useDebounceFn(async (amount: string | null) => {
+ await tasksStore.updateTaskAmount({
+ id: props.taskId,
+ amount,
+ })
+}, 200)
+
+function handleAmountInput(value: string | number) {
+ const raw = value.toString().replace(',', '.')
+ const sanitized = raw.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1')
+ localAmount.value = sanitized
+
+ const amount = sanitized === '' ? null : sanitized
+ debouncedUpdateAmount(amount)
+}
+
+async function clearAmount() {
+ localAmount.value = ''
+ await tasksStore.updateTaskAmount({
+ id: props.taskId,
+ amount: null,
+ })
+ await tasksStore.updateTaskTransactionType({
+ id: props.taskId,
+ transactionType: null,
+ })
+ tabResetKey.value++
+}
+</script>
+
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskAssigneeSelect.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskAssigneeSelect.vue
new file mode 100644
index 0000000..19f074a
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskAssigneeSelect.vue
@@ -0,0 +1,118 @@
+<template>
+ <div
+ v-if="canViewAssignedUsersToTask"
+ class="h-fit dark:bg-tv-ui-bg-elevated shadow-sm rounded-lg p-2"
+ >
+ <!-- Badge mode (< 10 users) -->
+ <div
+ v-if="users.length < 10"
+ class="flex flex-wrap gap-2"
+ >
+ <UBadge
+ v-for="user in users"
+ :key="user.id"
+ :label="getUserDisplayName(user)"
+ :variant="isUserAssigned(user.id) ? (isDark ? 'subtle' : 'solid') : (isDark ? 'subtle' : 'outline')"
+ :color="isUserAssigned(user.id) ? 'primary' : 'neutral'"
+ :ui="{ leadingIcon: 'size-4' }"
+ icon="lucide:at-sign"
+ class="cursor-pointer select-none truncate"
+ size="xl"
+ @click="toggleAssignee(user.id)"
+ />
+ <span
+ v-if="users.length === 0"
+ class="text-sm text-muted"
+ >
+ {{ t('tasks.noUsersAvailable') }}
+ </span>
+ </div>
+
+ <!-- Dropdown mode (>= 10 users) -->
+ <USelectMenu
+ v-else
+ v-model="selectedUserIds"
+ :disabled="!canAssignUsersToTask"
+ :items="userItems"
+ :placeholder="t('tasks.selectAssignees')"
+ :searchable="true"
+ :search-placeholder="t('tasks.searchUsers')"
+ :ui="{
+ base:'w-full'
+ }"
+ multiple
+ value-key="value"
+ variant="soft"
+ @update:model-value="handleSelectionChange"
+ />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, computed, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { CollaborationResponseFetchAllUsers } from 'taskview-api'
+import { useCollaborationStore } from '@/stores/collaboration.store'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useColor } from '@/composables/useColotMode'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+import { useProjectContext } from '@/composables/useProjectContext'
+
+const props = defineProps<{
+ taskId: number
+ assignedUserIds: number[]
+}>()
+
+const { t } = useI18n()
+const collaborationStore = useCollaborationStore()
+const tasksStore = useTasksStore()
+const { isDark } = useColor()
+const selectedUserIds = ref<number[]>([...props.assignedUserIds])
+const { canViewAssignedUsersToTask, canAssignUsersToTask } = useGoalPermissions()
+
+const projectContext = useProjectContext()
+const users = computed(() =>
+ projectContext ? projectContext.users.value : collaborationStore.users,
+)
+
+const userItems = computed(() =>
+ users.value.map(user => ({
+ label: getUserDisplayName(user),
+ value: user.id,
+ })),
+)
+
+watch(() => props.assignedUserIds, (newIds) => {
+ selectedUserIds.value = [...newIds]
+}, { deep: true })
+
+function getUserDisplayName(user: CollaborationResponseFetchAllUsers): string {
+ return user.email
+}
+
+function isUserAssigned(userId: number): boolean {
+ return props.assignedUserIds.includes(userId)
+}
+
+async function toggleAssignee(userId: number) {
+ if (!canAssignUsersToTask.value) return
+ const currentAssignees = [...props.assignedUserIds]
+ const isCurrentlyAssigned = currentAssignees.includes(userId)
+
+ const newAssignees = isCurrentlyAssigned
+ ? currentAssignees.filter(id => id !== userId)
+ : [...currentAssignees, userId]
+
+ await tasksStore.updateTaskAssignee({
+ taskId: props.taskId,
+ userIds: newAssignees,
+ })
+}
+
+async function handleSelectionChange(newSelection: number[]) {
+ await tasksStore.updateTaskAssignee({
+ taskId: props.taskId,
+ userIds: newSelection,
+ })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskDeadline.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskDeadline.vue
new file mode 100644
index 0000000..4787097
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskDeadline.vue
@@ -0,0 +1,411 @@
+<template>
+ <div class="space-y-3 shadow-sm rounded-lg p-2 dark:bg-tv-ui-bg-elevated">
+ <!-- First row: Start and End date buttons -->
+ <div class="flex gap-2">
+ <!-- Start Date -->
+ <UPopover>
+ <UButton
+ :disabled="!canEditTaskDeadline"
+ icon="i-lucide-calendar"
+ :label="formattedStartDate"
+ color="neutral"
+ :variant="isDark ? 'subtle' : 'outline'"
+ class="flex-1 justify-start"
+ :loading="loadingStart"
+ size="xl"
+ :ui="activatorStyle"
+ />
+
+ <template #content>
+ <div class="p-2 space-y-2 flex flex-col gap-2">
+ <UCalendar
+ v-model="startDateModel"
+ :placeholder="startCalendarDefaultValue"
+ :max-value="endDateModel"
+ />
+ <UCheckbox
+ v-model="showStartTime"
+ size="md"
+ :ui="{root:'items-center'}"
+ :label="t('deadline.selectTime')"
+ />
+ <UInputTime
+ v-if="showStartTime"
+ v-model="startTimeModel"
+ hour-format="24"
+ />
+ <UButton
+ v-if="hasStartDate"
+ icon="i-lucide-x"
+ :label="t('common.delete')"
+ class="self-end"
+ color="error"
+ variant="outline"
+ size="sm"
+ :loading="loadingStart"
+ @click="clearStartDate"
+ />
+ </div>
+ </template>
+ </UPopover>
+
+ <!-- End Date -->
+ <UPopover>
+ <UButton
+ :disabled="!canEditTaskDeadline"
+ icon="i-lucide-calendar-check"
+ :label="formattedEndDate"
+ color="neutral"
+ :variant="isDark ? 'subtle' : 'outline'"
+ class="flex-1 justify-start"
+ :loading="loadingEnd"
+ size="xl"
+ :ui="activatorStyle"
+ />
+
+ <template #content>
+ <div class="p-2 space-y-2 flex flex-col gap-2">
+ <UCalendar
+ v-model="endDateModel"
+ :placeholder="endCalendarDefaultValue"
+ :min-value="startDateModel"
+ />
+ <UCheckbox
+ v-model="showEndTime"
+ size="md"
+ :ui="{root:'items-center'}"
+ :label="t('deadline.selectTime')"
+ />
+ <UInputTime
+ v-if="showEndTime"
+ v-model="endTimeModel"
+ hour-format="24"
+ />
+ <UButton
+ v-if="hasEndDate"
+ class="self-end"
+ icon="i-lucide-x"
+ :label="t('common.delete')"
+ color="error"
+ variant="outline"
+ size="sm"
+ :loading="loadingEnd"
+ @click="clearEndDate"
+ />
+ </div>
+ </template>
+ </UPopover>
+ </div>
+
+ <!-- Second row: Quick date buttons + reset -->
+ <div class="flex gap-2">
+ <UButton
+ :disabled="!canEditTaskDeadline"
+ :label="t('deadline.today')"
+ color="neutral"
+ :variant="isDark ? 'subtle' : 'soft'"
+ size="md"
+ :loading="loadingQuick"
+ @click="setQuickDate('today')"
+ />
+ <UButton
+ :disabled="!canEditTaskDeadline"
+ :label="t('deadline.tomorrow')"
+ color="neutral"
+ :variant="isDark ? 'subtle' : 'soft'"
+ size="md"
+ :loading="loadingQuick"
+ @click="setQuickDate('tomorrow')"
+ />
+ <UButton
+ :disabled="!canEditTaskDeadline"
+ :label="t('deadline.yesterday')"
+ color="neutral"
+ :variant="isDark ? 'subtle' : 'soft'"
+ size="md"
+ :loading="loadingQuick"
+ @click="setQuickDate('yesterday')"
+ />
+ <UButton
+ v-if="hasStartDate || hasEndDate"
+ :disabled="!canEditTaskDeadline"
+ icon="i-lucide-x"
+ color="error"
+ variant="ghost"
+ size="md"
+ class="ml-auto"
+ :loading="loadingQuick"
+ @click="clearAllDates"
+ />
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, shallowRef, computed, watch, nextTick } from 'vue'
+import { useDateFormat } from '@vueuse/core'
+import { useI18n } from 'vue-i18n'
+import type { Task } from 'taskview-api'
+import { CalendarDate, Time } from '@internationalized/date'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useColor } from '@/composables/useColotMode'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const props = defineProps<{
+ task: Task
+}>()
+
+const { t } = useI18n()
+const tasksStore = useTasksStore()
+const { isDark } = useColor()
+const loadingStart = ref(false)
+const loadingEnd = ref(false)
+const loadingQuick = ref(false)
+const { canEditTaskDeadline } = useGoalPermissions()
+const activatorStyle = {
+ leadingIcon: 'size-4.5',
+}
+
+// Parse date string (YYYY-MM-DD) to CalendarDate
+function parseDateString(dateStr: string | null | undefined): CalendarDate | undefined {
+ if (!dateStr) return undefined
+ const [year, month, day] = dateStr.split('-').map(Number)
+ return new CalendarDate(year, month, day)
+}
+
+// Parse time string (HH:mm:ss+TZ) to Time
+function parseTimeString(timeStr: string | null | undefined): Time | undefined {
+ if (!timeStr) return undefined
+ const match = timeStr.match(/^(\d{2}):(\d{2})/)
+ if (match) {
+ return new Time(parseInt(match[1], 10), parseInt(match[2], 10))
+ }
+ return undefined
+}
+
+// Use shallowRef to avoid Vue stripping private fields from class instances
+const startDateModel = shallowRef<CalendarDate | undefined>(parseDateString(props.task.startDate))
+const endDateModel = shallowRef<CalendarDate | undefined>(parseDateString(props.task.endDate))
+const startTimeModel = shallowRef<Time | undefined>(parseTimeString(props.task.startTime))
+const endTimeModel = shallowRef<Time | undefined>(parseTimeString(props.task.endTime))
+const showStartTime = ref(!!props.task.startTime)
+const showEndTime = ref(!!props.task.endTime)
+
+// Flag to skip auto-save during external sync
+let syncing = false
+
+// Clear time when checkbox is unchecked
+watch(showStartTime, (val) => {
+ if (!val) startTimeModel.value = undefined
+})
+watch(showEndTime, (val) => {
+ if (!val) endTimeModel.value = undefined
+})
+
+// Auto-save start date/time on change
+watch([startDateModel, startTimeModel], () => {
+ if (syncing || !startDateModel.value) return
+ saveStartDateTime()
+})
+
+// Auto-save end date/time on change
+watch([endDateModel, endTimeModel], () => {
+ if (syncing || !endDateModel.value) return
+ saveEndDateTime()
+})
+
+// Computed flags for reactivity in template
+const hasStartDate = computed(() => !!startDateModel.value)
+const hasEndDate = computed(() => !!endDateModel.value)
+
+// Default values for calendars - show correct month when opening
+const startCalendarDefaultValue = computed(() => {
+ return startDateModel.value || getTodayCalendarDate()
+})
+
+const endCalendarDefaultValue = computed(() => {
+ // If start date is set, show that month so user sees available dates
+ if (startDateModel.value) return startDateModel.value
+ return endDateModel.value || getTodayCalendarDate()
+})
+
+function getTodayCalendarDate(): CalendarDate {
+ const now = new Date()
+ return new CalendarDate(now.getFullYear(), now.getMonth() + 1, now.getDate())
+}
+
+// Watch for external task updates
+watch(
+ () => props.task,
+ (task) => {
+ syncing = true
+ startDateModel.value = parseDateString(task.startDate)
+ endDateModel.value = parseDateString(task.endDate)
+ startTimeModel.value = parseTimeString(task.startTime)
+ endTimeModel.value = parseTimeString(task.endTime)
+ showStartTime.value = !!task.startTime
+ showEndTime.value = !!task.endTime
+ nextTick(() => { syncing = false })
+ },
+ { deep: true },
+)
+
+// Format dates for display
+const formattedStartDate = computed(() => {
+ if (startDateModel.value) {
+ const date = new Date(startDateModel.value.toString())
+ const dateStr = useDateFormat(date, 'DD MMM').value
+ if (startTimeModel.value) {
+ return `${dateStr} ${formatTimeForDisplay(startTimeModel.value)}`
+ }
+ return dateStr
+ }
+ return t('deadline.startDate')
+})
+
+const formattedEndDate = computed(() => {
+ if (endDateModel.value) {
+ const date = new Date(endDateModel.value.toString())
+ const dateStr = useDateFormat(date, 'DD MMM').value
+ if (endTimeModel.value) {
+ return `${dateStr} ${formatTimeForDisplay(endTimeModel.value)}`
+ }
+ return dateStr
+ }
+ return t('deadline.endDate')
+})
+
+// Helper functions
+function formatTimeForDisplay(time: Time): string {
+ return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}`
+}
+
+function getTimeZone(): string {
+ const date = new Date()
+ const timezoneOffsetInMinutes = date.getTimezoneOffset()
+ const offsetHours = Math.floor(Math.abs(timezoneOffsetInMinutes) / 60)
+ const offsetMinutes = Math.abs(timezoneOffsetInMinutes) % 60
+ const offsetSign = timezoneOffsetInMinutes <= 0 ? '+' : '-'
+ return `${offsetSign}${String(offsetHours).padStart(2, '0')}:${String(offsetMinutes).padStart(2, '0')}`
+}
+
+function formatDateForApi(calendarDate: CalendarDate): string {
+ return calendarDate.toString() // Returns YYYY-MM-DD
+}
+
+function formatTimeForApi(time: Time): string {
+ const timeZone = getTimeZone()
+ const timeStr = `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:00`
+ return `${timeStr}${timeZone}`
+}
+
+// Save functions
+async function saveStartDateTime() {
+ if (!startDateModel.value) return
+
+ loadingStart.value = true
+ await tasksStore.saveDateForTask({
+ id: props.task.id,
+ startDate: formatDateForApi(startDateModel.value as CalendarDate),
+ startTime: startTimeModel.value ? formatTimeForApi(startTimeModel.value as Time) : null,
+ })
+ loadingStart.value = false
+}
+
+async function saveEndDateTime() {
+ if (!endDateModel.value) return
+
+ loadingEnd.value = true
+ await tasksStore.saveDateForTask({
+ id: props.task.id,
+ endDate: formatDateForApi(endDateModel.value as CalendarDate),
+ endTime: endTimeModel.value ? formatTimeForApi(endTimeModel.value as Time) : null,
+ })
+ loadingEnd.value = false
+}
+
+async function clearStartDate() {
+ loadingStart.value = true
+ startDateModel.value = undefined
+ startTimeModel.value = undefined
+ await tasksStore.saveDateForTask({
+ id: props.task.id,
+ startDate: null,
+ startTime: null,
+ })
+ loadingStart.value = false
+}
+
+async function clearEndDate() {
+ loadingEnd.value = true
+ endDateModel.value = undefined
+ endTimeModel.value = undefined
+ await tasksStore.saveDateForTask({
+ id: props.task.id,
+ endDate: null,
+ endTime: null,
+ })
+ loadingEnd.value = false
+}
+
+// Clear all dates and times
+// FIXME need to be replaced with a single
+// HTTP request when the API is updated
+async function clearAllDates() {
+ loadingQuick.value = true
+ startDateModel.value = undefined
+ endDateModel.value = undefined
+ startTimeModel.value = undefined
+ endTimeModel.value = undefined
+ await Promise.all([
+ tasksStore.saveDateForTask({
+ id: props.task.id,
+ startDate: null,
+ startTime: null,
+ }),
+ tasksStore.saveDateForTask({
+ id: props.task.id,
+ endDate: null,
+ endTime: null,
+ }),
+ ])
+ loadingQuick.value = false
+}
+
+// Quick date functions
+function getQuickDate(type: 'today' | 'tomorrow' | 'yesterday'): string {
+ const now = new Date()
+ switch (type) {
+ case 'today':
+ return useDateFormat(now, 'YYYY-MM-DD').value
+ case 'tomorrow':
+ now.setDate(now.getDate() + 1)
+ return useDateFormat(now, 'YYYY-MM-DD').value
+ case 'yesterday':
+ now.setDate(now.getDate() - 1)
+ return useDateFormat(now, 'YYYY-MM-DD').value
+ }
+}
+
+async function setQuickDate(type: 'today' | 'tomorrow' | 'yesterday') {
+ const date = getQuickDate(type)
+
+ loadingQuick.value = true
+
+ await Promise.all([
+ tasksStore.saveDateForTask({
+ id: props.task.id,
+ startDate: date,
+ }),
+ tasksStore.saveDateForTask({
+ id: props.task.id,
+ endDate: date,
+ }),
+ ])
+
+ startDateModel.value = parseDateString(date)
+ endDateModel.value = parseDateString(date)
+
+ loadingQuick.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskDeleteDialog.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskDeleteDialog.vue
new file mode 100644
index 0000000..2619203
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskDeleteDialog.vue
@@ -0,0 +1,51 @@
+<template>
+ <UModal
+ v-model:open="isOpen"
+ :title="t('tasks.deleteConfirm')"
+ :ui="{ footer: 'justify-end!' }"
+ >
+ <template #body>
+ <p class="text-muted">
+ {{ t('tasks.deleteMessage', { name: task?.description }) }}
+ </p>
+ </template>
+
+ <template #footer>
+ <div class="flex justify-end gap-2">
+ <UButton
+ :label="t('common.cancel')"
+ color="neutral"
+ variant="outline"
+ @click="isOpen = false"
+ />
+ <UButton
+ :label="t('common.delete')"
+ color="error"
+ @click="confirmDelete"
+ />
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import type { Task } from 'taskview-api'
+
+defineProps<{
+ task: Task | null
+}>()
+
+const emit = defineEmits<{
+ confirm: []
+}>()
+
+const { t } = useI18n()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+function confirmDelete() {
+ emit('confirm')
+ isOpen.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskHistory.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskHistory.vue
new file mode 100644
index 0000000..50f674a
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskHistory.vue
@@ -0,0 +1,238 @@
+<template>
+ <div class="shadow-sm rounded-lg p-2 dark:bg-tv-ui-bg-elevated">
+ <div
+ class="flex items-center justify-between"
+ @click="toggleExpand"
+ >
+ <label class="text-base text-muted">{{ t('history.title') }}</label>
+ <UButton
+ v-if="!isExpanded"
+ :label="t('history.show')"
+ icon="i-lucide-history"
+ color="neutral"
+ variant="ghost"
+ size="md"
+ />
+ <UButton
+ v-else
+ :label="t('history.hide')"
+ icon="i-lucide-chevron-up"
+ color="neutral"
+ variant="ghost"
+ size="md"
+ />
+ </div>
+
+ <div
+ v-if="loading"
+ class="flex items-center justify-center py-4"
+ >
+ <UIcon
+ name="i-lucide-loader-2"
+ class="size-5 animate-spin text-muted"
+ />
+ </div>
+
+ <div
+ v-else-if="isExpanded && changes.length > 0 && canAccessTaskHistory"
+ class="space-y-2 max-h-64 overflow-y-auto mt-2"
+ >
+ <div
+ v-for="(item, index) in changes"
+ :key="index"
+ class="flex items-center justify-between p-2 rounded-lg border border-default hover:bg-elevated transition-colors"
+ >
+ <div class="flex-1 min-w-0">
+ <p class="text-sm truncate">
+ {{ item.description }}
+ </p>
+ </div>
+ <div class="flex items-center gap-1">
+ <UButton
+ :disabled="!canAccessTaskHistory"
+ icon="i-lucide-info"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ @click="openDetailModal(item)"
+ />
+ <UButton
+ v-if="item.historyId && canRecoveryTaskHistory"
+ icon="i-lucide-rotate-ccw"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ :loading="restoringId === item.historyId"
+ :disabled="restoringId !== null"
+ @click="handleRestore(item.historyId)"
+ />
+ </div>
+ </div>
+ </div>
+
+ <div
+ v-else-if="isExpanded && changes.length === 0"
+ class="flex flex-col items-center justify-center py-4 text-muted"
+ >
+ <UIcon
+ name="i-lucide-history"
+ class="size-8 mb-2"
+ />
+ <p class="text-sm">
+ {{ t('history.empty') }}
+ </p>
+ </div>
+
+ <UModal v-model:open="isDetailModalOpen">
+ <template #content>
+ <UCard>
+ <template #header>
+ <div class="flex items-center justify-between">
+ <h3 class="text-lg font-medium">
+ {{ t('history.details') }}
+ </h3>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="ghost"
+ size="xs"
+ @click="isDetailModalOpen = false"
+ />
+ </div>
+ </template>
+ <p class="text-sm whitespace-pre-wrap break-words">
+ {{ selectedChange?.description }}
+ </p>
+ </UCard>
+ </template>
+ </UModal>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, computed, watch, onMounted } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { storeToRefs } from 'pinia'
+import { useTaskHistory } from '@/stores/task-history.store'
+import type { TaskItem } from '@/types/tasks.types'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+type HistoryChange = {
+ historyId: number | null
+ description: string
+}
+
+const props = defineProps<{
+ taskId: number
+}>()
+
+const { t } = useI18n()
+const taskHistoryStore = useTaskHistory()
+const { canAccessTaskHistory, canRecoveryTaskHistory } = useGoalPermissions()
+const { history } = storeToRefs(taskHistoryStore)
+
+const isExpanded = ref(false)
+const loading = ref(false)
+const restoringId = ref<number | null>(null)
+const isDetailModalOpen = ref(false)
+const selectedChange = ref<HistoryChange | null>(null)
+
+const changes = computed(() => {
+ const result: HistoryChange[] = []
+ history.value.reduce((acc, current, index, arr) => {
+ if (index + 1 <= arr.length - 1) {
+ acc.push(...getChanges(arr[index + 1], current))
+ }
+ return acc
+ }, result)
+ return result
+})
+
+function getHistoryDescription(fieldName: string, from: string, to: string, historyId: number | null): HistoryChange {
+ return {
+ historyId,
+ description: `${t('history.changed')} [${t(`history.fields.${fieldName}`)}]: "${from}" => "${to}"`,
+ }
+}
+
+function getChanges(t1: TaskItem, t2: TaskItem): HistoryChange[] {
+ const result: HistoryChange[] = []
+
+ if (t1.note !== t2.note) {
+ result.push(getHistoryDescription('note', t1.note || '', t2.note || '', t1.historyId ?? null))
+ }
+ if (t1.description !== t2.description) {
+ result.push(getHistoryDescription('description', t1.description || '', t2.description || '', t1.historyId ?? null))
+ }
+ if (t1.complete !== t2.complete) {
+ result.push(
+ getHistoryDescription(
+ 'complete',
+ t1.complete ? t('history.completeTrue') : t('history.completeFalse'),
+ t2.complete ? t('history.completeTrue') : t('history.completeFalse'),
+ t1.historyId ?? null,
+ ),
+ )
+ }
+ if (t1.priorityId !== t2.priorityId) {
+ result.push(
+ getHistoryDescription('priority', t1.priorityId?.toString() || '', t2.priorityId?.toString() || '', t1.historyId ?? null),
+ )
+ }
+ if (t1.goalListId !== t2.goalListId) {
+ result.push(
+ getHistoryDescription('list', t1.goalListId?.toString() || '', t2.goalListId?.toString() || '', t1.historyId ?? null),
+ )
+ }
+ if (t1.endDate !== t2.endDate) {
+ result.push(getHistoryDescription('endDate', t1.endDate || '', t2.endDate || '', t1.historyId ?? null))
+ }
+ if (t1.startDate !== t2.startDate) {
+ result.push(getHistoryDescription('startDate', t1.startDate || '', t2.startDate || '', t1.historyId ?? null))
+ }
+
+ return result
+}
+
+async function fetchHistory() {
+ loading.value = true
+ try {
+ await taskHistoryStore.fetchHistoryForTask(props.taskId)
+ } finally {
+ loading.value = false
+ }
+}
+
+function toggleExpand() {
+ isExpanded.value = !isExpanded.value
+ if (isExpanded.value && history.value.length === 0) {
+ fetchHistory()
+ }
+}
+
+function openDetailModal(change: HistoryChange) {
+ selectedChange.value = change
+ isDetailModalOpen.value = true
+}
+
+async function handleRestore(historyId: number) {
+ restoringId.value = historyId
+ try {
+ const success = await taskHistoryStore.recoverState(historyId, props.taskId)
+ if (success) {
+ await fetchHistory()
+ }
+ } finally {
+ restoringId.value = null
+ }
+}
+
+watch(() => props.taskId, () => {
+ isExpanded.value = false
+ taskHistoryStore.history = []
+})
+
+onMounted(() => {
+ fetchHistory()
+})
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskItem.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskItem.vue
new file mode 100644
index 0000000..456ca69
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskItem.vue
@@ -0,0 +1,237 @@
+<template>
+ <div
+ class="flex flex-col gap-3 p-3 rounded-lg border border-default hover:bg-elevated transition-colors cursor-pointer"
+ @click="handleOpenTask"
+ >
+ <div class="flex items-center gap-3">
+ <div class="self-start mt-0.5 flex flex-col items-center gap-2">
+ <UCheckbox
+ :disabled="!canEditTaskStatus"
+ :model-value="localComplete"
+ @click.stop.prevent
+ @update:model-value="handleToggle"
+ />
+
+ <UIcon
+ name="carbon:circle-filled"
+ class=" size-4.5"
+ :class="priorityColor"
+ />
+ </div>
+
+ <div class="flex-1 min-w-0 self-start flex flex-col gap-1">
+ <p
+ class="text-base"
+ :class="{ 'line-through text-muted': localComplete }"
+ >
+ {{ task.description }}
+ </p>
+ <div
+ v-if="hasAdditionalInfo"
+ :class="ui?.additionalInfo"
+ class="flex flex-wrap items-center gap-2"
+ >
+ <!-- Date -->
+ <UBadge
+ v-if="task.endDate"
+ :label="formattedDate"
+ icon="i-lucide-calendar"
+ :color="isOverdue ? 'error' : 'neutral'"
+ :class="isOverdue ? '' : 'bg-elevated text-muted'"
+ :ui="{ leadingIcon: 'size-3' }"
+ class="max-w-full"
+ variant="subtle"
+ size="md"
+ />
+
+ <!-- Project -->
+ <UBadge
+ v-if="projectName"
+ :label="projectName"
+ icon="i-lucide-folder"
+ color="neutral"
+ class="bg-elevated text-muted max-w-full"
+ :ui="{ leadingIcon: 'size-3' }"
+ variant="subtle"
+ size="md"
+ />
+
+ <!-- List -->
+ <UBadge
+ v-if="listName"
+ :label="listName"
+ icon="i-lucide-list"
+ color="neutral"
+ class="bg-elevated text-muted max-w-full"
+ :ui="{ leadingIcon: 'size-3' }"
+ variant="subtle"
+ size="md"
+ />
+
+ <!-- Amount -->
+ <UBadge
+ v-if="task.amount"
+ :label="formattedAmount"
+ :icon="transactionIcon"
+ :color="transactionColor"
+ :ui="{ leadingIcon: 'size-3' }"
+ variant="subtle"
+ size="md"
+ class="max-w-full"
+ />
+
+ <!-- Assignees -->
+ <UBadge
+ v-for="assignee in assigneeEmails"
+ :key="assignee"
+ :label="`${assignee}`"
+ icon="i-lucide-user"
+ color="info"
+ class="bg-elevated text-muted max-w-full"
+ :ui="{ leadingIcon: 'size-3',}"
+ variant="subtle"
+ size="md"
+ />
+
+ <!-- Tags -->
+
+ <div class="flex flex-wrap gap-2">
+ <UBadge
+ v-for="tag in taskTags"
+ :key="tag.id"
+ :label="tag.name"
+ :style="{ backgroundColor: tag.color + '20', color: tag.color }"
+ variant="subtle"
+ :ui="{ leadingIcon: 'size-3' }"
+ icon="i-lucide-tag"
+ size="md"
+ class="max-w-full"
+ />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed, ref, watch } from 'vue'
+import { type Task } from 'taskview-api'
+import { useGoalsStore } from '@/stores/goals.store'
+import { useGoalListsStore } from '@/stores/goal-lists.store'
+import { useCollaborationStore } from '@/stores/collaboration.store'
+import { useTagsStore } from '@/stores/tag.store'
+import { formatDate } from '@vueuse/core'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+import { useTaskDetailPanel } from '@/composables/useTaskDetailPanel'
+
+const TOGGLE_DELAY = 200
+const props = defineProps<{
+ task: Task
+ ui?: {
+ additionalInfo?: string
+ }
+}>()
+
+const emit = defineEmits<{
+ click: [taskId: number]
+ toggle: [task: Task]
+}>()
+const { canEditTaskStatus } = useGoalPermissions()
+const { openTask } = useTaskDetailPanel()
+const localComplete = ref(!!props.task.complete)
+
+watch(() => props.task.complete, (newVal) => {
+ localComplete.value = !!newVal
+})
+
+function handleToggle() {
+ localComplete.value = !localComplete.value
+ setTimeout(() => {
+ emit('toggle', props.task)
+ }, TOGGLE_DELAY)
+}
+
+function handleOpenTask() {
+ openTask(props.task.id)
+}
+
+const goalsStore = useGoalsStore()
+const goalListsStore = useGoalListsStore()
+const collaborationStore = useCollaborationStore()
+const tagsStore = useTagsStore()
+
+const priorityColor = computed(() => {
+ switch (props.task.priorityId) {
+ case 3:
+ return 'text-error'
+ case 2:
+ return 'text-warning'
+ case 1:
+ return 'text-success'
+ default:
+ return 'text-neutral'
+ }
+})
+
+const projectName = computed(() => {
+ return goalsStore.goalMap.get(props.task.goalId)?.name || ''
+})
+
+const listName = computed(() => {
+ return props.task.goalListId
+ ? goalListsStore.listMap.get(props.task.goalListId)?.name || ''
+ : ''
+})
+
+const formattedDate = computed(() => {
+ if (!props.task.endDate) return ''
+ return formatDate(new Date(props.task.endDate), 'DD.MMM.YYYY')
+})
+
+const isOverdue = computed(() => {
+ if (!props.task.endDate || localComplete.value) return false
+ const end = new Date(props.task.endDate)
+ const now = new Date()
+ now.setHours(0, 0, 0, 0)
+ return end < now
+})
+
+const assigneeEmails = computed(() => {
+ return props.task.assignedUsers
+ .map(userId => collaborationStore.userMap.get(userId)?.email)
+ .filter((email): email is string => !!email)
+})
+
+const taskTags = computed(() => {
+ return props.task.tags
+ .map(tagId => tagsStore.tagsMap.get(tagId))
+ .filter((tag): tag is NonNullable<typeof tag> => !!tag)
+})
+
+const formattedAmount = computed(() => {
+ if (!props.task.amount) return ''
+ return Number(props.task.amount).toLocaleString()
+})
+
+const transactionIcon = computed(() => {
+ if (props.task.transactionType === 1) return 'i-lucide-trending-up'
+ if (props.task.transactionType === 0) return 'i-lucide-trending-down'
+ return 'i-lucide-coins'
+})
+
+const transactionColor = computed(() => {
+ if (props.task.transactionType === 1) return 'success' as const
+ if (props.task.transactionType === 0) return 'error' as const
+ return 'neutral' as const
+})
+
+const hasAdditionalInfo = computed(() => {
+ return projectName.value ||
+ listName.value ||
+ props.task.endDate ||
+ props.task.amount ||
+ assigneeEmails.value.length > 0 ||
+ taskTags.value.length > 0
+})
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskKanbanStatusSelect.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskKanbanStatusSelect.vue
new file mode 100644
index 0000000..72b9fdb
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskKanbanStatusSelect.vue
@@ -0,0 +1,79 @@
+<template>
+ <div class="w-full h-fit dark:bg-tv-ui-bg-elevated shadow-sm rounded-lg p-2 ">
+ <!-- <label class="text-sm text-muted mb-2 block">{{ t('tasks.status') }}</label> -->
+ <USelectMenu
+ v-if="canViewKanban"
+ :search-input="false"
+ :disabled="!canManageKanban || true"
+ :model-value="selectedItem"
+ :items="statusItems"
+ :placeholder="t('tasks.selectStatus')"
+ class="w-full dark:bg-tv-ui-bg-elevated"
+ size="xl"
+ @update:model-value="handleSelect"
+ >
+ <template #leading>
+ <UIcon
+ name="i-lucide-columns-3"
+ class="size-4"
+ />
+ </template>
+ </USelectMenu>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useKanbanStore } from '@/stores/kanban.store'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+type StatusItem = {
+ label: string
+ id: number | null
+}
+
+const props = defineProps<{
+ taskId: number
+ currentStatusId: number | null
+}>()
+
+import { useProjectContext } from '@/composables/useProjectContext'
+
+const { t } = useI18n()
+const kanbanStore = useKanbanStore()
+const tasksStore = useTasksStore()
+const { canManageKanban, canViewKanban } = useGoalPermissions()
+
+const projectContext = useProjectContext()
+const statuses = computed(() =>
+ projectContext ? projectContext.statuses.value : kanbanStore.statuses,
+)
+
+function getStatusLabel(name: string): string {
+ // If the name is a translation key (starts with "msg."), translate it
+ if (name.startsWith('msg.')) {
+ return t(name)
+ }
+ return name
+}
+
+const statusItems = computed<StatusItem[]>(() => statuses.value.map(status => ({
+ label: getStatusLabel(status.name),
+ id: status.id,
+})))
+
+const selectedItem = computed(() =>
+ statusItems.value.find(item => item.id === props.currentStatusId) ?? statusItems.value[0],
+)
+
+async function handleSelect(item: StatusItem) {
+ if (item.id === props.currentStatusId) return
+
+ await tasksStore.updateTaskStatusId({
+ id: props.taskId,
+ statusId: item.id === -1 ? null : item.id,
+ })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskListSelect.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskListSelect.vue
new file mode 100644
index 0000000..3fd24e4
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskListSelect.vue
@@ -0,0 +1,105 @@
+<template>
+ <div class="w-full h-fit dark:bg-tv-ui-bg-elevated shadow-sm rounded-lg p-2">
+ <!-- Badge mode (< 10 lists) -->
+ <div
+ v-if="lists.length < 10"
+ class="flex flex-wrap gap-2 w-full"
+ >
+ <UBadge
+ v-for="list in lists"
+ :key="list.id"
+ :label="list.name"
+ size="xl"
+ :variant="isListSelected(list.id) ? (isDark ? 'subtle' : 'solid') : (isDark ? 'subtle' : 'outline')"
+ :color="isListSelected(list.id) ? 'primary' : 'neutral'"
+ class="cursor-pointer select-none"
+ @click="selectList(list.id)"
+ >
+ <template #leading>
+ <UIcon
+ name="i-lucide-list"
+ class="size-3"
+ />
+ </template>
+ </UBadge>
+ <UBadge
+ :label="t('tasks.noList')"
+ :variant="currentListId === null ? 'subtle' : 'subtle'"
+ :color="currentListId === null ? 'primary' : 'neutral'"
+ class="cursor-pointer select-none"
+ size="xl"
+ @click="selectList(null)"
+ >
+ <template #leading>
+ <UIcon
+ name="i-lucide-inbox"
+ class="size-3"
+ />
+ </template>
+ </UBadge>
+ </div>
+
+ <!-- Dropdown mode (>= 10 lists) -->
+ <USelectMenu
+ v-else
+ :model-value="currentListId || ALL_TASKS_LIST_ID"
+ :items="listItems"
+ :placeholder="t('tasks.selectList')"
+ :searchable="true"
+ :search-placeholder="t('tasks.searchLists')"
+ value-key="value"
+ class="w-full"
+ size="xl"
+ variant="subtle"
+ @update:model-value="selectList"
+ >
+ <template #leading>
+ <UIcon
+ name="i-lucide-list"
+ class="size-4"
+ />
+ </template>
+ </USelectMenu>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useGoalListsStore } from '@/stores/goal-lists.store'
+import { useTasksStore } from '@/stores/tasks.store'
+import { ALL_TASKS_LIST_ID } from 'taskview-api'
+import { useColor } from '@/composables/useColotMode'
+
+const props = defineProps<{
+ taskId: number
+ currentListId: number | null
+}>()
+
+const { t } = useI18n()
+const goalListsStore = useGoalListsStore()
+const tasksStore = useTasksStore()
+const { isDark } = useColor()
+const lists = computed(() => goalListsStore.lists)
+
+const listItems = computed(() => [
+ { label: t('tasks.noList'), value: ALL_TASKS_LIST_ID },
+ ...lists.value.map(list => ({
+ label: list.name,
+ value: list.id,
+ })),
+])
+
+function isListSelected(listId: number): boolean {
+ return props.currentListId === listId
+}
+
+async function selectList(listId: number | null) {
+ if (listId === props.currentListId) return
+
+ await tasksStore.moveTaskToAnotherList({
+ id: props.taskId,
+ goalListId: listId,
+ })
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskPrioritySelect.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskPrioritySelect.vue
new file mode 100644
index 0000000..747f6e6
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskPrioritySelect.vue
@@ -0,0 +1,85 @@
+<template>
+ <URadioGroup
+ v-if="canViewTaskPriority"
+ :disabled="!canEditTaskPriority"
+ :model-value="modelValue"
+ :items="priorityOptions"
+ :ui="{
+ root: 'h-fit py-1',
+ item: 'items-center',
+ fieldset: 'justify-between px-4',
+ base:'size-5'
+ }"
+ size="xl"
+ class="dark:bg-tv-ui-bg-elevated shadow-sm rounded-lg p-2 py-4"
+ orientation="horizontal"
+ @update:model-value="handleChange"
+ >
+ <template #label="{ item }">
+ <UIcon
+ :name="getPriorityIcon(item.value as PriorityId)"
+ :class="getPriorityColor(item.value as PriorityId)"
+
+ class="size-6"
+ />
+ </template>
+ </URadioGroup>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { TaskBase } from 'taskview-api'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+type PriorityId = TaskBase['priorityId']
+
+defineProps<{
+ modelValue: PriorityId | undefined
+}>()
+
+const emit = defineEmits<{
+ 'update:modelValue': [value: PriorityId]
+}>()
+
+const { t } = useI18n()
+const {
+ canEditTaskPriority,
+ canViewTaskPriority,
+} = useGoalPermissions()
+const priorityOptions = computed(() => [
+ { label: t('tasks.priorityLow'), value: 1 as PriorityId },
+ { label: t('tasks.priorityMedium'), value: 2 as PriorityId },
+ { label: t('tasks.priorityHigh'), value: 3 as PriorityId },
+])
+
+function getPriorityIcon(priority: PriorityId): string {
+ switch (priority) {
+ case 1:
+ return 'mdi:signal-cellular-1'
+ case 2:
+ return 'mdi:signal-cellular-2'
+ case 3:
+ return 'mdi:signal-cellular-3'
+ default:
+ return 'mdi:signal-off'
+ }
+}
+
+function getPriorityColor(priority: PriorityId): string {
+ switch (priority) {
+ case 1:
+ return 'text-blue-500'
+ case 2:
+ return 'text-yellow-500'
+ case 3:
+ return 'text-red-500'
+ default:
+ return 'text-muted'
+ }
+}
+
+function handleChange(value: PriorityId) {
+ emit('update:modelValue', value)
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskSearchAdd.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskSearchAdd.vue
new file mode 100644
index 0000000..caeebd0
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskSearchAdd.vue
@@ -0,0 +1,162 @@
+<template>
+ <div class="flex items-center gap-2 w-full">
+ <div class="flex-1">
+ <UInput
+ v-model="inputValue"
+ :placeholder="mode === 'add' ? t('tasks.addPlaceholder') : t('tasks.searchPlaceholder')"
+ :loading="loading"
+ variant="soft"
+ class="w-full"
+ :ui="{
+ base: 'bg-tv-ui-bg-elevated',
+ }"
+ @keydown.enter="handleEnter"
+ @update:model-value="handleInput"
+ >
+ <template #leading>
+ <UIcon
+ :name="mode === 'add' ? 'i-lucide-plus' : 'i-lucide-search'"
+ class="size-4 text-dimmed"
+ />
+ </template>
+ <template #trailing>
+ <UButton
+ v-if="inputValue.trim() && mode === 'search'"
+ :label="t('tasks.add')"
+ icon="i-lucide-plus"
+ color="primary"
+ variant="ghost"
+ size="xs"
+ @click="addTask"
+ />
+ <UButton
+ v-else-if="inputValue.trim() && mode === 'add'"
+ icon="i-lucide-corner-down-left"
+ color="primary"
+ variant="ghost"
+ size="xs"
+ :aria-label="t('tasks.add')"
+ @click="addTask"
+ />
+ <UIcon
+ v-else
+ name="i-lucide-keyboard"
+ class="size-4 text-dimmed"
+ />
+ </template>
+ </UInput>
+ </div>
+
+ <UButton
+ :icon="mode === 'add' ? 'i-lucide-search' : 'i-lucide-plus'"
+ color="neutral"
+ variant="soft"
+ size="xl"
+ @click="toggleMode"
+ />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, watch } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useDebounceFn } from '@vueuse/core'
+import { useTasksStore } from '@/stores/tasks.store'
+import { ALL_TASKS_LIST_ID } from '@/types/tasks.types'
+import { useAppRouteInfo } from '@/composables/useAppRouteInfo'
+
+const emit = defineEmits<{
+ add: [name: string]
+}>()
+
+const { t } = useI18n()
+const tasksStore = useTasksStore()
+const { projectId, listId } = useAppRouteInfo()
+
+const initialSearchText = tasksStore.fetchRules.searchText
+const mode = ref<'add' | 'search'>(initialSearchText ? 'search' : 'add')
+const inputValue = ref(initialSearchText)
+const loading = ref(false)
+
+const debouncedSearch = useDebounceFn(async () => {
+ if (mode.value === 'search') {
+ await searchTasks()
+ }
+}, 500)
+
+function toggleMode() {
+ mode.value = mode.value === 'add' ? 'search' : 'add'
+ inputValue.value = ''
+
+ // Reset search when switching back to add mode
+ if (mode.value === 'add') {
+ resetSearch()
+ }
+}
+
+function handleEnter() {
+ if (mode.value === 'add') {
+ addTask()
+ } else {
+ searchTasks()
+ }
+}
+
+function handleInput() {
+ if (mode.value === 'search') {
+ debouncedSearch()
+ }
+}
+
+function addTask() {
+ const name = inputValue.value.trim()
+ if (name) {
+ emit('add', name)
+ inputValue.value = ''
+
+ // If in search mode, refresh the search results
+ if (mode.value === 'search') {
+ debouncedSearch()
+ }
+ }
+}
+
+async function searchTasks() {
+ loading.value = true
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ endOfTasks: false,
+ currentPage: 0,
+ goalId: Number(projectId.value),
+ currentListId: listId.value ? Number(listId.value) : ALL_TASKS_LIST_ID,
+ searchText: inputValue.value.trim(),
+ })
+
+ await tasksStore.fetchTasks()
+ loading.value = false
+}
+
+async function resetSearch() {
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ endOfTasks: false,
+ currentPage: 0,
+ goalId: projectId.value,
+ currentListId: listId.value ? listId.value : ALL_TASKS_LIST_ID,
+ searchText: '',
+ })
+
+ await tasksStore.fetchTasks()
+}
+
+// Sync with store when searchText is reset externally (e.g. from toolbar)
+watch(
+ () => tasksStore.fetchRules.searchText,
+ (newSearchText) => {
+ if (!newSearchText && mode.value === 'search') {
+ mode.value = 'add'
+ inputValue.value = ''
+ }
+ },
+)
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskSubtaskItem.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskSubtaskItem.vue
new file mode 100644
index 0000000..6db9211
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskSubtaskItem.vue
@@ -0,0 +1,90 @@
+<template>
+ <div class="flex items-center gap-2 group ">
+ <UTextarea
+ ref="inputRef"
+ v-model="localDescription"
+ type="text"
+ class="flex-1 text-sm border-none outline-none focus:ring-0 p-1 rounded-lg hover:bg-muted/10 focus:bg-muted/10 shadow-sm dark:bg-tv-ui-bg-elevated!"
+ :class="{ 'line-through text-muted': subtask.complete }"
+ :rows="1"
+ :autoresize="true"
+ variant="ghost"
+ @input="onInput"
+ @blur="flushSave"
+ @keydown.enter="($event.target as HTMLInputElement).blur()"
+ >
+ <template #leading>
+ <div class="flex items-start h-full py-1.5">
+ <UCheckbox
+ :model-value="!!subtask.complete"
+ @update:model-value="$emit('update:complete')"
+ />
+ </div>
+ </template>
+ <template #trailing>
+ <div class="flex items-start h-full py-1">
+ <UButton
+ icon="i-lucide-trash-2"
+ color="error"
+ variant="ghost"
+ size="xs"
+ @click="$emit('delete')"
+ />
+ </div>
+ </template>
+ </UTextarea>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, useTemplateRef, watch } from 'vue'
+import { useDebounceFn } from '@vueuse/core'
+import type { Task } from 'taskview-api'
+
+const props = defineProps<{
+ subtask: Task
+}>()
+
+const emit = defineEmits<{
+ 'update:description': [value: string]
+ 'update:complete': []
+ 'delete': []
+}>()
+
+const inputRef = useTemplateRef('inputRef')
+const localDescription = ref(props.subtask.description)
+let lastEmitted = props.subtask.description
+
+watch(() => props.subtask.description, (val) => {
+ if (val !== lastEmitted) {
+ localDescription.value = val
+ lastEmitted = val
+ }
+})
+
+const debouncedSave = useDebounceFn(() => {
+ if (localDescription.value !== lastEmitted) {
+ lastEmitted = localDescription.value
+ emit('update:description', localDescription.value)
+ }
+}, 500)
+
+function onInput() {
+ debouncedSave()
+}
+
+function flushSave() {
+ if (localDescription.value !== lastEmitted) {
+ lastEmitted = localDescription.value
+ emit('update:description', localDescription.value)
+ }
+}
+
+function focus() {
+ const textarea = inputRef.value?.textareaRef
+ textarea?.focus()
+ textarea?.select()
+}
+
+defineExpose({ focus })
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TaskSubtasks.vue b/web-nuxt-ui/src/components/features/tasks/parts/TaskSubtasks.vue
new file mode 100644
index 0000000..cf50426
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TaskSubtasks.vue
@@ -0,0 +1,107 @@
+<template>
+ <div class="w-full">
+ <!-- <label class="text-sm text-muted mb-2 block">{{ t('tasks.subtasks') }}</label> -->
+
+ <!-- Subtasks List -->
+ <div
+ v-if="subtasks.length > 0 && canViewTaskSubtasks"
+ class="space-y-2 mb-2"
+ >
+ <TaskSubtaskItem
+ v-for="subtask in subtasks"
+ :key="subtask.id"
+ :ref="(el: any) => setItemRef(subtask.id, el)"
+ :subtask="subtask"
+ @update:description="(value) => saveDescription(subtask, value)"
+ @update:complete="toggleSubtaskComplete(subtask)"
+ @delete="deleteSubtask(subtask)"
+ />
+ </div>
+
+ <!-- Add Subtask Button -->
+ <UButton
+ v-if="canAddTaskSubtasks"
+ icon="i-lucide-plus"
+ color="neutral"
+ variant="ghost"
+ class="w-full justify-start rounded-lg shadow-sm dark:bg-tv-ui-bg-elevated"
+ :loading="isAdding"
+ @click="addSubtask"
+ >
+ {{ t('tasks.addSubtask') }}
+ </UButton>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, nextTick } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useTasksStore } from '@/stores/tasks.store'
+import type { Task } from 'taskview-api'
+import TaskSubtaskItem from '@/components/features/tasks/parts/TaskSubtaskItem.vue'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const {
+ canAddTaskSubtasks,
+ canViewTaskSubtasks,
+} = useGoalPermissions()
+const props = defineProps<{
+ parentTaskId: number
+ goalId: number
+ subtasks: Task[]
+}>()
+
+const { t } = useI18n()
+const tasksStore = useTasksStore()
+
+const isAdding = ref(false)
+const itemRefs = new Map<number, InstanceType<typeof TaskSubtaskItem>>()
+
+function setItemRef(id: number, el: InstanceType<typeof TaskSubtaskItem> | null) {
+ if (el) {
+ itemRefs.set(id, el)
+ } else {
+ itemRefs.delete(id)
+ }
+}
+
+async function addSubtask() {
+ isAdding.value = true
+
+ const newSubtask = await tasksStore.addTask({
+ goalId: props.goalId,
+ description: 'Task',
+ parentId: props.parentTaskId,
+ })
+
+ isAdding.value = false
+
+ if (newSubtask) {
+ await nextTick()
+ const item = itemRefs.get(newSubtask.id)
+ if (item) {
+ item.focus()
+ }
+ }
+}
+
+async function toggleSubtaskComplete(subtask: Task) {
+ await tasksStore.updateTaskCompleteStatus({
+ id: subtask.id,
+ complete: !subtask.complete,
+ }, false)
+}
+
+async function saveDescription(subtask: Task, value: string) {
+ if (value !== subtask.description) {
+ await tasksStore.updateTaskDescription({
+ id: subtask.id,
+ description: value,
+ })
+ }
+}
+
+async function deleteSubtask(subtask: Task) {
+ await tasksStore.deleteTask(subtask.id)
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TasksFilterDrawer.vue b/web-nuxt-ui/src/components/features/tasks/parts/TasksFilterDrawer.vue
new file mode 100644
index 0000000..5fed9f5
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TasksFilterDrawer.vue
@@ -0,0 +1,215 @@
+<template>
+ <UDrawer
+ v-model:open="isOpen"
+ :title="t('filters.title')"
+ :ui="{header: 'flex flex-col gap-2', content: 'items-center w-full lg:w-1/2 mx-auto max-w-2xl' }"
+ >
+ <template #header>
+ <h2 class="text-highlighted font-semibold">
+ {{ t('filters.title') }}
+ </h2>
+ <USeparator />
+ </template>
+ <template #body>
+ <div class="flex flex-col gap-4">
+ <!-- User Filter -->
+ <UFormField
+ :label="t('filters.assignee')"
+ :class="sectionClasses"
+ >
+ <USelectMenu
+ v-model="filters.selectedUser"
+ :items="userItems"
+ :placeholder="t('filters.selectAssignee')"
+ :search-input="false"
+ value-key="value"
+ class="w-full"
+ size="xl"
+ :ui="{ base: 'w-full' }"
+ />
+ </UFormField>
+
+ <!-- Tags Filter -->
+ <UFormField
+ :label="t('tasks.tags')"
+ :class="sectionClasses"
+ >
+ <div
+ v-if="filteredTags.length > 0"
+ class="flex flex-wrap gap-2"
+ >
+ <UBadge
+ v-for="tag in filteredTags"
+ :key="tag.id"
+ :label="tag.name"
+ icon="i-lucide-tag"
+ size="xl"
+ :style="{
+ backgroundColor: isTagSelected(tag.id) ? tag.color : undefined,
+ borderColor: isTagSelected(tag.id) ? tag.color : undefined,
+ color: isTagSelected(tag.id) ? getContrastColor(tag.color) : undefined,
+ }"
+ :ui="{ label: 'text-base', base:'gap-2', leadingIcon: 'size-4' }"
+ :color="isTagSelected(tag.id) ? 'primary' : 'neutral'"
+ :variant="isTagSelected(tag.id) ? 'soft' : 'outline'"
+ class="cursor-pointer transition-colors min-h-9"
+ @click="toggleTag(tag.id)"
+ />
+ </div>
+ <p
+ v-else
+ class="text-sm text-muted"
+ >
+ {{ t('tags.noTagsFound') }}
+ </p>
+ </UFormField>
+
+ <!-- Priority Filter -->
+ <UFormField
+ :label="t('tasks.priority')"
+ :class="sectionClasses"
+ >
+ <div class="flex gap-2">
+ <UButton
+ v-for="priority in priorityOptions"
+ :key="priority.value"
+ :label="priority.label"
+ :color="filters.priority === priority.value ? 'primary' : 'neutral'"
+ :variant="filters.priority === priority.value ? 'outline' : 'outline'"
+ size="lg"
+ @click="togglePriority(priority.value)"
+ />
+ </div>
+ </UFormField>
+ </div>
+ </template>
+
+ <template #footer>
+ <USeparator />
+ <div class="flex justify-between gap-2 p-4">
+ <UButton
+ :label="t('filters.reset')"
+ color="neutral"
+ variant="outline"
+ @click="resetFilters"
+ />
+ <UButton
+ :label="t('filters.apply')"
+ color="primary"
+ variant="outline"
+ @click="applyFilters"
+ />
+ </div>
+ </template>
+ </UDrawer>
+</template>
+
+<script setup lang="ts">
+import { computed, watch, reactive } from 'vue'
+import { storeToRefs } from 'pinia'
+import { useRoute } from 'vue-router'
+import { useI18n } from 'vue-i18n'
+import type { TaskFilters } from 'taskview-api'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useTagsStore } from '@/stores/tag.store'
+import { useCollaborationStore } from '@/stores/collaboration.store'
+
+const isOpen = defineModel<boolean>('open', { default: false })
+
+const { t } = useI18n()
+const route = useRoute()
+
+const tasksStore = useTasksStore()
+const tagsStore = useTagsStore()
+const collaborationStore = useCollaborationStore()
+
+const { fetchRules } = storeToRefs(tasksStore)
+const { filteredTags } = storeToRefs(tagsStore)
+const { users } = storeToRefs(collaborationStore)
+
+const filters = reactive<TaskFilters>({
+ selectedUser: undefined,
+ selectedTags: {},
+ priority: undefined,
+})
+
+const sectionClasses = 'shadow-md bg-elevated/30 p-2 rounded-lg'
+
+const userItems = computed(() => [
+ ...users.value.map((user) => ({
+ label: user.email,
+ value: user.id,
+ })),
+])
+
+const priorityOptions = computed(() => [
+ { label: t('tasks.priorityLow'), value: 1 as const },
+ { label: t('tasks.priorityMedium'), value: 2 as const },
+ { label: t('tasks.priorityHigh'), value: 3 as const },
+])
+
+watch(isOpen, (open) => {
+ if (open) {
+ // Sync filters with current fetchRules
+ filters.selectedUser = fetchRules.value.filters.selectedUser
+ filters.selectedTags = { ...fetchRules.value.filters.selectedTags }
+ filters.priority = fetchRules.value.filters.priority
+
+ // Fetch users for current project
+ const projectId = route.params.projectId
+ if (projectId) {
+ collaborationStore.fetchCollaborationUsersForGoal(Number(projectId))
+ }
+ }
+})
+
+function isTagSelected(tagId: number): boolean {
+ return !!filters.selectedTags?.[tagId]
+}
+
+function getContrastColor(hexColor: string): string {
+ const hex = hexColor.replace('#', '')
+ const r = parseInt(hex.substring(0, 2), 16)
+ const g = parseInt(hex.substring(2, 4), 16)
+ const b = parseInt(hex.substring(4, 6), 16)
+ const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255
+ return luminance > 0.5 ? '#000000' : '#ffffff'
+}
+
+function toggleTag(tagId: number) {
+ if (!filters.selectedTags) {
+ filters.selectedTags = {}
+ }
+ if (filters.selectedTags[tagId]) {
+ delete filters.selectedTags[tagId]
+ } else {
+ filters.selectedTags[tagId] = true
+ }
+}
+
+function togglePriority(value: 1 | 2 | 3) {
+ filters.priority = filters.priority === value ? undefined : value
+}
+
+function resetFilters() {
+ filters.selectedUser = undefined
+ filters.selectedTags = {}
+ filters.priority = undefined
+}
+
+async function applyFilters() {
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ filters: {
+ selectedUser: filters.selectedUser,
+ selectedTags: filters.selectedTags,
+ priority: filters.priority,
+ },
+ currentPage: 0,
+ endOfTasks: false,
+ })
+
+ await tasksStore.fetchTasks()
+ isOpen.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/TasksToolbar.vue b/web-nuxt-ui/src/components/features/tasks/parts/TasksToolbar.vue
new file mode 100644
index 0000000..c751d46
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/TasksToolbar.vue
@@ -0,0 +1,217 @@
+<template>
+ <div class="flex flex-col gap-2">
+ <div class="flex items-center justify-end gap-2 p-2 bg-tv-ui-bg-elevated rounded-lg">
+ <!-- Filter -->
+ <UTooltip :text="t('filters.title')">
+ <UButton
+ icon="i-lucide-filter"
+ :color="hasActiveFilters ? 'primary' : 'info'"
+ variant="soft"
+ size="sm"
+ @click="isFilterDrawerOpen = true"
+ />
+ </UTooltip>
+
+ <!-- Toggle Completed Tasks -->
+ <UTooltip :text="showCompletedTooltip">
+ <UButton
+ :icon="showCompleted ? 'i-lucide-eye-off' : 'i-lucide-eye'"
+ :color="showCompleted ? 'primary' : 'info'"
+ variant="soft"
+ size="sm"
+ :loading="loading"
+ :disabled="loading"
+ @click="toggleCompleted"
+ />
+ </UTooltip>
+
+ <!-- Sort Order -->
+ <UTooltip :text="sortTooltip">
+ <UButton
+ :icon="firstNew ? 'i-lucide-arrow-down-narrow-wide' : 'i-lucide-arrow-up-narrow-wide'"
+ color="info"
+ variant="soft"
+ size="sm"
+ :loading="loading"
+ :disabled="loading"
+ @click="toggleSort"
+ />
+ </UTooltip>
+
+ <!-- Reset All -->
+ <UButton
+ v-if="hasActiveSearch || hasActiveFilters"
+ icon="i-lucide-x"
+ color="error"
+ variant="soft"
+ size="sm"
+ @click="resetAll"
+ />
+
+ <TasksFilterDrawer v-model:open="isFilterDrawerOpen" />
+ </div>
+
+ <!-- Active search/filters indicators -->
+ <div
+ v-if="hasActiveSearch || hasActiveFilters"
+ class="flex flex-wrap items-center gap-1.5 px-1"
+ >
+ <UBadge
+ v-if="hasActiveSearch"
+ :label="`${t('tasks.searchPlaceholder')}: ${fetchRules.searchText}`"
+ icon="i-lucide-search"
+ color="info"
+ variant="subtle"
+ size="sm"
+ class="max-w-full"
+ :ui="{ leadingIcon: 'size-3' }"
+ >
+ <template #trailing>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="link"
+ size="xs"
+ class="p-0"
+ @click="resetSearch"
+ />
+ </template>
+ </UBadge>
+
+ <UBadge
+ v-if="hasActiveFilters"
+ :label="t('filters.title')"
+ icon="i-lucide-filter"
+ color="primary"
+ variant="subtle"
+ size="sm"
+ :ui="{ leadingIcon: 'size-3' }"
+ >
+ <template #trailing>
+ <UButton
+ icon="i-lucide-x"
+ color="neutral"
+ variant="link"
+ size="xs"
+ class="p-0"
+ @click="resetFilters"
+ />
+ </template>
+ </UBadge>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed, ref } from 'vue'
+import { storeToRefs } from 'pinia'
+import { useRoute } from 'vue-router'
+import { useI18n } from 'vue-i18n'
+import { useTasksStore } from '@/stores/tasks.store'
+import TasksFilterDrawer from './TasksFilterDrawer.vue'
+
+const { t } = useI18n()
+const route = useRoute()
+const tasksStore = useTasksStore()
+
+const { fetchRules } = storeToRefs(tasksStore)
+
+const loading = ref(false)
+const isFilterDrawerOpen = ref(false)
+
+const hasActiveSearch = computed(() => !!fetchRules.value.searchText)
+
+const hasActiveFilters = computed(() => {
+ const filters = fetchRules.value.filters
+ return (
+ filters.selectedUser !== undefined ||
+ filters.priority !== undefined ||
+ (filters.selectedTags && Object.keys(filters.selectedTags).length > 0)
+ )
+})
+
+const showCompleted = computed(() => fetchRules.value.showCompleted === 1)
+const firstNew = computed(() => fetchRules.value.firstNew === 1)
+
+const showCompletedTooltip = computed(() =>
+ showCompleted.value ? t('tasks.hideCompleted') : t('tasks.showCompleted'),
+)
+
+const sortTooltip = computed(() =>
+ firstNew.value ? t('tasks.sortNewestFirst') : t('tasks.sortOldestFirst'),
+)
+
+async function toggleCompleted() {
+ if (loading.value) return
+
+ loading.value = true
+
+ const listId = route.params.listId
+ const projectId = route.params.projectId
+
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ showCompleted: showCompleted.value ? 0 : 1,
+ currentListId: listId ? Number(listId) : fetchRules.value.currentListId,
+ goalId: projectId ? Number(projectId) : fetchRules.value.goalId,
+ currentPage: 0,
+ endOfTasks: false,
+ })
+
+ await tasksStore.fetchTasks()
+ loading.value = false
+}
+
+async function toggleSort() {
+ if (loading.value) return
+
+ loading.value = true
+
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ firstNew: firstNew.value ? 0 : 1,
+ currentPage: 0,
+ endOfTasks: false,
+ })
+
+ await tasksStore.fetchTasks()
+ loading.value = false
+}
+
+async function resetSearch() {
+ loading.value = true
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ searchText: '',
+ currentPage: 0,
+ endOfTasks: false,
+ })
+ await tasksStore.fetchTasks()
+ loading.value = false
+}
+
+async function resetFilters() {
+ loading.value = true
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ filters: {},
+ currentPage: 0,
+ endOfTasks: false,
+ })
+ await tasksStore.fetchTasks()
+ loading.value = false
+}
+
+async function resetAll() {
+ loading.value = true
+ tasksStore.resetTasks()
+ tasksStore.updateFetchRules({
+ searchText: '',
+ filters: {},
+ currentPage: 0,
+ endOfTasks: false,
+ })
+ await tasksStore.fetchTasks()
+ loading.value = false
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/tags/TagEditDialog.vue b/web-nuxt-ui/src/components/features/tasks/parts/tags/TagEditDialog.vue
new file mode 100644
index 0000000..ea01f91
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/tags/TagEditDialog.vue
@@ -0,0 +1,143 @@
+<template>
+ <UModal
+ v-model:open="isOpen"
+ :title="isNewTag ? t('tags.createTag') : t('tags.editTag')"
+ >
+ <template #body>
+ <div class="space-y-4 flex flex-col items-center">
+ <UFormField
+ :label="t('tags.name')"
+ class="w-full"
+ >
+ <UInput
+ v-model="tagName"
+ :placeholder="t('tags.namePlaceholder')"
+ :autofocus="false"
+ variant="subtle"
+ class="w-full"
+ />
+ </UFormField>
+
+ <UFormField :label="t('tags.color')" class="w-full">
+ <UColorPicker
+ v-model="tagColor"
+ :presets="colorPresets"
+ :ui="{selector:'w-full', picker:'w-full', root:'w-full'}"
+ />
+ </UFormField>
+
+ <div class="flex gap-2 w-full">
+ <span class="text-sm text-muted">{{ t('tags.preview') }}:</span>
+ <UBadge
+ :label="tagName || t('tags.tagName')"
+ :style="{ backgroundColor: tagColor, color: getContrastColor(tagColor) }"
+ >
+ <template #leading>
+ <UIcon
+ name="i-lucide-tag"
+ class="size-3"
+ />
+ </template>
+ </UBadge>
+ </div>
+ </div>
+ </template>
+
+ <template #footer>
+ <div class="flex justify-between w-full">
+ <UButton
+ v-if="!isNewTag"
+ :label="t('common.delete')"
+ color="error"
+ variant="ghost"
+ icon="i-lucide-trash-2"
+ @click="handleDelete"
+ />
+ <div class="flex gap-2 ml-auto">
+ <UButton
+ :label="t('common.cancel')"
+ color="neutral"
+ variant="outline"
+ @click="isOpen = false"
+ />
+ <UButton
+ :label="t('common.save')"
+ :disabled="!tagName.trim()"
+ variant="outline"
+ @click="handleSave"
+ />
+ </div>
+ </div>
+ </template>
+ </UModal>
+</template>
+
+<script setup lang="ts">
+import { ref, watch, computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { TagItem } from 'taskview-api'
+
+const props = defineProps<{
+ tag?: TagItem | null
+ goalId: number
+}>()
+
+const emit = defineEmits<{
+ save: [data: { id?: number; name: string; color: string; goalId: number }]
+ delete: [tag: TagItem]
+}>()
+
+const { t } = useI18n()
+
+const isOpen = defineModel<boolean>('open', { required: true })
+
+const tagName = ref('')
+const tagColor = ref('#1E88E5')
+
+const isNewTag = computed(() => !props.tag)
+
+const colorPresets = [
+ '#E53935', '#D81B60', '#8E24AA', '#5E35B1', '#3949AB',
+ '#1E88E5', '#039BE5', '#00ACC1', '#00897B', '#43A047',
+ '#7CB342', '#C0CA33', '#FDD835', '#FFB300', '#FB8C00',
+ '#F4511E', '#6D4C41', '#546E7A', '#26A69A', '#EC407A',
+]
+
+watch(isOpen, (open) => {
+ if (open) {
+ if (props.tag) {
+ tagName.value = props.tag.name
+ tagColor.value = props.tag.color
+ } else {
+ tagName.value = ''
+ tagColor.value = '#1E88E5'
+ }
+ }
+})
+
+function getContrastColor(hexColor: string): string {
+ const hex = hexColor.replace('#', '')
+ const r = parseInt(hex.substring(0, 2), 16)
+ const g = parseInt(hex.substring(2, 4), 16)
+ const b = parseInt(hex.substring(4, 6), 16)
+ const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255
+ return luminance > 0.5 ? '#000000' : '#ffffff'
+}
+
+function handleSave() {
+ emit('save', {
+ id: props.tag?.id,
+ name: tagName.value.trim(),
+ color: tagColor.value,
+ goalId: props.goalId,
+ })
+ isOpen.value = false
+}
+
+function handleDelete() {
+ if (props.tag) {
+ emit('delete', props.tag)
+ isOpen.value = false
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/tags/TagItem.vue b/web-nuxt-ui/src/components/features/tasks/parts/tags/TagItem.vue
new file mode 100644
index 0000000..65935ad
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/tags/TagItem.vue
@@ -0,0 +1,83 @@
+<template>
+ <UBadge
+ :label="tag.name"
+ :style="badgeStyle"
+ :variant="isSelected ? 'solid' : 'outline'"
+ class="cursor-pointer select-none"
+ size="lg"
+ @click="handleClick"
+ >
+ <template #leading>
+ <UIcon
+ name="i-lucide-tag"
+ class="size-3"
+ />
+ </template>
+
+ <template
+ v-if="editMode"
+ #trailing
+ >
+ <div class="flex items-center ml-1 -mr-1 gap-2">
+ <UButton
+ icon="i-lucide-pencil"
+ size="xs"
+ color="neutral"
+ variant="ghost"
+ @click.stop="$emit('edit', tag)"
+ />
+ <!-- <UButton
+ icon="i-lucide-x"
+ size="xs"
+ color="error"
+ variant="ghost"
+ @click.stop="$emit('delete', tag)"
+ /> -->
+ </div>
+ </template>
+ </UBadge>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import type { TagItem as TagItemType } from 'taskview-api'
+
+const props = defineProps<{
+ tag: TagItemType
+ isSelected: boolean
+ editMode?: boolean
+}>()
+
+const emit = defineEmits<{
+ toggle: [tag: TagItemType]
+ edit: [tag: TagItemType]
+ delete: [tag: TagItemType]
+}>()
+
+const badgeStyle = computed(() => {
+ if (props.isSelected) {
+ return {
+ backgroundColor: props.tag.color,
+ borderColor: props.tag.color,
+ color: getContrastColor(props.tag.color),
+ }
+ }
+ return {
+ borderColor: props.tag.color,
+ color: props.tag.color,
+ }
+})
+
+function getContrastColor(hexColor: string): string {
+ const hex = hexColor.replace('#', '')
+ const r = parseInt(hex.substring(0, 2), 16)
+ const g = parseInt(hex.substring(2, 4), 16)
+ const b = parseInt(hex.substring(4, 6), 16)
+ const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255
+ return luminance > 0.5 ? '#000000' : '#ffffff'
+}
+
+function handleClick() {
+ emit('toggle', props.tag)
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/tags/TagSearchAdd.vue b/web-nuxt-ui/src/components/features/tasks/parts/tags/TagSearchAdd.vue
new file mode 100644
index 0000000..1f845f4
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/tags/TagSearchAdd.vue
@@ -0,0 +1,117 @@
+<template>
+ <div class="space-y-3">
+ <UInput
+ v-model="searchQuery"
+ :placeholder="t('tags.searchPlaceholder')"
+ icon="i-lucide-search"
+ size="xl"
+ class="w-full"
+ :variant="isDark ? 'subtle' : 'soft'"
+ @keydown.enter="handleEnter"
+ />
+
+ <div
+ v-if="filteredTags.length > 0"
+ class="flex flex-wrap gap-2"
+ >
+ <TagItem
+ v-for="tag in filteredTags"
+ :key="tag.id"
+ :tag="tag"
+ :is-selected="isTagSelected(tag.id)"
+ :edit-mode="editMode"
+ @toggle="$emit('toggle', tag)"
+ @edit="$emit('edit', tag)"
+ @delete="$emit('delete', tag)"
+ />
+ </div>
+
+ <div
+ v-else-if="searchQuery.trim()"
+ class="text-sm text-muted py-2"
+ >
+ {{ t('tags.noTagsFound') }}
+ </div>
+
+ <UButton
+ :disabled="!canEditTaskTags"
+ icon="i-lucide-plus"
+ color="neutral"
+ variant="subtle"
+ size="md"
+ class="w-full justify-start"
+ @click="$emit('create')"
+ >
+ {{ t('tags.createTag') }}
+ </UButton>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, computed } from 'vue'
+import { useI18n } from 'vue-i18n'
+import type { TagItem as TagItemType } from 'taskview-api'
+import TagItem from './TagItem.vue'
+import { useColorMode } from '@vueuse/core'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+
+const props = defineProps<{
+ tags: TagItemType[]
+ selectedTagIds: number[]
+ editMode?: boolean
+}>()
+
+const emit = defineEmits<{
+ toggle: [tag: TagItemType]
+ edit: [tag: TagItemType]
+ delete: [tag: TagItemType]
+ create: []
+ quickCreate: [data: { name: string; color: string }]
+}>()
+
+const colorMode = useColorMode()
+const isDark = computed(() => colorMode.value === 'dark')
+const { canEditTaskTags } = useGoalPermissions()
+const { t } = useI18n()
+
+const searchQuery = ref('')
+
+const colorPresets = [
+ '#E53935', '#D81B60', '#8E24AA', '#5E35B1', '#3949AB',
+ '#1E88E5', '#039BE5', '#00ACC1', '#00897B', '#43A047',
+ '#7CB342', '#C0CA33', '#FDD835', '#FFB300', '#FB8C00',
+ '#F4511E', '#6D4C41', '#546E7A', '#26A69A', '#EC407A',
+]
+
+const filteredTags = computed(() => {
+ const query = searchQuery.value.toLowerCase().trim()
+ if (!query) return props.tags
+ return props.tags.filter(tag =>
+ tag.name.toLowerCase().includes(query),
+ )
+})
+
+function isTagSelected(tagId: number): boolean {
+ return props.selectedTagIds.includes(tagId)
+}
+
+function getRandomColor(): string {
+ return colorPresets[Math.floor(Math.random() * colorPresets.length)]
+}
+
+function handleEnter() {
+ const name = searchQuery.value.trim()
+ if (!name) return
+
+ const existingTag = props.tags.find(
+ tag => tag.name.toLowerCase() === name.toLowerCase(),
+ )
+
+ if (existingTag) {
+ emit('toggle', existingTag)
+ } else {
+ emit('quickCreate', { name, color: getRandomColor() })
+ }
+ searchQuery.value = ''
+}
+</script>
diff --git a/web-nuxt-ui/src/components/features/tasks/parts/tags/TaskTagsManager.vue b/web-nuxt-ui/src/components/features/tasks/parts/tags/TaskTagsManager.vue
new file mode 100644
index 0000000..9767b50
--- /dev/null
+++ b/web-nuxt-ui/src/components/features/tasks/parts/tags/TaskTagsManager.vue
@@ -0,0 +1,185 @@
+<template>
+ <div class="shadow-sm rounded-lg p-2 dark:bg-tv-ui-bg-elevated">
+ <div class="flex items-center justify-between mb-2">
+ <label class="text-sm text-muted">{{ t('tasks.tags') }}</label>
+ <UButton
+ :icon="isEditMode ? 'i-lucide-check' : 'i-lucide-settings'"
+ :ui="{base: 'text-sm'}"
+ :disabled="!canEditTaskTags"
+ size="sm"
+ color="neutral"
+ variant="ghost"
+ @click="isEditMode = !isEditMode"
+ >
+ {{ isEditMode ? t('common.done') : t('tags.manageTags') }}
+ </UButton>
+ </div>
+
+ <TagSearchAdd
+ v-if="canViewTaskTags"
+ :tags="availableTags"
+ :selected-tag-ids="taskTagIds"
+ :edit-mode="isEditMode"
+ @toggle="handleToggleTag"
+ @edit="openEditDialog"
+ @delete="openDeleteConfirm"
+ @create="openCreateDialog"
+ @quick-create="handleQuickCreate"
+ />
+
+ <!-- Edit/Create Tag Dialog -->
+ <TagEditDialog
+ v-model:open="isEditDialogOpen"
+ :tag="editingTag"
+ :goal-id="goalId"
+ @save="handleSaveTag"
+ @delete="openDeleteConfirm"
+ />
+
+ <!-- Delete Confirmation Dialog -->
+ <UModal
+ v-model:open="isDeleteDialogOpen"
+ :title="t('tags.deleteConfirm')"
+ >
+ <template #body>
+ <p>{{ t('tags.deleteMessage', { name: deletingTag?.name }) }}</p>
+ </template>
+ <template #footer>
+ <div class="flex w-full justify-end gap-2">
+ <UButton
+ :label="t('common.cancel')"
+ color="neutral"
+ variant="outline"
+ @click="isDeleteDialogOpen = false"
+ />
+ <UButton
+ :label="t('common.delete')"
+ color="error"
+ variant="outline"
+ @click="confirmDeleteTag"
+ />
+ </div>
+ </template>
+ </UModal>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref, computed, onMounted } from 'vue'
+import { useI18n } from 'vue-i18n'
+import { useTagsStore } from '@/stores/tag.store'
+import { useTasksStore } from '@/stores/tasks.store'
+import type { TagItem as TagItemType } from 'taskview-api'
+import TagSearchAdd from './TagSearchAdd.vue'
+import TagEditDialog from './TagEditDialog.vue'
+import { useGoalPermissions } from '@/composables/useGoalPermissions'
+import { useProjectContext } from '@/composables/useProjectContext'
+
+const props = defineProps<{
+ taskId: number
+ taskTagIds: number[]
+ goalId: number
+}>()
+
+const { canEditTaskTags, canViewTaskTags } = useGoalPermissions()
+const { t } = useI18n()
+const tagsStore = useTagsStore()
+const tasksStore = useTasksStore()
+const projectContext = useProjectContext()
+
+onMounted(async () => {
+ if (tagsStore.tags.length === 0) {
+ await tagsStore.fetchAllTags()
+ }
+})
+
+const isEditMode = ref(false)
+const isEditDialogOpen = ref(false)
+const isDeleteDialogOpen = ref(false)
+const editingTag = ref<TagItemType | null>(null)
+const deletingTag = ref<TagItemType | null>(null)
+
+const availableTags = computed(() =>
+ projectContext ? projectContext.tags.value : tagsStore.filteredTags,
+)
+
+async function handleToggleTag(tag: TagItemType) {
+ await tasksStore.toggleTagForTask({
+ taskId: props.taskId,
+ tagId: tag.id,
+ })
+}
+
+function openEditDialog(tag: TagItemType) {
+ editingTag.value = tag
+ isEditDialogOpen.value = true
+}
+
+function openCreateDialog() {
+ editingTag.value = null
+ isEditDialogOpen.value = true
+}
+
+function openDeleteConfirm(tag: TagItemType) {
+ deletingTag.value = tag
+ isDeleteDialogOpen.value = true
+}
+
+async function confirmDeleteTag() {
+ if (deletingTag.value) {
+ await tagsStore.deleteTag(deletingTag.value.id)
+ deletingTag.value = null
+ isDeleteDialogOpen.value = false
+ isEditDialogOpen.value = false
+ }
+}
+
+async function handleSaveTag(data: { id?: number; name: string; color: string; goalId: number }) {
+ if (data.id) {
+ await tagsStore.updateTag({
+ id: data.id,
+ name: data.name,
+ color: data.color,
+ goalId: data.goalId,
+ })
+ } else {
+ const success = await tagsStore.addTag({
+ name: data.name,
+ color: data.color,
+ goalId: data.goalId,
+ })
+
+ if (success) {
+ const newTag = tagsStore.tags.find(
+ tag => tag.name.toLowerCase() === data.name.toLowerCase(),
+ )
+ if (newTag) {
+ await tasksStore.toggleTagForTask({
+ taskId: props.taskId,
+ tagId: newTag.id,
+ })
+ }
+ }
+ }
+}
+
+async function handleQuickCreate(data: { name: string; color: string }) {
+ const success = await tagsStore.addTag({
+ name: data.name,
+ color: data.color,
+ goalId: props.goalId,
+ })
+
+ if (success) {
+ const newTag = tagsStore.tags.find(
+ tag => tag.name.toLowerCase() === data.name.toLowerCase(),
+ )
+ if (newTag) {
+ await tasksStore.toggleTagForTask({
+ taskId: props.taskId,
+ tagId: newTag.id,
+ })
+ }
+ }
+}
+</script>
diff --git a/web-nuxt-ui/src/composables/useAdditionalServer.ts b/web-nuxt-ui/src/composables/useAdditionalServer.ts
new file mode 100644
index 0000000..dc8fe0d
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useAdditionalServer.ts
@@ -0,0 +1,59 @@
+import { storeToRefs } from 'pinia'
+import { ref } from 'vue'
+import $api from '@/helpers/axios'
+import { $ls, $tvApi } from '@/plugins/axios'
+import { additionalUrlStore } from '@/stores/additional-url.store'
+
+export const LS_KEY_ADDITIONAL_SERVERS = 'additionalServers'
+export const LS_KEY_MAIN_SERVER = 'mainServer'
+
+/**
+ * Use this composition to get and set additional servers and main server for API requests
+ * User can add additional servers and set main server from local storage
+ * Also user can delete additional server
+ * @returns
+ */
+export const useAdditionalServer = async () => {
+ const { allServers, mainServer, systemServer } = storeToRefs(additionalUrlStore())
+ const serversFromLocalStorage = ref<string | null>(await $ls.getValue(LS_KEY_ADDITIONAL_SERVERS))
+ const mainServerFromLocalStorage = await $ls.getValue(LS_KEY_MAIN_SERVER)
+
+ allServers.value = serversFromLocalStorage.value ? [...JSON.parse(serversFromLocalStorage.value)] : []
+
+ mainServer.value =
+ mainServerFromLocalStorage ||
+ (process.env.NODE_ENV !== 'production' ? 'http://localhost:1401' : 'https://apitaskview.handscream.com')
+
+ systemServer.value =
+ process.env.NODE_ENV !== 'production' ? 'http://localhost:1401' : 'https://apitaskview.handscream.com'
+
+ const setMainServer = (server: string) => {
+ mainServer.value = server
+ $ls.setValue(LS_KEY_MAIN_SERVER, server)
+ $api.defaults.baseURL = server
+ $tvApi?.setBaseUrl(server)
+ }
+
+ const addServer = (server: string) => {
+ allServers.value.push(server)
+ $ls.setValue(LS_KEY_ADDITIONAL_SERVERS, allServers.value)
+ }
+
+ const deleteServer = (server: string) => {
+ allServers.value = allServers.value.filter((s) => s !== server)
+ $ls.setValue(LS_KEY_ADDITIONAL_SERVERS, allServers.value)
+
+ if (mainServer.value === server) {
+ setMainServer(systemServer.value)
+ }
+ }
+
+ return {
+ mainServer,
+ allServers,
+ setMainServer,
+ addServer,
+ systemServer,
+ deleteServer,
+ }
+}
diff --git a/web-nuxt-ui/src/composables/useAppRouteInfo.ts b/web-nuxt-ui/src/composables/useAppRouteInfo.ts
new file mode 100644
index 0000000..d4dbeb9
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useAppRouteInfo.ts
@@ -0,0 +1,23 @@
+import { computed } from 'vue'
+import { useRoute } from 'vue-router'
+
+export const useAppRouteInfo = () => {
+ const route = useRoute()
+ const isUserRoute = computed(() => route.name === 'user')
+ const isAccountRoute = computed(() => route.name === 'account')
+ const projectId = computed(() => Number(route.params.projectId) || -1)
+ const hasProject = computed(() => projectId.value > 0)
+ const listId = computed(() => Number(route.params.listId) || -1)
+ const hasList = computed(() => !!route.params.listId)
+ const taskId = computed(() => Number(route.params.taskId) || -1)
+
+ return {
+ isUserRoute,
+ isAccountRoute,
+ hasProject,
+ projectId,
+ listId,
+ hasList,
+ taskId,
+ }
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/src/composables/useColotMode.ts b/web-nuxt-ui/src/composables/useColotMode.ts
new file mode 100644
index 0000000..d772258
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useColotMode.ts
@@ -0,0 +1,11 @@
+import { computed } from 'vue'
+import { useColorMode } from '@vueuse/core'
+
+export const useColor = () => {
+ const colorMode = useColorMode()
+ const isDark = computed(() => colorMode.value === 'dark')
+ return {
+ colorMode,
+ isDark,
+ }
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/src/composables/useDashboard.ts b/web-nuxt-ui/src/composables/useDashboard.ts
new file mode 100644
index 0000000..ba6578a
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useDashboard.ts
@@ -0,0 +1,26 @@
+import { ref, watch } from 'vue'
+import { useRoute } from 'vue-router'
+import { createSharedComposable } from '@vueuse/core'
+
+const _useDashboard = () => {
+ const route = useRoute()
+ const isSidebarOpen = ref(true)
+ const isSidebarCollapsed = ref(false)
+
+ watch(
+ () => route.fullPath,
+ () => {
+ if (window.innerWidth < 1024) {
+ isSidebarOpen.value = false
+ }
+ },
+ { immediate: true },
+ )
+
+ return {
+ isSidebarOpen,
+ isSidebarCollapsed,
+ }
+}
+
+export const useDashboard = createSharedComposable(_useDashboard)
diff --git a/web-nuxt-ui/src/composables/useGoalPermissions.ts b/web-nuxt-ui/src/composables/useGoalPermissions.ts
new file mode 100644
index 0000000..6fb6d34
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useGoalPermissions.ts
@@ -0,0 +1,112 @@
+import { computed, provide, inject, type ComputedRef, type InjectionKey, type Ref } from 'vue'
+import { useGoalsStore } from '@/stores/goals.store'
+import { AllGoalPermissions } from '@/types/goals.types'
+import type { GoalItem } from 'taskview-api'
+
+type PermissionName = (keyof typeof AllGoalPermissions);
+
+const GOAL_CONTEXT_KEY: InjectionKey<Ref<GoalItem | null | undefined>> = Symbol('goalPermissionsContext')
+
+export function provideGoalPermissions(goal: Ref<GoalItem | null | undefined>) {
+ provide(GOAL_CONTEXT_KEY, goal)
+}
+
+function hasPermission(goal: GoalItem | null | undefined, perm: PermissionName): boolean {
+ return !!goal?.permissions[AllGoalPermissions[perm]]
+}
+
+export function useGoalPermissionsFor(goalRef: Ref<GoalItem | null>) {
+ const can = (perm: PermissionName) => computed(() => hasPermission(goalRef.value, perm))
+
+ return {
+ canDeleteGoal: can('GOAL_CAN_DELETE'),
+ canEditGoal: can('GOAL_CAN_EDIT'),
+ canManageUsers: can('GOAL_CAN_MANAGE_USERS'),
+ canViewKanban: computed(() => hasPermission(goalRef.value, 'KANBAN_CAN_VIEW') || hasPermission(goalRef.value, 'KANBAN_CAN_MANAGE')),
+ canViewGraph: computed(() => hasPermission(goalRef.value, 'GRAPH_CAN_VIEW') || hasPermission(goalRef.value, 'GRAPH_CAN_MANAGE')),
+ }
+}
+
+export const useGoalPermissions = () => {
+ const injectedGoal = inject(GOAL_CONTEXT_KEY, null)
+ const goalsStore = useGoalsStore()
+ const goal = computed(() => injectedGoal?.value ?? goalsStore.selectedGoal ?? null)
+
+ const cache = {} as Record<PermissionName, ComputedRef<boolean>>
+
+ const permissions = new Proxy({} as Record<PermissionName, boolean>, {
+ get(_, prop: PermissionName) {
+ if (!cache[prop]) {
+ cache[prop] = computed(() => {
+ return !!goal.value?.permissions[AllGoalPermissions[prop]]
+ })
+ }
+ return cache[prop].value
+ },
+ })
+
+ const canDeleteGoal = computed(() => permissions.GOAL_CAN_DELETE)
+ const canEditGoal = computed(() => permissions.GOAL_CAN_EDIT)
+ const canManageUsers = computed(() => permissions.GOAL_CAN_MANAGE_USERS)
+ const canAddTaskList = computed(() => permissions.GOAL_CAN_ADD_TASK_LIST)
+ const canViewLists = computed(() => permissions.GOAL_CAN_WATCH_CONTENT)
+ const canDeleteList = computed(() => permissions.COMPONENT_CAN_DELETE)
+ const canEditList = computed(() => permissions.COMPONENT_CAN_EDIT)
+ const canViewTasks = computed(() => permissions.COMPONENT_CAN_WATCH_CONTENT)
+ const canAddTask = computed(() => permissions.COMPONENT_CAN_ADD_TASKS)
+ const canDeleteTask = computed(() => permissions.TASK_CAN_DELETE)
+ const canEditTaskDescription = computed(() => permissions.TASK_CAN_EDIT_DESCRIPTION)
+ const canEditTaskStatus = computed(() => permissions.TASK_CAN_EDIT_STATUS)
+ const canEditTaskNote = computed(() => permissions.TASK_CAN_EDIT_NOTE)
+ const canViewTaskNote = computed(() => permissions.TASK_CAN_WATCH_NOTE)
+ const canEditTaskDeadline = computed(() => permissions.TASK_CAN_EDIT_DEADLINE)
+ const canViewTaskDetails = computed(() => permissions.TASK_CAN_WATCH_DETAILS)
+ const canViewTaskSubtasks = computed(() => permissions.TASK_CAN_WATCH_SUBTASKS)
+ const canAddTaskSubtasks = computed(() => permissions.TASK_CAN_ADD_SUBTASKS)
+ const canEditTaskTags = computed(() => permissions.TASK_CAN_EDIT_TAGS)
+ const canViewTaskTags = computed(() => permissions.TASK_CAN_WATCH_TAGS)
+ const canViewTaskPriority = computed(() => permissions.TASK_CAN_WATCH_PRIORITY)
+ const canEditTaskPriority = computed(() => permissions.TASK_CAN_EDIT_PRIORITY)
+ const canAccessTaskHistory = computed(() => permissions.TASK_CAN_ACCESS_HISTORY)
+ const canRecoveryTaskHistory = computed(() => permissions.TASK_CAN_RECOVERY_HISTORY)
+ const canAssignUsersToTask = computed(() => permissions.TASK_CAN_ASSIGN_USERS)
+ const canViewAssignedUsersToTask = computed(() => permissions.TASK_CAN_WATCH_ASSIGNED_USERS)
+ const canViewKanban = computed(() => permissions.KANBAN_CAN_VIEW || permissions.KANBAN_CAN_MANAGE)
+ const canManageKanban = computed(() => permissions.KANBAN_CAN_MANAGE)
+ const canViewGraph = computed(() => permissions.GRAPH_CAN_VIEW || permissions.GRAPH_CAN_MANAGE)
+ const canManageGraph = computed(() => permissions.GRAPH_CAN_MANAGE)
+
+ return {
+ permissions,
+ canDeleteGoal,
+ canEditGoal,
+ canManageUsers,
+ canAddTaskList,
+ canViewLists,
+ canDeleteList,
+ canEditList,
+ canViewTasks,
+ canAddTask,
+ canDeleteTask,
+ canEditTaskDescription,
+ canEditTaskStatus,
+ canEditTaskNote,
+ canViewTaskNote,
+ canEditTaskDeadline,
+ canViewTaskDetails,
+ canViewTaskSubtasks,
+ canAddTaskSubtasks,
+ canEditTaskTags,
+ canViewTaskTags,
+ canViewTaskPriority,
+ canEditTaskPriority,
+ canAccessTaskHistory,
+ canRecoveryTaskHistory,
+ canAssignUsersToTask,
+ canViewAssignedUsersToTask,
+ canViewKanban,
+ canManageKanban,
+ canViewGraph,
+ canManageGraph,
+ }
+}
diff --git a/web-nuxt-ui/src/composables/useLogout.ts b/web-nuxt-ui/src/composables/useLogout.ts
new file mode 100644
index 0000000..2ee3cfa
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useLogout.ts
@@ -0,0 +1,15 @@
+import $api from '@/helpers/axios'
+import { $ls } from '@/plugins/axios'
+
+export async function useLogout() {
+ const result = await $api.post<{ logout: boolean }>('/module/auth/logout').catch((err) => {
+ console.log(err, $api)
+ })
+
+ if (result) {
+ await $ls.invalidateTokens()
+ return true
+ }
+
+ return false
+}
diff --git a/web-nuxt-ui/src/composables/useProjectContext.ts b/web-nuxt-ui/src/composables/useProjectContext.ts
new file mode 100644
index 0000000..195cf74
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useProjectContext.ts
@@ -0,0 +1,83 @@
+import { ref, computed, watch, provide, inject, type InjectionKey, type Ref, type ComputedRef } from 'vue'
+import type { CollaborationResponseFetchAllUsers, KanbanColumnItem } from 'taskview-api'
+import type { TagItem } from '@/types/tags.types'
+import { DEFAULT_ID } from '@/types/app.types'
+import { $tvApi } from '@/plugins/axios'
+import { useTagsStore } from '@/stores/tag.store'
+import { useGoalsStore } from '@/stores/goals.store'
+import { useCollaborationStore } from '@/stores/collaboration.store'
+import { useKanbanStore } from '@/stores/kanban.store'
+
+export type ProjectContext = {
+ tags: ComputedRef<TagItem[]>
+ users: Ref<CollaborationResponseFetchAllUsers[]>
+ statuses: Ref<KanbanColumnItem[]>
+}
+
+const PROJECT_CONTEXT_KEY: InjectionKey<ProjectContext> = Symbol('projectContext')
+
+export function provideProjectContext(goalId: Ref<number>) {
+ const tagsStore = useTagsStore()
+ const goalsStore = useGoalsStore()
+
+ const tags = computed(() => {
+ const id = goalId.value
+ if (id <= 0) return []
+ return tagsStore.tags.filter(
+ (tag) => tag.goalId === id,
+ )
+ })
+
+ const users = ref<CollaborationResponseFetchAllUsers[]>([])
+ const statuses = ref<KanbanColumnItem[]>([])
+ let requestId = 0
+
+ watch(goalId, async (id) => {
+ if (id <= 0) {
+ users.value = []
+ statuses.value = []
+ return
+ }
+
+ if (tagsStore.tags.length === 0) {
+ await tagsStore.fetchAllTags()
+ }
+
+ // If we're inside this project already, reuse data from global stores
+ if (goalsStore.selectedItemId === id) {
+ const collaborationStore = useCollaborationStore()
+ const kanbanStore = useKanbanStore()
+ users.value = collaborationStore.users
+ statuses.value = kanbanStore.statuses
+ return
+ }
+
+ // Otherwise fetch project data without touching global stores
+ const currentRequestId = ++requestId
+
+ const [usersResult, columnsResult] = await Promise.all([
+ $tvApi.collaboration.fetchUsersForGoal(id).catch(() => null),
+ $tvApi.kanban.fetchAllColumns(id).catch(() => null),
+ ])
+
+ // Stale check — goalId could have changed while requests were in flight
+ if (currentRequestId !== requestId) return
+
+ if (usersResult) users.value = usersResult
+ if (columnsResult) {
+ statuses.value = [
+ { id: DEFAULT_ID, name: 'msg.allTasks', goalId: id, viewOrder: 0 },
+ ...columnsResult,
+ ]
+ }
+ }, { immediate: true })
+
+ const context: ProjectContext = { tags, users, statuses }
+ provide(PROJECT_CONTEXT_KEY, context)
+
+ return context
+}
+
+export function useProjectContext(): ProjectContext | null {
+ return inject(PROJECT_CONTEXT_KEY, null)
+}
diff --git a/web-nuxt-ui/src/composables/useProjectDataLoader.ts b/web-nuxt-ui/src/composables/useProjectDataLoader.ts
new file mode 100644
index 0000000..da2b60c
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useProjectDataLoader.ts
@@ -0,0 +1,21 @@
+import { watch, type Ref } from 'vue'
+import { useCollaborationStore } from '@/stores/collaboration.store'
+import { useKanbanStore } from '@/stores/kanban.store'
+import { useTagsStore } from '@/stores/tag.store'
+
+export function useProjectDataLoader(projectId: Ref<number>) {
+ const collaborationStore = useCollaborationStore()
+ const kanbanStore = useKanbanStore()
+ const tagsStore = useTagsStore()
+
+ tagsStore.fetchAllTags()
+
+ watch(projectId, (id) => {
+ if (id > 0) {
+ Promise.all([
+ kanbanStore.fetchStatuses(id),
+ collaborationStore.fetchCollaborationUsersForGoal(id),
+ ])
+ }
+ }, { immediate: true })
+}
diff --git a/web-nuxt-ui/src/composables/useSelectedTaskSync.ts b/web-nuxt-ui/src/composables/useSelectedTaskSync.ts
new file mode 100644
index 0000000..34b62d8
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useSelectedTaskSync.ts
@@ -0,0 +1,33 @@
+import { watch } from 'vue'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useKanbanStore } from '@/stores/kanban.store'
+import { useGraphStore } from '@/stores/graph.store'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+
+// If you use it in more than one component, you need to use a shared composable
+// using import { createSharedComposable } from '@vueuse/core'
+export function useSelectedTaskSync() {
+ const tasksStore = useTasksStore()
+ const kanbanStore = useKanbanStore()
+ const graphStore = useGraphStore()
+ const baseScreenStore = useBaseScreenStore()
+
+ watch(
+ () => tasksStore.selectedTask,
+ (task) => {
+ if (!task) return
+ kanbanStore.syncTask(task)
+ graphStore.syncTask(task)
+ baseScreenStore.syncTask(task)
+ },
+ { deep: true },
+ )
+
+ function broadcastRemoval(taskId: number) {
+ kanbanStore.removeTask(taskId)
+ graphStore.removeTask(taskId)
+ baseScreenStore.removeTask(taskId)
+ }
+
+ return { broadcastRemoval }
+}
diff --git a/web-nuxt-ui/src/composables/useTaskDetailPanel.ts b/web-nuxt-ui/src/composables/useTaskDetailPanel.ts
new file mode 100644
index 0000000..81fbaf6
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useTaskDetailPanel.ts
@@ -0,0 +1,94 @@
+import { ref, computed, watch } from 'vue'
+import { createSharedComposable } from '@vueuse/core'
+import { useRoute, useRouter } from 'vue-router'
+import { useTasksStore } from '@/stores/tasks.store'
+import { useBaseScreenStore } from '@/stores/base-screen.store'
+
+const _useTaskDetailPanel = () => {
+ const tasksStore = useTasksStore()
+ const baseScreenStore = useBaseScreenStore()
+ const route = useRoute()
+ const router = useRouter()
+ const activeTaskId = ref<number | null>(null)
+ const initialEndDate = ref<string | null>(null)
+
+ const isOpen = computed({
+ get: () => activeTaskId.value !== null,
+ set: (value: boolean) => {
+ if (!value) {
+ closeTask()
+ }
+ },
+ })
+
+ // When browser back removes taskId from URL — close panel without navigating
+ watch(
+ () => route.params.taskId,
+ (taskId) => {
+ if (!taskId && activeTaskId.value !== null && route.name === 'user') {
+ syncBaseScreen()
+ activeTaskId.value = null
+ tasksStore.selectedTask = null
+ }
+ },
+ )
+
+ async function openTask(id: number) {
+ activeTaskId.value = id
+ await tasksStore.fetchTaskById(id)
+ initialEndDate.value = tasksStore.selectedTask?.endDate ?? null
+
+ // Update URL with taskId only when a project is already selected
+ const task = tasksStore.selectedTask
+ if (route.name === 'user' && route.params.projectId && task) {
+ const projectId = String(route.params.projectId)
+ const listId = String(route.params.listId)
+ const taskId = String(task.id)
+
+ if (route.params.taskId !== taskId) {
+ router.push({
+ name: 'user',
+ params: { projectId, listId, taskId },
+ })
+ }
+ }
+ }
+
+ function syncBaseScreen() {
+ if (!baseScreenStore.wasCalled) return
+
+ const task = tasksStore.selectedTask
+ if (!task) return
+
+ const dateChanged = (task.endDate ?? null) !== initialEndDate.value
+
+ if (dateChanged) {
+ baseScreenStore.fetchAllState()
+ } else {
+ baseScreenStore.syncTask(task)
+ }
+ }
+
+ function closeTask() {
+ // On user route with taskId — go back (browser history), watcher will clear state
+ if (route.name === 'user' && route.params.taskId) {
+ syncBaseScreen()
+ router.back()
+ return
+ }
+
+ // On kanban/graph or no taskId in URL — just clear state
+ syncBaseScreen()
+ activeTaskId.value = null
+ tasksStore.selectedTask = null
+ }
+
+ return {
+ activeTaskId,
+ isOpen,
+ openTask,
+ closeTask,
+ }
+}
+
+export const useTaskDetailPanel = createSharedComposable(_useTaskDetailPanel)
diff --git a/web-nuxt-ui/src/composables/useTaskView.ts b/web-nuxt-ui/src/composables/useTaskView.ts
new file mode 100644
index 0000000..0cad678
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useTaskView.ts
@@ -0,0 +1,17 @@
+import { computed } from 'vue'
+import { useGoalsStore } from '@/stores/goals.store'
+import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'
+
+
+export const useTaskView = () => {
+ const goalsStore = useGoalsStore()
+ const bp = useBreakpoints(breakpointsTailwind)
+ const isMobile = bp.smaller('lg')
+ const isDesktop = bp.greaterOrEqual('lg')
+
+ return {
+ hasActiveGoals: computed(() => goalsStore.goals.length > 0),
+ isMobile,
+ isDesktop,
+ }
+}
diff --git a/web-nuxt-ui/src/composables/useTaskViewMainUrl.ts b/web-nuxt-ui/src/composables/useTaskViewMainUrl.ts
new file mode 100644
index 0000000..5f9963b
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useTaskViewMainUrl.ts
@@ -0,0 +1,9 @@
+/**
+ * Use this composition to get OFFICIAL SERVER URL
+ * We allow updates only from our servers
+ * @returns
+ */
+export const useTaskViewMainUrl = () => {
+ // DO NOT CHANGE THIS URL WE ALLOW UPDATES ONLY FROM THIS OUR SERVERS
+ return process.env.NODE_ENV !== 'production' ? 'http://localhost:1401' : 'https://apitaskview.handscream.com'
+}
diff --git a/web-nuxt-ui/src/composables/useUpdater.ts b/web-nuxt-ui/src/composables/useUpdater.ts
new file mode 100644
index 0000000..c30b92c
--- /dev/null
+++ b/web-nuxt-ui/src/composables/useUpdater.ts
@@ -0,0 +1,81 @@
+import { Preferences } from '@capacitor/preferences'
+import { SplashScreen } from '@capacitor/splash-screen'
+import { type BundleInfo, CapacitorUpdater } from '@capgo/capacitor-updater'
+import $api from '@/helpers/axios'
+import { $ls } from '@/plugins/axios'
+import type { AppResponse } from '@/types/global-app.types'
+import { useTaskViewMainUrl } from './useTaskViewMainUrl'
+
+let version: BundleInfo
+
+function isNewerVersion(server: string, current: string): boolean {
+ const s = server.split('.').map(Number)
+ const c = current.split('.').map(Number)
+ for (let i = 0; i < Math.max(s.length, c.length); i++) {
+ const sv = s[i] || 0
+ const cv = c[i] || 0
+ if (sv > cv) return true
+ if (sv < cv) return false
+ }
+ return false
+}
+
+export async function useUpdater(canUpdate: boolean = false) {
+ try {
+ const BRANCH_MODE: 'prod' | 'dev' = (await $ls.getValue('update_loading')) === 'dev' ? 'dev' : 'prod'
+
+ const updateInfo = await $api.get<AppResponse<{ version: string; file: string; branch: 'prod' | 'dev' }[]>>(
+ `${useTaskViewMainUrl()}/module/updates/info`,
+ )
+
+ const { value: currentVersion } = await Preferences.get({ key: 'app_version' })
+
+ const last = updateInfo.data.response.find((i) => i.branch === BRANCH_MODE)
+
+ console.log('branch', BRANCH_MODE)
+
+ if (!last) {
+ console.log('[Update] No new updates for this branch.', BRANCH_MODE)
+ return
+ }
+
+ console.log('currentVersion', currentVersion, 'updateInfo', last)
+
+ if (!currentVersion || isNewerVersion(last.version, currentVersion) || (version && version?.version !== last.version)) {
+ console.log('[Update] Downloading new version:', last.version)
+
+ version = await CapacitorUpdater.download({
+ version: last.version,
+ url: `${useTaskViewMainUrl()}/module/updates/download?branch=${BRANCH_MODE}`,
+ })
+ } else {
+ console.log('[Update] No new updates need to download.')
+ }
+
+ if (canUpdate && version) {
+ try {
+ console.log('[Update] New version available:', last.version)
+
+ SplashScreen.show()
+
+ console.log('[Update] Version:', version)
+
+ await CapacitorUpdater.next(version)
+
+ await Preferences.set({ key: 'app_version', value: last.version })
+
+ await CapacitorUpdater.set(version)
+
+ console.log('[set version]', last.version)
+
+ console.log('[Update] Update applied. Will take effect after restart.')
+ } catch (err: unknown) {
+ console.log(err)
+ } finally {
+ SplashScreen.hide()
+ }
+ }
+ } catch (err) {
+ console.warn('[Update] Error checking for update:', err)
+ }
+}
diff --git a/web-nuxt-ui/src/helpers/AppTypes.ts b/web-nuxt-ui/src/helpers/AppTypes.ts
new file mode 100644
index 0000000..7e3b591
--- /dev/null
+++ b/web-nuxt-ui/src/helpers/AppTypes.ts
@@ -0,0 +1,37 @@
+export type JWTPayload = {
+ exp: number;
+ id: number;
+ type: 'jwt';
+ userData: {
+ email: string;
+ id: number;
+ login: string;
+ permissions: {
+ [key: string]: {
+ id: number;
+ name: string;
+ description: string;
+ };
+ };
+ };
+};
+
+export type RefreshTokenResponse = {
+ access: string;
+ refresh: string;
+};
+
+
+export type RecoveryRequestResponse = { sent: boolean };
+
+export type ResetPasswordResponse = { reset: boolean };
+
+export type AppLanguages = { id: string; title: string }[];
+
+export type AppVersionsData = { [key: string]: { date: string; description: string; items: string[] } };
+
+export type VuetifyHeaderItem = { text: string; value: string; sortable?: boolean; align?: string };
+
+export type VuetifyHeaderItems = VuetifyHeaderItem[];
+
+export const IMAGE_HEIGHT = 290
diff --git a/web-nuxt-ui/src/helpers/Helper.ts b/web-nuxt-ui/src/helpers/Helper.ts
new file mode 100644
index 0000000..38dce34
--- /dev/null
+++ b/web-nuxt-ui/src/helpers/Helper.ts
@@ -0,0 +1,58 @@
+export function parseJwt<R>(token: string): R | undefined {
+ if (token.split('.').length === 3) {
+ const base64Url = token.split('.')[1]
+ const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/')
+ const jsonPayload = decodeURIComponent(
+ atob(base64)
+ .split('')
+ .map((c) => `%${(`00${c.charCodeAt(0).toString(16)}`).slice(-2)}`)
+ .join(''),
+ )
+ return JSON.parse(jsonPayload)
+ }
+}
+
+/** @deprecated */
+export function isEmail(email: string): boolean {
+ const re =
+ /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
+ return re.test(String(email).toLowerCase())
+}
+
+export const isNotNullable = <T>(val: T): val is Exclude<T, null | undefined> => {
+ return val !== null && val !== undefined
+}
+
+export const logError = (err: any) => console.log(err)
+
+export function validLogin(login: string) {
+ const re = /^[a-z0-9]{4,30}$/
+ return re.test(String(login).toLowerCase())
+}
+
+export function validCompanyLogin(login: string) {
+ const re = /^[a-z0-9-]{4,30}$/
+ return re.test(String(login).toLowerCase()) && login.lastIndexOf('-') !== login.length - 1
+}
+
+export function getRandomColor(): string {
+ const letters = '0123456789ABCDEF'
+ let color = '#'
+ for (let i = 0; i < 6; i++) {
+ color += letters[Math.floor(Math.random() * 16)]
+ }
+ return color
+}
+
+export function isValidHttpUrl(string: string) {
+ let url: URL
+
+ try {
+ url = new URL(string)
+ //eslint-disable-next-line @typescript-eslint/no-unused-vars
+ } catch (_) {
+ return false
+ }
+
+ return url.protocol === 'http:' || url.protocol === 'https:'
+}
diff --git a/web-nuxt-ui/src/helpers/LocalStorage.ts b/web-nuxt-ui/src/helpers/LocalStorage.ts
new file mode 100644
index 0000000..f93fd30
--- /dev/null
+++ b/web-nuxt-ui/src/helpers/LocalStorage.ts
@@ -0,0 +1,114 @@
+import { Preferences } from '@capacitor/preferences'
+import type { AxiosInstance } from 'axios'
+import type { JWTPayload } from '@/helpers/AppTypes'
+import { parseJwt } from '@/helpers/Helper'
+import { useUserStore } from '@/stores/user.store'
+
+export const ACCESS_TOKEN_KEY = 'access'
+export const REFRESH_TOKEN_KEY = 'refresh'
+
+export default class LocalStorage {
+ protected namespace: string = ''
+
+ protected axios!: AxiosInstance
+
+ public isLoggedIn: boolean = false
+
+ protected userStore!: ReturnType<typeof useUserStore>
+
+ constructor(options: { namespace: string; axios: AxiosInstance }) {
+ this.namespace = options.namespace
+ this.axios = options.axios
+ this.getToken().then(async (token) => {
+ this.isLoggedIn = !!token
+ this.userStore = useUserStore()
+ this.userStore.loading = false
+ await this.updateUserStoreByToken()
+ })
+ }
+
+ private key(key: string): string {
+ return `${this.namespace}.${key}`
+ }
+
+ async getValue(key: string): Promise<string | null> {
+ await Preferences.configure({ group: `store_${this.namespace}` })
+ return (await Preferences.get({ key: this.key(key) })).value
+ }
+
+ async removeKey(key: string) {
+ await Preferences.configure({ group: `store_${this.namespace}` })
+ await Preferences.remove({ key: this.key(key) })
+ }
+
+ //eslint-disable-next-line @typescript-eslint/no-explicit-any
+ async setValue(key: string, value: { [key: string]: any } | string): Promise<void> {
+ await Preferences.configure({ group: `store_${this.namespace}` })
+ if (typeof value !== 'string') {
+ value = JSON.stringify(value)
+ }
+ Preferences.set({
+ key: this.key(key),
+ value: value,
+ })
+ }
+
+ setToken(token: string): void {
+ this.setValue(ACCESS_TOKEN_KEY, token)
+ this.checkTokenAndSetForAxios()
+ this.isLoggedIn = true
+ }
+
+ setRefreshToken(refreshToken: string): void {
+ this.setValue(REFRESH_TOKEN_KEY, refreshToken)
+ }
+
+ async getToken(): Promise<string | null> {
+ const token = await this.getValue(ACCESS_TOKEN_KEY)
+ if (token && token.split('.').length === 3) {
+ return token
+ }
+ return null
+ }
+
+ async getRefreshToken(): Promise<string | null> {
+ return await this.getValue(REFRESH_TOKEN_KEY)
+ }
+
+ async checkTokenAndSetForAxios(): Promise<void> {
+ const token = await this.getToken()
+ if (token) {
+ this.axios.defaults.headers.common.Authorization = `Bearer ${token}`
+ }
+ }
+
+ async invalidateTokens() {
+ await this.removeKey(REFRESH_TOKEN_KEY)
+ await this.removeKey(ACCESS_TOKEN_KEY)
+ delete this.axios.defaults.headers.common.Authorization
+ this.isLoggedIn = false
+ if (this.userStore) {
+ this.userStore.setAccessToken('')
+ this.userStore.setRefreshToken('')
+ this.userStore.setLogin('')
+ this.userStore.setEmail('')
+ }
+ }
+
+ async updateUserStoreByToken() {
+ const accessToken = await this.getToken()
+ if (accessToken && this.userStore) {
+ this.userStore.setAccessToken(accessToken)
+ const refreshToken = await this.getRefreshToken()
+ if (refreshToken) {
+ this.userStore.setRefreshToken(refreshToken)
+ }
+
+ const payload = parseJwt<JWTPayload>(accessToken)
+ if (payload) {
+ this.userStore.setLogin(payload.userData.login)
+ this.userStore.setEmail(payload.userData.email)
+ }
+ }
+ }
+}
diff --git a/web-nuxt-ui/src/helpers/axios.ts b/web-nuxt-ui/src/helpers/axios.ts
new file mode 100644
index 0000000..ea4821d
--- /dev/null
+++ b/web-nuxt-ui/src/helpers/axios.ts
@@ -0,0 +1,10 @@
+import axios from 'axios'
+import { useTaskViewMainUrl } from '@/composables/useTaskViewMainUrl'
+
+const $api = axios.create({
+ withCredentials: true,
+ baseURL: useTaskViewMainUrl(),
+ timeout: 10000,
+})
+
+export default $api
diff --git a/web-nuxt-ui/src/layouts/UserLayout.vue b/web-nuxt-ui/src/layouts/UserLayout.vue
new file mode 100644
index 0000000..a652e1b
--- /dev/null
+++ b/web-nuxt-ui/src/layouts/UserLayout.vue
@@ -0,0 +1,83 @@
+<template>
+ <UDashboardGroup
+ unit="rem"
+ storage="local"
+ class="UDashboardGroup-test"
+ >
+ <UDashboardSidebar
+ id="default"
+ v-model:open="isSidebarOpen"
+ :default-size="20"
+ class="bg-elevated/25"
+ :class="isSidebarCollapsed ? 'overflow-hidden min-w-0 w-0 transition-[width] duration-200 linear' : 'transition-[width] duration-200 linear'"
+ :ui="{ footer: 'lg:border-t lg:border-default' }"
+ >
+ <TvGoalLikeItem
+ to="/user"
+ variant="taskview"
+ >
+ {{ t('main') }}
+ </TvGoalLikeItem>
+
+ <ProjectsSidebar />
+
+ <template #footer="{ collapsed }">
+ <UserMenu :collapsed="collapsed" />
+ </template>
+ </UDashboardSidebar>
+
+ <RouterView />
+ </UDashboardGroup>
+
+ <TvMobileBottomNav />
+</template>
+
+<script setup lang="ts">
+import { onMounted } from 'vue'
+import { App } from '@capacitor/app'
+import { CapacitorUpdater } from '@capgo/capacitor-updater'
+import { useDashboard } from '@/composables/useDashboard'
+import { useUpdater } from '@/composables/useUpdater'
+import { useAppStore } from '@/stores/app.store'
+import { useI18n } from 'vue-i18n'
+import ProjectsSidebar from '@/components/features/projects/ProjectsSidebar.vue'
+
+const { isSidebarOpen, isSidebarCollapsed } = useDashboard()
+const { t } = useI18n()
+const appStore = useAppStore()
+
+let updateInProgress = false
+
+App.addListener('appStateChange', async ({ isActive }) => {
+ console.log('appStateChange user layout', isActive)
+
+ if (!isActive) {
+ await useUpdater(true)
+ }
+
+ if (isActive && !updateInProgress) {
+ try {
+ updateInProgress = true
+ await useUpdater()
+ } catch (error) {
+ console.error('[Update] Error in appStateChange update:', error)
+ } finally {
+ updateInProgress = false
+ }
+ }
+})
+
+onMounted(async () => {
+ appStore.initTaskDetailDisplayMode()
+
+ await CapacitorUpdater.notifyAppReady()
+ console.log('notifyAppReady', APP_VERSION)
+
+ try {
+ console.log('[Update] Starting initial update check')
+ await useUpdater()
+ } catch (error) {
+ console.error('[Update] Error in initial update check:', error)
+ }
+})
+</script>
diff --git a/web-nuxt-ui/src/locales/en.ts b/web-nuxt-ui/src/locales/en.ts
new file mode 100644
index 0000000..4c27968
--- /dev/null
+++ b/web-nuxt-ui/src/locales/en.ts
@@ -0,0 +1,404 @@
+export default {
+ auth: {
+ welcome: 'Welcome back',
+ signInToAccount: 'Sign in to your account',
+ continueWithGoogle: 'Continue with Google',
+ continueWithGithub: 'Continue with GitHub',
+ continueWithApple: 'Continue with Apple',
+ orContinueWith: 'Or continue with',
+ magicLink: 'Magic link',
+ password: 'Password',
+ termsText: 'By continuing, you agree to our',
+ termsOfService: 'Terms of Service',
+ and: 'and',
+ privacyPolicy: 'Privacy Policy',
+
+ // Login by code
+ email: 'Email',
+ emailPlaceholder: 'you{\'@\'}example.com',
+ sendCode: 'Send code',
+ codeSent: 'Code sent',
+ checkInbox: 'Check your inbox at {email}',
+ enterCode: 'Enter the 6-digit code sent to',
+ verificationCode: 'Verification code',
+ verifyAndSignIn: 'Verify & Sign in',
+ back: 'Back',
+ resendCode: 'Resend code',
+ codeResent: 'Code resent',
+ newCodeSent: 'New code sent to {email}',
+
+ // Login by password
+ login: 'Login',
+ loginPlaceholder: 'Username or email',
+ passwordLabel: 'Password',
+ passwordPlaceholder: 'Your password',
+ forgotPassword: 'Forgot password?',
+ signIn: 'Sign in',
+
+ // Forgot password
+ forgotPasswordTitle: 'Reset password',
+ forgotPasswordDescription: 'Enter your email address and we\'ll send you a link to reset your password.',
+ sendResetLink: 'Send reset link',
+ backToLogin: 'Back to login',
+ checkYourEmail: 'Check your email',
+ resetLinkSent: 'We sent a password reset link to',
+ emailSent: 'Email sent',
+ checkInboxForReset: 'Check your inbox for password reset link',
+
+ // Reset password
+ setNewPassword: 'Set new password',
+ setNewPasswordDescription: 'Enter a new password for your account.',
+ newPassword: 'New password',
+ newPasswordPlaceholder: 'Enter new password',
+ confirmPassword: 'Confirm password',
+ confirmPasswordPlaceholder: 'Repeat new password',
+ resetPassword: 'Reset password',
+ passwordReset: 'Password reset',
+ passwordResetSuccess: 'Your password has been changed successfully. You can now sign in.',
+ invalidResetLink: 'Invalid link',
+ invalidResetLinkDescription: 'The password reset link is invalid or has expired.',
+ canNotResetPassword: 'Could not reset password. Please try again.',
+ passwordTooShort: 'Password must be at least 6 characters',
+ passwordsDoNotMatch: 'Passwords do not match',
+
+ // Messages
+ success: 'Success',
+ error: 'Error',
+ loggedIn: 'You are welcome to TaskView',
+ invalidCode: 'Invalid code. Please try again.',
+ invalidCredentials: 'Invalid login or password',
+ loginFailed: 'Login failed. Please try again.',
+ failedToSendCode: 'Failed to send code. Please try again.',
+ failedToResendCode: 'Failed to resend code',
+ failedToSendResetLink: 'Failed to send reset link. Please try again.',
+
+ // Validation
+ invalidEmail: 'Invalid email address',
+ loginRequired: 'Login is required',
+ passwordRequired: 'Password is required',
+ codeMustBe6: 'Code must be 6 characters',
+ },
+ projects: {
+ title: 'Projects',
+ project: 'Project',
+ selectProject: 'Select project',
+ edit: 'Edit Project',
+ name: 'Name',
+ namePlaceholder: 'Enter project name',
+ description: 'Description',
+ descriptionPlaceholder: 'Enter project description',
+ deleteConfirm: 'Delete Project',
+ deleteMessage: 'Are you sure you want to delete project "{name}"? All project history will be deleted, including task and list change history. This action cannot be undone.',
+ addPlaceholder: 'Enter project name',
+ add: 'Add project',
+ },
+ contextMenu: {
+ kanban: 'Kanban',
+ graph: 'Graph',
+ collaboration: 'Collaboration',
+ edit: 'Edit',
+ moveToArchive: 'Move to Archive',
+ restoreFromArchive: 'Restore from Archive',
+ delete: 'Delete',
+ },
+ archive: {
+ title: 'Archive',
+ },
+ lists: {
+ title: 'Lists',
+ selectList: 'Select a list',
+ selectListToViewTasks: 'Select a list to view tasks',
+ addPlaceholder: 'Enter list name',
+ add: 'Add list',
+ edit: 'Edit List',
+ name: 'Name',
+ namePlaceholder: 'Enter list name',
+ deleteConfirm: 'Delete List',
+ deleteMessage: 'Are you sure you want to delete list "{name}"? The list will be deleted, including its edit history, as well as all tasks in the list and their history. This action cannot be undone.',
+ },
+ common: {
+ cancel: 'Cancel',
+ save: 'Save',
+ delete: 'Delete',
+ done: 'Done',
+ yes: 'Yes',
+ no: 'No',
+ loading: 'Loading...',
+ close: 'Close',
+ },
+ kanban: {
+ title: 'Kanban',
+ description: 'Kanban board view coming soon',
+ addColumn: 'Add column',
+ addTask: 'Add task',
+ edit: 'Edit',
+ delete: 'Delete',
+ deleteColumn: 'Delete column',
+ deleteColumnConfirm: 'Are you sure you want to delete this column? Tasks will be moved to Backlog.',
+ editColumn: 'Edit column',
+ columnName: 'Column name',
+ loadMore: 'Load more',
+ },
+ msg: {
+ allTasks: 'Backlog',
+ todayTasks: 'Today',
+ upcomingTasks: 'Upcoming',
+ lastTasks: 'Recent Tasks',
+ todayExplanation: 'Tasks with deadline for today or earlier',
+ upcomingExplanation: 'Tasks with deadline in the near future',
+ lastAddedTasksExplanation: 'Recently added tasks without deadline',
+ lastCompletedTasksExplanation: 'Recently completed tasks',
+ pending: 'Active',
+ completed: 'Completed',
+ noTasks: 'No tasks',
+ addTask: 'Add task',
+ addTaskToToday: 'Add task for today',
+ addTaskToUpcoming: 'Add upcoming task',
+ addFirstProject: 'Add your first project',
+ today: 'Today',
+ lastAddedTasks: 'Added',
+ lastCompletedTasks: 'Completed',
+ },
+ admin: {
+ search: 'Search tasks...',
+ },
+ motivationToday: [
+ 'Great day for productivity!',
+ 'Today is your day!',
+ 'Start with something small!',
+ 'Every task is a step forward!',
+ ],
+ motivationUpcoming: [
+ 'Plan ahead!',
+ 'The future is in your hands!',
+ 'Prepare for success!',
+ 'Exciting things ahead!',
+ ],
+ deadline: {
+ startDate: 'Start date',
+ endDate: 'End date',
+ selectTime: 'Select time',
+ today: 'Today',
+ tomorrow: 'Tomorrow',
+ yesterday: 'Yesterday',
+ },
+ graph: {
+ title: 'Graph',
+ description: 'Graph view coming soon',
+ addTask: 'Add task',
+ selectedEdge: 'Edge selected',
+ },
+ collaboration: {
+ title: 'Collaboration',
+ description: 'Collaboration features coming soon',
+ selectProject: 'Select a project to manage collaboration',
+ tabs: {
+ members: 'Members',
+ roles: 'Roles',
+ },
+ members: {
+ title: 'Team Members',
+ add: 'Add Member',
+ invite: 'Add Member',
+ email: 'Email Address',
+ emailPlaceholder: 'colleague{\'@\'}example.com',
+ sendInvite: 'Send Invite',
+ pending: 'Pending',
+ owner: 'Owner',
+ invitedAt: 'Invited',
+ noRoles: 'No roles assigned',
+ assignRoles: 'Assign Roles',
+ selectRoles: 'Select roles for this member',
+ resendInvite: 'Resend Invite',
+ remove: 'Remove Member',
+ empty: 'No team members yet. Add someone to collaborate!',
+ },
+ roles: {
+ title: 'Roles',
+ create: 'Create Role',
+ name: 'Role Name',
+ namePlaceholder: 'Enter role name',
+ permissionsCount: '{count} permissions',
+ system: 'System',
+ assignPermissions: 'Assign Permissions',
+ systemRoleWarning: 'System roles cannot be modified',
+ deleteConfirm: 'Delete Role',
+ deleteMessage: 'Are you sure you want to delete "{name}"? Members with this role will need to be reassigned.',
+ empty: 'No custom roles yet. Create one to define specific permissions.',
+ },
+ permissions: {
+ searchPlaceholder: 'Search permissions...',
+ groups: {
+ tasks: 'Tasks',
+ lists: 'Lists',
+ members: 'Members',
+ roles: 'Roles',
+ },
+ view_tasks: 'View Tasks',
+ view_tasksDesc: 'Can view tasks in the project',
+ create_tasks: 'Create Tasks',
+ create_tasksDesc: 'Can create new tasks',
+ edit_tasks: 'Edit Tasks',
+ edit_tasksDesc: 'Can edit existing tasks',
+ delete_tasks: 'Delete Tasks',
+ delete_tasksDesc: 'Can delete tasks',
+ view_lists: 'View Lists',
+ view_listsDesc: 'Can view lists in the project',
+ create_lists: 'Create Lists',
+ create_listsDesc: 'Can create new lists',
+ edit_lists: 'Edit Lists',
+ edit_listsDesc: 'Can edit existing lists',
+ delete_lists: 'Delete Lists',
+ delete_listsDesc: 'Can delete lists',
+ view_members: 'View Members',
+ view_membersDesc: 'Can view project members',
+ invite_members: 'Invite Members',
+ invite_membersDesc: 'Can invite new members',
+ remove_members: 'Remove Members',
+ remove_membersDesc: 'Can remove members from project',
+ view_roles: 'View Roles',
+ view_rolesDesc: 'Can view roles',
+ manage_roles: 'Manage Roles',
+ manage_rolesDesc: 'Can create, edit and delete roles',
+ },
+ },
+ main: 'Main',
+ mainScreen: {
+ welcome: 'Welcome',
+ selectProject: 'Select a project from the sidebar to get started',
+ },
+ tasks: {
+ amount: 'Amount',
+ enterAmount: 'Enter amount',
+ noTransactionType: 'Type of transaction',
+ income: 'Income',
+ expense: 'Expense',
+ allTasks: 'All Tasks',
+ addPlaceholder: 'Enter task name',
+ searchPlaceholder: 'Search tasks...',
+ add: 'Add task',
+ details: 'Task Details',
+ description: 'Description',
+ addDescription: 'Add a description...',
+ note: 'Note',
+ addNote: 'Add a note...',
+ priority: 'Priority',
+ priorityNone: 'No priority',
+ priorityLow: 'Low',
+ priorityMedium: 'Medium',
+ priorityHigh: 'High',
+ dueDate: 'Due Date',
+ deadline: 'Deadline',
+ addDueDate: 'Add due date',
+ assignees: 'Assignees',
+ selectAssignees: 'Select assignees',
+ searchUsers: 'Search users...',
+ noUsersAvailable: 'No users available',
+ list: 'List',
+ selectList: 'Select list',
+ searchLists: 'Search lists...',
+ noList: 'No list',
+ status: 'Status',
+ selectStatus: 'Select status',
+ searchStatuses: 'Search statuses...',
+ noStatus: 'No status',
+ tags: 'Tags',
+ addTag: 'Add tag',
+ subtasks: 'Subtasks',
+ addSubtask: 'Add subtask',
+ notFound: 'Task not found',
+ noTasks: 'No tasks',
+ showCompleted: 'Show completed',
+ hideCompleted: 'Hide completed',
+ sortNewestFirst: 'Newest first',
+ sortOldestFirst: 'Oldest first',
+ deleteConfirm: 'Delete Task',
+ deleteMessage: 'Are you sure you want to delete "{name}"? This action cannot be undone.',
+ },
+ tags: {
+ createTag: 'Create tag',
+ editTag: 'Edit tag',
+ name: 'Name',
+ namePlaceholder: 'Tag name',
+ color: 'Color',
+ preview: 'Preview',
+ tagName: 'Tag name',
+ searchPlaceholder: 'Search tags...',
+ noTagsFound: 'No tags found',
+ noTagsAssigned: 'No tags assigned',
+ manageTags: 'Manage',
+ deleteConfirm: 'Delete Tag',
+ deleteMessage: 'Are you sure you want to delete "{name}"? This action cannot be undone.',
+ },
+ priority: {
+ low: 'Low',
+ medium: 'Medium',
+ high: 'High',
+ },
+ history: {
+ title: 'Change History',
+ show: 'Show history',
+ hide: 'Hide history',
+ empty: 'No change history',
+ changed: 'Changed',
+ restore: 'Restore',
+ details: 'Change Details',
+ completeTrue: 'Completed',
+ completeFalse: 'Not completed',
+ fields: {
+ note: 'Note',
+ description: 'Description',
+ complete: 'Completion status',
+ priority: 'Priority',
+ list: 'List',
+ endDate: 'Due date',
+ startDate: 'Start date',
+ },
+ },
+ filters: {
+ title: 'Filters',
+ assignee: 'Assignee',
+ selectAssignee: 'Select assignee',
+ allUsers: 'All users',
+ reset: 'Reset',
+ apply: 'Apply',
+ },
+ userMenu: {
+ profile: 'Profile',
+ appearance: 'Appearance',
+ light: 'Light',
+ dark: 'Dark',
+ language: 'Language',
+ taskDetailView: 'Task detail view',
+ taskDetailSlideover: 'Side panel',
+ taskDetailModal: 'Dialog',
+ site: 'Site',
+ documentation: 'Documentation',
+ github: 'GitHub repository',
+ docker: 'Docker Images',
+ accountSettings: 'Account settings',
+ logout: 'Log out',
+ logoutFailed: 'Logout failed',
+ logoutFailedDescription: 'Try clearing browser cache to remove the authorization token',
+ },
+ account: {
+ title: 'Account settings',
+ management: 'Account management',
+ deleteAccount: 'Delete account',
+ deleteConfirm: 'Are you sure you want to delete the account and all associated data?',
+ deleteWarning: 'All associated data with this account will be deleted! This action cannot be undone!',
+ enterCode: 'Enter code from email',
+ confirm: 'Confirm',
+ cancel: 'Cancel',
+ deleted: 'Account deleted',
+ codeSendError: 'Unable to send the code. Please contact support to delete your account.',
+ },
+ server: {
+ selectServer: 'Server',
+ addServer: 'Add server',
+ addNewServer: 'Add new server',
+ serverUrl: 'Server URL',
+ serverUrlHint: 'Enter the full API server URL, e.g. https://api.example.com',
+ defaultServer: 'Default server',
+ },
+}
diff --git a/web-nuxt-ui/src/locales/index.ts b/web-nuxt-ui/src/locales/index.ts
new file mode 100644
index 0000000..8d5ff67
--- /dev/null
+++ b/web-nuxt-ui/src/locales/index.ts
@@ -0,0 +1,11 @@
+import en from './en'
+import ru from './ru'
+
+export const messages = {
+ en,
+ ru,
+}
+
+export type Locale = keyof typeof messages
+export const locales: Locale[] = ['en', 'ru']
+export const defaultLocale: Locale = 'ru'
diff --git a/web-nuxt-ui/src/locales/ru.ts b/web-nuxt-ui/src/locales/ru.ts
new file mode 100644
index 0000000..ee1f80d
--- /dev/null
+++ b/web-nuxt-ui/src/locales/ru.ts
@@ -0,0 +1,404 @@
+export default {
+ auth: {
+ welcome: 'С возвращением',
+ signInToAccount: 'Войдите в свой аккаунт',
+ continueWithGoogle: 'Продолжить с Google',
+ continueWithGithub: 'Продолжить с GitHub',
+ continueWithApple: 'Продолжить с Apple',
+ orContinueWith: 'Или продолжить с',
+ magicLink: 'Код из почты',
+ password: 'Пароль',
+ termsText: 'Продолжая, вы соглашаетесь с',
+ termsOfService: 'Условиями использования',
+ and: 'и',
+ privacyPolicy: 'Политикой конфиденциальности',
+
+ // Login by code
+ email: 'Email',
+ emailPlaceholder: 'you{\'@\'}example.com',
+ sendCode: 'Отправить код',
+ codeSent: 'Код отправлен',
+ checkInbox: 'Проверьте почту {email}',
+ enterCode: 'Введите 6-значный код, отправленный на',
+ verificationCode: 'Код подтверждения',
+ verifyAndSignIn: 'Подтвердить и войти',
+ back: 'Назад',
+ resendCode: 'Отправить повторно',
+ codeResent: 'Код отправлен повторно',
+ newCodeSent: 'Новый код отправлен на {email}',
+
+ // Login by password
+ login: 'Логин',
+ loginPlaceholder: 'Имя пользователя или email',
+ passwordLabel: 'Пароль',
+ passwordPlaceholder: 'Ваш пароль',
+ forgotPassword: 'Забыли пароль?',
+ signIn: 'Войти',
+
+ // Forgot password
+ forgotPasswordTitle: 'Сброс пароля',
+ forgotPasswordDescription: 'Введите email и мы отправим вам ссылку для сброса пароля.',
+ sendResetLink: 'Отправить ссылку',
+ backToLogin: 'Вернуться к входу',
+ checkYourEmail: 'Проверьте почту',
+ resetLinkSent: 'Мы отправили ссылку для сброса пароля на',
+ emailSent: 'Письмо отправлено',
+ checkInboxForReset: 'Проверьте почту для сброса пароля',
+
+ // Reset password
+ setNewPassword: 'Установите новый пароль',
+ setNewPasswordDescription: 'Введите новый пароль для вашего аккаунта.',
+ newPassword: 'Новый пароль',
+ newPasswordPlaceholder: 'Введите новый пароль',
+ confirmPassword: 'Подтвердите пароль',
+ confirmPasswordPlaceholder: 'Повторите новый пароль',
+ resetPassword: 'Сбросить пароль',
+ passwordReset: 'Пароль сброшен',
+ passwordResetSuccess: 'Ваш пароль успешно изменён. Теперь вы можете войти.',
+ invalidResetLink: 'Недействительная ссылка',
+ invalidResetLinkDescription: 'Ссылка для сброса пароля недействительна или истекла.',
+ canNotResetPassword: 'Не удалось сбросить пароль. Попробуйте снова.',
+ passwordTooShort: 'Пароль должен содержать минимум 6 символов',
+ passwordsDoNotMatch: 'Пароли не совпадают',
+
+ // Messages
+ success: 'Успешно',
+ error: 'Ошибка',
+ loggedIn: 'Добро пожаловать в TaskView',
+ invalidCode: 'Неверный код. Попробуйте снова.',
+ invalidCredentials: 'Неверный логин или пароль',
+ loginFailed: 'Не удалось войти. Попробуйте снова.',
+ failedToSendCode: 'Не удалось отправить код. Попробуйте снова.',
+ failedToResendCode: 'Не удалось отправить код повторно',
+ failedToSendResetLink: 'Не удалось отправить ссылку. Попробуйте снова.',
+
+ // Validation
+ invalidEmail: 'Неверный email адрес',
+ loginRequired: 'Введите логин',
+ passwordRequired: 'Введите пароль',
+ codeMustBe6: 'Код должен содержать 6 символов',
+ },
+ projects: {
+ title: 'Проекты',
+ project: 'Проект',
+ selectProject: 'Выберите проект',
+ edit: 'Редактировать проект',
+ name: 'Название',
+ namePlaceholder: 'Введите название проекта',
+ description: 'Описание',
+ descriptionPlaceholder: 'Введите описание проекта',
+ deleteConfirm: 'Удалить проект',
+ deleteMessage: 'Вы уверены, что хотите удалить проект "{name}"? Будет удалена вся история проекта, включая историю изменений задач и списков. Это действие нельзя отменить.',
+ addPlaceholder: 'Введите название проекта',
+ add: 'Добавить проект',
+ },
+ contextMenu: {
+ kanban: 'Канбан',
+ graph: 'Граф',
+ collaboration: 'Совместная работа',
+ edit: 'Редактировать',
+ moveToArchive: 'В архив',
+ restoreFromArchive: 'Восстановить из архива',
+ delete: 'Удалить',
+ },
+ archive: {
+ title: 'Архив',
+ },
+ lists: {
+ title: 'Списки',
+ selectList: 'Выберите список',
+ selectListToViewTasks: 'Выберите список для просмотра задач',
+ addPlaceholder: 'Введите название списка',
+ add: 'Добавить список',
+ edit: 'Редактировать список',
+ name: 'Название',
+ namePlaceholder: 'Введите название списка',
+ deleteConfirm: 'Удалить список',
+ deleteMessage: 'Вы уверены, что хотите удалить список "{name}"? Будет удалён список, включая историю его редактирования, а также все задачи в списке и их история. Это действие нельзя отменить.',
+ },
+ common: {
+ cancel: 'Отмена',
+ save: 'Сохранить',
+ delete: 'Удалить',
+ done: 'Готово',
+ yes: 'Да',
+ no: 'Нет',
+ loading: 'Загрузка...',
+ close: 'Закрыть',
+ },
+ kanban: {
+ title: 'Канбан',
+ description: 'Канбан-доска скоро будет доступна',
+ addColumn: 'Добавить колонку',
+ addTask: 'Добавить задачу',
+ edit: 'Редактировать',
+ delete: 'Удалить',
+ deleteColumn: 'Удалить колонку',
+ deleteColumnConfirm: 'Вы уверены, что хотите удалить эту колонку? Задачи будут перемещены в Backlog.',
+ editColumn: 'Редактировать колонку',
+ columnName: 'Название колонки',
+ loadMore: 'Загрузить ещё',
+ },
+ msg: {
+ allTasks: 'Backlog',
+ todayTasks: 'Сегодня',
+ upcomingTasks: 'Предстоящие',
+ lastTasks: 'Последние задачи',
+ todayExplanation: 'Задачи с дедлайном на сегодня или ранее',
+ upcomingExplanation: 'Задачи с дедлайном на ближайшее будущее',
+ lastAddedTasksExplanation: 'Недавно добавленные задачи без дедлайна',
+ lastCompletedTasksExplanation: 'Недавно выполненные задачи',
+ pending: 'Активные',
+ completed: 'Выполненные',
+ noTasks: 'Нет задач',
+ addTask: 'Добавить задачу',
+ addTaskToToday: 'Добавить задачу на сегодня',
+ addTaskToUpcoming: 'Добавить предстоящую задачу',
+ addFirstProject: 'Добавьте свой первый проект',
+ today: 'Сегодня',
+ lastAddedTasks: 'Добавленные',
+ lastCompletedTasks: 'Выполненные',
+ },
+ admin: {
+ search: 'Поиск задач...',
+ },
+ motivationToday: [
+ 'Отличный день для продуктивности!',
+ 'Сегодня всё получится!',
+ 'Начни с малого!',
+ 'Каждая задача - шаг к цели!',
+ ],
+ motivationUpcoming: [
+ 'Планируй заранее!',
+ 'Будущее в твоих руках!',
+ 'Готовься к успеху!',
+ 'Впереди много интересного!',
+ ],
+ deadline: {
+ startDate: 'Дата начала',
+ endDate: 'Дата окончания',
+ selectTime: 'Выбрать время',
+ today: 'Сегодня',
+ tomorrow: 'Завтра',
+ yesterday: 'Вчера',
+ },
+ graph: {
+ title: 'Граф',
+ description: 'Вид графа скоро будет доступен',
+ addTask: 'Добавить задачу',
+ selectedEdge: 'Выбрана связь',
+ },
+ collaboration: {
+ title: 'Совместная работа',
+ description: 'Функции совместной работы скоро будут доступны',
+ selectProject: 'Выберите проект для управления совместной работой',
+ tabs: {
+ members: 'Участники',
+ roles: 'Роли',
+ },
+ members: {
+ title: 'Участники команды',
+ add: 'Добавить',
+ invite: 'Добавить',
+ email: 'Email адрес',
+ emailPlaceholder: 'colleague{\'@\'}example.com',
+ sendInvite: 'Отправить приглашение',
+ pending: 'Ожидает',
+ owner: 'Владелец',
+ invitedAt: 'Приглашен',
+ noRoles: 'Роли не назначены',
+ assignRoles: 'Назначить роли',
+ selectRoles: 'Выберите роли для участника',
+ resendInvite: 'Отправить повторно',
+ remove: 'Удалить участника',
+ empty: 'Пока нет участников. Добавьте кого-нибудь для совместной работы!',
+ },
+ roles: {
+ title: 'Роли',
+ create: 'Создать роль',
+ name: 'Название роли',
+ namePlaceholder: 'Введите название роли',
+ permissionsCount: '{count} разрешений',
+ system: 'Системная',
+ assignPermissions: 'Назначить разрешения',
+ systemRoleWarning: 'Системные роли нельзя изменять',
+ deleteConfirm: 'Удалить роль',
+ deleteMessage: 'Вы уверены, что хотите удалить "{name}"? Участникам с этой ролью нужно будет назначить другую роль.',
+ empty: 'Пока нет пользовательских ролей. Создайте роль для настройки разрешений.',
+ },
+ permissions: {
+ searchPlaceholder: 'Поиск разрешений...',
+ groups: {
+ tasks: 'Задачи',
+ lists: 'Списки',
+ members: 'Участники',
+ roles: 'Роли',
+ },
+ view_tasks: 'Просмотр задач',
+ view_tasksDesc: 'Может просматривать задачи в проекте',
+ create_tasks: 'Создание задач',
+ create_tasksDesc: 'Может создавать новые задачи',
+ edit_tasks: 'Редактирование задач',
+ edit_tasksDesc: 'Может редактировать существующие задачи',
+ delete_tasks: 'Удаление задач',
+ delete_tasksDesc: 'Может удалять задачи',
+ view_lists: 'Просмотр списков',
+ view_listsDesc: 'Может просматривать списки в проекте',
+ create_lists: 'Создание списков',
+ create_listsDesc: 'Может создавать новые списки',
+ edit_lists: 'Редактирование списков',
+ edit_listsDesc: 'Может редактировать существующие списки',
+ delete_lists: 'Удаление списков',
+ delete_listsDesc: 'Может удалять списки',
+ view_members: 'Просмотр участников',
+ view_membersDesc: 'Может просматривать участников проекта',
+ invite_members: 'Приглашение участников',
+ invite_membersDesc: 'Может приглашать новых участников',
+ remove_members: 'Удаление участников',
+ remove_membersDesc: 'Может удалять участников из проекта',
+ view_roles: 'Просмотр ролей',
+ view_rolesDesc: 'Может просматривать роли',
+ manage_roles: 'Управление ролями',
+ manage_rolesDesc: 'Может создавать, редактировать и удалять роли',
+ },
+ },
+ main: 'Главная',
+ mainScreen: {
+ welcome: 'Добро пожаловать',
+ selectProject: 'Выберите проект в боковой панели для начала работы',
+ },
+ tasks: {
+ amount: 'Стоимость',
+ enterAmount: 'Введите стоимость',
+ noTransactionType: 'Тип транзакции',
+ income: 'Доход',
+ expense: 'Расход',
+ allTasks: 'Все задачи',
+ addPlaceholder: 'Введите название задачи',
+ searchPlaceholder: 'Поиск задач...',
+ add: 'Добавить задачу',
+ details: 'Детали задачи',
+ description: 'Описание',
+ addDescription: 'Добавить описание...',
+ note: 'Заметка',
+ addNote: 'Добавить заметку...',
+ priority: 'Приоритет',
+ priorityNone: 'Без приоритета',
+ priorityLow: 'Низкий',
+ priorityMedium: 'Средний',
+ priorityHigh: 'Высокий',
+ dueDate: 'Срок выполнения',
+ deadline: 'Дедлайн',
+ addDueDate: 'Добавить срок',
+ assignees: 'Исполнители',
+ selectAssignees: 'Выбрать исполнителей',
+ searchUsers: 'Поиск пользователей...',
+ noUsersAvailable: 'Нет доступных пользователей',
+ list: 'Список',
+ selectList: 'Выбрать список',
+ searchLists: 'Поиск списков...',
+ noList: 'Без списка',
+ status: 'Статус',
+ selectStatus: 'Выбрать статус',
+ searchStatuses: 'Поиск статусов...',
+ noStatus: 'Без статуса',
+ tags: 'Теги',
+ addTag: 'Добавить тег',
+ subtasks: 'Подзадачи',
+ addSubtask: 'Добавить подзадачу',
+ notFound: 'Задача не найдена',
+ noTasks: 'Нет задач',
+ showCompleted: 'Показать выполненные',
+ hideCompleted: 'Скрыть выполненные',
+ sortNewestFirst: 'Сначала новые',
+ sortOldestFirst: 'Сначала старые',
+ deleteConfirm: 'Удалить задачу',
+ deleteMessage: 'Вы уверены, что хотите удалить "{name}"? Это действие нельзя отменить.',
+ },
+ tags: {
+ createTag: 'Создать тег',
+ editTag: 'Редактировать тег',
+ name: 'Название',
+ namePlaceholder: 'Название тега',
+ color: 'Цвет',
+ preview: 'Предпросмотр',
+ tagName: 'Название тега',
+ searchPlaceholder: 'Поиск тегов...',
+ noTagsFound: 'Теги не найдены',
+ noTagsAssigned: 'Нет назначенных тегов',
+ manageTags: 'Управление',
+ deleteConfirm: 'Удалить тег',
+ deleteMessage: 'Вы уверены, что хотите удалить "{name}"? Это действие нельзя отменить.',
+ },
+ priority: {
+ low: 'Низкий',
+ medium: 'Средний',
+ high: 'Высокий',
+ },
+ history: {
+ title: 'История изменений',
+ show: 'Показать историю',
+ hide: 'Скрыть историю',
+ empty: 'Нет истории изменений',
+ changed: 'Изменено',
+ restore: 'Восстановить',
+ details: 'Детали изменения',
+ completeTrue: 'Выполнено',
+ completeFalse: 'Не выполнено',
+ fields: {
+ note: 'Заметка',
+ description: 'Описание',
+ complete: 'Статус выполнения',
+ priority: 'Приоритет',
+ list: 'Список',
+ endDate: 'Срок выполнения',
+ startDate: 'Дата начала',
+ },
+ },
+ filters: {
+ title: 'Фильтры',
+ assignee: 'Исполнитель',
+ selectAssignee: 'Выбрать исполнителя',
+ allUsers: 'Все пользователи',
+ reset: 'Сбросить',
+ apply: 'Применить',
+ },
+ userMenu: {
+ profile: 'Профиль',
+ appearance: 'Оформление',
+ light: 'Светлая',
+ dark: 'Тёмная',
+ language: 'Язык',
+ taskDetailView: 'Вид деталей задачи',
+ taskDetailSlideover: 'Боковая панель',
+ taskDetailModal: 'Диалог',
+ site: 'Сайт',
+ documentation: 'Документация',
+ github: 'GitHub репозиторий',
+ docker: 'Docker образы',
+ accountSettings: 'Настройки аккаунта',
+ logout: 'Выйти',
+ logoutFailed: 'Не удалось выйти',
+ logoutFailedDescription: 'Попробуйте очистить кэш браузера, чтобы удалить токен авторизации',
+ },
+ account: {
+ title: 'Настройки аккаунта',
+ management: 'Управление аккаунтом',
+ deleteAccount: 'Удалить аккаунт',
+ deleteConfirm: 'Вы действительно хотите удалить аккаунт и все связанные данные?',
+ deleteWarning: 'Все связанные данные с данным аккаунтом будут удалены! Данное действие отменить невозможно!',
+ enterCode: 'Введите код из письма',
+ confirm: 'Подтвердить',
+ cancel: 'Отмена',
+ deleted: 'Аккаунт удалён',
+ codeSendError: 'Не удалось отправить код. Обратитесь в поддержку для удаления аккаунта.',
+ },
+ server: {
+ selectServer: 'Сервер',
+ addServer: 'Добавить сервер',
+ addNewServer: 'Добавить новый сервер',
+ serverUrl: 'URL сервера',
+ serverUrlHint: 'Введите полный URL API сервера, например https://api.example.com',
+ defaultServer: 'Основной сервер',
+ },
+}
diff --git a/web-nuxt-ui/src/main.ts b/web-nuxt-ui/src/main.ts
new file mode 100644
index 0000000..eb89829
--- /dev/null
+++ b/web-nuxt-ui/src/main.ts
@@ -0,0 +1,82 @@
+import './assets/css/main.css'
+import { addCollection } from '@iconify/vue'
+import lucide from '@iconify-json/lucide/icons.json'
+import mdi from '@iconify-json/mdi/icons.json'
+import carbon from '@iconify-json/carbon/icons.json'
+import { createPinia } from 'pinia'
+import { createApp } from 'vue'
+import { createRouter, createWebHistory } from 'vue-router'
+import ui from '@nuxt/ui/vue-plugin'
+import { i18n } from './plugins/i18n'
+
+addCollection(lucide)
+addCollection(mdi)
+addCollection(carbon)
+
+import App from './App.vue'
+import authenticated from './middleware/authenticated'
+import syncSelectedProject from './middleware/syncSelectedProject'
+import api from './plugins/axios'
+import LoginPage from './pages/login.vue'
+
+const app = createApp(App)
+
+app.use(createPinia())
+app.use(api)
+app.use(i18n)
+
+const router = createRouter({
+ routes: [
+ {
+ path: '/',
+ name: 'login',
+ component: LoginPage,
+ },
+ {
+ path: '/reset-password',
+ name: 'reset-password',
+ component: () => import('./pages/reset-password.vue'),
+ },
+ {
+ path: '/:user',
+ component: () => import('./layouts/UserLayout.vue'),
+ beforeEnter: [authenticated],
+ children: [
+ {
+ path: ':projectId/kanban',
+ name: 'kanban',
+ component: () => import('./pages/user/kanban.vue'),
+ },
+ {
+ path: ':projectId/graph',
+ name: 'graph',
+ component: () => import('./pages/user/graph.vue'),
+ },
+ {
+ path: ':projectId/collaboration',
+ name: 'collaboration',
+ component: () => import('./pages/user/collaboration.vue'),
+ },
+ {
+ path: 'account',
+ name: 'account',
+ component: () => import('./pages/user/account.vue'),
+ },
+ {
+ path: ':projectId?/:listId?/:taskId?',
+ name: 'user',
+ component: () => import('./pages/user/index.vue'),
+ },
+ ],
+ },
+ ],
+ history: createWebHistory(),
+})
+
+
+router.beforeEach(syncSelectedProject)
+
+app.use(router)
+app.use(ui)
+
+app.mount('#app')
diff --git a/web-nuxt-ui/src/middleware/authenticated.ts b/web-nuxt-ui/src/middleware/authenticated.ts
new file mode 100644
index 0000000..e7912de
--- /dev/null
+++ b/web-nuxt-ui/src/middleware/authenticated.ts
@@ -0,0 +1,9 @@
+import { $ls } from '@/plugins/axios'
+
+export default async function authenticated() {
+ await $ls.updateUserStoreByToken()
+ if (!(await $ls.getToken())) {
+ return { name: 'login' }
+ }
+ return true
+}
diff --git a/web-nuxt-ui/src/middleware/syncSelectedProject.ts b/web-nuxt-ui/src/middleware/syncSelectedProject.ts
new file mode 100644
index 0000000..0435186
--- /dev/null
+++ b/web-nuxt-ui/src/middleware/syncSelectedProject.ts
@@ -0,0 +1,12 @@
+import type { NavigationGuardWithThis } from 'vue-router'
+import { useGoalsStore } from '@/stores/goals.store'
+
+const syncSelectedProject: NavigationGuardWithThis<undefined> = (to) => {
+ const projectId = to.params.projectId
+ if (projectId) {
+ const goalsStore = useGoalsStore()
+ goalsStore.selectedItemId = +projectId
+ }
+}
+
+export default syncSelectedProject
diff --git a/web-nuxt-ui/src/pages/login.vue b/web-nuxt-ui/src/pages/login.vue
new file mode 100644
index 0000000..39715fc
--- /dev/null
+++ b/web-nuxt-ui/src/pages/login.vue
@@ -0,0 +1,86 @@
+<template>
+ <div class="min-h-screen flex items-center justify-center bg-muted/30 p-4">
+ <UCard class="w-full max-w-md">
+ <LoginForm @success="handleSuccess" />
+ </UCard>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { onMounted } from 'vue'
+import { useRoute, useRouter } from 'vue-router'
+import { App } from '@capacitor/app'
+import { Browser } from '@capacitor/browser'
+import $api from '@/helpers/axios'
+import { $ls } from '@/plugins/axios'
+import { redirectToUser } from '@/components/features/auth/auth.helper'
+import LoginForm from '@/components/features/auth/LoginForm.vue'
+
+type LoginTokens = {
+ code: string
+ email: string
+}
+
+type LoginResponse = {
+ access: string
+ refresh: string
+}
+
+const route = useRoute()
+const router = useRouter()
+
+async function loginByCode(code: string, email: string) {
+ const result = await $api.post<LoginResponse>('/module/auth/login-by-code', { code, email })
+ if (result?.data.access) {
+ $ls.setToken(result.data.access)
+ $ls.setRefreshToken(result.data.refresh)
+ await $ls.updateUserStoreByToken()
+ await redirectToUser(router)
+ }
+}
+
+onMounted(async () => {
+ // If user already has a valid token, redirect to dashboard
+ const existingToken = await $ls.getToken()
+ if (existingToken) {
+ await $ls.updateUserStoreByToken()
+ await redirectToUser(router)
+ return
+ }
+
+ // Handle OAuth callback tokens from URL
+ try {
+ const tokens = route.query.tokens as string
+ if (!tokens) return
+
+ const result = JSON.parse(decodeURIComponent(tokens)) as LoginTokens
+ await loginByCode(result.code, result.email)
+ } catch (error) {
+ console.error('Failed to process tokens from URL:', error)
+ }
+})
+
+App.addListener('appUrlOpen', async ({ url }) => {
+ if (!url) return
+
+ if (url.startsWith('taskview://login?tokens')) {
+ const parsed = new URL(url)
+ const tokens = parsed.searchParams.get('tokens')
+
+ if (!tokens) return
+
+ try {
+ const result = JSON.parse(decodeURIComponent(tokens)) as LoginTokens
+ await loginByCode(result.code, result.email)
+ } catch (error) {
+ console.error('Failed to process deep link tokens:', error)
+ }
+ }
+
+ await Browser.close()
+})
+
+async function handleSuccess() {
+ console.log('Login successful')
+}
+</script>
diff --git a/web-nuxt-ui/src/pages/reset-password.vue b/web-nuxt-ui/src/pages/reset-password.vue
new file mode 100644
index 0000000..ff3e82d
--- /dev/null
+++ b/web-nuxt-ui/src/pages/reset-password.vue
@@ -0,0 +1,11 @@
+<template>
+ <div class="min-h-screen flex items-center justify-center bg-muted/30 p-4">
+ <UCard class="w-full max-w-md">
+ <ResetPassword />
+ </UCard>
+ </div>
+</template>
+
+<script setup lang="ts">
+import ResetPassword from '@/components/features/auth/ResetPassword.vue'
+</script>
diff --git a/web-nuxt-ui/src/pages/user/account.vue b/web-nuxt-ui/src/pages/user/account.vue
new file mode 100644
index 0000000..f272394
--- /dev/null
+++ b/web-nuxt-ui/src/pages/user/account.vue
@@ -0,0 +1,7 @@
+<template>
+ <AccountSettings />
+</template>
+
+<script setup lang="ts">
+import AccountSettings from '@/components/features/account/AccountSettings.vue'
+</script>
diff --git a/web-nuxt-ui/src/pages/user/collaboration.vue b/web-nuxt-ui/src/pages/user/collaboration.vue
new file mode 100644
index 0000000..123c8b8
--- /dev/null
+++ b/web-nuxt-ui/src/pages/user/collaboration.vue
@@ -0,0 +1,22 @@
+<template>
+ <UDashboardPanel id="collaboration">
+ <template #header>
+ <UDashboardNavbar :title="t('collaboration.title')">
+ <template #leading>
+ <UDashboardSidebarCollapse />
+ </template>
+ </UDashboardNavbar>
+ </template>
+
+ <template #body>
+ <CollaborationPanel />
+ </template>
+ </UDashboardPanel>
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import CollaborationPanel from '@/components/features/collaboration/CollaborationPanel.vue'
+
+const { t } = useI18n()
+</script>
diff --git a/web-nuxt-ui/src/pages/user/graph.vue b/web-nuxt-ui/src/pages/user/graph.vue
new file mode 100644
index 0000000..20477f9
--- /dev/null
+++ b/web-nuxt-ui/src/pages/user/graph.vue
@@ -0,0 +1,32 @@
+<template>
+ <UDashboardPanel
+ id="graph"
+ >
+ <template #header>
+ <UDashboardNavbar :title="t('graph.title')">
+ <template #leading>
+ <TvCollapseSidebarDesktop />
+ </template>
+ </UDashboardNavbar>
+ </template>
+
+ <template #body>
+ <ProjectGraph />
+ </template>
+ </UDashboardPanel>
+ <TvTaskDetailOverlay />
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import ProjectGraph from '@/components/features/graph/ProjectGraph.vue'
+import TvCollapseSidebarDesktop from '@/components/features/base/TvCollapseSidebarDesktop.vue'
+import TvTaskDetailOverlay from '@/components/features/tasks/TvTaskDetailOverlay.vue'
+import { useAppRouteInfo } from '@/composables/useAppRouteInfo'
+import { useProjectDataLoader } from '@/composables/useProjectDataLoader'
+
+const { t } = useI18n()
+const { projectId } = useAppRouteInfo()
+
+useProjectDataLoader(projectId)
+</script>
diff --git a/web-nuxt-ui/src/pages/user/index.vue b/web-nuxt-ui/src/pages/user/index.vue
new file mode 100644
index 0000000..0af7bca
--- /dev/null
+++ b/web-nuxt-ui/src/pages/user/index.vue
@@ -0,0 +1,35 @@
+<template>
+ <MainScreen v-if="!hasProject" />
+ <template v-else>
+ <ListsContainer />
+ <TasksContainer />
+ </template>
+ <TvTaskDetailOverlay />
+</template>
+
+<script setup lang="ts">
+import { watch } from 'vue'
+import { useRoute } from 'vue-router'
+import MainScreen from '@/components/features/main/MainScreen.vue'
+import { useAppRouteInfo } from '@/composables/useAppRouteInfo'
+import { useProjectDataLoader } from '@/composables/useProjectDataLoader'
+import TvTaskDetailOverlay from '@/components/features/tasks/TvTaskDetailOverlay.vue'
+import { useTaskDetailPanel } from '@/composables/useTaskDetailPanel'
+
+const { hasProject, projectId } = useAppRouteInfo()
+const route = useRoute()
+const { activeTaskId, openTask } = useTaskDetailPanel()
+
+useProjectDataLoader(projectId)
+
+// Deep-link support: open task detail when taskId is in the URL
+watch(
+ () => route.params.taskId,
+ (taskId) => {
+ if (taskId && Number(taskId) !== activeTaskId.value) {
+ openTask(Number(taskId))
+ }
+ },
+ { immediate: true },
+)
+</script>
diff --git a/web-nuxt-ui/src/pages/user/kanban.vue b/web-nuxt-ui/src/pages/user/kanban.vue
new file mode 100644
index 0000000..78914da
--- /dev/null
+++ b/web-nuxt-ui/src/pages/user/kanban.vue
@@ -0,0 +1,33 @@
+<template>
+ <UDashboardPanel
+ id="kanban"
+ :ui="{ body: 'sm:p-4 sm:pb-0' }"
+ >
+ <template #header>
+ <UDashboardNavbar :title="t('kanban.title')">
+ <template #leading>
+ <TvCollapseSidebarDesktop />
+ </template>
+ </UDashboardNavbar>
+ </template>
+
+ <template #body>
+ <KanbanBoard />
+ </template>
+ </UDashboardPanel>
+ <TvTaskDetailOverlay />
+</template>
+
+<script setup lang="ts">
+import { useI18n } from 'vue-i18n'
+import KanbanBoard from '@/components/features/kanban/KanbanBoard.vue'
+import TvCollapseSidebarDesktop from '@/components/features/base/TvCollapseSidebarDesktop.vue'
+import TvTaskDetailOverlay from '@/components/features/tasks/TvTaskDetailOverlay.vue'
+import { useAppRouteInfo } from '@/composables/useAppRouteInfo'
+import { useProjectDataLoader } from '@/composables/useProjectDataLoader'
+
+const { t } = useI18n()
+const { projectId } = useAppRouteInfo()
+
+useProjectDataLoader(projectId)
+</script>
diff --git a/web-nuxt-ui/src/plugins/axios.ts b/web-nuxt-ui/src/plugins/axios.ts
new file mode 100644
index 0000000..b58ba57
--- /dev/null
+++ b/web-nuxt-ui/src/plugins/axios.ts
@@ -0,0 +1,110 @@
+import qs from 'qs'
+import { TvApi } from 'taskview-api'
+import type { App } from 'vue'
+import $api from '@/helpers/axios'
+import LocalStorage from '@/helpers/LocalStorage'
+
+let $ls: LocalStorage
+const $tvApi: TvApi = new TvApi($api)
+
+const api = {
+ async install(app: App) {
+ console.log('Install axios ------------')
+ app.config.globalProperties.$ls = new LocalStorage({
+ namespace: 'task_view',
+ axios: $api,
+ })
+ app.config.globalProperties.$axios = $api
+
+ $ls = app.config.globalProperties.$ls
+
+ // const apiToken = await $ls.getToken();
+ // if (apiToken) {
+ // $tvApi = new TvApi($api);
+ // }
+
+ console.debug('Install axios')
+ await $ls.checkTokenAndSetForAxios()
+
+ // TODO move to helpers/axios.ts
+ const $axios = $api
+ let isRefreshing = false
+ let failedQueue: { resolve: (value: unknown) => void; reject: (value: unknown) => void }[] = []
+
+ //eslint-disable-next-line @typescript-eslint/no-explicit-any
+ const processQueue = (error: any, token: string | null = null) => {
+ failedQueue.forEach((prom) => {
+ if (error) {
+ prom.reject(error)
+ } else {
+ prom.resolve(token)
+ }
+ })
+ failedQueue = []
+ }
+
+ $axios.interceptors.response.use(
+ (response) => response,
+ async (error) => {
+ const originalRequest = error.config
+ if (error.response.status === 401 && !originalRequest._retry) {
+ console.debug('We have 401')
+
+ if (isRefreshing) {
+ console.debug('isRefreshing token ')
+ return new Promise((resolve, reject) => {
+ failedQueue.push({ resolve, reject })
+ })
+ .then((token) => {
+ console.debug('We got new token', token)
+ originalRequest.headers.Authorization = `Bearer ${token}`
+ return $axios(originalRequest)
+ })
+ .catch((err) => {
+ return Promise.reject(err)
+ })
+ }
+ originalRequest._retry = true
+ isRefreshing = true
+ const refreshToken = await $ls.getRefreshToken()
+ console.log('We get refresh token')
+ if (refreshToken) {
+ return new Promise((resolve, reject) => {
+ $axios
+ .post<{
+ access: string;
+ refresh: string;
+ }>(
+ '/module/auth/refresh/token',
+ qs.stringify({ refreshToken }),
+ )
+ .then((data) => {
+ console.log('We got refresh data tokens', data)
+ $ls.setToken(data.data.access)
+ $ls.setRefreshToken(data.data.refresh)
+ $ls.checkTokenAndSetForAxios()
+ $ls.updateUserStoreByToken()
+ originalRequest.headers.Authorization = `Bearer ${data.data.access}`
+ processQueue(null, data.data.access)
+ resolve($axios(originalRequest))
+ })
+ .catch((err) => {
+ processQueue(err, null)
+ $ls.invalidateTokens()
+ app.config.globalProperties.$router.push('/')
+ reject(err)
+ })
+ .finally(() => {
+ isRefreshing = false
+ })
+ })
+ }
+ }
+ return Promise.reject(error)
+ },
+ )
+ },
+}
+
+export { $ls, $tvApi }
+export default api
diff --git a/web-nuxt-ui/src/plugins/i18n.ts b/web-nuxt-ui/src/plugins/i18n.ts
new file mode 100644
index 0000000..eda320e
--- /dev/null
+++ b/web-nuxt-ui/src/plugins/i18n.ts
@@ -0,0 +1,13 @@
+import { createI18n } from 'vue-i18n'
+import { messages, defaultLocale } from '@/locales'
+
+export const i18n = createI18n({
+ legacy: false,
+ locale: defaultLocale,
+ fallbackLocale: 'en',
+ messages,
+})
+
+export function useI18n() {
+ return i18n.global
+}
diff --git a/web-nuxt-ui/src/stores/additional-url.store.ts b/web-nuxt-ui/src/stores/additional-url.store.ts
new file mode 100644
index 0000000..fa50cef
--- /dev/null
+++ b/web-nuxt-ui/src/stores/additional-url.store.ts
@@ -0,0 +1,10 @@
+import { defineStore } from 'pinia'
+import { ref } from 'vue'
+
+export const additionalUrlStore = defineStore('additionalUrlStore', () => {
+ const allServers = ref<string[]>([])
+ const mainServer = ref<string>('')
+ const systemServer = ref<string>('')
+
+ return { allServers, mainServer, systemServer }
+})
diff --git a/web-nuxt-ui/src/stores/app.store.ts b/web-nuxt-ui/src/stores/app.store.ts
new file mode 100644
index 0000000..44cdf55
--- /dev/null
+++ b/web-nuxt-ui/src/stores/app.store.ts
@@ -0,0 +1,29 @@
+import { defineStore } from 'pinia'
+import type { AppStoreState, TaskDetailDisplayMode } from '@/types/global-app.types'
+import { $ls } from '@/plugins/axios'
+
+const TASK_DETAIL_MODE_KEY = 'taskview:taskDetailDisplayMode'
+
+export const useAppStore = defineStore('app', {
+ state(): AppStoreState {
+ return {
+ drawer: false,
+ taskDetailDisplayMode: 'modal',
+ }
+ },
+ actions: {
+ async initTaskDetailDisplayMode() {
+ const stored = await $ls.getValue(TASK_DETAIL_MODE_KEY)
+ if (stored === 'slideover' || stored === 'modal') {
+ this.taskDetailDisplayMode = stored
+ }
+ },
+ setDrawer(state: boolean) {
+ this.drawer = state
+ },
+ setTaskDetailDisplayMode(mode: TaskDetailDisplayMode) {
+ this.taskDetailDisplayMode = mode
+ $ls.setValue(TASK_DETAIL_MODE_KEY, mode)
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/base-screen.store.ts b/web-nuxt-ui/src/stores/base-screen.store.ts
new file mode 100644
index 0000000..1a7d6c5
--- /dev/null
+++ b/web-nuxt-ui/src/stores/base-screen.store.ts
@@ -0,0 +1,220 @@
+import { useDateFormat } from '@vueuse/core'
+import { defineStore } from 'pinia'
+import { logError } from '@/helpers/Helper'
+import $api from '@/helpers/axios'
+import { $tvApi } from '@/plugins/axios'
+import { useTagsStore } from '@/stores/tag.store'
+import {
+ type BaseScreenSearchResponse,
+ type BaseScreenState,
+ FILTER_DEFAULT,
+ type GoalAndListsResp,
+ type MainScreenAllStateResponse,
+} from '@/types/base-screen.types'
+import type { AppResponse } from '@/types/global-app.types'
+import type { TaskItem } from '@/types/tasks.types'
+
+export const useBaseScreenStore = defineStore('base-screen-store', {
+ state(): BaseScreenState {
+ return {
+ activeWidgetInMobile: 'today',
+ wasCalled: false,
+ tasks: [], //all tasks in the app
+ tasksToday: [],
+ tasksUpcoming: [],
+ tasksLastCompleted: [],
+ //todo rename "users" to "usersByProject"
+ users: [], //show users by project
+ searchTask: '',
+ // addTaskDialog: false,//shoud we offer add goals
+ lists: [],
+ // listToGoal: {},
+ loading: false,
+ //todo rename "assignees" to "assigneesByTask"
+ assignees: [],
+ filterAndSorting: {
+ sort: 'new',
+ filters: {
+ ...FILTER_DEFAULT,
+ },
+ },
+ taskIdToUser: {},
+ }
+ },
+ actions: {
+ async fetchAllState() {
+ this.taskIdToUser = {}
+ this.loading = true
+ const result = await $api
+ .get<AppResponse<MainScreenAllStateResponse>>(
+ `/module/about/fetchallstate?tz=${encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone)}`,
+ )
+ .catch((err) => console.log(err))
+
+ const tagsStore = useTagsStore()
+ tagsStore.fetchAllTags()
+ this.wasCalled = true
+ if (result) {
+ this.tasks = result.data.response.tasks
+ this.users = result.data.response.users
+ this.tasksToday = result.data.response.tasksToday
+ this.tasksUpcoming = result.data.response.tasksUpcoming
+ this.tasksLastCompleted = result.data.response.tasksLastCompleted
+ // this.listToGoal = result.data.response.listToGoal;
+ this.assignees = result.data.response.assignees
+
+ this.assignees.forEach((assignee) => {
+ if (!this.taskIdToUser[assignee.taskId]) {
+ this.taskIdToUser[assignee.taskId] = [assignee]
+ } else {
+ this.taskIdToUser[assignee.taskId].push(assignee)
+ }
+ })
+ }
+ setTimeout(() => {
+ this.loading = false
+ }, 100)
+ },
+
+ async fetchAllAvailableLists() {
+ const result = await $api
+ .get<AppResponse<GoalAndListsResp>>('/module/about/fetch/lists')
+ .catch((err) => console.log(err))
+ if (result) {
+ this.lists = result.data.response
+ }
+ },
+
+ async updateTaskStatusNew(
+ data: { status: boolean; taskId: TaskItem['id'] },
+ prop: 'tasksToday' | 'tasksUpcoming' | 'tasksLastCompleted' | 'tasks',
+ ) {
+ const task = await $tvApi.tasks.updateTask({
+ id: data.taskId,
+ complete: data.status,
+ })
+
+ if (!task) return
+
+ const localTask = this[prop].find((tsk) => tsk.id === data.taskId)
+ if (localTask) {
+ localTask.complete = task.complete
+
+ switch (prop) {
+ case 'tasks':
+ this.processLastAdded(task)
+ break
+ case 'tasksToday':
+ this.processToday(task)
+ break
+ case 'tasksUpcoming':
+ this.processUpcoming(task)
+ break
+ case 'tasksLastCompleted':
+ this.processLastCompleted(task)
+ break
+ }
+ }
+ },
+
+ processLastAdded(task: TaskItem) {
+ if (task.complete) {
+ this.tasksLastCompleted.unshift(task)
+ this.tasks = this.tasks.filter((t) => t.id !== task.id)
+ } else {
+ this.processLastCompleted(task)
+ }
+ },
+
+ processUpcoming(task: TaskItem) {
+ if (task.complete) {
+ this.tasksLastCompleted.unshift(task)
+ } else {
+ this.processLastCompleted(task)
+ }
+ },
+
+ processToday(task: TaskItem) {
+ if (task.complete) {
+ this.tasksLastCompleted.unshift(task)
+ } else {
+ this.processLastCompleted(task)
+ }
+ },
+
+ processLastCompleted(task: TaskItem) {
+ if (task.complete) return
+
+ const deadline = new Date(useDateFormat(new Date(task.endDate || ''), 'YYYY-MM-DD').value)
+ const today = new Date(useDateFormat(new Date(), 'YYYY-MM-DD').value)
+
+ const removeTask = () => {
+ this.tasksLastCompleted = this.tasksLastCompleted.filter((t) => t.id !== task.id)
+ }
+
+ const key = !task.endDate ? 'tasks' : deadline <= today ? 'tasksToday' : 'tasksUpcoming'
+
+ const existingTask = this[key].find((tsk) => tsk.id === task.id)
+
+ if (existingTask) {
+ existingTask.complete = task.complete
+ } else {
+ this[key].unshift(task)
+ }
+
+ removeTask()
+ },
+
+ async updateTaskStatus(taskId: TaskItem['id']) {
+ const task = await $tvApi.tasks.updateTask({
+ id: taskId,
+ complete: true,
+ })
+
+ if (!task) return
+
+ const index = this.tasks.findIndex((tsk) => tsk.id === taskId)
+ if (index !== -1) {
+ this.tasks.splice(index, 1)
+ }
+ },
+
+ async searchTaskRequest(taskDescription: string): Promise<BaseScreenSearchResponse> {
+ const result = await $api
+ .get<AppResponse<BaseScreenSearchResponse>>(`/module/about/search-task?description=${taskDescription}`)
+ .catch(logError)
+ if (!result) return []
+ return result.data.response
+ },
+
+ syncTask(task: TaskItem) {
+ if (!this.wasCalled) return
+
+ const lists = ['tasks', 'tasksToday', 'tasksUpcoming', 'tasksLastCompleted'] as const
+ for (const list of lists) {
+ const index = this[list].findIndex((t) => t.id === task.id)
+ if (index !== -1) {
+ Object.assign(this[list][index], task)
+ }
+ }
+ },
+
+ removeTask(taskId: number) {
+ const lists = ['tasks', 'tasksToday', 'tasksUpcoming', 'tasksLastCompleted'] as const
+ for (const list of lists) {
+ const index = this[list].findIndex((t) => t.id === taskId)
+ if (index !== -1) {
+ this[list].splice(index, 1)
+ }
+ }
+ },
+
+ async removeTasksByGoalId(goalId: number) {
+ const filterFunc = (task: TaskItem) => task.goalId !== goalId
+ this.tasks = this.tasks.filter(filterFunc)
+ this.tasksToday = this.tasksToday.filter(filterFunc)
+ this.tasksUpcoming = this.tasksUpcoming.filter(filterFunc)
+ this.tasksLastCompleted = this.tasksLastCompleted.filter(filterFunc)
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/collaboration-permissions.store.ts b/web-nuxt-ui/src/stores/collaboration-permissions.store.ts
new file mode 100644
index 0000000..8fc7ddc
--- /dev/null
+++ b/web-nuxt-ui/src/stores/collaboration-permissions.store.ts
@@ -0,0 +1,36 @@
+import { defineStore } from 'pinia'
+import { $tvApi } from '@/plugins/axios'
+import type { CollaborationPermissionsState, PermissioinGroupsIds } from '@/types/collaboration-permissions.types'
+
+export const useCollaborationPermissionsStore = defineStore('collaboration-permissions', {
+ state(): CollaborationPermissionsState {
+ return {
+ permissions: [],
+ }
+ },
+ getters: {
+ groupedPermissions(state): Record<PermissioinGroupsIds, CollaborationPermissionsState['permissions']> {
+ const map = new Map<PermissioinGroupsIds, CollaborationPermissionsState['permissions']>()
+ state.permissions.forEach((perm) => {
+ const arr = map.get(perm.permission_group)
+ if (!arr) {
+ map.set(perm.permission_group, [perm])
+ } else {
+ arr.push(perm)
+ }
+ })
+
+ return Object.fromEntries(map) as Record<
+ PermissioinGroupsIds,
+ CollaborationPermissionsState['permissions']
+ >
+ },
+ },
+ actions: {
+ async fetchAllPermissions(): Promise<void> {
+ const result = await $tvApi.collaboration.fetchAllPermissions().catch((err) => console.log(err))
+ if (!result) return
+ this.permissions = result
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/collaboration-roles.store.ts b/web-nuxt-ui/src/stores/collaboration-roles.store.ts
new file mode 100644
index 0000000..a9aa334
--- /dev/null
+++ b/web-nuxt-ui/src/stores/collaboration-roles.store.ts
@@ -0,0 +1,75 @@
+import { defineStore } from 'pinia'
+import type {
+ CollaborationArgCreateRoleForGoal,
+ CollaborationArgDeleteRoleFromGoal,
+ CollaborationArgToggleRolePermission,
+ GoalItem,
+} from 'taskview-api'
+import { $tvApi } from '@/plugins/axios'
+import type { CollaborationRolesStore } from '@/types/collaboration-roles.types'
+
+export const useCollaborationRolesStore = defineStore('collaborationRoles', {
+ state(): CollaborationRolesStore {
+ return {
+ roles: [],
+ rolesPermissions: {},
+ }
+ },
+
+ actions: {
+ async fetchCollaborationRolesForGoal(goalId: GoalItem['id']): Promise<void> {
+ const roles = await $tvApi.collaboration.fetchRolesForGoal(goalId)
+ if (!roles) return
+ this.roles = roles
+ },
+
+ async addCollaborationRole(data: CollaborationArgCreateRoleForGoal): Promise<void> {
+ const role = await $tvApi.collaboration.createRoleForGoal(data)
+ if (!role) return
+
+ this.roles.push(role)
+
+ if (!this.rolesPermissions[role.id]) {
+ this.rolesPermissions[role.id] = {}
+ }
+ },
+
+ async deleteCollaborationRole(data: CollaborationArgDeleteRoleFromGoal): Promise<void> {
+ const result = await $tvApi.collaboration.deleteRoleFromGoal(data)
+ if (!result) return
+
+ const index = this.roles.findIndex((role) => role.id === data.id)
+ if (index !== -1) {
+ this.roles.splice(index, 1)
+ }
+ },
+
+ async fetchAllRolePermissionsForGoal(goalId: GoalItem['id']): Promise<void> {
+ const result = await $tvApi.collaboration.fetchRoleToPermissionsForGoal(goalId)
+ if (!result) return
+
+ result.forEach((item) => {
+ if (!item.role_id || !item.permission_id) return
+
+ if (!this.rolesPermissions[item.role_id]) {
+ this.rolesPermissions[item.role_id] = {}
+ }
+ this.rolesPermissions[item.role_id][item.permission_id] = true
+ })
+ },
+
+ async togglePermissionForRole(data: CollaborationArgToggleRolePermission) {
+ const result = await $tvApi.collaboration.toggleRolePermission(data)
+ if (!result) return
+
+ if (result.add) {
+ if (!this.rolesPermissions[data.roleId]) {
+ this.rolesPermissions[data.roleId] = {}
+ }
+ this.rolesPermissions[data.roleId][data.permissionId] = true
+ } else {
+ delete this.rolesPermissions[data.roleId][data.permissionId]
+ }
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/collaboration.store.ts b/web-nuxt-ui/src/stores/collaboration.store.ts
new file mode 100644
index 0000000..f6c53bc
--- /dev/null
+++ b/web-nuxt-ui/src/stores/collaboration.store.ts
@@ -0,0 +1,70 @@
+import { defineStore } from 'pinia'
+import type {
+ CollaborationArgAddUser,
+ CollaborationArgDeleteUser,
+ CollaborationArgToggleUserRoles,
+ GoalItem,
+} from 'taskview-api'
+import { $tvApi } from '@/plugins/axios'
+import type { CollaborationStore } from '@/types/collaboration.types'
+
+export const useCollaborationStore = defineStore('collaboration', {
+ state(): CollaborationStore {
+ return {
+ users: [],
+ }
+ },
+
+ getters: {
+ userMap: (state) => {
+ return new Map(state.users.map((user) => [user.id, user]))
+ },
+ },
+
+ actions: {
+ /**
+ * Fetch all users for collaboration
+ * we use it in the main screen to show the users
+ * in the assignees section for tasks
+ */
+ async fetchAllCollaborationUsers(): Promise<void> {
+ const users = await $tvApi.collaboration.fetchAllUsers()
+ if (!users) return
+ this.users = users
+ },
+
+ /**
+ * Fetch users for a specific goal for collaboration section
+ */
+ async fetchCollaborationUsersForGoal(goalId: GoalItem['id']): Promise<void> {
+ const users = await $tvApi.collaboration.fetchUsersForGoal(goalId)
+ if (!users) return
+ this.users = users
+ },
+
+ async addCollaborationUser(data: CollaborationArgAddUser): Promise<boolean> {
+ const result = await $tvApi.collaboration.inviteUserToGoal(data)
+ if (!result) return false
+ this.users.push(result)
+ return true
+ },
+
+ async deleteUserFromCollaboration(data: CollaborationArgDeleteUser): Promise<void> {
+ const result = await $tvApi.collaboration.deleteUserFromGoal(data)
+ if (!result) return
+ const index = this.users.findIndex((usr) => usr.id === data.id)
+ if (index !== -1) {
+ this.users.splice(index, 1)
+ }
+ },
+
+ async toggleUserRole(data: CollaborationArgToggleUserRoles) {
+ const roles = await $tvApi.collaboration.toggleUserRoles(data)
+ if (!roles) return
+ const user = this.users.find((us) => us.id === data.userId)
+ if (user && roles) {
+ user.roles = roles
+ }
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/goal-lists.store.ts b/web-nuxt-ui/src/stores/goal-lists.store.ts
new file mode 100644
index 0000000..85673b0
--- /dev/null
+++ b/web-nuxt-ui/src/stores/goal-lists.store.ts
@@ -0,0 +1,69 @@
+import { defineStore } from 'pinia'
+import type {
+ GoalListItem,
+ GoalListItemArgAdd,
+ GoalListItemArgDelete,
+ GoalListItemArgFetch,
+ GoalListItemArgUpdate,
+} from 'taskview-api'
+import { $tvApi } from '@/plugins/axios'
+import type { GoalListsStoreState } from '@/types/goal-lists.types'
+
+export const useGoalListsStore = defineStore('goal-lists', {
+ state: (): GoalListsStoreState => ({
+ lists: [],
+ loading: false,
+ }),
+ getters: {
+ listMap: (state) => {
+ return new Map(state.lists.map((list) => [list.id, list]))
+ },
+ },
+ actions: {
+ async addList(listItem: GoalListItemArgAdd): Promise<GoalListItem | null> {
+ this.loading = true
+ const list = await $tvApi.goalLists.createList(listItem).catch(console.error)
+ this.loading = false
+ if (list) {
+ this.lists.unshift(list)
+ return list
+ }
+ return null
+ },
+
+ async fetchLists(goalId: GoalListItemArgFetch['goalId']) {
+ this.loading = true
+ this.lists = []
+ const lists = await $tvApi.goalLists.fetchLists({ goalId }).catch(console.error)
+ this.loading = false
+ this.lists = lists ?? []
+ },
+
+ async deleteList(listId: GoalListItemArgDelete) {
+ this.loading = true
+ const result = await $tvApi.goalLists.deleteList(listId).catch(console.error)
+ this.loading = false
+ if (!result) return false
+ const index = this.lists.findIndex((item) => +item.id === +listId)
+ if (index !== -1) {
+ this.lists.splice(index, 1)
+ }
+ },
+
+ async updateList(listData: GoalListItemArgUpdate) {
+ this.loading = true
+ const list = await $tvApi.goalLists.updateList(listData).catch(console.error)
+ this.loading = false
+
+ if (!list) return false
+
+ const index = this.lists.findIndex((item) => +item.id === +listData.id)
+ if (index !== -1) {
+ this.lists[index] = list
+ return true
+ }
+
+ return false
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/goals.store.ts b/web-nuxt-ui/src/stores/goals.store.ts
new file mode 100644
index 0000000..07d0edf
--- /dev/null
+++ b/web-nuxt-ui/src/stores/goals.store.ts
@@ -0,0 +1,73 @@
+import { defineStore } from 'pinia'
+import type { GoalArgItemAdd, GoalArgItemUpdate, GoalItem } from 'taskview-api'
+import { $tvApi } from '@/plugins/axios'
+import type { GoalsStoreState } from '@/types/goals.types'
+import { useUserStore } from './user.store'
+
+export const useGoalsStore = defineStore('goals', {
+ state: (): GoalsStoreState => ({
+ loading: false,
+ selectedItemId: -1,
+ goals: [],
+ }),
+ getters: {
+ goalMap: (state) => {
+ return new Map(state.goals.map((goal) => [goal.id, goal]))
+ },
+
+ selectedGoal: (state) => state.goals.find((goal) => goal.id === state.selectedItemId),
+
+ amIOwner(): boolean {
+ const userStore = useUserStore()
+ return this.selectedGoal?.owner === userStore.payloadData?.id
+ },
+
+ goalIdToName(): Record<number, string> {
+ const map: Record<number, string> = {}
+ this.goals.forEach((g) => {
+ map[g.id] = g.name
+ })
+ return map
+ },
+ },
+ actions: {
+ async fetchGoals(): Promise<void> {
+ if (this.loading) return
+ this.loading = true
+ const result = await $tvApi.goals.fetchGoals()
+ if (!result) {
+ this.loading = false
+ return
+ }
+ this.goals = result || []
+ this.loading = false
+ },
+
+ async addGoal(goal: GoalArgItemAdd): Promise<GoalItem | null> {
+ const goalWithPermissions = await $tvApi.goals.createGoal(goal)
+ if (!goalWithPermissions) return null
+ this.goals.unshift(goalWithPermissions)
+ return goalWithPermissions
+ },
+
+ async updateGoal(goal: GoalArgItemUpdate): Promise<boolean> {
+ const goalWithPermissions = await $tvApi.goals.updateGoal(goal)
+ if (!goalWithPermissions) return false
+ const index = this.goals.findIndex((g) => +g.id === +goal.id)
+ if (index !== -1) {
+ this.goals[index] = goalWithPermissions
+ }
+ return true
+ },
+
+ async deleteGoal(goalId: GoalItem['id']): Promise<void> {
+ const result = await $tvApi.goals.deleteGoal(goalId)
+ if (!result) return
+ const index = this.goals.findIndex((g) => +g.id === +goalId)
+ if (index !== -1) {
+ this.goals.splice(index, 1)
+ }
+ return
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/graph.store.ts b/web-nuxt-ui/src/stores/graph.store.ts
new file mode 100644
index 0000000..c9b5a80
--- /dev/null
+++ b/web-nuxt-ui/src/stores/graph.store.ts
@@ -0,0 +1,113 @@
+import { defineStore } from 'pinia'
+import type { GoalItem, GraphArgAddEdge, TaskArgUpdate } from 'taskview-api'
+import { $tvApi } from '@/plugins/axios'
+import type { GraphStore } from '@/types/graph.types'
+import type { TaskItem } from '@/types/tasks.types'
+import { useGoalListsStore } from './goal-lists.store'
+import { useTasksStore } from './tasks.store'
+import { logError } from '@/helpers/Helper'
+
+export const useGraphStore = defineStore('use-graph-store', {
+ state: (): GraphStore => {
+ return {
+ nodes: [],
+ edges: [],
+ }
+ },
+ actions: {
+ getStores() {
+ return {
+ tasksStore: useTasksStore(),
+ goalListsStore: useGoalListsStore(),
+ }
+ },
+
+ async fetchAllTasksAndLists(goalId: GoalItem['id']): Promise<void> {
+ const { tasksStore, goalListsStore } = this.getStores()
+
+ await Promise.all([
+ goalListsStore.fetchLists(goalId),
+ tasksStore.fetchAllTasks(goalId, 1, 1, true),
+ ])
+
+ this.nodes = tasksStore.tasks.map((task) => ({
+ id: task.id.toString(),
+ data: { task, label: `${task.description} == ${task.id}` },
+ position: task.nodeGraphPosition ?? { x: 0, y: 0 },
+ type: 'task',
+ style: { resize: 'none' },
+ }))
+ await this.fetchAllEdges(goalId)
+ },
+
+ async addNode(task: TaskItem) {
+ this.nodes.push({
+ id: task.id.toString(),
+ data: { task, label: `${task.description} == ${task.id}` },
+ position: task.nodeGraphPosition ?? { x: 0, y: 0 },
+ type: 'task',
+ style: { resize: 'none' },
+ })
+ return task.id.toString()
+ },
+
+ async addEdge(data: GraphArgAddEdge) {
+ const result = await $tvApi.graph.addEdge(data).catch((err: unknown) => logError(err))
+ if (!result) return
+
+ const edge = result
+
+ const newEdge = {
+ id: edge.id.toString(),
+ source: edge.fromTaskId.toString(),
+ target: edge.toTaskId.toString(),
+ }
+
+ this.edges.push(newEdge)
+
+ return newEdge
+ },
+
+ async fetchAllEdges(goalId: number) {
+ const result = await $tvApi.graph.fetchAllEdges(goalId).catch((err: unknown) => logError(err))
+ if (!result) return
+ this.edges = result.map((edge) => ({
+ id: edge.id.toString(),
+ source: edge.fromTaskId.toString(),
+ target: edge.toTaskId.toString(),
+ }))
+ },
+
+ removeTask(taskId: number) {
+ const nodeId = taskId.toString()
+ const nodeIndex = this.nodes.findIndex((n) => n.id === nodeId)
+ if (nodeIndex !== -1) {
+ this.nodes.splice(nodeIndex, 1)
+ }
+ this.edges = this.edges.filter((e) => e.source !== nodeId && e.target !== nodeId)
+ },
+
+ async deleteEdge(id: number) {
+ const result = await $tvApi.graph.deleteEdge(id).catch((err: unknown) => logError(err))
+ if (!result) return
+ const index = this.edges.findIndex((edge) => edge.id === id.toString())
+ if (index !== -1) {
+ this.edges.splice(index, 1)
+ }
+ },
+
+ syncTask(task: { id: number; description?: string }) {
+ const node = this.nodes.find((n) => n.id === task.id.toString())
+ if (!node) return
+ Object.assign(node.data.task, task)
+ if (task.description !== undefined) {
+ node.data.label = `${task.description} == ${task.id}`
+ }
+ },
+
+ async updateTaskPosition(data: TaskArgUpdate) {
+ const result = await $tvApi.tasks.updateTask(data).catch((err: unknown) => logError(err))
+ if (!result) return
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/kanban.store.ts b/web-nuxt-ui/src/stores/kanban.store.ts
new file mode 100644
index 0000000..1895424
--- /dev/null
+++ b/web-nuxt-ui/src/stores/kanban.store.ts
@@ -0,0 +1,180 @@
+import { defineStore } from 'pinia'
+import type { GoalItem, KanbanArgDeleteColumn, KanbanArgUpdateColumn, KanbanArgUpdateTasksOrder, KanbanColumnItem, TaskArgAdd, KanbanArgAddColumn } from 'taskview-api'
+import { DEFAULT_ID } from '@/types/app.types'
+import type { KanbanStoreState } from '@/types/kanban.types'
+import { $tvApi } from '@/plugins/axios'
+import { TaskItem } from '@/types/tasks.types'
+
+export const useKanbanStore = defineStore('kanban', {
+ state(): KanbanStoreState {
+ return {
+ tasksData: {},
+ statuses: [],
+ goalId: DEFAULT_ID,
+ }
+ },
+ actions: {
+ async fetchTasksForColumn(goalId: GoalItem['id'], columnId: KanbanColumnItem['id'] | null, cursor: string | number | null) {
+ const result = await $tvApi.kanban.fetchTasksForColumn(goalId, columnId, cursor).catch(console.error)
+
+ if (!result) {
+ if (!this.tasksData[columnId ?? DEFAULT_ID]) {
+ this.tasksData[columnId ?? DEFAULT_ID] = {
+ tasks: [],
+ nextCursor: null,
+ columnVersion: null,
+ }
+ }
+ return
+ }
+
+ if (!this.tasksData[columnId ?? DEFAULT_ID]) {
+ this.tasksData[columnId ?? DEFAULT_ID] = {
+ tasks: [],
+ nextCursor: null,
+ columnVersion: null,
+ }
+ }
+
+ // if (cursor === null) {
+ // this.tasksData[columnId ?? DEFAULT_ID]!.tasks = result.tasks
+ // } else {
+ this.tasksData[columnId ?? DEFAULT_ID]!.tasks.push(...result.tasks)
+ // }
+ this.tasksData[columnId ?? DEFAULT_ID]!.nextCursor = result.nextCursor
+ this.tasksData[columnId ?? DEFAULT_ID]!.columnVersion = result.columnVersion
+ },
+
+ // async fetchTasksOrderForColumnAndCursor(goalId: GoalItem['id'], columnId: Task['statusId'], cursor: string | number | null) {
+ // const result = await $tvApi.kanban.getTasksOrderForColumnAndCursor(goalId, columnId, cursor).catch(console.error);
+ // if (!result) {
+ // return;
+ // }
+
+ // result.forEach((task) => {
+ // const localTask = this.tasksData[columnId ?? DEFAULT_ID]?.tasks.find((t) => t.id === task.id);
+ // if (!localTask) return;
+ // localTask.kanbanOrder = task.kanbanOrder;
+ // });
+ // },
+
+ async updateTasksOrderAndColumn(data: KanbanArgUpdateTasksOrder) {
+ const result = await $tvApi.kanban.updateTasksOrderAndColumn(data).catch(console.error)
+
+ if (!result) {
+ return
+ }
+
+ result.tasks.forEach((task) => {
+ const localTask = this.tasksData[data.columnId ?? DEFAULT_ID]?.tasks.find((t) => t.id === task.id)
+ if (!localTask) return
+ localTask.kanbanOrder = task.kanbanOrder
+ })
+
+ // if the column version is different, fetch the tasks again
+ if (this.tasksData[data.columnId ?? DEFAULT_ID]!.columnVersion !== result.columnVersion) {
+ this.tasksData[data.columnId ?? DEFAULT_ID]!.tasks = []
+ this.tasksData[data.columnId ?? DEFAULT_ID]!.nextCursor = null
+ this.tasksData[data.columnId ?? DEFAULT_ID]!.columnVersion = null
+ await this.fetchTasksForColumn(this.goalId, data.columnId ?? null, null)
+ }
+
+ this.tasksData[data.columnId ?? DEFAULT_ID]!.columnVersion = result.columnVersion
+ },
+
+ async addTask(taskArg: TaskArgAdd) {
+ const result = await $tvApi.tasks.createTask(taskArg).catch(console.error)
+
+ if (!result) {
+ return
+ }
+
+ this.tasksData[taskArg.statusId ?? DEFAULT_ID]?.tasks.unshift(result)
+ },
+
+ async fetchStatuses(goalId: GoalItem['id']) {
+ const result = await $tvApi.kanban.fetchAllColumns(goalId)
+ if (!result) {
+ return
+ }
+ this.statuses = result
+ this.statuses.unshift({
+ id: DEFAULT_ID,
+ name: 'msg.allTasks',
+ goalId: this.goalId,
+ viewOrder: 0,
+ })
+ },
+
+ async addStatus(data: KanbanArgAddColumn) {
+ const result = await $tvApi.kanban.addColumn(data)
+ if (!result) {
+ return
+ }
+ this.statuses.push(result)
+
+ this.tasksData[result.id] = {
+ tasks: [],
+ nextCursor: null,
+ columnVersion: null,
+ }
+ },
+
+ async updateStatus(data: KanbanArgUpdateColumn) {
+ const result = await $tvApi.kanban.updateColumn(data)
+ if (!result) {
+ return
+ }
+
+ const index = this.statuses.findIndex((stat) => stat.id === data.id)
+
+ if (index !== -1) {
+ this.statuses[index] = { ...this.statuses[index], ...data }
+ }
+ },
+
+ syncTask(task: TaskItem) {
+ for (const columnId of Object.keys(this.tasksData)) {
+ const column = this.tasksData[Number(columnId)]
+ if (!column) continue
+ const localTask = column.tasks.find((t) => t.id === task.id)
+ if (localTask) {
+ Object.assign(localTask, task)
+ return
+ }
+ }
+ },
+
+ removeTask(taskId: number) {
+ for (const columnId of Object.keys(this.tasksData)) {
+ const column = this.tasksData[Number(columnId)]
+ if (!column) continue
+ const index = column.tasks.findIndex((t: { id: number }) => t.id === taskId)
+ if (index !== -1) {
+ column.tasks.splice(index, 1)
+ return
+ }
+ }
+ },
+
+ async deleteStatus(data: KanbanArgDeleteColumn) {
+ const result = await $tvApi.kanban.deleteColumn(data)
+ if (!result) {
+ return
+ }
+ const index = this.statuses.findIndex((stat) => stat.id === data.id)
+
+ if (index !== -1) {
+ this.statuses.splice(index, 1)
+ }
+
+ this.tasksData[data.id]?.tasks.forEach((t) => {
+ if (t.statusId === data.id) {
+ t.statusId = null
+ }
+ })
+
+ delete this.tasksData[data.id]
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/tag.store.ts b/web-nuxt-ui/src/stores/tag.store.ts
new file mode 100644
index 0000000..ecf40b6
--- /dev/null
+++ b/web-nuxt-ui/src/stores/tag.store.ts
@@ -0,0 +1,106 @@
+import { defineStore } from 'pinia'
+import type { TagItemArgAdd, TagItemArgToggle, TagItemArgUpdate, TagItemResponseToggle } from 'taskview-api'
+import { $tvApi } from '@/plugins/axios'
+import type { TagItem, TagsState } from '@/types/tags.types'
+import { useGoalsStore } from './goals.store'
+
+export const useTagsStore = defineStore('tags', {
+ state(): TagsState {
+ return {
+ tags: [],
+ tagsMap: new Map(),
+ loading: false,
+ }
+ },
+
+ getters: {
+ filteredTags(state) {
+ const goalsStore = useGoalsStore()
+ const goalId = goalsStore.selectedGoal?.id
+ return state.tags.filter(
+ (tag) => tag.goalId === goalId,
+ )
+ },
+ },
+ actions: {
+ async fetchAllTags(): Promise<void> {
+ this.loading = true
+
+ const tags = await $tvApi.tags
+ .fetchAllTagsForUser()
+ .catch((err) => console.log(err))
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!tags) {
+ return
+ }
+ this.tags = tags
+
+ this.tags.forEach((tag) => {
+ this.tagsMap.set(tag.id, tag)
+ })
+ },
+
+ async addTag(tagData: TagItemArgAdd): Promise<boolean> {
+ this.loading = true
+ const result = await $tvApi.tags
+ .createTag(tagData)
+ .catch((err) => console.log(err))
+ .finally(() => {
+ this.loading = false
+ })
+ if (!result) return false
+ this.tags.push(result)
+ this.tagsMap.set(result.id, result)
+ return true
+ },
+
+ async deleteTag(tagId: TagItem['id']): Promise<void> {
+ this.loading = true
+
+ const deleteResult = await $tvApi.tags
+ .deleteTag({ tagId })
+ .catch((err) => console.log(err))
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!deleteResult) return
+
+ const index = this.tags.findIndex((tag) => +tag.id === +tagId)
+ if (index === -1) return
+
+ this.tagsMap.delete(this.tags[index].id)
+ this.tags.splice(index, 1)
+ },
+
+ async toggleTag(data: TagItemArgToggle): Promise<TagItemResponseToggle['action'] | undefined> {
+ const result = await $tvApi.tags
+ .toggleTag(data)
+ .catch(console.error)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!result) return undefined
+
+ return result.action
+ },
+
+ async updateTag(newTag: TagItemArgUpdate) {
+ this.loading = true
+ const updateResult = await $tvApi.tags
+ .updateTag(newTag)
+ .catch((err) => console.log(err))
+ .finally(() => {
+ this.loading = false
+ })
+ if (!updateResult) return
+ const tag = this.tags.find((tag) => tag.id === newTag.id)
+ if (!tag) return
+ Object.assign(tag, newTag)
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/task-history.store.ts b/web-nuxt-ui/src/stores/task-history.store.ts
new file mode 100644
index 0000000..4cb264e
--- /dev/null
+++ b/web-nuxt-ui/src/stores/task-history.store.ts
@@ -0,0 +1,26 @@
+import { defineStore } from 'pinia'
+import { $tvApi } from '@/plugins/axios'
+import type { TaskHistoryState } from '@/types/task-history.types'
+import type { TaskItem } from '@/types/tasks.types'
+
+export const useTaskHistory = defineStore('taskHistory', {
+ state(): TaskHistoryState {
+ return {
+ history: [],
+ }
+ },
+
+ actions: {
+ async fetchHistoryForTask(taskId: TaskItem['id']): Promise<void> {
+ const result = await $tvApi.tasks.fetchTaskHistory(taskId)
+ if (!result) return
+ this.history = result.history
+ },
+
+ async recoverState(historyId: number, taskId: TaskItem['id']): Promise<boolean> {
+ const result = await $tvApi.tasks.recoveryTaskHistory(historyId, taskId)
+ if (!result) return false
+ return result.recovery
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/tasks.store.ts b/web-nuxt-ui/src/stores/tasks.store.ts
new file mode 100644
index 0000000..1d7a585
--- /dev/null
+++ b/web-nuxt-ui/src/stores/tasks.store.ts
@@ -0,0 +1,544 @@
+import { defineStore } from 'pinia'
+import {
+ ALL_TASKS_LIST_ID,
+ type TagItemArgToggle,
+ type Task,
+ type TaskArgAdd,
+ type TaskArgDelete,
+ type TaskArgToggleAssignee,
+ type TaskArgUpdate,
+ type TaskBase,
+} from 'taskview-api'
+import { $tvApi } from '@/plugins/axios'
+import { DEFAULT_ID } from '@/types/app.types'
+import { type TasksStoreState } from '@/types/tasks.types'
+import { useTagsStore } from './tag.store'
+import { isNotNullable, logError } from '@/helpers/Helper'
+
+export const useTasksStore = defineStore('tasks', {
+ state(): TasksStoreState {
+ return {
+ tasks: [],
+ selectedTask: null,
+ fetchRules: {
+ showCompleted: 0,
+ currentListId: DEFAULT_ID,
+ endOfTasks: false,
+ currentPage: 0,
+ searchText: '',
+ firstNew: 1,
+ filters: {},
+ goalId: -1,
+ },
+ loading: false,
+ }
+ },
+ actions: {
+ updateFetchRules(data: Partial<TasksStoreState['fetchRules']>) {
+ this.fetchRules = { ...this.fetchRules, ...data }
+ },
+
+ resetTasks() {
+ this.tasks = []
+ },
+
+ updateSelectedTask(task: Task) {
+ if (this.selectedTask && this.selectedTask.id === task.id) {
+ Object.assign(this.selectedTask, task)
+ }
+ },
+
+ async fetchTaskById(taskId: TaskBase['id']) {
+ if (taskId === this.selectedTask?.id) return
+
+ const task = await $tvApi.tasks.fetchTaskById(taskId).catch(logError)
+
+ if (!task) return
+
+ this.selectedTask = task
+ },
+
+ /** @deprecated */
+ setTaskOrder(data: Partial<Task>) {
+ const task = this.tasks.find((t) => data.id === t.id)
+ if (!task) return
+
+ if (isNotNullable(data.taskOrder)) {
+ task.taskOrder = data.taskOrder
+ }
+ if (isNotNullable(data.kanbanOrder)) {
+ task.kanbanOrder = data.kanbanOrder
+ }
+ },
+
+ // setTaskStatusId(data: TaskUpdateStatusIdArg) {
+
+ // if (data.taskId === this.selectedTask?.id) {
+ // this.selectedTask.statusId = data.statusId;
+ // }
+
+ // const task = this.tasks.find((tsk) => tsk.id === data.taskId);
+
+ // if (!task) return;
+
+ // task.statusId = data.statusId;
+ // this.updateSelectedTask(task);
+ // },
+
+ /** @deprecated */
+ async updateOrders(data: TaskArgUpdate): Promise<Task | null> {
+ const task = await $tvApi.tasks.updateTask(data).catch(logError)
+ if (!task) return null
+
+ this.setTaskOrder(task)
+ return task
+ },
+
+ async addTask(taskArg: TaskArgAdd): Promise<false | Task> {
+ if (taskArg.goalListId === ALL_TASKS_LIST_ID) {
+ taskArg.goalListId = null
+ }
+
+ const task = await $tvApi.tasks.createTask(taskArg).catch(logError)
+ if (!task) return false
+
+ if (task.parentId) {
+ let mainTask = this.tasks.find((t) => t.id === task.parentId)
+
+ if (!mainTask && this.selectedTask?.id === task.parentId) {
+ mainTask = this.selectedTask
+ }
+
+ if (!mainTask) {
+ throw new Error('Main task not found for adding subtask')
+ }
+
+ if (mainTask) {
+ mainTask.subtasks.push(task)
+ }
+
+ if (this.selectedTask?.id === task.parentId) {
+ this.selectedTask.subtasks.push(task)
+ }
+ } else {
+ this.tasks.unshift(task)
+ }
+ return task
+ },
+
+ appendTasks(items: Task[]) {
+ this.tasks = [...this.tasks, ...items]
+ },
+
+ async fetchAllTasks(goalId: number, showCompleted: 0 | 1 = 1, firstNew: 0 | 1 = 1, ignoreCompleted: boolean = false) {
+ this.loading = true
+ const searchParams = {
+ showCompleted: +showCompleted as 0 | 1,
+ goalId: +goalId,
+ firstNew: +firstNew as 0 | 1,
+ componentId: ALL_TASKS_LIST_ID,
+ page: +this.fetchRules.currentPage,
+ searchText: this.fetchRules.searchText,
+ filters: this.fetchRules.filters,
+ unlimited: true,
+ ignoreCompleted: ignoreCompleted,
+ }
+
+ const tasks = await $tvApi.tasks
+ .fetch(searchParams)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+ if (!tasks) return false
+ this.tasks = tasks
+
+ return false
+ },
+
+ async fetchTasks(): Promise<boolean> {
+ this.loading = true
+
+ const searchParams = {
+ showCompleted: +this.fetchRules.showCompleted as 0 | 1,
+ goalId: +this.fetchRules.goalId,
+ firstNew: +this.fetchRules.firstNew as 0 | 1,
+ componentId: +this.fetchRules.currentListId,
+ page: +this.fetchRules.currentPage,
+ searchText: this.fetchRules.searchText,
+ filters: this.fetchRules.filters,
+ }
+
+ const tasks = await $tvApi.tasks
+ .fetch(searchParams)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+ if (!tasks) return false
+
+ this.fetchRules.endOfTasks = tasks.length < 1
+ if (!this.fetchRules.endOfTasks) {
+ this.fetchRules.currentPage++
+ }
+ this.appendTasks(tasks)
+ return true
+ },
+
+ /**@todo rename to updateTaskComplete */
+ async updateTaskCompleteStatus(
+ data: TaskArgUpdate,
+ deleteCompleted: boolean = true,
+ ): Promise<boolean | undefined> {
+ this.loading = true
+
+ const taskResult = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!taskResult) return undefined
+
+ // this.setTaskStatusId({ taskId: taskResult.id, statusId: taskResult.statusId });
+
+ const searchId = taskResult.parentId || taskResult.id
+
+ let parentTask: Task | undefined
+
+ parentTask = this.tasks.find((tsk: Task) => tsk.id === searchId)
+
+ if (!parentTask && searchId === this.selectedTask?.id) {
+ parentTask = this.selectedTask
+ }
+
+ if (!parentTask) {
+ return undefined
+ }
+
+ //we updating subtasks
+ if (taskResult.parentId) {
+ const subTask = parentTask.subtasks.find((sub) => sub.id === +taskResult.id)
+ if (subTask) {
+ subTask.complete = taskResult.complete
+ }
+ } else {
+ //we updating main task
+ parentTask.complete = taskResult.complete
+ //we deleting task from list if deleteCompleted is true
+ // and task complete is different from showCompleted rule for fetching
+ if (deleteCompleted && !!this.fetchRules.showCompleted !== data.complete) {
+ //handle condition with showing tasks in diff mode (showCompleted)
+ await new Promise((resolve) => setTimeout(resolve, 500))
+ const taskIndex = this.tasks.findIndex((task) => task.id === taskResult.id)
+ if (taskIndex !== -1) {
+ this.tasks.splice(taskIndex, 1)
+ }
+ }
+ }
+
+ this.updateSelectedTask(parentTask)
+
+ return taskResult.complete
+ },
+
+ async updateTaskDescription(data: TaskArgUpdate): Promise<boolean> {
+ this.loading = true
+ const task = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+ if (!task) return false
+
+ const localTask = this.tasks.find(({ id }) => id === task.id)
+ if (localTask) {
+ Object.assign(localTask, task)
+ }
+ this.updateSelectedTask(task)
+ return true
+ },
+
+ async deleteTask(id: TaskArgDelete): Promise<boolean> {
+ this.loading = true
+
+ const result = await $tvApi.tasks
+ .deleteTask(id)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!result) return false
+
+ const taskIndex = this.tasks.findIndex((task) => task.id === id)
+
+ if (taskIndex !== -1) {
+ this.tasks.splice(taskIndex, 1)
+ } else {
+ // Check if it's a subtask
+ for (const task of this.tasks) {
+ const subIndex = task.subtasks.findIndex((s) => s.id === id)
+ if (subIndex !== -1) {
+ task.subtasks.splice(subIndex, 1)
+ break
+ }
+ }
+ }
+
+ if (this.selectedTask?.id === id) {
+ this.selectedTask = null
+ } else if (this.selectedTask) {
+ const subIndex = this.selectedTask.subtasks.findIndex((s) => s.id === id)
+ if (subIndex !== -1) {
+ this.selectedTask.subtasks.splice(subIndex, 1)
+ }
+ }
+
+ return true
+ },
+
+ async updateTaskNote(data: TaskArgUpdate): Promise<boolean> {
+ this.loading = true
+
+ const task = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!task) return false
+
+ const localTask = this.tasks.find(({ id }) => id === task.id)
+ if (localTask) {
+ Object.assign(localTask, task)
+ }
+ this.updateSelectedTask(task)
+
+ return true
+ },
+
+ //we do not fetch subtasks from server separately, we fetch all tasks with subtasks
+ // async fetchSubtasks(taskId: TaskItem['id']): Promise<void> {
+ // this.loading = true;
+ // const subtasks = await $tvApi.tasks.fetch(taskId).catch(logError).finally(() => this.loading = false);
+ // // const result = await $api
+ // // .get<AppResponse<TaskItem[]>>(`${this.urls.fetchSubtasks}?taskId=${taskId}`)
+ // // .catch((err) => console.log(err));
+ // // this.loading = false;
+ // // if (result) {
+ // // if (result.data.response.length > 0) {
+ // // const task = this.tasks.find(({ id }) => id === +taskId);
+ // // if (task) {
+ // // task.subtasks = result.data.response;
+ // // this.updateSelectedTask(task);
+ // // } else {
+ // // if (this.selectedTask && +this.selectedTask.id === +taskId) {
+ // // this.selectedTask.subtasks = result.data.response;
+ // // }
+ // // }
+ // // }
+ // // }
+ // },
+
+ async toggleTagForTask(data: TagItemArgToggle) {
+ const tagsStore = useTagsStore()
+ const action = await tagsStore.toggleTag(data)
+
+ if (!action) {
+ return
+ }
+
+ const task = this.tasks.find((tsk) => +tsk.id === +data.taskId)
+
+ const toggleTag = (task: Task) => {
+ if (action === 'delete') {
+ const tagIndex = task.tags.indexOf(data.tagId)
+ if (tagIndex !== -1) {
+ task.tags.splice(tagIndex, 1)
+ }
+ } else {
+ task.tags.push(data.tagId)
+ }
+ }
+
+ if (task) {
+ toggleTag(task)
+ this.updateSelectedTask(task)
+ } else if (this.selectedTask?.id === data.taskId) {
+ toggleTag(this.selectedTask)
+ }
+
+ },
+
+ async udpatePriority(data: TaskArgUpdate): Promise<void> {
+ this.loading = true
+
+ const task = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!task) return
+
+ const localTask = this.tasks.find(({ id }) => id === task.id)
+
+ if (localTask) {
+ Object.assign(localTask, task)
+ }
+
+ this.updateSelectedTask(task)
+ },
+
+ //TODO fixme consider refactoring to make one method for all updates
+ async moveTaskToAnotherList(data: TaskArgUpdate) {
+ this.loading = true
+
+ const task = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!task) return
+
+ const localTask = this.tasks.find(({ id }) => id === task.id)
+
+ if (localTask) {
+ Object.assign(localTask, task)
+ }
+
+ this.updateSelectedTask(task)
+ },
+
+ async saveDateForTask(data: TaskArgUpdate) {
+ this.loading = true
+
+ const task = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!task) return
+
+ const localTask = this.tasks.find(({ id }) => id === task.id)
+
+ if (localTask) {
+ Object.assign(localTask, task)
+ }
+
+ this.updateSelectedTask(task)
+ },
+
+ async updateTaskAssignee(data: TaskArgToggleAssignee) {
+ this.loading = true
+
+ const updateAssignee = await $tvApi.tasks
+ .toggleTasksAssignee(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!updateAssignee) return
+
+ const task = this.tasks.find((tsk) => tsk.id === data.taskId)
+
+ if (task) {
+ task.assignedUsers = updateAssignee.userIds
+ this.updateSelectedTask(task)
+ } else if (this.selectedTask?.id === data.taskId) {
+ this.selectedTask.assignedUsers = updateAssignee.userIds
+ }
+ },
+
+ // we do not fetch assigned users from server separately, we fetch all tasks with assigned users
+ // async fetchTaskAssignedUsers(data: Pick<TaskUpdateAssigneeArg, 'taskId'>) {
+ // this.loading = true;
+ // const result = await $api
+ // .post<AppResponse<TaskUpdateAssigneeResp>>(this.urls.taskFetchAssignedUsers, data)
+ // .catch((err) => console.log(err));
+ // this.loading = false;
+
+ // if (result) {
+ // const task = this.tasks.find((tsk) => tsk.id === data.taskId);
+ // if (task) {
+ // task.assignedUsers = result.data.response.usersIds;
+ // this.updateSelectedTask(task);
+ // } else if (this.selectedTask?.id === data.taskId) {
+ // this.selectedTask.assignedUsers = result.data.response.usersIds;
+ // }
+ // }
+ // },
+
+ async updateTaskStatusId(data: TaskArgUpdate) {
+ const task = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!task) return
+
+ const localTask = this.tasks.find(({ id }) => id === task.id)
+
+ if (localTask) {
+ Object.assign(localTask, task)
+ this.updateSelectedTask(task)
+ } else if (this.selectedTask?.id === task.id) {
+ Object.assign(this.selectedTask, task)
+ }
+ },
+
+ async updateTaskAmount(data: TaskArgUpdate) {
+ this.loading = true
+ const task = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!task) return
+
+ const localTask = this.tasks.find(({ id }) => id === task.id)
+
+ if (localTask) {
+ Object.assign(localTask, task)
+ this.updateSelectedTask(task)
+ } else if (this.selectedTask?.id === task.id) {
+ Object.assign(this.selectedTask, task)
+ }
+ },
+
+ async updateTaskTransactionType(data: TaskArgUpdate) {
+ this.loading = true
+ const task = await $tvApi.tasks
+ .updateTask(data)
+ .catch(logError)
+ .finally(() => {
+ this.loading = false
+ })
+
+ if (!task) return
+
+ const localTask = this.tasks.find(({ id }) => id === task.id)
+
+ if (localTask) {
+ Object.assign(localTask, task)
+ this.updateSelectedTask(task)
+ } else if (this.selectedTask?.id === task.id) {
+ Object.assign(this.selectedTask, task)
+ }
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/stores/user.store.ts b/web-nuxt-ui/src/stores/user.store.ts
new file mode 100644
index 0000000..fa841ef
--- /dev/null
+++ b/web-nuxt-ui/src/stores/user.store.ts
@@ -0,0 +1,42 @@
+import { defineStore } from 'pinia'
+import type { JWTPayload } from '@/helpers/AppTypes'
+import { parseJwt } from '@/helpers/Helper'
+
+export const useUserStore = defineStore('user', {
+ state: () => ({
+ loading: true,
+ login: '',
+ email: '',
+ accessToken: '',
+ refreshToken: '',
+ authType: 'jwt',
+ }),
+ getters: {
+ isLoggedIn(state): boolean {
+ return state.login.trim() !== '' && state.accessToken.trim() !== '' && state.refreshToken.trim() !== ''
+ },
+ payloadData(state) {
+ const tokenData = parseJwt<JWTPayload>(state.accessToken)
+ return tokenData?.userData
+ },
+ },
+ actions: {
+ setAccessToken(token: string) {
+ this.accessToken = token
+ },
+ setRefreshToken(token: string) {
+ this.refreshToken = token
+ },
+ setLogin(login: string) {
+ this.login = login
+ },
+
+ setEmail(email: string) {
+ this.email = email
+ },
+
+ setAuthType(type: JWTPayload['type']) {
+ this.authType = type
+ },
+ },
+})
diff --git a/web-nuxt-ui/src/types/analytics.types.ts b/web-nuxt-ui/src/types/analytics.types.ts
new file mode 100644
index 0000000..e16dc49
--- /dev/null
+++ b/web-nuxt-ui/src/types/analytics.types.ts
@@ -0,0 +1,23 @@
+import type { GoalItem } from 'taskview-api'
+import type { CollaborationUsers } from './collaboration.types'
+import type { AppResponse } from './global-app.types'
+import type { TaskItem } from './tasks.types'
+
+export type AnalyticsStoreState = {
+ loading: boolean;
+ tasks: TaskItem[];
+ users: CollaborationUsers;
+ tasksForProject: TaskItem[];
+};
+
+export type FetchAnalyticsDataResponse = AppResponse<{
+ tasks: AnalyticsStoreState['tasks'];
+ users: CollaborationUsers;
+}>;
+
+export type FetchAnalyticsTasksArg = { startDate: string; endDate: string };
+
+export type FetchAnalyticsForProject = {
+ goalId: GoalItem['id'];
+ dates: FetchAnalyticsTasksArg;
+};
diff --git a/web-nuxt-ui/src/types/app.types.ts b/web-nuxt-ui/src/types/app.types.ts
new file mode 100644
index 0000000..74aca53
--- /dev/null
+++ b/web-nuxt-ui/src/types/app.types.ts
@@ -0,0 +1,8 @@
+export type TI18nLocalesInApp = {
+ //eslint-disable-next-line @typescript-eslint/no-explicit-any
+ en: Record<string, any>;
+ //eslint-disable-next-line @typescript-eslint/no-explicit-any
+ ru: Record<string, any>;
+};
+
+export const DEFAULT_ID = -1
diff --git a/web-nuxt-ui/src/types/base-screen.types.ts b/web-nuxt-ui/src/types/base-screen.types.ts
new file mode 100644
index 0000000..0a50ecd
--- /dev/null
+++ b/web-nuxt-ui/src/types/base-screen.types.ts
@@ -0,0 +1,74 @@
+import type { TagItem } from './tags.types'
+import type { Task } from 'taskview-api'
+import type { TaskItem } from './tasks.types'
+
+type RespTasks = TaskItem[];
+type RespUsers = { id: number; name: string; users: { id: number; email: string }[] }[];
+
+export type TaskAssignees = { taskId: TaskItem['id']; collabUserId: number; email: string }[];
+
+export type MainScreenAllStateResponse = {
+ tasks: RespTasks;
+ tasksToday: RespTasks;
+ tasksUpcoming: RespTasks;
+ tasksLastCompleted: RespTasks;
+ users: RespUsers;
+ assignees: TaskAssignees;
+ listToGoal: Record<number, number>;
+};
+
+export type BaseScreenState = {
+ activeWidgetInMobile: 'today' | 'lastAdded' | 'upcoming' | null | 'all';
+ wasCalled: boolean;
+ tasks: RespTasks;
+ users: RespUsers;
+ tasksToday: RespTasks;
+ tasksUpcoming: RespTasks;
+ tasksLastCompleted: RespTasks;
+ searchTask: string;
+ // addTaskDialog: boolean;
+ /**@deprecated */
+ lists: GoalAndListsResp;
+ // listToGoal: BoardsResponse['listToGoal'];
+ loading: boolean;
+ assignees: TaskAssignees;
+ filterAndSorting: {
+ sort: SortTasks;
+ filters: FiltersTasks;
+ };
+ taskIdToUser: Record<TaskAssignees[number]['collabUserId'], TaskAssignees>;
+};
+
+export type GoalAndListsResp = {
+ goalName: string;
+ listName: string;
+ listId: number;
+ goalId: number;
+}[];
+
+export type SortTasks = 'nameAsc' | 'nameDesc' | 'new' | 'old';
+export type FiltersTasks = {
+ projects: number[];
+ priorities: Task['priorityId'][];
+ tags: TagItem[];
+ assignees: TaskAssignees[number]['collabUserId'][];
+};
+
+export const FILTER_DEFAULT: FiltersTasks = {
+ projects: [],
+ priorities: [],
+ tags: [],
+ assignees: [],
+}
+// export type SortTasks = {
+// byId: typeof SORT_ASC | typeof SORT_DESC | typeof SORT_DEFAULT;
+// byName: typeof SORT_ASC | typeof SORT_DESC | typeof SORT_DEFAULT;
+// };
+
+export const ICON_PROJECT = { icon: 'i-lucide-lightbulb', color: '#FFB800' }
+export const ICON_TASKS = { icon: 'i-lucide-clipboard-edit', color: '#38D681' }
+export const ICON_USERS = { icon: 'i-lucide-users', color: '#BE8CFF' }
+export const DIALOG_WIDTH = 600
+export const DIALOG_DESKTOP_HEIGHT = '50%'
+
+export type BaseScreenSearchResponse = TaskItem[];
diff --git a/web-nuxt-ui/src/types/collaboration-permissions.types.ts b/web-nuxt-ui/src/types/collaboration-permissions.types.ts
new file mode 100644
index 0000000..413e9da
--- /dev/null
+++ b/web-nuxt-ui/src/types/collaboration-permissions.types.ts
@@ -0,0 +1,15 @@
+import type { CollaborationPermission } from 'taskview-api'
+import type { TI18nLocalesInApp } from './app.types'
+
+export type PermissioinGroupsIds = 1 | 2 | 3 | 4;
+
+export const PermissionGroups: Record<PermissioinGroupsIds, Record<keyof TI18nLocalesInApp, string>> = {
+ 1: { en: 'Applicarion level', ru: 'Уровня приложения' },
+ 2: { en: 'Project', ru: 'Проект' },
+ 3: { en: 'Task list', ru: 'Список задач' },
+ 4: { en: 'Tasks', ru: 'Задачи' },
+}
+
+export type CollaborationPermissionsState = {
+ permissions: CollaborationPermission[];
+};
diff --git a/web-nuxt-ui/src/types/collaboration-roles.types.ts b/web-nuxt-ui/src/types/collaboration-roles.types.ts
new file mode 100644
index 0000000..88ab8bf
--- /dev/null
+++ b/web-nuxt-ui/src/types/collaboration-roles.types.ts
@@ -0,0 +1,12 @@
+import type { CollaborationPermission } from 'taskview-api'
+
+export type CollaborationRole = {
+ id: number;
+ name: string;
+ goal_id: number;
+};
+
+export type CollaborationRolesStore = {
+ roles: CollaborationRole[];
+ rolesPermissions: Record<CollaborationRole['id'], Record<CollaborationPermission['id'], true>>;
+};
diff --git a/web-nuxt-ui/src/types/collaboration.types.ts b/web-nuxt-ui/src/types/collaboration.types.ts
new file mode 100644
index 0000000..98e2bdf
--- /dev/null
+++ b/web-nuxt-ui/src/types/collaboration.types.ts
@@ -0,0 +1,7 @@
+import type { CollaborationResponseFetchAllUsers } from 'taskview-api'
+
+export type CollaborationUsers = CollaborationResponseFetchAllUsers[];
+
+export type CollaborationStore = {
+ users: CollaborationUsers;
+};
diff --git a/web-nuxt-ui/src/types/global-app.types.ts b/web-nuxt-ui/src/types/global-app.types.ts
new file mode 100644
index 0000000..95c3d52
--- /dev/null
+++ b/web-nuxt-ui/src/types/global-app.types.ts
@@ -0,0 +1,11 @@
+export type AppResponse<S> = {
+ response: S;
+ rid: string;
+};
+
+export type TaskDetailDisplayMode = 'slideover' | 'modal';
+
+export type AppStoreState = {
+ drawer: boolean;
+ taskDetailDisplayMode: TaskDetailDisplayMode;
+};
diff --git a/web-nuxt-ui/src/types/goal-lists.types.ts b/web-nuxt-ui/src/types/goal-lists.types.ts
new file mode 100644
index 0000000..c5c2946
--- /dev/null
+++ b/web-nuxt-ui/src/types/goal-lists.types.ts
@@ -0,0 +1,23 @@
+import type { GoalListItem } from 'taskview-api'
+
+/** @deprecated use GoalListItem[] from taskview-api instead */
+export type GoalListItems = GoalListItem[];
+
+export type GoalListsStoreState = {
+ lists: GoalListItem[];
+ loading: boolean;
+};
+
+export type GoalListEventMoreMenu = {
+ activator: HTMLElement;
+ list: GoalListItem;
+};
+
+export type GoalListActionsItemsEvents = 'editList' | 'deleteList' | 'archiveGoalList';
+
+export type GoalListActionsItems = {
+ id: number;
+ name: string;
+ eventName: GoalListActionsItemsEvents;
+ icon?: string;
+}[];
diff --git a/web-nuxt-ui/src/types/goals.types.ts b/web-nuxt-ui/src/types/goals.types.ts
new file mode 100644
index 0000000..0feefb7
--- /dev/null
+++ b/web-nuxt-ui/src/types/goals.types.ts
@@ -0,0 +1,45 @@
+import type { GoalItem } from 'taskview-api'
+import { TvPermissions } from 'taskview-api'
+
+export const DEFAULT_GOAL_ITEM: GoalItem = {
+ id: -1,
+ name: '',
+ description: '',
+ color: '',
+ owner: -1,
+ permissions: {},
+ archive: 0,
+ dateCreation: null,
+}
+
+export const AllGoalPermissions = TvPermissions
+
+export type GoalsStoreState = {
+ loading: boolean;
+ selectedItemId: GoalItem['id'];
+ goals: GoalItem[];
+};
+
+export type GoalEventMoreMenu = {
+ activator: HTMLElement;
+ goal: GoalItem;
+};
+
+export type GoalActionsItemsEvents =
+ | 'editGoal'
+ | 'deleteGoal'
+ | 'archiveGoal'
+ | 'callCollaboration'
+ | 'noItems'
+ | 'editList'
+ | 'deleteList'
+ | 'archiveGoalList'
+ | 'kanbanView'
+ | 'graphView';
+export type GoalActionsItems = {
+ id: number;
+ name: string;
+ eventName: GoalActionsItemsEvents;
+ icon?: string;
+ disabled?: boolean;
+}[];
diff --git a/web-nuxt-ui/src/types/graph.types.ts b/web-nuxt-ui/src/types/graph.types.ts
new file mode 100644
index 0000000..22c7dcf
--- /dev/null
+++ b/web-nuxt-ui/src/types/graph.types.ts
@@ -0,0 +1,6 @@
+import type { Edge, Node } from '@vue-flow/core'
+
+export type GraphStore = {
+ nodes: Node[];
+ edges: Edge[];
+};
diff --git a/web-nuxt-ui/src/types/kanban.types.ts b/web-nuxt-ui/src/types/kanban.types.ts
new file mode 100644
index 0000000..cf69bd4
--- /dev/null
+++ b/web-nuxt-ui/src/types/kanban.types.ts
@@ -0,0 +1,10 @@
+import type { GoalItem, KanbanColumnItem, KanbanResponseTasksForColumn } from 'taskview-api'
+
+export type KanbanStoreState = {
+ tasksData: {
+ [key: KanbanColumnItem['id']]: KanbanResponseTasksForColumn | undefined;
+ };
+ // TODO: rename to columns
+ statuses: KanbanColumnItem[];
+ goalId: GoalItem['id'];
+};
\ No newline at end of file
diff --git a/web-nuxt-ui/src/types/layout.types.ts b/web-nuxt-ui/src/types/layout.types.ts
new file mode 100644
index 0000000..5763580
--- /dev/null
+++ b/web-nuxt-ui/src/types/layout.types.ts
@@ -0,0 +1,11 @@
+import type { Component } from 'vue'
+import type { RouteLocationNamedRaw } from 'vue-router'
+
+export type TvNavItemT = {
+ title: string;
+ icon: string;
+ expandable?: boolean;
+ expanded?: boolean;
+ to?: RouteLocationNamedRaw;
+ component?: Component;
+};
diff --git a/web-nuxt-ui/src/types/router.d.ts b/web-nuxt-ui/src/types/router.d.ts
new file mode 100644
index 0000000..57999c7
--- /dev/null
+++ b/web-nuxt-ui/src/types/router.d.ts
@@ -0,0 +1,9 @@
+import type { MiddlewareHandlers } from '@/router'
+
+import 'vue-router'
+
+declare module 'vue-router' {
+ interface RouteMeta {
+ middleware?: MiddlewareHandlers;
+ }
+}
diff --git a/web-nuxt-ui/src/types/tags.types.ts b/web-nuxt-ui/src/types/tags.types.ts
new file mode 100644
index 0000000..4f8b332
--- /dev/null
+++ b/web-nuxt-ui/src/types/tags.types.ts
@@ -0,0 +1,9 @@
+import type { TagItem as TagItemFromApi } from 'taskview-api'
+
+export type TagItem = TagItemFromApi;
+
+export type TagsState = {
+ tags: TagItem[];
+ tagsMap: Map<number, TagItem>;
+ loading: boolean;
+};
diff --git a/web-nuxt-ui/src/types/task-history.types.ts b/web-nuxt-ui/src/types/task-history.types.ts
new file mode 100644
index 0000000..8c99fa9
--- /dev/null
+++ b/web-nuxt-ui/src/types/task-history.types.ts
@@ -0,0 +1,16 @@
+import type { Task } from 'taskview-api'
+import type { TaskItem } from '@/types/tasks.types'
+
+export type PriorityValues = 'low' | 'medium' | 'high';
+export type PriorityItem = { id: Task['priorityId']; code: PriorityValues };
+
+export const PriorityIdToLocaleString: Record<Task['priorityId'], string> = {
+ 1: 'priority.low',
+ 2: 'priority.medium',
+ 3: 'priority.high',
+}
+export type TaskHistoryItem = TaskItem;
+
+export type TaskHistoryState = {
+ history: TaskHistoryItem[];
+};
diff --git a/web-nuxt-ui/src/types/tasks.types.ts b/web-nuxt-ui/src/types/tasks.types.ts
new file mode 100644
index 0000000..7845fd0
--- /dev/null
+++ b/web-nuxt-ui/src/types/tasks.types.ts
@@ -0,0 +1,34 @@
+import type { GoalItem, GoalListItem, Task, TaskFilters } from 'taskview-api'
+
+export type TaskItem = Task;
+
+export type TaskItems = TaskItem[];
+
+export type PartialSome<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
+
+export type PartialFetchRules = PartialSome<TasksStoreState['fetchRules'], 'currentPage' | 'endOfTasks'>;
+
+export type TasksStoreState = {
+ selectedTask?: Task | null;
+ tasks: Task[];
+ fetchRules: {
+ goalId: GoalItem['id'];
+ showCompleted: 1 | 0;
+ currentListId: GoalListItem['id'];
+ endOfTasks: boolean;
+ currentPage: number;
+ searchText: string;
+ firstNew: 1 | 0;
+ filters: TaskFilters;
+ };
+ loading: boolean;
+};
+
+export const PRIORITY_COLORS = {
+ '1': { color: '#38D681', t: 'priority.low' },
+ '2': { color: '#FF9100', t: 'priority.medium' },
+ '3': { color: '#FF1744', t: 'priority.high' },
+}
+
+/**@deprecated use ALL_TASKS_LIST_ID from taskview-api */
+export const ALL_TASKS_LIST_ID = -1401
diff --git a/web-nuxt-ui/src/vite-env.d.ts b/web-nuxt-ui/src/vite-env.d.ts
new file mode 100644
index 0000000..634736b
--- /dev/null
+++ b/web-nuxt-ui/src/vite-env.d.ts
@@ -0,0 +1,3 @@
+/// <reference types="vite/client" />
+
+declare const APP_VERSION: string
diff --git a/web-nuxt-ui/tsconfig.app.json b/web-nuxt-ui/tsconfig.app.json
new file mode 100644
index 0000000..702b58d
--- /dev/null
+++ b/web-nuxt-ui/tsconfig.app.json
@@ -0,0 +1,40 @@
+{
+ "compilerOptions": {
+ "target": "ES2020",
+ "useDefineForClassFields": true,
+ "module": "ESNext",
+ "lib": [
+ "ES2020",
+ "DOM",
+ "DOM.Iterable"
+ ],
+ "skipLibCheck": true,
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "isolatedModules": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ "jsx": "preserve",
+ /* Linting */
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
+ /* Paths */
+ "baseUrl": ".",
+ "paths": {
+ "@/*": ["./src/*"],
+ "#build/ui/*": [
+ "./node_modules/.nuxt-ui/ui/*"
+ ]
+ }
+ },
+ "include": [
+ "src/**/*.ts",
+ "src/**/*.tsx",
+ "src/**/*.vue",
+ "auto-imports.d.ts",
+ "components.d.ts"
+ ]
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/tsconfig.json b/web-nuxt-ui/tsconfig.json
new file mode 100644
index 0000000..1ffef60
--- /dev/null
+++ b/web-nuxt-ui/tsconfig.json
@@ -0,0 +1,7 @@
+{
+ "files": [],
+ "references": [
+ { "path": "./tsconfig.app.json" },
+ { "path": "./tsconfig.node.json" }
+ ]
+}
diff --git a/web-nuxt-ui/tsconfig.node.json b/web-nuxt-ui/tsconfig.node.json
new file mode 100644
index 0000000..bac01b7
--- /dev/null
+++ b/web-nuxt-ui/tsconfig.node.json
@@ -0,0 +1,37 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "lib": [
+ "ES2023"
+ ],
+ "module": "ESNext",
+ "skipLibCheck": true,
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "isolatedModules": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ /* Linting */
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
+ /* Paths - use local vite types instead of root node_modules */
+ "paths": {
+ "#build/ui": [
+ "./node_modules/.nuxt-ui/ui"
+ ],
+ "vite": [
+ "./node_modules/vite"
+ ]
+ },
+ "typeRoots": [
+ "./node_modules/@types",
+ "./node_modules"
+ ]
+ },
+ "include": [
+ "vite.config.ts"
+ ]
+}
\ No newline at end of file
diff --git a/web-nuxt-ui/vercel.json b/web-nuxt-ui/vercel.json
new file mode 100644
index 0000000..072cd7d
--- /dev/null
+++ b/web-nuxt-ui/vercel.json
@@ -0,0 +1,9 @@
+{
+ "$schema": "https://openapi.vercel.sh/vercel.json",
+ "rewrites": [
+ {
+ "source": "/(.*)",
+ "destination": "/index.html"
+ }
+ ]
+}
diff --git a/web-nuxt-ui/vite.config.ts b/web-nuxt-ui/vite.config.ts
new file mode 100644
index 0000000..b81dcae
--- /dev/null
+++ b/web-nuxt-ui/vite.config.ts
@@ -0,0 +1,156 @@
+import { fileURLToPath, URL } from 'node:url'
+import { defineConfig } from 'vite'
+import vue from '@vitejs/plugin-vue'
+import ui from '@nuxt/ui/vite'
+// import { transformWithEsbuild } from 'vite'
+// import type { Plugin } from 'vite'
+
+// function transpileArktype(): Plugin {
+// return {
+// name: 'transpile-arktype',
+// apply: 'build',
+// async transform(code, id) {
+// if (id.includes('@ark/') || id.includes('arktype')) {
+// const result = await transformWithEsbuild(code, id, {
+// target: 'es2020',
+// format: 'esm',
+// })
+// return { code: result.code, map: result.map }
+// }
+// },
+// }
+// }
+
+// https://vitejs.dev/config/
+export default defineConfig({
+ define: {
+ APP_VERSION: JSON.stringify(process.env.npm_package_version),
+ },
+ plugins: [
+ vue(),
+ ui({
+ ui: {
+ drawer: {
+ slots: {
+ container: 'pb-[calc(var(--tv-safe-area-inset-bottom)+16px)]'
+ }
+ },
+ slideover: {
+ slots: {
+ content: 'py-safe',
+ },
+ },
+ dashboardGroup: {
+ base: 'py-safe',
+ },
+ dashboardPanel: {
+ slots: {
+ body: 'p-2! pb-[calc(var(--tv-safe-area-inset-bottom)+var(--tv-safe-area-inset-top)+64px)]! lg:pb-0!'
+ },
+ },
+ modal: {
+ variants: {
+ fullscreen: {
+ true: {
+ content: 'py-safe',
+ }
+ }
+ }
+ },
+ dashboardSearchButton: {
+ slots: {
+ base: 'rounded-lg',
+ },
+ },
+ dashboardSearch: {
+ variants: {
+ fullscreen: {
+ true: {
+ // was too much close to the top with safe area
+ input: 'mt-4'
+ }
+ }
+ }
+ },
+ dashboardNavbar: {
+ slots: {
+ title: 'text-lg!',
+ },
+ },
+ button: {
+ slots: {
+ base: 'cursor-pointer',
+ },
+ defaultVariants: {
+ size: 'xl',
+ },
+ },
+ input: {
+ slots: {
+ base: 'rounded-lg',
+ },
+ defaultVariants: {
+ size: 'xl',
+ },
+ },
+ textarea: {
+ defaultVariants: {
+ size: 'xl',
+ },
+ },
+ colors: {
+ primary: 'green',
+ neutral: 'zinc',
+ },
+ collapsible: {
+ slots: {
+ content: 'p-2',
+ },
+ },
+ pageCard: {
+ variants: {
+ variant: {
+ taskview: {
+ root: 'cursor-pointer shadow-sm bg-tv-ui-bg-elevated',
+ container: 'sm:p-2 sm:px-4',
+ },
+ },
+
+ },
+ },
+ checkbox: {
+ slots: {
+ base: 'ring-2 cursor-pointer',
+ },
+ variants: {
+ size: {
+ xl: {
+ base: 'size-5',
+ container: 'h-5',
+ },
+ },
+ },
+ defaultVariants: {
+ size: 'xl',
+ color: 'primary',
+ },
+ },
+ },
+ }),
+ // transpileArktype(),
+ ],
+ // build: {
+ // target: ['es2020', 'safari15'],
+ // },
+ // optimizeDeps: {
+ // include: ['arktype', '@ark/schema', '@ark/util'],
+ // esbuildOptions: {
+ // target: 'es2020',
+ // },
+ // },
+ resolve: {
+ alias: {
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
+ },
+ },
+})