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.
TypeScript graphviewkanban-boardnodejsproductivityproject-managementself-hostedtasktask-managementtask-managertodoapp
feat: ui improvements
Nikolai Giman96ac9f4d7a04
diff --git a/README.md b/README.mdindex 52f2d9b..217c129 100644--- a/README.md+++ b/README.md@@ -1,162 +1,390 @@# TaskView™---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.--[](./LICENSE)-[]()--[**Live demo**](https://app.taskview.tech) · [**Documentation**](https://taskview.tech/docs/) · [**iOS**](https://apps.apple.com/lk/app/taskview-todo-list-tasks/id6499107867) · [**Android**](https://play.google.com/store/apps/details?id=com.handscreamgnl.taskview.app&hl=en)--## Apps-* [Docs](https://taskview.tech/docs/)-* [Web](https://app.taskview.tech/)-* [iOS](https://apps.apple.com/lk/app/taskview-todo-list-tasks/id6499107867)-* [Android](https://play.google.com/store/apps/details?id=com.handscreamgnl.taskview.app&hl=en)--It is designed for teams and individuals who want:-- full control over their data-- transparent architecture-- predictable workflows-- the ability to run the system on their own infrastructure--## Key Features-- Projects, lists, tasks, and subtasks-- Kanban boards-- Clear responsibility assignment-- Permissions and roles-- Web and mobile clients-- Self-hosted by design+<p align="center">+ <img src="./assets/taskview-logo.png" alt="TaskView logo" width="320">+</p>++<p align="center">+ <strong>Self-hosted project management for software teams.</strong>+</p>++<p align="center">+ TaskView combines task management, custom workflows, developer integrations,+ analytics, and AI-assisted automation in a platform you can run on your own infrastructure.+</p>++<p align="center">+ <a href="https://app.taskview.tech"><strong>TaskView Cloud</strong></a>+ ·+ <a href="https://taskview.tech/docs/"><strong>Documentation</strong></a>+ ·+ <a href="https://apps.apple.com/lk/app/taskview-todo-list-tasks/id6499107867"><strong>iOS</strong></a>+ ·+ <a href="https://play.google.com/store/apps/details?id=com.handscreamgnl.taskview.app"><strong>Android</strong></a>+ ·+<a href="https://github.com/Gimanh/taskview-community/releases">+ <strong>Releases</strong>+</a>+</p>++<p align="center">+ <a href="./LICENSE">+ <img src="https://img.shields.io/badge/license-Source--Available-blue" alt="Source-Available License">+ </a>+ <img src="https://img.shields.io/badge/status-active-brightgreen" alt="Active development">+ <img src="https://img.shields.io/badge/self--hosted-Docker-2496ED" alt="Docker self-hosted">+</p>-## Licensing+----TaskView uses a source-available license.+## About TaskView-You may:-- self-host TaskView-- modify the source code-- use it internally within your organization+TaskView is a source-available project and task management platform for small and growing software teams.-You may not:-- offer TaskView as a hosted SaaS-- sell TaskView as a service-- create a competing commercial product-- use the TaskView name or branding for derivative products+It is designed for teams that need more structure than a simple task board, but do not want the administration overhead and complexity of large enterprise project management systems.-See LICENSE for full terms.-TaskView is a trademark of its authors.+With TaskView, you can manage projects, build custom workflows, track dependencies and time, connect development tools, and automate project operations through the API, webhooks, and MCP.-## Architecture+Your projects. Your infrastructure. Your data.-This repository is a monorepo.+## Who TaskView is for-Main product packages:+TaskView is a good fit for:- - `api` – backend (Node.js)- - `web` – web client and mobile- - `taskview-packages/taskview-api` – API client library for building integrations and making HTTP requests- - `taskview-packages/taskview-db-schemas` - Drizzle ORM schemas+* software development teams;+* startups and small product companies;+* agencies managing internal and client projects;+* organizations that require self-hosting and data ownership;+* teams looking for a lightweight alternative to complex enterprise platforms;+* developers using AI agents to manage and automate project work;+* individuals managing technical or personal projects.-Product packages share a single version.+## Why TaskView+* **Own your data** - run TaskView on your own infrastructure.+* **Flexible workflows** - configure projects, statuses, boards, roles, and permissions.+* **Built for development teams** - connect GitHub, GitLab, API clients, and webhooks.+* **AI-ready** - allow MCP-compatible assistants to work with tasks and projects.+* **Available everywhere** - use TaskView from the web, iOS, and Android.+* **No advertising or behavioral tracking** - your project data remains under your control.-## Versioning+## Features++### Project and task management++* Projects, lists, tasks, and nested subtasks+* Custom Kanban boards and task statuses+* Priorities, tags, deadlines, and assignees+* Task dependency graph+* Sprints and recurring tasks+* Task history and activity tracking+* Markdown content+* Search and filtering+* Reusable project workflows++### Team collaboration++* Multiple organizations and projects+* User invites and granular permissions+* Clear responsibility assignment+* Real-time updates+* Notifications+* Organization-level user management++### Identity and access management++* SAML 2.0+* OpenID Connect+* SCIM provisioning+* Scoped API tokens+* Project-level access restrictions+* Fine-grained token permissions++### Developer integrations++* GitHub integration+* GitLab integration+* Signed webhooks+* TypeScript API client+* Public HTTP API+* MCP server for AI assistants-TaskView follows semantic versioning:- - `MAJOR` – breaking API or data changes- - `MINOR` – new features- - `PATCH` – bug fixes-The version represents the entire product, not individual packages.+### Time tracking and analytics+* Built-in time tracking+* Billable and non-billable time+* Project and team workload reports+* Productivity analytics+* Income and expense tracking+* Financial reports-## Status+### Applications-TaskView is under active development.-Breaking changes may occur between versions.+* Web application+* iOS application+* Android application+* Self-hosted server deployment-## Getting started+## AI and MCP integration-This setup is intended for local development.+TaskView includes an MCP server that allows compatible AI tools to interact with your projects.-### Development+Depending on the permissions assigned to an API token, an AI assistant can:-**Prerequisites:**-- Docker-- PostgreSQL- - On macOS you can use https://postgresapp.com/-- Bun (used for API development)-- pnpm+* search and inspect projects;+* create and update tasks;+* manage task statuses;+* work with project lists;+* retrieve task context;+* automate repetitive project operations.++MCP access can be restricted by permission and by selected projects.++See the [TaskView MCP documentation](https://taskview.tech/docs/integrations/mcp) for configuration examples.++## Quick start++Clone the repository:++```sh+git clone https://github.com/Gimanh/taskview-community.git+cd taskview-community+```++The recommended way to run TaskView is with Docker Compose.++For deployment instructions, environment variables, HTTPS configuration, updates, and backups, see the official documentation:++[TaskView self-hosting documentation](https://taskview.tech/docs/)++> Production deployments should use persistent volumes, HTTPS, regular database backups, and securely generated secrets.++## Repository structure++TaskView is maintained as a monorepo. Product packages share a single version.++```text+taskview-community/+├── api/+│ └── TaskView backend and HTTP API+├── web/+│ └── Vue web application and Capacitor mobile application+├── taskview-packages/+│ ├── taskview-api/+│ │ └── TypeScript API client+│ └── taskview-db-schemas/+│ │ └── Shared Drizzle ORM schemas+│ └── taskview-mcp/+│ └── MCP server for AI integrations+└── build-dockers.sh+ └── Docker image build script+```++### Main packages++| Package | Description |+| --------------------------------------- | ----------------------------------------------- |+| `api` | Node.js backend and API server |+| `web` | Vue web client and Capacitor mobile application |+| `taskview-packages/taskview-api` | TypeScript client for the TaskView API |+| `taskview-packages/taskview-db-schemas` | Shared Drizzle ORM database schemas |+| `taskview-packages/taskview-mcp` | MCP server for AI integrations |++## Technology stack++TaskView is primarily built with:++* Vue+* Nuxt UI+* TypeScript+* Node.js+* Express+* PostgreSQL+* Drizzle ORM+* Capacitor+* Docker++## Local development++These instructions are intended for contributors and local development, not for production deployment.++### Prerequisites++You need the following tools:++* Docker+* PostgreSQL+* Bun+* pnpm++On macOS, PostgreSQL can be installed using [Postgres.app](https://postgresapp.com/).++### Install dependencies++From the repository root:-**Steps:**-1. Install dependencies:```shpnpm install```-2. Create an `.env` file in the **api** directory based on `.env.example` and configure your local credentials.--3. Run the web application:+### Configure the API++Create an environment file in the `api` directory:++```sh+cp api/.env.example api/.env+```++Update `api/.env` with your local database credentials and application configuration.++### Start the web application+```shcd webpnpm dev```-1. Run the API locally (API uses Bun in development mode):+### Start the API++In a separate terminal:+```shcd apipnpm start```-## Building Docker Images+The API uses Bun in the local development environment.++## Building Docker images-You can build Docker images using the provided bash script. The image version is automatically taken from the root `package.json`.+Docker image versions are taken from the root `package.json`.++### Build the images++From the repository root:-**Steps:**-1. Build images:```sh./build-dockers.sh```-2. Verify built images:+### Verify the images+```shdocker images```-You should see the following images:-`gimanhead/taskview-ce-api-server`-`gimanhead/taskview-ce-webapp`-`gimanhead/taskview-ce-db-migration`+The following images should be available:++```text+gimanhead/taskview-ce-api-server+gimanhead/taskview-ce-webapp+gimanhead/taskview-ce-db-migration+```++### Test the images locally-3. Test images locally using Docker Compose:```shcd api/dev-containers-test-docker-compose up+docker compose up```-Make sure the image versions match the version defined in the root package.json.+Ensure that image versions match the version defined in the root `package.json`.++## Versioning++TaskView follows [Semantic Versioning](https://semver.org/):++* `MAJOR` - breaking API, database, or compatibility changes;+* `MINOR` - backward-compatible features;+* `PATCH` - backward-compatible bug fixes.++The version represents the entire TaskView product, not individual packages.++## Project status++TaskView is under active development.++New features, database migrations, API changes, and breaking changes may be introduced between releases. Review release notes and back up your database before updating a self-hosted installation.## Roadmap+Planned areas of development include:++* [ ] Desktop application+* [ ] Plugin and extension system+* [ ] Additional third-party integrations+* [ ] Expanded automation capabilities+* [ ] Continued UI and UX improvements-- [X] Migrate to NuxtUI or similar ui library-- [X] Enterprise SSO and identity integrations-- [X] Redesign-- [X] API tokens-- [X] Webhooks-- [X] MCP server-- [X] Notifications-- [X] Analytics-- [X] API client-- [ ] Desktop version-- [ ] Plugin / extension system+The roadmap may change based on product priorities and community feedback.+## Contributing-Note for contributors: contributions are accepted under the CLA (see CONTRIBUTING.md). The Project is distributed under the TaskView Source-Available License.+Contributions are welcome.++Before contributing:++1. Read [`CONTRIBUTING.md`](./CONTRIBUTING.md).+2. Check existing issues and pull requests.+3. Open an issue before starting a large architectural change.+4. Follow the project's code style and architecture.+5. Sign the Contributor License Agreement when required.++Contributions are accepted under the project's CLA.++## Licensing++TaskView is distributed under the TaskView Source-Available License.++You may:++* self-host TaskView;+* modify the source code;+* use TaskView internally within your organization;+* create integrations and internal extensions.++You may not:++* offer TaskView as a hosted SaaS;+* sell access to TaskView as a service;+* create a competing commercial product based on TaskView;+* use the TaskView name, logo, or branding for derivative products.++See [`LICENSE`](./LICENSE) for the complete terms.++TaskView is **source-available**, not OSI-approved open-source software.++For commercial licensing questions, hosted service permissions, or other use cases not covered by the license, contact the project maintainer.++## Security++Do not publish security vulnerabilities in public GitHub issues.++Report security issues privately using the contact information provided in the repository or on the TaskView website.++When running TaskView in production:++* use HTTPS;+* generate unique application secrets;+* restrict database access;+* keep Docker images and dependencies updated;+* configure persistent storage;+* create regular backups;+* restrict API-token permissions to the minimum required scope.++## Links++* [TaskView website](https://taskview.tech/)+* [TaskView Cloud](https://app.taskview.tech/)+* [Documentation](https://taskview.tech/docs/)+* [iOS application](https://apps.apple.com/lk/app/taskview-todo-list-tasks/id6499107867)+* [Android application](https://play.google.com/store/apps/details?id=com.handscreamgnl.taskview.app)+* [GitHub repository](https://github.com/Gimanh/taskview-community)----TaskView is developed and maintained by Nikolai Giman.+TaskView is developed and maintained by **Nikolai Giman**.++TaskView™ and the TaskView logo are trademarks of their respective owner.-Copyright © 2026 Nikolai Giman+Copyright © 2026 Nikolai Giman.diff --git a/assets/taskview-graph.png b/assets/taskview-graph.pngnew file mode 100644index 0000000..5c72c54Binary files /dev/null and b/assets/taskview-graph.png differdiff --git a/assets/taskview-kanban.png b/assets/taskview-kanban.pngnew file mode 100644index 0000000..6fbd5e6Binary files /dev/null and b/assets/taskview-kanban.png differdiff --git a/docs/3.integrations/2.mcp.md b/docs/3.integrations/2.mcp.mdnew file mode 100644index 0000000..f005e4b--- /dev/null+++ b/docs/3.integrations/2.mcp.md@@ -0,0 +1,45 @@+---+title: MCP Server+description: Connect AI assistants like Claude Code and Claude Desktop to TaskView via the Model Context Protocol (MCP). Manage projects and tasks with a scoped API token.+navigation:+ icon: i-lucide-bot+---++TaskView ships an MCP (Model Context Protocol) server that lets AI assistants such as Claude Code and Claude Desktop work with your projects and tasks through the TaskView API.++```+AI client ──stdio──▶ taskview-mcp ──HTTPS──▶ TaskView API+```++## Prerequisites++- Node.js >= 24+- A TaskView API token (`tvk_...`) — create one in your account settings. See [API tokens](/docs/features/api-tokens).++## Configuration++No installation is required — the server runs via `npx`. Add it to your MCP client config:++```json+{+ "mcpServers": {+ "taskview": {+ "command": "npx",+ "args": ["-y", "taskview-mcp"],+ "env": {+ "TASKVIEW_URL": "https://api.taskview.tech",+ "TASKVIEW_TOKEN": "tvk_your_token_here"+ }+ }+ }+}+```++- **Claude Code** — add to `.claude/settings.json` (project) or `~/.claude.json` (global).+- **Claude Desktop** — add to `claude_desktop_config.json`.++Set `TASKVIEW_URL` to your own instance when self-hosting.++## Permissions++The assistant can only do what the API token allows. Token permissions are scoped to selected projects and intersected with your RBAC role, so an AI client never exceeds your own access. Grant the minimum scope needed.diff --git a/web/src/assets/css/main.css b/web/src/assets/css/main.cssindex b33a1ba..b8a1492 100644--- a/web/src/assets/css/main.css+++ b/web/src/assets/css/main.css@@ -9,6 +9,8 @@@theme {--tv-ui-bg-elevated: #fff;--color-tv-ui-bg-elevated: var(--tv-ui-bg-elevated);+ --radius-10: 10px;+ --radius-14: 14px;}/* Safe area utilities */diff --git a/web/src/components/UserMenu.vue b/web/src/components/UserMenu.vueindex 83dc121..b6cb888 100644--- a/web/src/components/UserMenu.vue+++ b/web/src/components/UserMenu.vue@@ -65,6 +65,7 @@ import { saveLocale } from '@/plugins/i18n'import { useUpdater } from '@/composables/useUpdater'import { useUserStore } from '@/stores/user.store'import { useOrganizationStore } from '@/stores/organization.store'+import { useOrgSwitcher } from '@/composables/useOrgSwitcher'import { $ls } from '@/plugins/axios'import avatarImg from '@/assets/images/avatar-1.jpeg'@@ -79,6 +80,7 @@ const router = useRouter()const toast = useToast()const userStore = useUserStore()const orgStore = useOrganizationStore()+const { switchOrg } = useOrgSwitcher()const prodOrDev = ref<'prod' | 'dev'>('prod')let counter = 0@@ -155,8 +157,7 @@ const items = computed<DropdownMenuItem[][]>(() => [icon: org.id === orgStore.currentOrg?.id ? 'i-lucide-check' : undefined,onSelect(e: Event) {e.preventDefault()- orgStore.setCurrentOrg(org)- router.push({ name: 'user', params: { orgSlug: org.slug } })+ switchOrg(org)},})),},@@ -288,6 +289,32 @@ const items = computed<DropdownMenuItem[][]>(() => [},],},+ {+ label: t('userMenu.sidebarView'),+ icon: 'i-lucide-panel-left',+ children: [+ {+ label: t('userMenu.sidebarViewSecond'),+ icon: 'i-lucide-layout-list',+ type: 'checkbox',+ checked: appStore.sidebarView === 'second',+ onSelect(e: Event) {+ e.preventDefault()+ appStore.setSidebarView('second')+ },+ },+ {+ label: t('userMenu.sidebarViewFirst'),+ icon: 'i-lucide-panel-left',+ type: 'checkbox',+ checked: appStore.sidebarView === 'first',+ onSelect(e: Event) {+ e.preventDefault()+ appStore.setSidebarView('first')+ },+ },+ ],+ },],[{diff --git a/web/src/components/features/account/AccountSettings.vue b/web/src/components/features/account/AccountSettings.vueindex a750def..e50695a 100644--- a/web/src/components/features/account/AccountSettings.vue+++ b/web/src/components/features/account/AccountSettings.vue@@ -2,15 +2,15 @@<div class="flex flex-col gap-6 p-1 lg:p-6 w-full max-w-full lg:max-w-2xl m-0 lg:mx-auto"><NotificationSettings />- <UPageCard class="w-full">+ <UPageCard class="w-full rounded-3xl"><SessionsPanel /></UPageCard>- <UPageCard class="w-full">+ <UPageCard class="w-full rounded-3xl"><ApiTokensPanel /></UPageCard>- <UPageCard class="w-full">+ <UPageCard class="w-full rounded-3xl"><div class="flex flex-col gap-4"><h2 class="text-lg font-semibold">{{ t('account.management') }}diff --git a/web/src/components/features/account/parts/DeleteAccountCodeModal.vue b/web/src/components/features/account/parts/DeleteAccountCodeModal.vueindex b124e6e..e8e1c7c 100644--- a/web/src/components/features/account/parts/DeleteAccountCodeModal.vue+++ b/web/src/components/features/account/parts/DeleteAccountCodeModal.vue@@ -12,6 +12,8 @@v-model="code":placeholder="t('account.enterCode')"spellcheck="false"+ variant="soft"+ :ui="{ base: 'rounded-xl' }"/><div class="flex justify-end gap-2">diff --git a/web/src/components/features/account/parts/NotificationSettings.vue b/web/src/components/features/account/parts/NotificationSettings.vueindex 5d2ed34..4ea68f5 100644--- a/web/src/components/features/account/parts/NotificationSettings.vue+++ b/web/src/components/features/account/parts/NotificationSettings.vue@@ -1,5 +1,5 @@<template>- <UPageCard class="w-full">+ <UPageCard class="w-full rounded-3xl"><div class="flex flex-col gap-4"><div><h2 class="text-lg font-semibold">diff --git a/web/src/components/features/api-tokens/parts/ApiTokenItem.vue b/web/src/components/features/api-tokens/parts/ApiTokenItem.vueindex b7e0dba..7d18002 100644--- a/web/src/components/features/api-tokens/parts/ApiTokenItem.vue+++ b/web/src/components/features/api-tokens/parts/ApiTokenItem.vue@@ -1,5 +1,5 @@<template>- <div class="flex items-center justify-between p-4 border border-default rounded-lg">+ <UCard variant="soft" :ui="{body:'w-full flex items-center justify-between p-4', root:'rounded-2xl'}"><div class="flex items-center gap-3 min-w-0"><UIconname="i-lucide-key-round"@@ -32,10 +32,10 @@icon="i-lucide-trash-2"variant="ghost"color="error"- size="md"+ size="xl"@click="showDeleteConfirm = true"/>- </div>+ </UCard><UModalv-model:open="showDeleteConfirm"diff --git a/web/src/components/features/base/TvDateRange.vue b/web/src/components/features/base/TvDateRange.vuenew file mode 100644index 0000000..e9851c3--- /dev/null+++ b/web/src/components/features/base/TvDateRange.vue@@ -0,0 +1,173 @@+<template>+ <UPopover+ v-model:open="open"+ :content="{ align: 'start' }"+ :ui="{ content: 'rounded-2xl' }"+ >+ <UButton+ :disabled="disabled"+ color="neutral"+ variant="soft"+ block+ size="xl"+ icon="i-lucide-calendar"+ :trailing-icon="open ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'"+ :ui="activatorUi('text-muted')"+ >+ <span class="flex-1 flex items-center gap-2 text-left font-medium">+ <template v-if="isRange">+ <span :class="model?.start ? '' : 'text-muted'">{{ startLabel }}</span>+ <UIcon+ name="i-lucide-arrow-right"+ class="size-3.5 shrink-0 text-dimmed"+ />+ <span :class="model?.end ? '' : 'text-muted'">{{ endLabel }}</span>+ </template>+ <span+ v-else+ :class="model?.end ? '' : 'text-muted'"+ >{{ endLabel }}</span>+ </span>+ </UButton>++ <template #content>+ <div class="flex flex-col gap-3 p-3">+ <div class="flex flex-wrap gap-2">+ <UButton+ v-for="q in quickRanges"+ :key="q.key"+ color="neutral"+ variant="soft"+ size="xs"+ :label="q.label"+ @click="applyQuick(q.key)"+ />+ </div>++ <UCalendar+ v-if="isRange"+ v-model="rangeModel"+ range+ :week-starts-on="weekStart"+ />+ <UCalendar+ v-else+ v-model="singleModel"+ :week-starts-on="weekStart"+ />++ <div class="flex items-center justify-between gap-2 pt-1">+ <UCheckbox+ v-model="isRange"+ size="md"+ :ui="{ root: 'items-center' }"+ :label="t('deadline.selectRange')"+ />+ <UButton+ v-if="model?.start || model?.end"+ icon="i-lucide-x"+ :label="t('common.delete')"+ color="error"+ variant="ghost"+ size="sm"+ @click="clear"+ />+ </div>+ </div>+ </template>+ </UPopover>+</template>++<script setup lang="ts">+import { ref, computed, watch } from 'vue'+import { useI18n } from 'vue-i18n'+import { useDateFormat } from '@vueuse/core'+import {+ type CalendarDate,+ today,+ getLocalTimeZone,+ startOfWeek,+ endOfWeek,+ startOfMonth,+ endOfMonth,+} from '@internationalized/date'+import { useWeekStart } from '@/composables/useWeekStart'+import { useNuxtUiTaskItemStyles } from '@/composables/useNuxtUiTaskItemStyles'+import type { DateRangeValue } from '@/types/tvDate.types'++const model = defineModel<DateRangeValue>()++const { disabled = false } = defineProps<{+ disabled?: boolean+}>()++const { t } = useI18n()+const weekStart = useWeekStart()+const { activatorUi } = useNuxtUiTaskItemStyles()++const open = ref(false)+const isRange = ref(false)++// drop the start date when switching back to single-date mode+watch(isRange, (on) => {+ if (!on && model.value?.start) {+ model.value = { start: undefined, end: model.value.end }+ }+})++// single-date mode fills the END date (the deadline)+const singleModel = computed<CalendarDate | undefined>({+ get: () => model.value?.end,+ set: (date) => {+ model.value = { start: undefined, end: date }+ if (date) open.value = false+ },+})++const rangeModel = computed<DateRangeValue>({+ get: () => ({ start: model.value?.start, end: model.value?.end }),+ set: (value) => {+ model.value = value ?? null+ if (value?.start && value?.end) open.value = false+ },+})++const format = (date?: CalendarDate): string =>+ date ? useDateFormat(new Date(date.toString()), 'DD MMM').value : ''++const startLabel = computed(() => model.value?.start ? format(model.value.start) : t('deadline.startDate'))+const endLabel = computed(() => {+ if (model.value?.end) return format(model.value.end)+ return isRange.value ? t('deadline.endDate') : t('tasks.deadline')+})++type QuickKey = 'today' | 'tomorrow' | 'week' | 'month'++const quickRanges = computed<{ key: QuickKey, label: string }[]>(() => [+ { key: 'today', label: t('deadline.today') },+ { key: 'tomorrow', label: t('deadline.tomorrow') },+ { key: 'week', label: t('deadline.thisWeek') },+ { key: 'month', label: t('deadline.thisMonth') },+])++function applyQuick(key: QuickKey) {+ const t0 = today(getLocalTimeZone())+ if (key === 'today') commit(t0, t0)+ else if (key === 'tomorrow') {+ const d = t0.add({ days: 1 })+ commit(d, d)+ }+ else if (key === 'week') commit(startOfWeek(t0, 'ru-RU'), endOfWeek(t0, 'ru-RU'))+ else commit(startOfMonth(t0), endOfMonth(t0))+}++// in single mode keep only the end date; in range mode keep both+function commit(start: CalendarDate, end: CalendarDate) {+ model.value = isRange.value ? { start, end } : { start: undefined, end }+ open.value = false+}++function clear() {+ model.value = null+}+</script>diff --git a/web/src/components/features/base/TvDeadlineSelect.vue b/web/src/components/features/base/TvDeadlineSelect.vuenew file mode 100644index 0000000..0acd3b7--- /dev/null+++ b/web/src/components/features/base/TvDeadlineSelect.vue@@ -0,0 +1,47 @@+<template>+ <TvDateRange+ :model-value="range"+ :disabled="!canEditTaskDeadline"+ @update:model-value="onUpdate"+ />+</template>++<script setup lang="ts">+import { computed } from 'vue'+import type { Task } from 'taskview-api'+import { CalendarDate } from '@internationalized/date'+import TvDateRange from '@/components/features/base/TvDateRange.vue'+import { useTasksStore } from '@/stores/tasks.store'+import { useGoalPermissions } from '@/composables/useGoalPermissions'+import type { DateRangeValue } from '@/types/tvDate.types'++const props = defineProps<{+ task: Task+}>()++const tasksStore = useTasksStore()+const { canEditTaskDeadline } = useGoalPermissions()++function parse(dateStr: string | null | undefined): CalendarDate | undefined {+ if (!dateStr) return undefined+ const [year, month, day] = dateStr.split('-').map(Number)+ if (!year || !month || !day) return undefined+ return new CalendarDate(year, month, day)+}++const range = computed<DateRangeValue>(() => ({+ start: parse(props.task.startDate),+ end: parse(props.task.endDate),+}))++async function onUpdate(value: DateRangeValue | undefined) {+ const v = value ?? null+ await tasksStore.saveDateForTask({+ id: props.task.id,+ startDate: v?.start ? v.start.toString() : null,+ startTime: v?.start ? props.task.startTime : null,+ endDate: v?.end ? v.end.toString() : null,+ endTime: v?.end ? props.task.endTime : null,+ })+}+</script>diff --git a/web/src/components/features/base/TvDropdown.vue b/web/src/components/features/base/TvDropdown.vuenew file mode 100644index 0000000..514f9c9--- /dev/null+++ b/web/src/components/features/base/TvDropdown.vue@@ -0,0 +1,98 @@+<template>+ <UPopover+ v-if="withActivator"+ v-model:open="open"+ :content="{ align: 'start' }"+ :ui="{ content: 'rounded-2xl' }"+ >+ <UButton+ :disabled="disabled"+ color="neutral"+ variant="soft"+ block+ size="xl"+ :icon="activatorIcon || (multiple ? placeholderIcon : current?.icon) || placeholderIcon"+ :trailing-icon="open ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'"+ :ui="activatorUi((multiple ? undefined : current?.iconClass) ?? 'text-muted')"+ >+ <span+ class="flex-1 text-left truncate min-w-0"+ :class="hasSelection ? '' : 'text-muted'"+ :style="!multiple && current?.color ? { color: current.color } : undefined"+ >{{ activatorLabel }}</span>+ </UButton>++ <template #content>+ <div class="p-2 min-w-56">+ <TvDropdownOptions+ v-model="model"+ :items="items"+ :disabled="disabled"+ :multiple="multiple"+ @update:model-value="onSelect"+ />+ </div>+ </template>+ </UPopover>++ <TvDropdownOptions+ v-else+ v-model="model"+ :items="items"+ :disabled="disabled"+ :multiple="multiple"+ />+</template>++<script setup lang="ts" generic="V, T = V">+import { ref, computed } from 'vue'+import TvDropdownOptions from '@/components/features/base/TvDropdownOptions.vue'+import { useNuxtUiTaskItemStyles } from '@/composables/useNuxtUiTaskItemStyles'+import type { TvDropdownOption } from '@/types/tvDropdown.types'++const model = defineModel<T>()++const {+ items,+ withActivator = true,+ disabled = false,+ placeholder = '',+ placeholderIcon = '',+ activatorIcon = '',+ multiple = false,+} = defineProps<{+ items: TvDropdownOption<V>[]+ withActivator?: boolean+ disabled?: boolean+ placeholder?: string+ placeholderIcon?: string+ /** Fixed activator icon — overrides the selected option's icon. */+ activatorIcon?: string+ multiple?: boolean+}>()++const { activatorUi } = useNuxtUiTaskItemStyles()++const open = ref(false)+const current = computed(() => items.find(o => o.value === (model.value as unknown as V)))+const selectedOptions = computed(() => {+ if (Array.isArray(model.value)) {+ const selected = model.value as V[]+ return items.filter(o => selected.includes(o.value))+ }+ return current.value ? [current.value] : []+})+const hasSelection = computed(() => selectedOptions.value.length > 0)+const activatorLabel = computed(() => {+ if (multiple) {+ return selectedOptions.value.length+ ? selectedOptions.value.map(o => o.label).join(', ')+ : placeholder+ }+ return current.value?.label ?? placeholder+})++function onSelect() {+ if (!multiple) open.value = false+}+</script>diff --git a/web/src/components/features/base/TvDropdownOptions.vue b/web/src/components/features/base/TvDropdownOptions.vuenew file mode 100644index 0000000..2f405b3--- /dev/null+++ b/web/src/components/features/base/TvDropdownOptions.vue@@ -0,0 +1,79 @@+<template>+ <div class="flex flex-col gap-1">+ <UButton+ v-for="opt in items"+ :key="String(opt.value)"+ :disabled="disabled"+ color="neutral"+ variant="ghost"+ block+ size="sm"+ :icon="opt.icon"+ class="items-center justify-between gap-3"+ :ui="dropdownItemUi(`${opt.iconClass ?? ''} size-4.5`)"+ :class="!opt.color && isSelected(opt.value) ? 'bg-primary/10' : ''"+ :style="opt.color && isSelected(opt.value) ? { backgroundColor: opt.color + '14' } : undefined"+ @click="select(opt.value)"+ >+ <span class="flex-1 flex flex-col items-start text-left gap-0.5">+ <span class="text-base text-highlighted leading-tight">{{ opt.label }}</span>+ <span+ v-if="opt.description"+ class="text-xs text-muted leading-tight"+ >{{ opt.description }}</span>+ </span>++ <template #trailing>+ <span+ v-if="isSelected(opt.value)"+ class="flex items-center justify-center size-5.5 rounded-full shrink-0"+ :class="opt.color ? '' : 'bg-primary'"+ :style="opt.color ? { backgroundColor: opt.color } : undefined"+ >+ <UIcon+ name="i-lucide-check"+ class="size-4 text-white"+ />+ </span>+ <span+ v-else+ class="size-5.5 rounded-full border-2 border-default shrink-0"+ />+ </template>+ </UButton>+ </div>+</template>++<script setup lang="ts" generic="V, T = V">+import { useNuxtUiTaskItemStyles } from '@/composables/useNuxtUiTaskItemStyles'+import type { TvDropdownOption } from '@/types/tvDropdown.types'++const { dropdownItemUi } = useNuxtUiTaskItemStyles()++const model = defineModel<T>()++const { items, disabled = false, multiple = false } = defineProps<{+ items: TvDropdownOption<V>[]+ disabled?: boolean+ multiple?: boolean+}>()++function isSelected(value: V): boolean {+ return Array.isArray(model.value)+ ? (model.value as V[]).includes(value)+ : (model.value as unknown as V) === value+}++function select(value: V) {+ if (disabled) return+ if (multiple) {+ const current = Array.isArray(model.value) ? [...(model.value as V[])] : []+ const index = current.indexOf(value)+ if (index === -1) current.push(value)+ else current.splice(index, 1)+ model.value = current as unknown as T+ } else {+ model.value = value as unknown as T+ }+}+</script>diff --git a/web/src/components/features/base/TvGoalLikeItem.vue b/web/src/components/features/base/TvGoalLikeItem.vueindex 7bb9b06..01a2145 100644--- a/web/src/components/features/base/TvGoalLikeItem.vue+++ b/web/src/components/features/base/TvGoalLikeItem.vue@@ -1,7 +1,7 @@<template><UPageCardv-bind="{ ...props }"- class="shadow-sm"+ class="shadow-sm rounded-xl":class="{ 'bg-primary/10 border border-primary/30': active }"><div class="flex items-center justify-between">diff --git a/web/src/components/features/base/TvKanbanStatusSelect.vue b/web/src/components/features/base/TvKanbanStatusSelect.vuenew file mode 100644index 0000000..27f9efd--- /dev/null+++ b/web/src/components/features/base/TvKanbanStatusSelect.vue@@ -0,0 +1,27 @@+<template>+ <TvDropdown+ v-model="model"+ :items="options"+ :with-activator="withActivator"+ :disabled="disabled"+ :placeholder="t('tasks.selectStatus')"+ placeholder-icon="i-lucide-columns-3"+ activator-icon="i-lucide-columns-3"+ />+</template>++<script setup lang="ts">+import { useI18n } from 'vue-i18n'+import TvDropdown from '@/components/features/base/TvDropdown.vue'+import { useKanbanStatusOptions, type StatusValue } from '@/composables/useKanbanStatusOptions'++const model = defineModel<StatusValue>()++const { withActivator = true, disabled = false } = defineProps<{+ withActivator?: boolean+ disabled?: boolean+}>()++const { t } = useI18n()+const { options } = useKanbanStatusOptions()+</script>diff --git a/web/src/components/features/base/TvListSelect.vue b/web/src/components/features/base/TvListSelect.vuenew file mode 100644index 0000000..ec055e5--- /dev/null+++ b/web/src/components/features/base/TvListSelect.vue@@ -0,0 +1,26 @@+<template>+ <TvDropdown+ v-model="model"+ :items="options"+ :with-activator="withActivator"+ :disabled="disabled"+ :placeholder="t('tasks.noList')"+ placeholder-icon="i-lucide-inbox"+ />+</template>++<script setup lang="ts">+import { useI18n } from 'vue-i18n'+import TvDropdown from '@/components/features/base/TvDropdown.vue'+import { useGoalListOptions, type ListValue } from '@/composables/useGoalListOptions'++const model = defineModel<ListValue>()++const { withActivator = true, disabled = false } = defineProps<{+ withActivator?: boolean+ disabled?: boolean+}>()++const { t } = useI18n()+const { options } = useGoalListOptions()+</script>diff --git a/web/src/components/features/base/TvMobileBottomNav.vue b/web/src/components/features/base/TvMobileBottomNav.vueindex dd8a718..451cb66 100644--- a/web/src/components/features/base/TvMobileBottomNav.vue+++ b/web/src/components/features/base/TvMobileBottomNav.vue@@ -1,20 +1,21 @@<template><nav class="fixed bottom-0 left-0 right-0 z-50 lg:hidden border-t border-default pb-safe bg-default">- <div class="flex items-center justify-between min-h-14">+ <div class="flex items-stretch justify-around min-h-16 gap-1 p-1.5"><UButtonv-for="item in navItems"- :key="item.label"+ :key="item.key":icon="item.icon"- :to="item.to"- color="neutral"- variant="ghost"- size="lg"- class="flex-1 h-full rounded-none"- :class="{ 'text-primary': item.active?.() }"+ :label="item.label"+ :color="item.active() ? 'primary' : 'neutral'"+ :variant="item.active() ? 'soft' : 'ghost'"+ block+ class="flex-1 min-w-0":ui="{- base: ' justify-center',+ base: 'flex-col gap-1 py-1.5 rounded-xl',+ leadingIcon: 'size-5',+ label: 'text-[11px] leading-none truncate max-w-full',}"- @click="item.onClick?.()"+ @click="onItemClick(item)"/></div></nav>@@ -22,89 +23,92 @@<script setup lang="ts">import { computed } from 'vue'-import { useRoute } from 'vue-router'+import { useRoute, useRouter, type RouteLocationRaw } 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'+import { useGoalsStore } from '@/stores/goals.store'+import { useGoalPermissionsFor } from '@/composables/useGoalPermissions'++type NavItem = {+ key: string+ label: string+ icon: string+ to?: RouteLocationRaw+ active: () => boolean+ onClick?: () => void+}const route = useRoute()+const router = useRouter()const { t } = useI18n()const { isSidebarOpen } = useDashboard()-const { isUserRoute, isAccountRoute, hasProject, projectId, hasList } = useAppRouteInfo()+const { isUserRoute, isAccountRoute, hasProject, projectId } = useAppRouteInfo()+const goalsStore = useGoalsStore()-const navItems = computed(() => {- if (isAccountRoute.value) {- return [- {- label: t('main'),- icon: 'i-lucide-house',- to: { name: 'user' },- active: (): boolean => false,- },- ]- }+const currentGoal = computed(() =>+ hasProject.value ? goalsStore.goalMap.get(projectId.value) ?? null : null,+)+const { canViewKanban, canViewGraph } = useGoalPermissionsFor(currentGoal)- 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 [+// A stable core (Home · Projects · … · Account) keeps tab positions predictable+// across routes; project shortcuts (Kanban/Graph) only slot in when inside a+// project and the user is allowed to see them.+const navItems = computed<NavItem[]>(() => {+ const items: NavItem[] = [{+ key: 'home',label: t('main'),icon: 'i-lucide-house',to: { name: 'user' },- active: (): boolean => false,+ active: () => isUserRoute.value && !hasProject.value,},{+ key: 'projects',label: t('projects.title'),icon: 'i-lucide-folder',- active: (): boolean => isSidebarOpen.value,+ active: () => 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,- },]++ if (hasProject.value) {+ if (canViewKanban.value) {+ items.push({+ key: 'kanban',+ label: t('contextMenu.kanban'),+ icon: 'i-lucide-kanban',+ to: { name: 'kanban', params: { projectId: projectId.value } },+ active: () => route.name === 'kanban',+ })+ }+ if (canViewGraph.value) {+ items.push({+ key: 'graph',+ label: t('contextMenu.graph'),+ icon: 'i-lucide-git-fork',+ to: { name: 'graph', params: { projectId: projectId.value } },+ active: () => route.name === 'graph',+ })+ }+ }++ items.push({+ key: 'account',+ label: t('account.nav'),+ icon: 'i-lucide-settings',+ to: { name: 'account' },+ active: () => isAccountRoute.value,+ })++ return items})++function onItemClick(item: NavItem) {+ if (item.onClick) {+ item.onClick()+ return+ }+ if (item.to) router.push(item.to)+}</script>diff --git a/web/src/components/features/base/TvPriority.vue b/web/src/components/features/base/TvPriority.vuenew file mode 100644index 0000000..7c48e61--- /dev/null+++ b/web/src/components/features/base/TvPriority.vue@@ -0,0 +1,26 @@+<template>+ <TvDropdown+ v-model="model"+ :items="options"+ :with-activator="withActivator"+ :disabled="disabled"+ :placeholder="t('tasks.priority')"+ placeholder-icon="i-lucide-flag"+ />+</template>++<script setup lang="ts">+import { useI18n } from 'vue-i18n'+import TvDropdown from '@/components/features/base/TvDropdown.vue'+import { usePriorityOptions, type PriorityValue } from '@/composables/usePriorityOptions'++const model = defineModel<PriorityValue>()++const { withActivator = true, disabled = false } = defineProps<{+ withActivator?: boolean+ disabled?: boolean+}>()++const { t } = useI18n()+const { options } = usePriorityOptions()+</script>diff --git a/web/src/components/features/base/TvSprintSelect.vue b/web/src/components/features/base/TvSprintSelect.vuenew file mode 100644index 0000000..68e9a86--- /dev/null+++ b/web/src/components/features/base/TvSprintSelect.vue@@ -0,0 +1,84 @@+<template>+ <TvDropdown+ v-if="canView"+ :model-value="currentSprintId"+ :items="options"+ :disabled="!canAssign"+ :placeholder="t('tasks.fields.sprint')"+ placeholder-icon="i-lucide-rocket"+ activator-icon="i-lucide-rocket"+ @update:model-value="selectSprint"+ />+</template>++<script setup lang="ts">+import { computed, ref, watch } from 'vue'+import { useI18n } from 'vue-i18n'+import type { Sprint } from 'taskview-api'+import { $tvApi } from '@/plugins/axios'+import { useTasksStore } from '@/stores/tasks.store'+import { useGoalsStore } from '@/stores/goals.store'+import { useGoalPermissionsFor } from '@/composables/useGoalPermissions'+import { logError } from '@/helpers/Helper'+import TvDropdown from '@/components/features/base/TvDropdown.vue'+import type { TvDropdownOption } from '@/types/tvDropdown.types'++const props = defineProps<{+ taskId: number+ goalId: number+ currentSprintId: number | null+}>()++const { t } = useI18n()+const toast = useToast()+const tasksStore = useTasksStore()+const goalsStore = useGoalsStore()++const goal = computed(() => goalsStore.goalMap.get(props.goalId) ?? null)+const { canViewSprints: canView, canAssignSprintTasks: canAssign } = useGoalPermissionsFor(goal)++const sprints = ref<Sprint[]>([])+const loadedGoalId = ref<number | null>(null)++const options = computed<TvDropdownOption<number | null>[]>(() => [+ { value: null, label: t('tasks.sprintNone'), icon: 'i-lucide-rocket', iconClass: 'text-dimmed' },+ ...sprints.value+ .filter(s => s.status !== 'completed')+ .map(s => ({+ value: s.id,+ label: s.name,+ description: s.status ? t(`sprints.status.${s.status}`) : undefined,+ icon: 'i-lucide-rocket',+ iconClass: 'text-dimmed',+ })),+])++async function loadSprints() {+ if (loadedGoalId.value === props.goalId) return+ const result = await $tvApi.sprints.listForGoal({ goalId: props.goalId }).catch(logError)+ if (!result) return+ sprints.value = result+ loadedGoalId.value = props.goalId+}++async function selectSprint(value: number | null | undefined) {+ const sprintId = value ?? null+ if (sprintId === props.currentSprintId) return++ const result = await $tvApi.sprints+ .setTaskSprint({ taskId: props.taskId, sprintId })+ .catch(logError)++ if (!result) {+ toast.add({ title: t('tasks.sprintUpdateFailed'), color: 'error' })+ return+ }++ const selected = tasksStore.selectedTask+ if (selected && selected.id === props.taskId) {+ selected.sprintId = sprintId+ }+}++watch(() => props.goalId, loadSprints, { immediate: true })+</script>diff --git a/web/src/components/features/graph/AddNewTaskToGraph.vue b/web/src/components/features/graph/AddNewTaskToGraph.vueindex 58e57d8..be9a1fa 100644--- a/web/src/components/features/graph/AddNewTaskToGraph.vue+++ b/web/src/components/features/graph/AddNewTaskToGraph.vue@@ -29,14 +29,14 @@<div class="flex justify-end gap-2"><UButtoncolor="neutral"- variant="outline"+ variant="soft"@click="close">{{ t('common.cancel') }}</UButton><UButton:disabled="!taskName.trim()"- variant="outline"+ variant="soft"@click="addTask">{{ t('tasks.add') }}diff --git a/web/src/components/features/kanban/parts/KanbanAddStatus.vue b/web/src/components/features/kanban/parts/KanbanAddStatus.vueindex 1bfd8a8..4c70393 100644--- a/web/src/components/features/kanban/parts/KanbanAddStatus.vue+++ b/web/src/components/features/kanban/parts/KanbanAddStatus.vue@@ -6,7 +6,8 @@: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"+ variant="soft"+ class="h-full max-w-[340px] min-w-[272px] flex flex-col w-[91.666667%] rounded-lg"/><UButtondiff --git a/web/src/components/features/kanban/parts/KanbanDeleteModal.vue b/web/src/components/features/kanban/parts/KanbanDeleteModal.vueindex f2198e6..3610c16 100644--- a/web/src/components/features/kanban/parts/KanbanDeleteModal.vue+++ b/web/src/components/features/kanban/parts/KanbanDeleteModal.vue@@ -24,13 +24,14 @@<div class="flex justify-end gap-2"><UButtoncolor="neutral"- variant="outline"+ variant="soft"@click="model = false">{{ t('common.cancel') }}</UButton><UButtoncolor="error"+ variant="soft"@click="confirmDelete">{{ t('common.delete') }}diff --git a/web/src/components/features/lists/parts/ListEditModal.vue b/web/src/components/features/lists/parts/ListEditModal.vueindex df3eee1..7329fab 100644--- a/web/src/components/features/lists/parts/ListEditModal.vue+++ b/web/src/components/features/lists/parts/ListEditModal.vue@@ -10,7 +10,9 @@<UInputv-model="formData.name":placeholder="t('lists.namePlaceholder')"+ variant="soft"class="w-full"+ :ui="{ base: 'rounded-xl' }"/></UFormField></div>diff --git a/web/src/components/features/main/MainScreen.vue b/web/src/components/features/main/MainScreen.vueindex 92d9545..7f62c1e 100644--- a/web/src/components/features/main/MainScreen.vue+++ b/web/src/components/features/main/MainScreen.vue@@ -7,11 +7,30 @@<template #leading><TvCollapseSidebarDesktop /></template>+ <template #right>+ <UButtonGroup size="md">+ <UButton+ icon="i-lucide-list"+ :color="view === 'list' ? 'primary' : 'neutral'"+ :variant="view === 'list' ? 'soft' : 'ghost'"+ square+ @click="view = 'list'"+ />+ <UButton+ icon="i-lucide-layout-grid"+ :color="view === 'widgets' ? 'primary' : 'neutral'"+ :variant="view === 'widgets' ? 'soft' : 'ghost'"+ square+ @click="view = 'widgets'"+ />+ </UButtonGroup>+ </template></UDashboardNavbar></template><template #body>- <DesktopScreen />+ <DesktopScreen v-if="view === 'widgets'" />+ <DashboardList v-else /></template></UDashboardPanel></template>@@ -19,7 +38,11 @@<script setup lang="ts">import { useI18n } from 'vue-i18n'import TvCollapseSidebarDesktop from '@/components/features/base/TvCollapseSidebarDesktop.vue'+import { useLsRef } from '@/composables/useLsRef'import DesktopScreen from './screen-main/DesktopScreen.vue'+import DashboardList from './screen-main/DashboardList.vue'const { t } = useI18n()++const view = useLsRef<'list' | 'widgets'>('main-screen-view', 'list')</script>diff --git a/web/src/components/features/main/screen-main/DashboardList.vue b/web/src/components/features/main/screen-main/DashboardList.vuenew file mode 100644index 0000000..b6ffb9c--- /dev/null+++ b/web/src/components/features/main/screen-main/DashboardList.vue@@ -0,0 +1,93 @@+<template>+ <div class="overflow-auto flex flex-col">+ <div class="sticky top-0 p-2 lg:p-5 z-10 bg-default">+ <SearchAll />+ </div>++ <div class="flex flex-col p-2 md:p-5 md:pt-0 w-full max-w-3xl mx-auto gap-5">+ <DashboardSection+ icon="i-lucide-sunrise"+ accent="indigo"+ :title="t('msg.todayTasks')"+ :subtitle="t('msg.todayExplanation')"+ :add-title="t('msg.addTaskToToday')"+ :tasks="todayPending"+ :completed-tasks="todayCompleted"+ @toggle="(task) => toggle(task, 'tasksToday')"+ />++ <DashboardSection+ icon="i-lucide-clock"+ accent="sky"+ :title="t('msg.upcomingTasks')"+ :subtitle="t('msg.upcomingExplanation')"+ :add-title="t('msg.addTaskToUpcoming')"+ :tasks="upcomingPending"+ :completed-tasks="upcomingCompleted"+ upcoming-task+ @toggle="(task) => toggle(task, 'tasksUpcoming')"+ />++ <DashboardSection+ icon="i-lucide-inbox"+ accent="violet"+ :title="t('msg.lastTasks')"+ :subtitle="t('msg.lastAddedTasksExplanation')"+ :add-title="t('msg.addTask')"+ :tasks="recentTasks"+ :completed-tasks="recentCompleted"+ no-dates+ tabbed+ :show-progress="false"+ @toggle="toggleRecent"+ />+ </div>+ </div>+</template>++<script setup lang="ts">+import { computed, watch } from 'vue'+import { useI18n } from 'vue-i18n'+import SearchAll from './parts/SearchAll.vue'+import DashboardSection from './DashboardList/parts/DashboardSection.vue'+import type { TaskItem } from '@/types/tasks.types'+import { useBaseScreenStore } from '@/stores/base-screen.store'+import { useCollaborationStore } from '@/stores/collaboration.store'+import { useOrganizationStore } from '@/stores/organization.store'++const { t } = useI18n()+const baseScreenStore = useBaseScreenStore()+const collaborationStore = useCollaborationStore()+const orgStore = useOrganizationStore()++const todayPending = computed(() => baseScreenStore.tasksToday.filter(task => !task.complete))+const todayCompleted = computed(() => baseScreenStore.tasksToday.filter(task => task.complete))+const upcomingPending = computed(() => baseScreenStore.tasksUpcoming.filter(task => !task.complete))+const upcomingCompleted = computed(() => baseScreenStore.tasksUpcoming.filter(task => task.complete))++const recentTasks = computed(() => baseScreenStore.tasks)+const recentCompleted = computed(() => baseScreenStore.tasksLastCompleted)++function toggle(task: TaskItem, prop: 'tasksToday' | 'tasksUpcoming') {+ baseScreenStore.updateTaskStatusNew({ status: !task.complete, taskId: task.id }, prop)+}++function toggleRecent(task: TaskItem, bucket: 'pending' | 'completed') {+ baseScreenStore.updateTaskStatusNew(+ { status: !task.complete, taskId: task.id },+ bucket === 'completed' ? 'tasksLastCompleted' : 'tasks',+ )+}++function loadData() {+ Promise.allSettled([+ baseScreenStore.fetchAllState(),+ baseScreenStore.fetchAllAvailableLists(),+ collaborationStore.fetchAllCollaborationUsers(),+ ])+}++loadData()++watch(() => orgStore.currentOrg, loadData)+</script>diff --git a/web/src/components/features/main/screen-main/DashboardList/parts/DashboardAddTask.vue b/web/src/components/features/main/screen-main/DashboardList/parts/DashboardAddTask.vuenew file mode 100644index 0000000..b8b90cc--- /dev/null+++ b/web/src/components/features/main/screen-main/DashboardList/parts/DashboardAddTask.vue@@ -0,0 +1,55 @@+<template>+ <MainScreenAddTaskDialog+ v-model="open"+ :title="title"+ :disabled="disabled"+ :upcoming-task="upcomingTask"+ :no-dates="noDates"+ >+ <template #activator="props">+ <UButton+ v-if="compact"+ v-bind="props"+ icon="i-lucide-plus"+ color="neutral"+ variant="soft"+ size="sm"+ :disabled="disabled"+ :ui="{ base: 'rounded-full hover:bg-primary/10 hover:text-primary' }"+ @click.stop+ />+ <button+ v-else+ v-bind="props"+ type="button"+ :disabled="disabled"+ class="flex items-center gap-2.5 w-full px-4 py-3 rounded-2xl border border-dashed border-default text-muted hover:text-primary hover:border-primary hover:bg-primary/5 transition-colors disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer"+ >+ <span class="flex items-center justify-center size-6 rounded-full border border-dashed border-current shrink-0">+ <UIcon+ name="i-lucide-plus"+ class="size-3.5"+ />+ </span>+ <span class="text-[15px]">{{ t('msg.addTask') }}</span>+ </button>+ </template>+ </MainScreenAddTaskDialog>+</template>++<script setup lang="ts">+import { ref } from 'vue'+import { useI18n } from 'vue-i18n'+import MainScreenAddTaskDialog from '@/components/features/main/screen-main/parts/MainScreenAddTaskDialog.vue'++defineProps<{+ title: string+ disabled?: boolean+ upcomingTask?: boolean+ noDates?: boolean+ compact?: boolean+}>()++const { t } = useI18n()+const open = ref(false)+</script>diff --git a/web/src/components/features/main/screen-main/DashboardList/parts/DashboardSection.vue b/web/src/components/features/main/screen-main/DashboardList/parts/DashboardSection.vuenew file mode 100644index 0000000..235fff4--- /dev/null+++ b/web/src/components/features/main/screen-main/DashboardList/parts/DashboardSection.vue@@ -0,0 +1,190 @@+<template>+ <div class="relative">+ <!-- Timeline connecting line under the icon -->+ <div class="absolute left-6 top-14 bottom-0 w-px bg-accented hidden sm:block" />++ <UCollapsible+ v-model:open="expanded"+ :ui="{ content: 'p-0 pl-0 sm:pl-16 pb-8' }"+ >+ <DashboardSectionHeader+ :icon="icon"+ :accent="accentClasses"+ :title="title"+ :subtitle="subtitle"+ :expanded="expanded"+ :show-progress="showProgress"+ :done-count="doneCount"+ :total-count="totalCount"+ :progress-percent="progressPercent"+ :add-title="addTitle"+ :add-disabled="!hasActiveGoals"+ :upcoming-task="upcomingTask"+ :no-dates="noDates"+ />++ <template #content>+ <!-- Tabbed mode: split active / completed into tabs (used by Recent) -->+ <UTabs+ v-if="tabbed"+ v-model="activeTab"+ :items="tabItems"+ variant="pill"+ size="md"+ class="w-full pt-3"+ :ui="{ list: 'rounded-full', trigger: 'rounded-full', indicator: 'rounded-full' }"+ >+ <template #active>+ <div class="flex flex-col gap-2 pt-3">+ <TaskItem+ v-for="task in tasks"+ :key="task.id"+ :task="task"+ @toggle="$emit('toggle', $event, 'pending')"+ />+ <p+ v-if="!tasks.length"+ class="text-sm text-muted text-center py-4"+ >+ {{ t('msg.noTasks') }}+ </p>+ <DashboardAddTask+ :title="addTitle"+ :disabled="!hasActiveGoals"+ :no-dates="noDates"+ />+ </div>+ </template>+ <template #completed>+ <div class="flex flex-col gap-2 pt-3">+ <TaskItem+ v-for="task in completedTasks"+ :key="task.id"+ :task="task"+ @toggle="$emit('toggle', $event, 'completed')"+ />+ <p+ v-if="!completedTasks.length"+ class="text-sm text-muted text-center py-4"+ >+ {{ t('msg.noTasks') }}+ </p>+ </div>+ </template>+ </UTabs>++ <!-- Default stacked mode: pending list + add + completed group -->+ <div+ v-else+ class="flex flex-col gap-3 pt-3"+ >+ <div+ v-if="tasks.length"+ class="flex flex-col gap-2"+ >+ <TaskItem+ v-for="task in tasks"+ :key="task.id"+ :task="task"+ @toggle="$emit('toggle', $event, 'pending')"+ />+ </div>++ <DashboardAddTask+ :title="addTitle"+ :disabled="!hasActiveGoals"+ :upcoming-task="upcomingTask"+ :no-dates="noDates"+ />++ <div+ v-if="completedTasks.length"+ class="flex flex-col gap-1 mt-2"+ >+ <div class="flex items-center gap-3 px-1">+ <span class="text-xs font-semibold uppercase tracking-wide text-success">+ {{ t('msg.completed') }} · {{ completedTasks.length }}+ </span>+ <div class="flex-1 h-px bg-default" />+ </div>+ <TaskItem+ v-for="task in completedTasks"+ :key="task.id"+ :task="task"+ @toggle="$emit('toggle', $event, 'completed')"+ />+ </div>+ </div>+ </template>+ </UCollapsible>+ </div>+</template>++<script setup lang="ts">+import { computed, ref } from 'vue'+import { useI18n } from 'vue-i18n'+import type { TabsItem } from '@nuxt/ui'+import type { TaskItem as TaskItemType } from '@/types/tasks.types'+import { useTaskView } from '@/composables/useTaskView'+import TaskItem from '@/components/features/tasks/parts/TaskItem.vue'+import DashboardAddTask from './DashboardAddTask.vue'+import DashboardSectionHeader from './DashboardSectionHeader.vue'++type Accent = 'indigo' | 'sky' | 'violet'+type TaskBucket = 'pending' | 'completed'++const props = withDefaults(defineProps<{+ icon: string+ accent: Accent+ title: string+ subtitle: string+ addTitle: string+ tasks: TaskItemType[]+ completedTasks: TaskItemType[]+ upcomingTask?: boolean+ noDates?: boolean+ showProgress?: boolean+ tabbed?: boolean+}>(), {+ showProgress: true,+})++defineEmits<{+ toggle: [task: TaskItemType, bucket: TaskBucket]+}>()++const { t } = useI18n()+const { hasActiveGoals } = useTaskView()++const ACCENTS: Record<Accent, { bg: string; icon: string; bar: string }> = {+ indigo: { bg: 'bg-indigo-500/15', icon: 'text-indigo-500', bar: 'bg-indigo-500' },+ sky: { bg: 'bg-sky-500/15', icon: 'text-sky-500', bar: 'bg-sky-500' },+ violet: { bg: 'bg-violet-500/15', icon: 'text-violet-500', bar: 'bg-violet-500' },+}++const accentClasses = computed(() => ACCENTS[props.accent])++const expanded = ref(true)++const activeTab = ref('active')+const tabItems = computed<TabsItem[]>(() => [+ {+ label: t('msg.lastAddedTasks'),+ value: 'active',+ slot: 'active',+ badge: props.tasks.length.toString(),+ },+ {+ label: t('msg.lastCompletedTasks'),+ value: 'completed',+ slot: 'completed',+ badge: props.completedTasks.length.toString(),+ },+])++const doneCount = computed(() => props.completedTasks.length)+const totalCount = computed(() => props.tasks.length + props.completedTasks.length)+const progressPercent = computed(() =>+ totalCount.value === 0 ? 0 : Math.round((doneCount.value / totalCount.value) * 100),+)+</script>diff --git a/web/src/components/features/main/screen-main/DashboardList/parts/DashboardSectionHeader.vue b/web/src/components/features/main/screen-main/DashboardList/parts/DashboardSectionHeader.vuenew file mode 100644index 0000000..fec78fb--- /dev/null+++ b/web/src/components/features/main/screen-main/DashboardList/parts/DashboardSectionHeader.vue@@ -0,0 +1,72 @@+<template>+ <div class="flex items-center sm:items-start gap-4 w-full cursor-pointer select-none">+ <div+ class="flex items-center justify-center size-12 rounded-2xl shrink-0"+ :class="accent.bg"+ >+ <UIcon+ :name="icon"+ class="size-6"+ :class="accent.icon"+ />+ </div>++ <div class="flex-1 min-w-0 flex items-start justify-between gap-3">+ <div class="min-w-0">+ <div class="flex items-center gap-2 min-w-0">+ <h2 class="text-xl font-medium text-highlighted truncate">+ {{ title }}+ </h2>+ <UIcon+ name="i-lucide-chevron-down"+ class="size-5 text-muted transition-transform duration-200 shrink-0"+ :class="{ '-rotate-90': !expanded }"+ />+ </div>+ <p class="text-sm text-muted hidden sm:block">+ {{ subtitle }}+ </p>+ </div>++ <div class="flex items-center gap-3 shrink-0 self-center">+ <template v-if="showProgress">+ <span class="text-sm font-semibold text-muted">{{ doneCount }}/{{ totalCount }}</span>+ <div class="w-16 h-1.5 rounded-full bg-elevated overflow-hidden">+ <div+ class="h-full rounded-full transition-[width] duration-300"+ :class="accent.bar"+ :style="{ width: `${progressPercent}%` }"+ />+ </div>+ </template>+ <DashboardAddTask+ compact+ :title="addTitle"+ :disabled="addDisabled"+ :upcoming-task="upcomingTask"+ :no-dates="noDates"+ />+ </div>+ </div>+ </div>+</template>++<script setup lang="ts">+import DashboardAddTask from './DashboardAddTask.vue'++defineProps<{+ icon: string+ accent: { bg: string; icon: string; bar: string }+ title: string+ subtitle: string+ expanded: boolean+ showProgress: boolean+ doneCount: number+ totalCount: number+ progressPercent: number+ addTitle: string+ addDisabled?: boolean+ upcomingTask?: boolean+ noDates?: boolean+}>()+</script>diff --git a/web/src/components/features/main/screen-main/parts/MainScreenAddTaskDialog.vue b/web/src/components/features/main/screen-main/parts/MainScreenAddTaskDialog.vueindex f97087b..d91b45a 100644--- a/web/src/components/features/main/screen-main/parts/MainScreenAddTaskDialog.vue+++ b/web/src/components/features/main/screen-main/parts/MainScreenAddTaskDialog.vue@@ -18,7 +18,7 @@</template><template #body>- <UCard>+ <!-- <UCard> --><div class="flex flex-col gap-4"><UFormField :label="t('tasks.description')"><UInput@@ -51,7 +51,7 @@:label="formattedDeadline || t('tasks.addDueDate')"icon="i-lucide-calendar"color="neutral"- variant="outline"+ variant="soft"class="w-full justify-start":ui="{leadingIcon: 'size-4.5'}"/>@@ -65,7 +65,7 @@</UPopover></UFormField></div>- </UCard>+ <!-- </UCard> --></template><template #default="slotProps">@@ -79,7 +79,7 @@<div class="flex justify-end gap-2 w-full"><UButtoncolor="neutral"- variant="outline"+ variant="soft"@click="close">{{ t('common.cancel') }}@@ -87,7 +87,7 @@<UButton:disabled="!canAdd":loading="loading"- variant="outline"+ variant="soft"@click="addTask">{{ t('tasks.add') }}diff --git a/web/src/components/features/main/screen-main/parts/SearchAll.vue b/web/src/components/features/main/screen-main/parts/SearchAll.vueindex 99cd874..10fb005 100644--- a/web/src/components/features/main/screen-main/parts/SearchAll.vue+++ b/web/src/components/features/main/screen-main/parts/SearchAll.vue@@ -3,8 +3,9 @@<UDashboardSearchButton:label="t('admin.search')":disabled="!hasActiveGoals"- class="w-full"- variant="subtle"+ class="w-full "+ variant="soft"+ size="xl"/><UDashboardSearchdiff --git a/web/src/components/features/organizations/parts/OrgCreateModal.vue b/web/src/components/features/organizations/parts/OrgCreateModal.vueindex a8d007d..91468e4 100644--- a/web/src/components/features/organizations/parts/OrgCreateModal.vue+++ b/web/src/components/features/organizations/parts/OrgCreateModal.vue@@ -35,6 +35,7 @@<UButton:label="t('organizations.save')":loading="loading"+ variant="soft"@click="create"/></div>diff --git a/web/src/components/features/organizations/parts/OrgDetailModal.vue b/web/src/components/features/organizations/parts/OrgDetailModal.vueindex 8de712d..0c586ce 100644--- a/web/src/components/features/organizations/parts/OrgDetailModal.vue+++ b/web/src/components/features/organizations/parts/OrgDetailModal.vue@@ -36,6 +36,7 @@<UTabs:items="tabs"class="w-full"+ :ui="{ list: 'rounded-2xl', indicator: 'rounded-xl' }"><template #general><div class="flex flex-col gap-4 pt-4">@@ -58,6 +59,7 @@v-if="isAdmin":label="t('organizations.save')":loading="saving"+ variant="soft"@click="save"/></div>@@ -82,7 +84,7 @@v-if="isOwner && !organization.isPersonal":label="t('organizations.delete')"color="error"- variant="ghost"+ variant="soft"icon="i-lucide-trash-2":ui="{leadingIcon: 'size-4.5'}"@click="deleteOrg"@@ -90,7 +92,7 @@<div v-else /><UButton:label="t('organizations.close')"- variant="ghost"+ variant="soft"@click="open = false"/></div>diff --git a/web/src/components/features/organizations/parts/OrgSsoConfigCard.vue b/web/src/components/features/organizations/parts/OrgSsoConfigCard.vueindex 8ebc54a..4d8d77a 100644--- a/web/src/components/features/organizations/parts/OrgSsoConfigCard.vue+++ b/web/src/components/features/organizations/parts/OrgSsoConfigCard.vue@@ -16,13 +16,13 @@<UButtonicon="i-lucide-pencil"size="xs"- variant="ghost"+ variant="soft"@click="$emit('edit')"/><UButtonicon="i-lucide-trash-2"size="xs"- variant="ghost"+ variant="soft"color="error"@click="$emit('delete')"/>@@ -38,7 +38,7 @@<UButtonicon="i-lucide-copy"size="xs"- variant="ghost"+ variant="soft"@click="copyToClipboard(callbackUrl)"/></div>diff --git a/web/src/components/features/organizations/parts/OrgSsoConfigForm.vue b/web/src/components/features/organizations/parts/OrgSsoConfigForm.vueindex 7239528..cc91fc0 100644--- a/web/src/components/features/organizations/parts/OrgSsoConfigForm.vue+++ b/web/src/components/features/organizations/parts/OrgSsoConfigForm.vue@@ -5,6 +5,7 @@v-model="form.protocol":items="protocolOptions"class="w-full"+ variant="soft"size="xl"/></UFormField>@@ -39,15 +40,16 @@:has-secrets="hasSecrets"/>- <div class="flex gap-2">+ <div class="flex justify-end gap-2"><UButton:label="isEditing ? t('sso.save') : t('sso.create')":loading="saving"+ variant="soft"@click="$emit('save')"/><UButton:label="t('sso.cancel')"- variant="ghost"+ variant="soft"color="neutral"@click="$emit('cancel')"/>diff --git a/web/src/components/features/organizations/parts/OrgSsoSettings.vue b/web/src/components/features/organizations/parts/OrgSsoSettings.vueindex 86d4d89..d9c7de7 100644--- a/web/src/components/features/organizations/parts/OrgSsoSettings.vue+++ b/web/src/components/features/organizations/parts/OrgSsoSettings.vue@@ -6,6 +6,7 @@<UButton:label="t('sso.configure')"class="mt-3"+ variant="soft"@click="showForm = true"/></div>diff --git a/web/src/components/features/projects/parts/ProjectAddInput.vue b/web/src/components/features/projects/parts/ProjectAddInput.vueindex 4238eb2..7534fde 100644--- a/web/src/components/features/projects/parts/ProjectAddInput.vue+++ b/web/src/components/features/projects/parts/ProjectAddInput.vue@@ -2,7 +2,7 @@<div class="shadow-sm rounded-lg"><UInputv-model="projectName"- :placeholder="t('projects.addPlaceholder')"+ :placeholder="placeholder ?? t('projects.addPlaceholder')"size="xl"variant="soft"class="w-full"@@ -36,6 +36,10 @@import { ref } from 'vue'import { useI18n } from 'vue-i18n'+defineProps<{+ placeholder?: string+}>()+const emit = defineEmits<{add: [name: string]}>()diff --git a/web/src/components/features/projects/parts/ProjectEditModal.vue b/web/src/components/features/projects/parts/ProjectEditModal.vueindex 921fb6d..1e439d4 100644--- a/web/src/components/features/projects/parts/ProjectEditModal.vue+++ b/web/src/components/features/projects/parts/ProjectEditModal.vue@@ -12,7 +12,9 @@<UInputv-model="form.name":placeholder="t('projects.namePlaceholder')"+ variant="soft"class="w-full"+ :ui="{ base: 'rounded-xl' }"data-testid="project-edit-name"/></UFormField>@@ -21,13 +23,16 @@v-model="form.description":placeholder="t('projects.descriptionPlaceholder')":rows="3"+ variant="soft"class="w-full"+ :ui="{ base: 'rounded-xl' }"/></UFormField><UFormField :label="t('projects.estimateUnit')"><USelectv-model="form.estimateUnit":items="estimateUnitItems"+ variant="soft"class="w-full"data-testid="project-edit-estimate-unit"/>@@ -40,13 +45,13 @@<UButton:label="t('common.cancel')"color="neutral"- variant="outline"+ variant="soft"@click="close"/><UButton:label="t('common.save')"color="primary"- variant="outline"+ variant="soft"data-testid="project-edit-save"@click="save"/>diff --git a/web/src/components/features/sessions/parts/SessionItem.vue b/web/src/components/features/sessions/parts/SessionItem.vueindex c597a08..b86d122 100644--- a/web/src/components/features/sessions/parts/SessionItem.vue+++ b/web/src/components/features/sessions/parts/SessionItem.vue@@ -1,5 +1,5 @@<template>- <div class="flex items-center justify-between p-4 border border-default rounded-lg">+ <UCard variant="soft" :ui="{body:'w-full flex items-center justify-between p-4', root:'rounded-2xl'}" class=" "><div class="flex items-start gap-3 min-w-0"><UIcon:name="deviceIcon"@@ -28,15 +28,16 @@</div></div></div>+<UButtonv-if="!session.isCurrent"icon="i-lucide-log-out"variant="ghost"color="error"- size="md"+ size="xl"@click="showDeleteConfirm = true"/>- </div>+ </UCard><UModalv-model:open="showDeleteConfirm"diff --git a/web/src/components/features/tasks/TaskDetailPanel.vue b/web/src/components/features/tasks/TaskDetailPanel.vueindex cabc6a9..3372f88 100644--- a/web/src/components/features/tasks/TaskDetailPanel.vue+++ b/web/src/components/features/tasks/TaskDetailPanel.vue@@ -2,7 +2,7 @@<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 items-start gap-3 shadow-sm rounded-2xl dark:bg-tv-ui-bg-elevated"><div class="flex-1"><UTextareav-model="titleValue"@@ -11,6 +11,7 @@:autoresize="true"class="w-full":class="{ 'text-muted': task.complete }"+ :ui="{ base: 'rounded-2xl' }"><template #leading><div class="h-full">@@ -61,15 +62,17 @@:class="colClass(fieldId)"@save="updateNote"/>- <TaskKanbanStatusSelect- v-else-if="fieldId === 'status'"- :task-id="task.id"- :current-status-id="task.statusId"+ <TvKanbanStatusSelect+ v-else-if="fieldId === 'status' && canViewKanban"+ :model-value="task.statusId"+ :disabled="!canManageKanban":class="colClass(fieldId)"+ @update:model-value="updateStatus"/>- <TaskPrioritySelect- v-else-if="fieldId === 'priority'"+ <TvPriority+ v-else-if="fieldId === 'priority' && canViewTaskPriority":model-value="task.priorityId"+ :disabled="!canEditTaskPriority":class="colClass(fieldId)"@update:model-value="updatePriority"/>@@ -79,11 +82,11 @@:assigned-user-ids="task.assignedUsers":class="colClass(fieldId)"/>- <TaskListSelect- v-else-if="fieldId === 'list'"- :task-id="task.id"- :current-list-id="task.goalListId"+ <TvListSelect+ v-else-if="fieldId === 'list' && canViewLists"+ :model-value="task.goalListId":class="colClass(fieldId)"+ @update:model-value="updateList"/><TaskTagsManagerv-else-if="fieldId === 'tags'"@@ -92,11 +95,16 @@:goal-id="projectId":class="colClass(fieldId)"/>- <TaskDeadline- v-else-if="fieldId === 'deadline'"- :task="task"- :class="[colClass(fieldId), 'h-fit']"- />+ <template v-else-if="fieldId === 'deadline'">+ <TvDeadlineSelect+ :task="task"+ :class="[colClass(fieldId), 'h-fit']"+ />+ <TaskRecurrence+ :task="task"+ :class="colClass(fieldId)"+ />+ </template><TaskAmountEditorv-else-if="fieldId === 'amount'":task-id="task.id"@@ -104,7 +112,7 @@:transaction-type="task.transactionType":class="colClass(fieldId)"/>- <TaskSprintSelect+ <TvSprintSelectv-else-if="fieldId === 'sprint'":task-id="task.id":goal-id="task.goalId"@@ -151,19 +159,22 @@ import { useDebounceFn } from '@vueuse/core'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 TvPriority from '@/components/features/base/TvPriority.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 TvListSelect from '@/components/features/base/TvListSelect.vue'+import TvKanbanStatusSelect from '@/components/features/base/TvKanbanStatusSelect.vue'import TaskAmountEditor from '@/components/features/tasks/parts/TaskAmountEditor.vue'import TaskTimeTracking from '@/components/features/tasks/parts/TaskTimeTracking.vue'import TaskHistory from '@/components/features/tasks/parts/TaskHistory.vue'-import TaskDeadline from '@/components/features/tasks/parts/TaskDeadline.vue'+import TvDeadlineSelect from '@/components/features/base/TvDeadlineSelect.vue'+import TaskRecurrence from '@/components/features/tasks/parts/TaskRecurrence.vue'import TaskSubtasks from '@/components/features/tasks/parts/TaskSubtasks.vue'-import TaskSprintSelect from '@/components/features/tasks/parts/TaskSprintSelect.vue'+import TvSprintSelect from '@/components/features/base/TvSprintSelect.vue'import TaskEstimateInput from '@/components/features/tasks/parts/TaskEstimateInput.vue'-import type { TaskBase } from 'taskview-api'+import type { PriorityValue } from '@/composables/usePriorityOptions'+import type { ListValue } from '@/composables/useGoalListOptions'+import type { StatusValue } from '@/composables/useKanbanStatusOptions'import { useGoalPermissions } from '@/composables/useGoalPermissions'import { useUiPreferences } from '@/composables/useUiPreferences'import { tasksSection } from '@/uiCustomization/sections/tasks'@@ -173,6 +184,11 @@ const toast = useToast()const tasksStore = useTasksStore()const {canEditTaskStatus,+ canViewTaskPriority,+ canEditTaskPriority,+ canViewLists,+ canViewKanban,+ canManageKanban,} = useGoalPermissions()const { catalogue: taskFieldsCatalogue } = tasksSection.useSection()@@ -253,13 +269,29 @@ async function updateNote(note: string) {}}-async function updatePriority(priorityId: TaskBase['priorityId']) {- if (!task.value) return+async function updatePriority(priorityId: PriorityValue) {+ if (!task.value || priorityId == null) returnawait tasksStore.udpatePriority({id: task.value.id,priorityId,})}+async function updateList(goalListId: ListValue | undefined) {+ if (!task.value || goalListId === undefined || goalListId === task.value.goalListId) return+ await tasksStore.moveTaskToAnotherList({+ id: task.value.id,+ goalListId,+ })+}++async function updateStatus(statusId: StatusValue | undefined) {+ if (!task.value || statusId === undefined || statusId === task.value.statusId) return+ await tasksStore.updateTaskStatusId({+ id: task.value.id,+ statusId,+ })+}+</script>diff --git a/web/src/components/features/tasks/TvTaskDetailOverlay.vue b/web/src/components/features/tasks/TvTaskDetailOverlay.vueindex 2c8451a..0c3d501 100644--- a/web/src/components/features/tasks/TvTaskDetailOverlay.vue+++ b/web/src/components/features/tasks/TvTaskDetailOverlay.vue@@ -32,7 +32,7 @@: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',+ content: 'sm:max-w-[1100px] sm:max-h-[80vh] sm:m-auto w-full',body: 'p-4!',footer: 'p-4!',}"diff --git a/web/src/components/features/tasks/parts/NoteEditor.vue b/web/src/components/features/tasks/parts/NoteEditor.vueindex 2f35815..e6e6eea 100644--- a/web/src/components/features/tasks/parts/NoteEditor.vue+++ b/web/src/components/features/tasks/parts/NoteEditor.vue@@ -1,5 +1,5 @@<template>- <div class="note-editor border border-default rounded-lg dark:bg-tv-ui-bg-elevated!">+ <div class="note-editor border border-default rounded-2xl overflow-hidden dark:bg-tv-ui-bg-elevated!"><UEditorv-if="canViewTaskNote"#default="{ editor }"@@ -15,6 +15,7 @@:editor="editor":items="toolbarItems"class="border-b border-default overflow-x-auto"+ :ui="{base: 'p-2'}"/><!-- <UEditorDragHandle :editor="editor" /> --></UEditor>diff --git a/web/src/components/features/tasks/parts/TaskAmountEditor.vue b/web/src/components/features/tasks/parts/TaskAmountEditor.vueindex 9551bf9..4977de1 100644--- a/web/src/components/features/tasks/parts/TaskAmountEditor.vue+++ b/web/src/components/features/tasks/parts/TaskAmountEditor.vue@@ -1,5 +1,5 @@<template>- <div class="w-full h-fit shadow-sm rounded-lg p-2 dark:bg-tv-ui-bg-elevated">+ <div class="w-full h-fit"><!-- <label class="text-sm text-muted mb-2 block">{{ t('tasks.amount') }}</label> --><div class="flex gap-2">@@ -13,6 +13,7 @@size="xl":placeholder="t('tasks.enterAmount')"class="flex-1"+ :ui="{base: 'rounded-14! h-13'}":variant="isDark ? 'subtle' : 'soft'"@update:model-value="handleAmountInput"@focus="editing = true"@@ -33,10 +34,11 @@:items="tabItems":content="false"variant="pill"- size="md"+ size="xl"color="success":class="{'pointer-events-none': !canDeleteTask}"- class="shrink-0 shadow-sm rounded-lg border border-accented flex-1"+ class="shrink-0 shadow-sm rounded-lg border border-accented"+ :ui="{root: 'border-none rounded-14! shadow-none!', list:'rounded-14! grow', indicator: 'rounded-10!'}"@update:model-value="handleTabChange"/></div>@@ -49,7 +51,9 @@icon="i-lucide-x"color="info"variant="soft"- size="sm"+ class="items-center justify-center"+ size="xl"+ :ui="{base: 'rounded-14! size-13'}"@click="clearAmount"/></div>diff --git a/web/src/components/features/tasks/parts/TaskAssigneeSelect.vue b/web/src/components/features/tasks/parts/TaskAssigneeSelect.vueindex 19f074a..9b9771c 100644--- a/web/src/components/features/tasks/parts/TaskAssigneeSelect.vue+++ b/web/src/components/features/tasks/parts/TaskAssigneeSelect.vue@@ -1,62 +1,24 @@<template>- <div+ <TvDropdownv-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>+ :model-value="selectedUserIds"+ :items="options"+ :disabled="!canAssignUsersToTask"+ :placeholder="t('tasks.selectAssignees')"+ placeholder-icon="i-lucide-at-sign"+ activator-icon="i-lucide-at-sign"+ multiple+ @update:model-value="updateAssignees"+ /></template><script setup lang="ts">-import { ref, computed, watch } from 'vue'+import { computed } 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'+import { useUserOptions, type UserValue } from '@/composables/useUserOptions'+import TvDropdown from '@/components/features/base/TvDropdown.vue'const props = defineProps<{taskId: number@@ -64,55 +26,17 @@ const props = defineProps<{}>()const { t } = useI18n()-const collaborationStore = useCollaborationStore()const tasksStore = useTasksStore()-const { isDark } = useColor()-const selectedUserIds = ref<number[]>([...props.assignedUserIds])const { canViewAssignedUsersToTask, canAssignUsersToTask } = useGoalPermissions()+const { options } = useUserOptions()-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,- })-}+const selectedUserIds = computed(() => props.assignedUserIds)-async function handleSelectionChange(newSelection: number[]) {+async function updateAssignees(value: UserValue | UserValue[] | undefined) {+ const userIds = Array.isArray(value) ? value : []await tasksStore.updateTaskAssignee({taskId: props.taskId,- userIds: newSelection,+ userIds,})}</script>diff --git a/web/src/components/features/tasks/parts/TaskDeleteDialog.vue b/web/src/components/features/tasks/parts/TaskDeleteDialog.vueindex 2619203..5837bf7 100644--- a/web/src/components/features/tasks/parts/TaskDeleteDialog.vue+++ b/web/src/components/features/tasks/parts/TaskDeleteDialog.vue@@ -15,12 +15,13 @@<UButton:label="t('common.cancel')"color="neutral"- variant="outline"+ variant="soft"@click="isOpen = false"/><UButton:label="t('common.delete')"color="error"+ variant="soft"@click="confirmDelete"/></div>diff --git a/web/src/components/features/tasks/parts/TaskEstimateInput.vue b/web/src/components/features/tasks/parts/TaskEstimateInput.vueindex db464da..7f38259 100644--- a/web/src/components/features/tasks/parts/TaskEstimateInput.vue+++ b/web/src/components/features/tasks/parts/TaskEstimateInput.vue@@ -1,37 +1,26 @@<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 flex items-center gap-1">- <UIcon- name="i-lucide-gauge"- class="size-4"- />- {{ t('tasks.fields.estimate') }}- <span>({{ unitLabel(unit, true) }})</span>- </label>-- <UInputNumber- :model-value="localValue"- :disabled="!canEdit"- :min="0"- :step="1"- :placeholder="t('tasks.estimatePlaceholder')"- size="xl"- class="w-full"- :variant="isDark ? 'subtle' : 'soft'"- @update:model-value="onInput"- @blur="save"- />- </div>+ <UInputNumber+ :model-value="localValue"+ :disabled="!canEdit"+ :min="0"+ :step="1"+ icon="i-lucide-gauge"+ :placeholder="t('tasks.estimatePlaceholder')"+ size="xl"+ variant="soft"+ class="w-full"+ :ui="activatorUi('text-muted')"+ @update:model-value="onInput"+ @blur="save"+ /></template><script setup lang="ts">-import { computed, ref, watch } from 'vue'+import { ref, watch } from 'vue'import { useI18n } from 'vue-i18n'import { useTasksStore } from '@/stores/tasks.store'-import { useGoalsStore } from '@/stores/goals.store'-import { useColor } from '@/composables/useColotMode'import { useGoalPermissions } from '@/composables/useGoalPermissions'-import { useSprintFormat } from '@/components/features/sprints/composables/useSprintFormat'+import { useNuxtUiTaskItemStyles } from '@/composables/useNuxtUiTaskItemStyles'const props = defineProps<{taskId: number@@ -41,12 +30,8 @@ const props = defineProps<{const { t } = useI18n()const tasksStore = useTasksStore()-const goalsStore = useGoalsStore()-const { isDark } = useColor()const { canEditTaskPriority } = useGoalPermissions()-const { unitLabel } = useSprintFormat()--const unit = computed(() => goalsStore.goalMap.get(props.goalId)?.estimateUnit ?? 'points')+const { activatorUi } = useNuxtUiTaskItemStyles()const canEdit = canEditTaskPrioritydiff --git a/web/src/components/features/tasks/parts/TaskHistory.vue b/web/src/components/features/tasks/parts/TaskHistory.vueindex 50f674a..a018cbe 100644--- a/web/src/components/features/tasks/parts/TaskHistory.vue+++ b/web/src/components/features/tasks/parts/TaskHistory.vue@@ -1,31 +1,29 @@<template>- <div class="shadow-sm rounded-lg p-2 dark:bg-tv-ui-bg-elevated">- <div- class="flex items-center justify-between"+ <div class="flex flex-col gap-2">+ <UButton+ icon="i-lucide-history"+ color="neutral"+ variant="soft"+ size="xl"+ block+ :trailing-icon="isExpanded ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'"+ :ui="activatorUi('text-muted')"@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"+ <span class="flex-1 text-left">{{ t('history.title') }}</span>+ <UBadge+ v-if="changes.length > 0"+ :label="String(changes.length)"color="neutral"- variant="ghost"- size="md"+ variant="subtle"+ size="sm"+ :ui="{ base: 'rounded-full' }"/>- </div>+ </UButton><divv-if="loading"- class="flex items-center justify-center py-4"+ class="flex items-center justify-center py-6"><UIconname="i-lucide-loader-2"@@ -35,19 +33,17 @@<divv-else-if="isExpanded && changes.length > 0 && canAccessTaskHistory"- class="space-y-2 max-h-64 overflow-y-auto mt-2"+ class="flex flex-col gap-1 rounded-2xl bg-elevated p-2 max-h-64 overflow-y-auto"><divv-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"+ class="flex items-center gap-2 px-3 py-2.5 rounded-xl bg-default shadow-xs">- <div class="flex-1 min-w-0">- <p class="text-sm truncate">- {{ item.description }}- </p>- </div>- <div class="flex items-center gap-1">+ <p class="flex-1 min-w-0 text-sm truncate">+ {{ item.description }}+ </p>+ <div class="flex items-center gap-0.5 shrink-0"><UButton:disabled="!canAccessTaskHistory"icon="i-lucide-info"@@ -72,38 +68,27 @@<divv-else-if="isExpanded && changes.length === 0"- class="flex flex-col items-center justify-center py-4 text-muted"+ class="flex flex-col items-center justify-center gap-2 rounded-2xl bg-elevated py-8 text-muted"><UIconname="i-lucide-history"- class="size-8 mb-2"+ class="size-8"/><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>+ <UModal+ v-model:open="isDetailModalOpen"+ :fullscreen="isMobile"+ :title="t('history.details')"+ :ui="{ content: 'sm:max-w-md' }"+ >+ <template #body>+ <p class="text-sm whitespace-pre-wrap break-words">+ {{ selectedChange?.description }}+ </p></template></UModal></div>@@ -116,6 +101,8 @@ import { storeToRefs } from 'pinia'import { useTaskHistory } from '@/stores/task-history.store'import type { TaskItem } from '@/types/tasks.types'import { useGoalPermissions } from '@/composables/useGoalPermissions'+import { useNuxtUiTaskItemStyles } from '@/composables/useNuxtUiTaskItemStyles'+import { useTaskView } from '@/composables/useTaskView'type HistoryChange = {historyId: number | null@@ -129,6 +116,8 @@ const props = defineProps<{const { t } = useI18n()const taskHistoryStore = useTaskHistory()const { canAccessTaskHistory, canRecoveryTaskHistory } = useGoalPermissions()+const { activatorUi } = useNuxtUiTaskItemStyles()+const { isMobile } = useTaskView()const { history } = storeToRefs(taskHistoryStore)const isExpanded = ref(false)diff --git a/web/src/components/features/tasks/parts/TaskItem.vue b/web/src/components/features/tasks/parts/TaskItem.vueindex 1c1ab26..8bce23a 100644--- a/web/src/components/features/tasks/parts/TaskItem.vue+++ b/web/src/components/features/tasks/parts/TaskItem.vue@@ -1,6 +1,6 @@<template><div- class="flex flex-col gap-3 p-3 rounded-lg border border-default hover:bg-elevated transition-colors cursor-pointer"+ class="flex flex-col gap-3 p-3.5 rounded-2xl hover:bg-elevated bg-accented/20 transition-colors cursor-pointer":data-testid="`task-item-${task.id}`"@click="handleOpenTask">@@ -22,7 +22,7 @@<div class="flex-1 min-w-0 self-start flex flex-col gap-1"><p- class="text-base break-all"+ class="text-base wrap-break-word":class="{ 'line-through text-muted': localComplete }">{{ task.description }}@@ -39,7 +39,7 @@icon="i-lucide-calendar":color="isOverdue ? 'error' : 'neutral'":class="isOverdue ? '' : 'bg-elevated text-muted'"- :ui="{ leadingIcon: 'size-3' }"+ :ui="{ base: 'rounded-md', leadingIcon: 'size-3' }"class="max-w-full"variant="subtle"size="md"@@ -51,7 +51,7 @@icon="i-lucide-repeat"color="neutral"class="bg-elevated text-muted"- :ui="{ leadingIcon: 'size-3' }"+ :ui="{ base: 'rounded-md', leadingIcon: 'size-3' }"variant="subtle"size="md"/>@@ -63,7 +63,7 @@icon="i-lucide-folder"color="neutral"class="bg-elevated text-muted max-w-full"- :ui="{ leadingIcon: 'size-3' }"+ :ui="{ base: 'rounded-md', leadingIcon: 'size-3' }"variant="subtle"size="md"/>@@ -75,7 +75,7 @@icon="i-lucide-list"color="neutral"class="bg-elevated text-muted max-w-full"- :ui="{ leadingIcon: 'size-3' }"+ :ui="{ base: 'rounded-md', leadingIcon: 'size-3' }"variant="subtle"size="md"/>@@ -86,7 +86,7 @@:label="formattedAmount":icon="transactionIcon":color="transactionColor"- :ui="{ leadingIcon: 'size-3' }"+ :ui="{ base: 'rounded-md', leadingIcon: 'size-3' }"variant="subtle"size="md"class="max-w-full"@@ -100,7 +100,7 @@icon="i-lucide-user"color="info"class="bg-elevated text-muted max-w-full"- :ui="{ leadingIcon: 'size-3',}"+ :ui="{ base: 'rounded-md', leadingIcon: 'size-3' }"variant="subtle"size="md"/>@@ -114,7 +114,7 @@:label="tag.name":style="{ backgroundColor: tag.color + '20', color: tag.color }"variant="subtle"- :ui="{ leadingIcon: 'size-3' }"+ :ui="{ base: 'rounded-md', leadingIcon: 'size-3' }"icon="i-lucide-tag"size="md"class="max-w-full"diff --git a/web/src/components/features/tasks/parts/TaskRecurrence.vue b/web/src/components/features/tasks/parts/TaskRecurrence.vueindex 0abd24f..2050274 100644--- a/web/src/components/features/tasks/parts/TaskRecurrence.vue+++ b/web/src/components/features/tasks/parts/TaskRecurrence.vue@@ -3,13 +3,19 @@<UButton:disabled="!canEditTaskDeadline"icon="i-lucide-repeat"- :label="summary"color="neutral"- :variant="isDark ? 'subtle' : 'outline'"- class="flex-1 justify-start"+ variant="soft"size="xl"+ class="flex-1"+ trailing-icon="i-lucide-chevron-down"+ :ui="activatorUi('text-muted')"@click="dialogOpen = true"- />+ >+ <span+ class="flex-1 text-left"+ :class="details ? '' : 'text-muted'"+ >{{ summary }}</span>+ </UButton><UBadgev-if="details?.rule.state === 'paused'":label="t('recurrence.paused')"@@ -39,18 +45,18 @@ import { computed, ref, watch } from 'vue'import { useI18n } from 'vue-i18n'import type { RecurrenceRuleDetails, Task } from 'taskview-api'import TaskRecurrenceDialog from './TaskRecurrenceDialog.vue'-import { parseRruleToForm } from '@/helpers/recurrence'-import { useColor } from '@/composables/useColotMode'+import { parseRruleToForm, parseRuleDtstart } from '@/helpers/recurrence'import { useGoalPermissions } from '@/composables/useGoalPermissions'import { useTasksStore } from '@/stores/tasks.store'+import { useNuxtUiTaskItemStyles } from '@/composables/useNuxtUiTaskItemStyles'const props = defineProps<{task: Task}>()const { t } = useI18n()-const { isDark } = useColor()const { canEditTaskDeadline } = useGoalPermissions()+const { activatorUi } = useNuxtUiTaskItemStyles()const tasksStore = useTasksStore()const dialogOpen = ref(false)@@ -74,7 +80,7 @@ const summary = computed(() => {const rule = details.value.ruleconst form = parseRruleToForm({rrule: rule.rrule,- dtstart: new Date(`${rule.dtstart.replace(' ', 'T')}Z`),+ dtstart: parseRuleDtstart(rule.dtstart),notifyOnOccurrence: rule.notifyOnOccurrence,hasTime: rule.hasTime,})@@ -84,11 +90,12 @@ const summary = computed(() => {? t('recurrence.summary.everyN', { n: form.interval, unit }): t(`recurrence.summary.${form.frequency}`)+ const parts = [base]if (form.frequency === 'weekly' && form.weekdays.length > 0) {const dayKeys = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun']- const days = form.weekdays.map((d) => t(`recurrence.weekdays.${dayKeys[d]}`)).join(', ')- return `${base} · ${days}`+ parts.push(form.weekdays.map((d) => t(`recurrence.weekdays.${dayKeys[d]}`)).join(', '))}- return base+ if (form.time) parts.push(form.time)+ return parts.join(' · ')})</script>diff --git a/web/src/components/features/tasks/parts/TaskRecurrenceDialog.vue b/web/src/components/features/tasks/parts/TaskRecurrenceDialog.vueindex 29339cb..35c3d40 100644--- a/web/src/components/features/tasks/parts/TaskRecurrenceDialog.vue+++ b/web/src/components/features/tasks/parts/TaskRecurrenceDialog.vue@@ -2,67 +2,60 @@<UModalv-model:open="open":fullscreen="isMobile"+ :title="t('recurrence.title')"+ :ui="{ content: 'sm:max-w-md' }">- <template #content>- <UCard>- <template #header>- <div class="flex items-center justify-between">- <h3 class="font-semibold">- {{ t('recurrence.title') }}- </h3>- <UButton- icon="i-lucide-x"- variant="ghost"- color="neutral"- @click="open = false"- />- </div>- </template>-+ <template #body>+ <div class="flex flex-col gap-5"><TaskRecurrenceFormv-model="form":dtstart="dtstart.date"/>- <template #footer>- <div class="flex flex-wrap items-center gap-2">- <template v-if="rule">- <UButton- v-if="canDeleteTask"- :label="t('recurrence.skip')"- icon="i-lucide-skip-forward"- color="neutral"- variant="outline"- :loading="actionLoading === 'skip'"- :disabled="rule.state !== 'active'"- @click="skip"- />- <UButton- :label="rule.state === 'paused' ? t('recurrence.resume') : t('recurrence.pause')"- :icon="rule.state === 'paused' ? 'i-lucide-play' : 'i-lucide-pause'"- color="neutral"- variant="outline"- :loading="actionLoading === 'pause'"- @click="togglePause"- />- <UButton- :label="t('recurrence.deleteSeries')"- icon="i-lucide-trash-2"- color="error"- variant="outline"- :loading="actionLoading === 'delete'"- @click="removeSeries"- />- </template>- <UButton- :label="t('common.save')"- class="ml-auto"- :loading="actionLoading === 'save'"- @click="save"- />- </div>- </template>- </UCard>+ <div+ v-if="rule"+ class="flex flex-wrap gap-2 justify-end"+ >+ <UButton+ v-if="canDeleteTask"+ :label="t('recurrence.skip')"+ icon="i-lucide-skip-forward"+ color="neutral"+ variant="outline"+ :loading="actionLoading === 'skip'"+ :disabled="rule.state !== 'active'"+ @click="skip"+ />+ <UButton+ :label="rule.state === 'paused' ? t('recurrence.resume') : t('recurrence.pause')"+ :icon="rule.state === 'paused' ? 'i-lucide-play' : 'i-lucide-pause'"+ color="neutral"+ variant="outline"+ :loading="actionLoading === 'pause'"+ @click="togglePause"+ />+ </div>+ </div>+ </template>++ <template #footer>+ <div class="flex items-center justify-between gap-2 w-full">+ <UButton+ v-if="rule"+ :label="t('recurrence.deleteSeries')"+ icon="i-lucide-trash-2"+ color="error"+ variant="outline"+ :loading="actionLoading === 'delete'"+ @click="removeSeries"+ />+ <UButton+ :label="t('common.save')"+ class="ml-auto"+ :loading="actionLoading === 'save'"+ @click="save"+ />+ </div></template></UModal></template>@@ -72,7 +65,7 @@ import { computed, ref, watch } from 'vue'import { useI18n } from 'vue-i18n'import type { RecurrenceRule, Task } from 'taskview-api'import TaskRecurrenceForm from './TaskRecurrenceForm.vue'-import { buildDtstartIso, buildRruleString, defaultRecurrenceForm, dtstartForTask, parseRruleToForm } from '@/helpers/recurrence'+import { buildDtstartIso, buildRruleString, defaultRecurrenceForm, dtstartForTask, parseRruleToForm, parseRuleDtstart } from '@/helpers/recurrence'import { useTaskView } from '@/composables/useTaskView'import { useGoalPermissions } from '@/composables/useGoalPermissions'import { useTasksStore } from '@/stores/tasks.store'@@ -94,7 +87,7 @@ const emit = defineEmits<{const { t } = useI18n()const toast = useToast()const { isMobile } = useTaskView()-// Skip deletes the open instance, so the server requires TASK_CAN_DELETE for it.+const { canDeleteTask } = useGoalPermissions()const tasksStore = useTasksStore()@@ -102,7 +95,7 @@ const actionLoading = ref<DialogAction>(null)const dtstart = computed(() => {if (props.rule) {- return { date: new Date(`${props.rule.dtstart.replace(' ', 'T')}Z`), iso: props.rule.dtstart }+ return { date: parseRuleDtstart(props.rule.dtstart), iso: props.rule.dtstart }}return dtstartForTask({ startDate: props.task.startDate, startTime: props.task.startTime })})@@ -129,12 +122,9 @@ async function save() {actionLoading.value = 'save'try {const rrule = buildRruleString({ form: form.value, dtstart: dtstart.value.date })- // Always send the current browser timezone: the series is anchored to the- // user's wall clock, so editing a rule after relocation re-anchors it- // ("9:00" stays 9:00 wherever the user lives now).+const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC'- // The form's time (incl. 00:00, or none) drives the dtstart anchor; the- // start day stays whatever the series was anchored to.+const dtstartIso = buildDtstartIso({ dateStr: dtstart.value.iso.slice(0, 10), time: form.value.time })const result = props.rule? await tasksStore.updateRecurrence({diff --git a/web/src/components/features/tasks/parts/TaskRecurrenceForm.vue b/web/src/components/features/tasks/parts/TaskRecurrenceForm.vueindex 46a835a..e64501b 100644--- a/web/src/components/features/tasks/parts/TaskRecurrenceForm.vue+++ b/web/src/components/features/tasks/parts/TaskRecurrenceForm.vue@@ -1,35 +1,40 @@<template>- <div class="flex flex-col gap-4">- <div class="flex gap-2">- <USelect- v-model="form.frequency"- :items="frequencyItems"+ <div class="flex flex-col gap-5">+ <div class="flex gap-1 p-1 rounded-2xl bg-elevated">+ <UButton+ v-for="opt in frequencyItems"+ :key="opt.value"+ :label="opt.label"+ color="neutral"+ variant="ghost"+ size="md"+ blockclass="flex-1"- size="lg"+ :ui="{ base: form.frequency === opt.value+ ? 'rounded-xl justify-center bg-default text-highlighted font-semibold shadow-sm hover:bg-default'+ : 'rounded-xl justify-center text-muted' }"+ @click="form.frequency = opt.value"/>+ </div>++ <div class="flex items-center justify-between gap-3">+ <span class="text-base font-medium text-highlighted">{{ t('recurrence.repeatEvery') }}</span><UInputNumberv-model="form.interval":min="1":max="99"- class="w-28"- size="lg"+ orientation="horizontal"+ size="md"+ class="w-27"+ variant="soft"/></div>- <div+ <TaskRecurrenceWeekdaysv-if="form.frequency === 'weekly'"- class="flex flex-wrap gap-1.5"- >- <UButton- v-for="(day, index) in weekdayLabels"- :key="day"- :label="day"- :color="form.weekdays.includes(index) ? 'primary' : 'neutral'"- :variant="form.weekdays.includes(index) ? 'solid' : 'outline'"- size="sm"- @click="toggleWeekday(index)"- />- </div>+ v-model="form.weekdays"+ :start-weekday="startWeekday"+ /><USelectv-if="form.frequency === 'monthly'"@@ -38,71 +43,115 @@size="lg"/>- <div class="flex flex-col gap-2">- <span class="text-sm font-medium">{{ t('recurrence.ends.title') }}</span>- <URadioGroup- v-model="form.ends"- :items="endsItems"- />- <UInputNumber- v-if="form.ends === 'after'"- v-model="form.count"- :min="1"- :max="10000"- class="w-40"- size="md"- />- <UPopover v-if="form.ends === 'onDate'">- <UButton- icon="i-lucide-calendar"- :label="form.untilDate ?? t('recurrence.ends.pickDate')"- color="neutral"- variant="outline"- class="self-start"+ <div class="flex flex-col gap-1.5">+ <span class="text-sm font-medium text-muted px-1">{{ t('recurrence.ends.title') }}</span>+ <template+ v-for="opt in endsItems"+ :key="opt.value"+ >+ <button+ type="button"+ class="flex items-center gap-3 w-full px-3 py-3 rounded-xl text-left transition-colors"+ :class="form.ends === opt.value ? 'bg-primary/10' : 'hover:bg-elevated'"+ @click="form.ends = opt.value"+ >+ <span+ class="flex items-center justify-center size-5 rounded-full border-2 shrink-0"+ :class="form.ends === opt.value ? 'border-primary' : 'border-default'"+ >+ <span+ v-if="form.ends === opt.value"+ class="size-2.5 rounded-full bg-primary"+ />+ </span>+ <span :class="form.ends === opt.value ? 'font-semibold text-highlighted' : 'text-default'">+ {{ opt.label }}+ </span>+ </button>++ <UInputNumber+ v-if="opt.value === 'after' && form.ends === 'after'"+ v-model="form.count"+ :min="1"+ :max="10000"size="md"+ class="w-32 self-end sm:self-start"/>- <template #content>- <UCalendar- v-model="untilDateModel"- class="p-2"- :week-starts-on="weekStart"++ <UPopover v-else-if="opt.value === 'onDate' && form.ends === 'onDate'">+ <UButton+ icon="i-lucide-calendar"+ :label="form.untilDate ?? t('recurrence.ends.pickDate')"+ color="neutral"+ variant="outline"+ size="md"+ class="self-end sm:self-start rounded-xl"/>- </template>- </UPopover>+ <template #content>+ <UCalendar+ v-model="untilDateModel"+ class="p-2"+ :week-starts-on="weekStart"+ />+ </template>+ </UPopover>+ </template></div>- <div class="flex flex-col gap-2">- <UCheckbox- v-model="showTime"- :label="t('recurrence.selectTime')"- :ui="{ root: 'items-center' }"- />+ <div class="flex items-center justify-between">+ <span class="text-base font-medium text-highlighted">{{ t('recurrence.specifyTime') }}</span>+ <USwitch v-model="showTime" />+ </div>++ <div+ v-if="showTime"+ class="flex items-center justify-between gap-3 p-3.5 rounded-2xl bg-primary/10"+ >+ <div class="flex items-center gap-2.5">+ <UIcon+ name="i-lucide-clock"+ class="size-5 text-primary"+ />+ <span class="text-base font-medium text-highlighted">{{ t('recurrence.occurrenceTime') }}</span>+ </div><UInputTime- v-if="showTime"v-model="timeModel":hour-cycle="24"- class="self-start"+ size="md"+ variant="soft"+ :ui="{ base: 'bg-default text-highlighted font-semibold rounded-xl' }"/></div>- <UCheckbox- v-model="form.notifyOnOccurrence"- :label="t('recurrence.notifyOnOccurrence')"- :ui="{ root: 'items-center' }"- />-<divv-if="preview.length"- class="flex flex-col gap-1 rounded-lg p-3 bg-elevated"+ class="flex flex-col gap-3 p-3.5 rounded-2xl bg-elevated">- <span class="text-sm font-medium">{{ t('recurrence.preview') }}</span>+ <div class="flex items-center justify-between">+ <div class="flex items-center gap-2.5">+ <UIcon+ name="i-lucide-calendar-check"+ class="size-5 text-primary"+ />+ <span class="text-base font-semibold text-highlighted">{{ t('recurrence.preview') }}</span>+ </div>+ <span class="text-sm text-muted">{{ t('recurrence.datesCount', { n: preview.length }) }}</span>+ </div>+ <div class="flex gap-2">+ <div+ v-for="card in previewCards"+ :key="card.key"+ class="flex-1 flex flex-col items-center gap-1.5 py-2 px-1 rounded-xl bg-default shadow-sm"+ >+ <span class="text-xs font-semibold text-primary">{{ card.weekday }}</span>+ <span class="text-lg font-bold text-highlighted leading-none">{{ card.day }}</span>+ <span class="text-[8px] text-muted leading-none whitespace-nowrap">{{ card.monthYear }}</span>+ </div>+ </div><span- v-for="date in preview"- :key="date"- class="text-sm text-muted"- >- {{ formatPreviewDate(date) }}- </span>+ v-if="previewFooter"+ class="text-xs text-muted"+ >{{ previewFooter }}</span></div></div></template>@@ -110,11 +159,11 @@<script setup lang="ts">import { computed, ref, shallowRef, watch } from 'vue'import { useI18n } from 'vue-i18n'-import { useDateFormat } from '@vueuse/core'import { CalendarDate, Time } from '@internationalized/date'-import { buildRruleString, previewOccurrences } from '@/helpers/recurrence'+import { buildRruleString, jsDayToRruleWeekday, previewOccurrences } from '@/helpers/recurrence'import { useWeekStart } from '@/composables/useWeekStart'-import type { RecurrenceFormValue } from '@/types/recurrence.types'+import TaskRecurrenceWeekdays from './TaskRecurrenceWeekdays.vue'+import type { RecurrenceEndsMode, RecurrenceFormValue, RecurrenceFrequency } from '@/types/recurrence.types'const PREVIEW_LIMIT = 5@@ -124,14 +173,14 @@ const props = defineProps<{dtstart: Date}>()-const { t } = useI18n()+const { t, locale } = useI18n()const weekStart = useWeekStart()-const frequencyItems = computed(() => [- { label: t('recurrence.frequency.daily'), value: 'daily' },- { label: t('recurrence.frequency.weekly'), value: 'weekly' },- { label: t('recurrence.frequency.monthly'), value: 'monthly' },- { label: t('recurrence.frequency.yearly'), value: 'yearly' },+const frequencyItems = computed<{ label: string; value: RecurrenceFrequency }[]>(() => [+ { label: t('recurrence.freqShort.daily'), value: 'daily' },+ { label: t('recurrence.freqShort.weekly'), value: 'weekly' },+ { label: t('recurrence.freqShort.monthly'), value: 'monthly' },+ { label: t('recurrence.freqShort.yearly'), value: 'yearly' },])const monthlyModeItems = computed(() => [@@ -139,29 +188,13 @@ const monthlyModeItems = computed(() => [{ label: t('recurrence.monthly.lastDay'), value: 'lastDay' },])-const endsItems = computed(() => [+const endsItems = computed<{ label: string; value: RecurrenceEndsMode }[]>(() => [{ label: t('recurrence.ends.never'), value: 'never' },- { label: t('recurrence.ends.after'), value: 'after' },{ label: t('recurrence.ends.onDate'), value: 'onDate' },+ { label: t('recurrence.ends.after'), value: 'after' },])-const weekdayLabels = computed(() => [- t('recurrence.weekdays.mon'),- t('recurrence.weekdays.tue'),- t('recurrence.weekdays.wed'),- t('recurrence.weekdays.thu'),- t('recurrence.weekdays.fri'),- t('recurrence.weekdays.sat'),- t('recurrence.weekdays.sun'),-])--function toggleWeekday(index: number) {- const selected = form.value.weekdays.includes(index)- if (selected && form.value.weekdays.length === 1) return- form.value.weekdays = selected- ? form.value.weekdays.filter((d) => d !== index)- : [...form.value.weekdays, index].sort((a, b) => a - b)-}+const startWeekday = computed(() => jsDayToRruleWeekday(props.dtstart.getUTCDay()))const untilDateModel = shallowRef<CalendarDate | undefined>(form.value.untilDate ? parseCalendarDate(form.value.untilDate) : undefined,@@ -171,6 +204,11 @@ watch(untilDateModel, (value) => {form.value.untilDate = value ? value.toString() : null})+watch(() => form.value.untilDate, (value) => {+ const next = value ? parseCalendarDate(value) : undefined+ if (next?.toString() !== untilDateModel.value?.toString()) untilDateModel.value = next+})+function parseCalendarDate(date: string): CalendarDate {const [year, month, day] = date.split('-').map(Number)return new CalendarDate(year, month, day)@@ -216,7 +254,28 @@ const preview = computed(() => {return previewOccurrences({ rrule, dtstart: props.dtstart, limit: PREVIEW_LIMIT })})-function formatPreviewDate(date: string): string {- return useDateFormat(new Date(`${date}T00:00:00`), 'ddd, DD MMM YYYY').value+function capitalize(value: string): string {+ return value.charAt(0).toUpperCase() + value.slice(1)}++const previewCards = computed(() =>+ preview.value.map((date) => {+ const parsed = new Date(`${date}T00:00:00`)+ return {+ key: date,+ weekday: capitalize(new Intl.DateTimeFormat(locale.value, { weekday: 'short' }).format(parsed)),+ day: parsed.getDate(),+ monthYear: capitalize(new Intl.DateTimeFormat(locale.value, { month: 'short', year: 'numeric' }).format(parsed)),+ }+ }),+)++const previewFooter = computed(() => {+ if (!preview.value.length) return ''+ const first = new Date(`${preview.value[0]}T00:00:00`)+ const period = capitalize(new Intl.DateTimeFormat(locale.value, { day: 'numeric', month: 'long', year: 'numeric' }).format(first))+ return form.value.time+ ? t('recurrence.previewFooterTime', { period, time: form.value.time })+ : period+})</script>diff --git a/web/src/components/features/tasks/parts/TaskRecurrenceWeekdays.vue b/web/src/components/features/tasks/parts/TaskRecurrenceWeekdays.vuenew file mode 100644index 0000000..fe9c721--- /dev/null+++ b/web/src/components/features/tasks/parts/TaskRecurrenceWeekdays.vue@@ -0,0 +1,55 @@+<template>+ <div class="flex justify-between gap-1">+ <UButton+ v-for="day in orderedDays"+ :key="day.index"+ :label="day.label"+ :color="model.includes(day.index) ? 'primary' : 'neutral'"+ :variant="model.includes(day.index) ? 'solid' : 'soft'"+ :ui="{ base: 'rounded-10 size-11 justify-center p-0 text-sm' }"+ @click="toggle(day.index)"+ />+ </div>+</template>++<script setup lang="ts">+import { computed, watch } from 'vue'+import { useI18n } from 'vue-i18n'+import { jsDayToRruleWeekday } from '@/helpers/recurrence'+import { useWeekStart } from '@/composables/useWeekStart'++const model = defineModel<number[]>({ required: true })++const { startWeekday } = defineProps<{+ startWeekday: number+}>()++const { t } = useI18n()+const weekStart = useWeekStart()++const DAY_KEYS = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun']++const orderedDays = computed(() => {+ const offset = jsDayToRruleWeekday(weekStart.value ?? 1)+ return Array.from({ length: 7 }, (_, i) => {+ const index = (offset + i) % 7+ return { index, label: t(`recurrence.weekdays.${DAY_KEYS[index]}`) }+ })+})++function toggle(index: number) {+ const selected = model.value.includes(index)+ if (selected && model.value.length === 1) return+ model.value = selected+ ? model.value.filter((d) => d !== index)+ : [...model.value, index].sort((a, b) => a - b)+}++watch(+ () => startWeekday,+ (weekday) => {+ if (model.value.length === 0) model.value = [weekday]+ },+ { immediate: true },+)+</script>diff --git a/web/src/components/features/tasks/parts/TaskSubtaskItem.vue b/web/src/components/features/tasks/parts/TaskSubtaskItem.vueindex 44e290d..91cf879 100644--- a/web/src/components/features/tasks/parts/TaskSubtaskItem.vue+++ b/web/src/components/features/tasks/parts/TaskSubtaskItem.vue@@ -7,10 +7,11 @@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="flex-1 text-sm border-none outline-none focus:ring-0 p-1 rounded-14 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"+ :ui="{ base: 'rounded-xl' }"variant="ghost"@input="onInput"@blur="flushSave"diff --git a/web/src/components/features/tasks/parts/TaskSubtasks.vue b/web/src/components/features/tasks/parts/TaskSubtasks.vueindex 2ca6db2..12e191b 100644--- a/web/src/components/features/tasks/parts/TaskSubtasks.vue+++ b/web/src/components/features/tasks/parts/TaskSubtasks.vue@@ -1,6 +1,28 @@<template><div class="w-full">- <!-- <label class="text-sm text-muted mb-2 block">{{ t('tasks.subtasks') }}</label> -->+ <div+ v-if="subtasks.length > 0 && canViewTaskSubtasks"+ class="flex items-center justify-between mb-2"+ >+ <div class="flex items-center gap-2">+ <UIcon+ name="i-lucide-list-checks"+ class="size-4.5 text-muted"+ />+ <span class="text-[15px] font-semibold text-highlighted">{{ t('tasks.subtasks') }}</span>+ </div>+ <span class="text-sm font-medium text-muted">{{ completedCount }}/{{ subtasks.length }}</span>+ </div>++ <div+ v-if="subtasks.length > 0 && canViewTaskSubtasks"+ class="h-1.5 rounded-full bg-elevated overflow-hidden mb-3"+ >+ <div+ class="h-full rounded-full bg-primary transition-[width] duration-300"+ :style="{ width: `${progressPercent}%` }"+ />+ </div><!-- Subtasks List --><div@@ -24,8 +46,9 @@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"+ variant="soft"+ size="xl"+ class="w-full justify-start rounded-14 shadow-sm dark:bg-tv-ui-bg-elevated"data-testid="add-subtask-button":loading="isAdding"@click="addSubtask"@@ -36,7 +59,7 @@</template><script setup lang="ts">-import { ref, nextTick } from 'vue'+import { ref, computed, nextTick } from 'vue'import { useI18n } from 'vue-i18n'import { useTasksStore } from '@/stores/tasks.store'import type { Task } from 'taskview-api'@@ -56,6 +79,11 @@ const props = defineProps<{const { t } = useI18n()const tasksStore = useTasksStore()+const completedCount = computed(() => props.subtasks.filter(subtask => subtask.complete).length)+const progressPercent = computed(() =>+ props.subtasks.length === 0 ? 0 : Math.round((completedCount.value / props.subtasks.length) * 100),+)+const isAdding = ref(false)const itemRefs = new Map<number, InstanceType<typeof TaskSubtaskItem>>()diff --git a/web/src/components/features/tasks/parts/TaskTimeTracking.vue b/web/src/components/features/tasks/parts/TaskTimeTracking.vueindex 8bb510d..6c78f73 100644--- a/web/src/components/features/tasks/parts/TaskTimeTracking.vue+++ b/web/src/components/features/tasks/parts/TaskTimeTracking.vue@@ -1,50 +1,56 @@<template><divv-if="canViewTimeTracking || canLogTime"- class="flex flex-col gap-3 p-3 rounded-lg border border-default"+ class="flex flex-col gap-3 rounded-2xl bg-accented/20 p-3.5"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><UIconname="i-lucide-timer"- class="size-5 text-muted"+ class="size-4.5 text-muted"/>- <span class="font-medium">{{ t('timeTracking.title') }}</span>+ <span class="text-[15px] font-semibold text-highlighted">{{ t('timeTracking.title') }}</span><UBadgev-if="totalSeconds > 0":label="formatDuration(totalSeconds)"color="neutral"variant="subtle"size="sm"+ :ui="{ base: 'rounded-full' }"/></div>- <div class="flex items-center gap-2">- <span- v-if="isActiveOnThisTask"- class="font-mono text-sm tabular-nums text-primary"- >- {{ elapsedFormatted }}- </span>- <UButton- v-if="canLogTime && !isActiveOnThisTask"- :label="t('timeTracking.start')"- icon="i-lucide-play"- color="primary"- size="sm"- @click="onStart"- />- <UButton- v-else-if="canLogTime"- :label="t('timeTracking.stop')"- icon="i-lucide-square"- color="error"- size="sm"- @click="store.stop()"- />- </div>+ <span+ v-if="isActiveOnThisTask"+ class="font-mono text-sm tabular-nums text-primary"+ >+ {{ elapsedFormatted }}+ </span></div>+ <UButton+ v-if="canLogTime && !isActiveOnThisTask"+ :label="t('timeTracking.start')"+ icon="i-lucide-play"+ color="primary"+ variant="soft"+ size="lg"+ block+ :ui="{ base: 'rounded-xl justify-center' }"+ @click="onStart"+ />+ <UButton+ v-else-if="canLogTime"+ :label="t('timeTracking.stop')"+ icon="i-lucide-square"+ color="error"+ variant="soft"+ size="lg"+ block+ :ui="{ base: 'rounded-xl justify-center' }"+ @click="store.stop()"+ />+<divv-if="canLogTime && otherActiveWarning"class="flex items-center gap-2 text-xs text-warning"@@ -59,7 +65,7 @@<template v-if="canViewTimeTracking"><divv-if="entries.length > 0"- class="flex flex-col gap-2 max-h-80 overflow-y-auto pr-1"+ class="flex flex-col gap-1 rounded-2xl bg-elevated p-2 max-h-80 overflow-y-auto"><TaskTimeTrackingEntryv-for="entry in entries"@@ -71,28 +77,26 @@</div><divv-else- class="flex flex-col items-center gap-1 py-3 text-xs text-muted"+ class="flex flex-col items-center gap-2 rounded-2xl bg-elevated py-6 text-muted"><UIconname="i-lucide-inbox"- class="size-5"+ class="size-6"/>- <span>{{ t('timeTracking.empty') }}</span>+ <span class="text-sm">{{ t('timeTracking.empty') }}</span></div></template>- <div- v-if="canLogTime"- class="flex flex-col gap-2 pt-2 border-t border-default"- >+ <div v-if="canLogTime"><UButtonv-if="!manualOpen":label="t('timeTracking.addManual')"icon="i-lucide-plus"color="neutral"- variant="ghost"- size="sm"+ variant="soft"+ size="lg"block+ :ui="{ base: 'rounded-xl justify-start' }"@click="manualOpen = true"/><TaskTimeTrackingFormdiff --git a/web/src/components/features/tasks/parts/TaskTimeTrackingEntry.vue b/web/src/components/features/tasks/parts/TaskTimeTrackingEntry.vueindex bf04d06..6e9b41c 100644--- a/web/src/components/features/tasks/parts/TaskTimeTrackingEntry.vue+++ b/web/src/components/features/tasks/parts/TaskTimeTrackingEntry.vue@@ -1,5 +1,5 @@<template>- <div class="flex flex-col gap-1 px-2 py-1.5 rounded bg-elevated/50 text-sm">+ <div class="flex flex-col gap-1 px-3 py-2 rounded-xl bg-default shadow-xs text-sm"><div class="flex lg:items-center flex-col lg:flex-row justify-between gap-2"><div class="flex flex-col min-w-0 flex-1"><div class="flex items-center gap-2 text-xs text-muted">diff --git a/web/src/components/features/tasks/parts/TaskTimeTrackingForm.vue b/web/src/components/features/tasks/parts/TaskTimeTrackingForm.vueindex 2cec8bc..0f97442 100644--- a/web/src/components/features/tasks/parts/TaskTimeTrackingForm.vue+++ b/web/src/components/features/tasks/parts/TaskTimeTrackingForm.vue@@ -1,14 +1,15 @@<template>- <div class="flex flex-col gap-2 pt-2">+ <div class="flex flex-col gap-3"><div class="flex gap-2">- <UPopover v-model:open="startOpen">+ <UPopover v-model:open="startOpen" :ui="{ content: 'rounded-16' }"><UButton:label="formattedStart"icon="i-lucide-calendar"color="neutral"variant="outline"- size="sm"- class="flex-1 justify-start"+ size="lg"+ class="flex-1"+ :ui="{ base: 'rounded-xl justify-start' }"/><template #content><div class="p-2 flex flex-col gap-2">@@ -20,6 +21,7 @@<UInputTimev-model="startTime":hour-cycle="24"+ :ui="{ base: 'justify-center' }"/></div></template>@@ -31,8 +33,9 @@icon="i-lucide-calendar-check"color="neutral"variant="outline"- size="sm"- class="flex-1 justify-start"+ size="lg"+ class="flex-1"+ :ui="{ base: 'rounded-xl justify-start' }"/><template #content><div class="p-2 flex flex-col gap-2">@@ -44,6 +47,7 @@<UInputTimev-model="endTime":hour-cycle="24"+ :ui="{ base: 'justify-center' }"/></div></template>@@ -53,14 +57,17 @@<UFormField :label="t('timeTracking.description')"><UInputv-model="description"- size="sm"+ size="lg"+ variant="outline"class="w-full"+ :ui="{ base: 'rounded-xl' }"/></UFormField><UCheckboxv-model="billable":label="t('timeTracking.billable')"+ size="lg"/><div class="flex justify-end gap-2">@@ -68,13 +75,11 @@:label="t('timeTracking.cancel')"color="neutral"variant="ghost"- size="sm"@click="emit('cancel')"/><UButton:label="submitLabel ?? t('timeTracking.save')"color="primary"- size="sm":disabled="!isValid"@click="onSubmit"/>diff --git a/web/src/components/features/tasks/parts/TasksFilterDrawer.vue b/web/src/components/features/tasks/parts/TasksFilterDrawer.vueindex 5fed9f5..3351dfb 100644--- a/web/src/components/features/tasks/parts/TasksFilterDrawer.vue+++ b/web/src/components/features/tasks/parts/TasksFilterDrawer.vue@@ -2,7 +2,7 @@<UDrawerv-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' }"+ :ui="{header: 'flex flex-col gap-2', content: 'items-center w-full lg:w-1/2 mx-auto max-w-2xl rounded-3xl' }"><template #header><h2 class="text-highlighted font-semibold">@@ -23,9 +23,10 @@:placeholder="t('filters.selectAssignee')":search-input="false"value-key="value"+ variant="soft"class="w-full"size="xl"- :ui="{ base: 'w-full' }"+ :ui="{ base: 'w-full rounded-xl' }"/></UFormField>@@ -43,13 +44,13 @@:key="tag.id":label="tag.name"icon="i-lucide-tag"- size="xl"+ size="lg":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' }"+ :ui="{ label: 'text-base', base:'gap-2 rounded-lg ring-0 bg-accented/40', leadingIcon: 'size-3.5' }":color="isTagSelected(tag.id) ? 'primary' : 'neutral'":variant="isTagSelected(tag.id) ? 'soft' : 'outline'"class="cursor-pointer transition-colors min-h-9"@@ -75,7 +76,7 @@:key="priority.value":label="priority.label":color="filters.priority === priority.value ? 'primary' : 'neutral'"- :variant="filters.priority === priority.value ? 'outline' : 'outline'"+ :variant="filters.priority === priority.value ? 'solid' : 'soft'"size="lg"@click="togglePriority(priority.value)"/>@@ -90,13 +91,12 @@<UButton:label="t('filters.reset')"color="neutral"- variant="outline"+ variant="soft"@click="resetFilters"/><UButton:label="t('filters.apply')"color="primary"- variant="outline"@click="applyFilters"/></div>@@ -133,7 +133,7 @@ const filters = reactive<TaskFilters>({priority: undefined,})-const sectionClasses = 'shadow-md bg-elevated/30 p-2 rounded-lg'+const sectionClasses = 'bg-elevated/40 p-3 rounded-2xl'const userItems = computed(() => [...users.value.map((user) => ({diff --git a/web/src/components/features/tasks/parts/TasksToolbar.vue b/web/src/components/features/tasks/parts/TasksToolbar.vueindex f1f9169..25c7996 100644--- a/web/src/components/features/tasks/parts/TasksToolbar.vue+++ b/web/src/components/features/tasks/parts/TasksToolbar.vue@@ -1,6 +1,6 @@<template><div class="flex flex-col gap-2">- <div class="flex flex-wrap items-center justify-end gap-2 p-2 bg-tv-ui-bg-elevated rounded-lg">+ <div class="flex flex-wrap items-center justify-end gap-2 p-2 bg-tv-ui-bg-elevated rounded-3xl"><!-- Filter --><UTooltip :text="t('filters.title')"><UButtondiff --git a/web/src/components/features/tasks/parts/tags/TagEditDialog.vue b/web/src/components/features/tasks/parts/tags/TagEditDialog.vueindex 5346adf..33c392f 100644--- a/web/src/components/features/tasks/parts/tags/TagEditDialog.vue+++ b/web/src/components/features/tasks/parts/tags/TagEditDialog.vue@@ -1,38 +1,62 @@<template><UModalv-model:open="isOpen"+ :fullscreen="isMobile":title="isNewTag ? t('tags.createTag') : t('tags.editTag')"+ :ui="{ content: 'sm:max-w-md' }"><template #body>- <div class="space-y-4 flex flex-col items-center">- <UFormField- :label="t('tags.name')"- class="w-full"- >+ <div+ class="space-y-5"+ data-testid="tag-edit-dialog"+ >+ <UFormField :label="t('tags.name')"><UInputv-model="tagName":placeholder="t('tags.namePlaceholder')"- :autofocus="false"- variant="subtle"+ size="xl"+ variant="soft"class="w-full"+ :ui="{ base: 'rounded-xl' }"+ data-testid="tag-edit-dialog-name"/></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 :label="t('tags.color')">+ <div class="space-y-3">+ <div class="flex flex-wrap gap-2">+ <button+ v-for="preset in colorPresets"+ :key="preset"+ type="button"+ class="size-7 rounded-full flex items-center justify-center ring-2 ring-offset-2 ring-offset-white dark:ring-offset-neutral-900 transition-shadow"+ :class="isPreset(preset) ? 'ring-primary' : 'ring-transparent'"+ :style="{ backgroundColor: preset }"+ @click="tagColor = preset"+ >+ <UIcon+ v-if="isPreset(preset)"+ name="i-lucide-check"+ class="size-4"+ :style="{ color: getContrastColor(preset) }"+ />+ </button>+ </div>++ <UColorPicker+ v-model="tagColor"+ :ui="{ root: 'w-full', picker: 'w-full', selector: 'w-full' }"+ data-testid="tag-edit-dialog-color"+ />+ </div></UFormField>- <div class="flex gap-2 w-full">- <span class="text-sm text-muted">{{ t('tags.preview') }}:</span>+ <div class="flex items-center gap-2">+ <span class="text-sm text-muted">{{ t('tags.preview') }}</span><UBadge:label="tagName || t('tags.tagName')"+ size="lg"+ :ui="{ base: 'rounded-10' }":style="{ backgroundColor: tagColor, color: getContrastColor(tagColor) }"><template #leading>@@ -54,6 +78,7 @@color="error"variant="ghost"icon="i-lucide-trash-2"+ data-testid="tag-edit-dialog-delete"@click="handleDelete"/><div class="flex gap-2 ml-auto">@@ -66,7 +91,8 @@<UButton:label="t('common.save')":disabled="!tagName.trim()"- variant="outline"+ color="primary"+ data-testid="tag-edit-dialog-save"@click="handleSave"/></div>@@ -79,6 +105,7 @@import { ref, watch, computed } from 'vue'import { useI18n } from 'vue-i18n'import type { TagItem } from 'taskview-api'+import { useTaskView } from '@/composables/useTaskView'const props = defineProps<{tag?: TagItem | null@@ -91,6 +118,7 @@ const emit = defineEmits<{}>()const { t } = useI18n()+const { isMobile } = useTaskView()const isOpen = defineModel<boolean>('open', { required: true })@@ -118,6 +146,10 @@ watch(isOpen, (open) => {}})+function isPreset(preset: string): boolean {+ return tagColor.value.toLowerCase() === preset.toLowerCase()+}+function getContrastColor(hexColor: string): string {const hex = hexColor.replace('#', '')const r = parseInt(hex.substring(0, 2), 16)diff --git a/web/src/components/features/tasks/parts/tags/TagItem.vue b/web/src/components/features/tasks/parts/tags/TagItem.vueindex 65935ad..af70653 100644--- a/web/src/components/features/tasks/parts/tags/TagItem.vue+++ b/web/src/components/features/tasks/parts/tags/TagItem.vue@@ -5,6 +5,8 @@:variant="isSelected ? 'solid' : 'outline'"class="cursor-pointer select-none"size="lg"+ :ui="{ base: 'rounded-10 gap-1.5' }"+ data-testid="tag-item"@click="handleClick"><template #leading>@@ -24,6 +26,7 @@size="xs"color="neutral"variant="ghost"+ data-testid="tag-item-edit"@click.stop="$emit('edit', tag)"/><!-- <UButtondiff --git a/web/src/components/features/tasks/parts/tags/TagSearchAdd.vue b/web/src/components/features/tasks/parts/tags/TagSearchAdd.vueindex 1f845f4..64d342a 100644--- a/web/src/components/features/tasks/parts/tags/TagSearchAdd.vue+++ b/web/src/components/features/tasks/parts/tags/TagSearchAdd.vue@@ -1,12 +1,17 @@<template>- <div class="space-y-3">+ <div+ class="space-y-3"+ data-testid="tag-search-add"+ ><UInputv-model="searchQuery":placeholder="t('tags.searchPlaceholder')"icon="i-lucide-search"size="xl"class="w-full"- :variant="isDark ? 'subtle' : 'soft'"+ variant="outline"+ :ui="{ base: 'rounded-xl bg-default' }"+ data-testid="tag-search-add-input"@keydown.enter="handleEnter"/>@@ -26,23 +31,26 @@/></div>- <div+ <pv-else-if="searchQuery.trim()"- class="text-sm text-muted py-2"+ class="text-sm text-muted text-center py-1">{{ t('tags.noTagsFound') }}- </div>+ </p><UButton:disabled="!canEditTaskTags"icon="i-lucide-plus"- color="neutral"- variant="subtle"- size="md"- class="w-full justify-start"- @click="$emit('create')"+ :color="canQuickCreate ? 'primary' : 'neutral'"+ :variant="'soft'"+ size="xl"+ block+ :ui="{ base: 'rounded-xl justify-start' }"+ data-testid="tag-search-add-create"+ class="bg-accented/40"+ @click="handleCreateClick">- {{ t('tags.createTag') }}+ {{ createLabel }}</UButton></div></template>@@ -52,7 +60,6 @@ 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<{@@ -69,8 +76,6 @@ const emit = defineEmits<{quickCreate: [data: { name: string; color: string }]}>()-const colorMode = useColorMode()-const isDark = computed(() => colorMode.value === 'dark')const { canEditTaskTags } = useGoalPermissions()const { t } = useI18n()@@ -91,6 +96,16 @@ const filteredTags = computed(() => {)})+const canQuickCreate = computed(() =>+ searchQuery.value.trim().length > 0 && filteredTags.value.length === 0,+)++const createLabel = computed(() =>+ canQuickCreate.value+ ? t('tags.createNamed', { name: searchQuery.value.trim() })+ : t('tags.createTag'),+)+function isTagSelected(tagId: number): boolean {return props.selectedTagIds.includes(tagId)}@@ -99,6 +114,15 @@ function getRandomColor(): string {return colorPresets[Math.floor(Math.random() * colorPresets.length)]}+function handleCreateClick() {+ if (canQuickCreate.value) {+ emit('quickCreate', { name: searchQuery.value.trim(), color: getRandomColor() })+ searchQuery.value = ''+ } else {+ emit('create')+ }+}+function handleEnter() {const name = searchQuery.value.trim()if (!name) returndiff --git a/web/src/components/features/tasks/parts/tags/TaskTagsManager.vue b/web/src/components/features/tasks/parts/tags/TaskTagsManager.vueindex 9767b50..08d31a2 100644--- a/web/src/components/features/tasks/parts/tags/TaskTagsManager.vue+++ b/web/src/components/features/tasks/parts/tags/TaskTagsManager.vue@@ -1,31 +1,81 @@<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"+ <div+ class="flex flex-col gap-2"+ data-testid="task-tags-manager"+ >+ <UButton+ icon="i-lucide-tag"+ color="neutral"+ variant="soft"+ size="xl"+ block+ :trailing-icon="isExpanded ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'"+ :ui="activatorUi('text-muted')"+ data-testid="task-tags-manager-activator"+ @click="isExpanded = !isExpanded"+ >+ <div+ ref="tagsRowRef"+ class="flex-1 flex items-center gap-1 overflow-hidden">- {{ isEditMode ? t('common.done') : t('tags.manageTags') }}- </UButton>- </div>+ <template v-if="selectedTags.length > 0">+ <UBadge+ v-for="(tag, i) in selectedTags"+ :key="tag.id"+ :label="tag.name"+ size="sm"+ class="shrink-0 max-w-40 truncate"+ :class="{ hidden: i >= visibleCount }"+ :style="{ backgroundColor: tag.color, color: getContrastColor(tag.color) }"+ :ui="{ base: 'rounded-md' }"+ />+ <UBadge+ v-if="overflowCount > 0"+ :label="`+${overflowCount}`"+ size="sm"+ color="neutral"+ variant="subtle"+ class="shrink-0"+ :ui="{ base: 'rounded-md' }"+ />+ </template>+ <span+ v-else+ class="text-muted"+ >{{ t('tasks.tags') }}</span>+ </div>+ </UButton>- <TagSearchAdd- v-if="canViewTaskTags"- :tags="availableTags"- :selected-tag-ids="taskTagIds"- :edit-mode="isEditMode"- @toggle="handleToggleTag"- @edit="openEditDialog"- @delete="openDeleteConfirm"- @create="openCreateDialog"- @quick-create="handleQuickCreate"- />+ <div+ v-if="isExpanded && canViewTaskTags"+ class="flex flex-col gap-3 rounded-2xl bg-elevated p-3"+ >+ <div class="flex items-center justify-between">+ <span class="text-sm font-medium text-muted">{{ t('tasks.tags') }}</span>+ <UButton+ :icon="isEditMode ? 'i-lucide-check' : 'i-lucide-settings-2'"+ :label="isEditMode ? t('common.done') : t('tags.manageTags')"+ :color="isEditMode ? 'primary' : 'neutral'"+ variant="soft"+ :disabled="!canEditTaskTags"+ size="sm"+ :ui="{ base: 'rounded-lg' }"+ data-testid="task-tags-manager-manage-toggle"+ @click="isEditMode = !isEditMode"+ />+ </div>++ <TagSearchAdd+ :tags="availableTags"+ :selected-tag-ids="taskTagIds"+ :edit-mode="isEditMode"+ @toggle="handleToggleTag"+ @edit="openEditDialog"+ @delete="openDeleteConfirm"+ @create="openCreateDialog"+ @quick-create="handleQuickCreate"+ />+ </div><!-- Edit/Create Tag Dialog --><TagEditDialog@@ -39,23 +89,41 @@<!-- Delete Confirmation Dialog --><UModalv-model:open="isDeleteDialogOpen"+ :fullscreen="isMobile":title="t('tags.deleteConfirm')"+ :ui="{ content: 'sm:max-w-sm' }"><template #body>- <p>{{ t('tags.deleteMessage', { name: deletingTag?.name }) }}</p>+ <div+ class="flex flex-col items-center text-center gap-3 py-2"+ data-testid="task-tags-manager-delete-dialog"+ >+ <div class="flex items-center justify-center size-14 rounded-full bg-error/10">+ <UIcon+ name="i-lucide-trash-2"+ class="size-7 text-error"+ />+ </div>+ <p class="text-sm text-muted max-w-xs">+ {{ t('tags.deleteMessage', { name: deletingTag?.name }) }}+ </p>+ </div></template><template #footer>- <div class="flex w-full justify-end gap-2">+ <div class="flex w-full gap-2"><UButton:label="t('common.cancel')"color="neutral"variant="outline"+ block+ data-testid="task-tags-manager-delete-cancel"@click="isDeleteDialogOpen = false"/><UButton:label="t('common.delete')"color="error"- variant="outline"+ block+ data-testid="task-tags-manager-delete-confirm"@click="confirmDeleteTag"/></div>@@ -65,7 +133,7 @@</template><script setup lang="ts">-import { ref, computed, onMounted } from 'vue'+import { ref, computed, onMounted, onBeforeUnmount, watch, nextTick } from 'vue'import { useI18n } from 'vue-i18n'import { useTagsStore } from '@/stores/tag.store'import { useTasksStore } from '@/stores/tasks.store'@@ -74,6 +142,8 @@ import TagSearchAdd from './TagSearchAdd.vue'import TagEditDialog from './TagEditDialog.vue'import { useGoalPermissions } from '@/composables/useGoalPermissions'import { useProjectContext } from '@/composables/useProjectContext'+import { useTaskView } from '@/composables/useTaskView'+import { useNuxtUiTaskItemStyles } from '@/composables/useNuxtUiTaskItemStyles'const props = defineProps<{taskId: number@@ -82,6 +152,8 @@ const props = defineProps<{}>()const { canEditTaskTags, canViewTaskTags } = useGoalPermissions()+const { isMobile } = useTaskView()+const { activatorUi } = useNuxtUiTaskItemStyles()const { t } = useI18n()const tagsStore = useTagsStore()const tasksStore = useTasksStore()@@ -93,6 +165,7 @@ onMounted(async () => {}})+const isExpanded = ref(false)const isEditMode = ref(false)const isEditDialogOpen = ref(false)const isDeleteDialogOpen = ref(false)@@ -103,6 +176,72 @@ const availableTags = computed(() =>projectContext ? projectContext.tags.value : tagsStore.filteredTags,)+const selectedTags = computed(() =>+ availableTags.value.filter(tag => props.taskTagIds.includes(tag.id)),+)++const tagsRowRef = ref<HTMLElement | null>(null)+const visibleCount = ref(0)+const overflowCount = computed(() => Math.max(0, selectedTags.value.length - visibleCount.value))++async function measureVisibleTags() {+ const total = selectedTags.value.length+ if (total === 0) {+ visibleCount.value = 0+ return+ }+ visibleCount.value = total+ await nextTick()+ const row = tagsRowRef.value+ if (!row) return++ const available = row.clientWidth+ const gap = 4+ const widths = (Array.from(row.children) as HTMLElement[])+ .slice(0, total)+ .map(child => child.offsetWidth)++ const totalWidth = widths.reduce((sum, width, i) => sum + width + (i > 0 ? gap : 0), 0)+ if (totalWidth <= available) {+ visibleCount.value = total+ return+ }++ const reserve = 44+ let used = 0+ let fit = 0+ for (let i = 0; i < total; i++) {+ used += (i > 0 ? gap : 0) + widths[i]+ if (used <= available - reserve) fit+++ else break+ }+ visibleCount.value = Math.max(1, fit)+}++let resizeObserver: ResizeObserver | null = null++watch(selectedTags, () => measureVisibleTags())++onMounted(() => {+ resizeObserver = new ResizeObserver(() => measureVisibleTags())+ if (tagsRowRef.value) resizeObserver.observe(tagsRowRef.value)+ measureVisibleTags()+})++onBeforeUnmount(() => {+ resizeObserver?.disconnect()+ resizeObserver = null+})++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'+}+async function handleToggleTag(tag: TagItemType) {await tasksStore.toggleTagForTask({taskId: props.taskId,diff --git a/web/src/components/features/ui-customization/UiCustomizationItem.vue b/web/src/components/features/ui-customization/UiCustomizationItem.vueindex 83ef2f8..864f5a7 100644--- a/web/src/components/features/ui-customization/UiCustomizationItem.vue+++ b/web/src/components/features/ui-customization/UiCustomizationItem.vue@@ -1,5 +1,5 @@<template>- <div class="flex items-center gap-3 p-3 bg-elevated rounded-lg">+ <div class="flex items-center gap-3 p-3 bg-elevated rounded-14"><UIconname="i-lucide-grip-vertical"class="size-4 text-muted shrink-0 cursor-grab drag-handle"diff --git a/web/src/components/features/ui-customization/UiCustomizationOthers.vue b/web/src/components/features/ui-customization/UiCustomizationOthers.vueindex 2957ced..8aac546 100644--- a/web/src/components/features/ui-customization/UiCustomizationOthers.vue+++ b/web/src/components/features/ui-customization/UiCustomizationOthers.vue@@ -1,11 +1,18 @@<template><div class="flex flex-col gap-4">- <UFormField :label="t('uiCustomization.others.weekStart')"- :description="t('uiCustomization.others.weekStartHint')">- <USelectMenu v-model="weekStart"- :items="weekStartItems"- value-key="value"- class="w-full lg:w-72" />+ <UFormField+ :label="t('uiCustomization.others.weekStart')"+ :description="t('uiCustomization.others.weekStartHint')"+ >+ <USelectMenu+ v-model="weekStart"+ :items="weekStartItems"+ value-key="value"+ variant="soft"+ class="w-full lg:w-72"+ size="xl"+ :ui="{ base: 'rounded-xl' }"+ /></UFormField></div></template>diff --git a/web/src/components/features/ui-customization/UiCustomizationSection.vue b/web/src/components/features/ui-customization/UiCustomizationSection.vueindex ec0f073..351a591 100644--- a/web/src/components/features/ui-customization/UiCustomizationSection.vue+++ b/web/src/components/features/ui-customization/UiCustomizationSection.vue@@ -1,5 +1,5 @@<template>- <UCard>+ <UCard variant="soft" data-testid="ui-customization-section"><template #header><h3 class="font-semibold">{{ title }}diff --git a/web/src/components/sidebars/DashboardSidebarFirst.vue b/web/src/components/sidebars/DashboardSidebarFirst.vuenew file mode 100644index 0000000..7873b1c--- /dev/null+++ b/web/src/components/sidebars/DashboardSidebarFirst.vue@@ -0,0 +1,41 @@+<template>+ <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' }"+ >+ <div class="flex items-center justify-between px-1 gap-2">+ <TvGoalLikeItem+ :to="{ name: 'user' }"+ variant="taskview"+ class="flex-1"+ >+ {{ t('main') }}+ </TvGoalLikeItem>+ <ActiveTimerIndicator />+ <NotificationBell />+ </div>++ <ProjectsSidebar />++ <template #footer="{ collapsed }">+ <UserMenu :collapsed="collapsed" />+ </template>+ </UDashboardSidebar>+</template>++<script setup lang="ts">+import { useI18n } from 'vue-i18n'+import { useDashboard } from '@/composables/useDashboard'+import TvGoalLikeItem from '@/components/features/base/TvGoalLikeItem.vue'+import ProjectsSidebar from '@/components/features/projects/ProjectsSidebar.vue'+import NotificationBell from '@/components/NotificationBell.vue'+import ActiveTimerIndicator from '@/components/ActiveTimerIndicator.vue'+import UserMenu from '@/components/UserMenu.vue'++const { t } = useI18n()+const { isSidebarOpen, isSidebarCollapsed } = useDashboard()+</script>diff --git a/web/src/components/sidebars/DashboardSidebarSecond.vue b/web/src/components/sidebars/DashboardSidebarSecond.vuenew file mode 100644index 0000000..1df8485--- /dev/null+++ b/web/src/components/sidebars/DashboardSidebarSecond.vue@@ -0,0 +1,74 @@+<template>+ <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' }"+ >+ <div class="flex flex-col gap-4 h-full">+ <div class="flex items-center justify-between px-1 gap-2">+ <TvGoalLikeItem+ :to="{ name: 'user' }"+ variant="taskview"+ class="flex-1"+ >+ {{ t('main') }}+ </TvGoalLikeItem>+ <ActiveTimerIndicator />+ <NotificationBell />+ </div>++ <SearchAll />+ <SidebarProjectSelect />+ <SidebarTools />+ <ProjectAddInput+ :placeholder="t('projects.createNew')"+ @add="handleAddProject"+ />++ <div class="flex-1" />++ <SidebarOrgSelect />+ </div>++ <template #footer="{ collapsed }">+ <UserMenu :collapsed="collapsed" />+ </template>+ </UDashboardSidebar>+</template>++<script setup lang="ts">+import { useI18n } from 'vue-i18n'+import { useRouter } from 'vue-router'+import { ALL_TASKS_LIST_ID } from 'taskview-api'+import { useDashboard } from '@/composables/useDashboard'+import { useGoalsStore } from '@/stores/goals.store'+import { useOrganizationStore } from '@/stores/organization.store'+import SearchAll from '@/components/features/main/screen-main/parts/SearchAll.vue'+import ProjectAddInput from '@/components/features/projects/parts/ProjectAddInput.vue'+import UserMenu from '@/components/UserMenu.vue'+import TvGoalLikeItem from '@/components/features/base/TvGoalLikeItem.vue'+import ActiveTimerIndicator from '@/components/ActiveTimerIndicator.vue'+import NotificationBell from '@/components/NotificationBell.vue'+import SidebarProjectSelect from './dashboard-second/SidebarProjectSelect.vue'+import SidebarTools from './dashboard-second/SidebarTools.vue'+import SidebarOrgSelect from './dashboard-second/SidebarOrgSelect.vue'++const { t } = useI18n()+const router = useRouter()+const { isSidebarOpen, isSidebarCollapsed } = useDashboard()+const goalsStore = useGoalsStore()+const orgStore = useOrganizationStore()++async function handleAddProject(name: string) {+ const newProject = await goalsStore.addGoal({+ name,+ ...(orgStore.currentOrg && { organizationId: orgStore.currentOrg.id }),+ })+ if (newProject) {+ router.push({ name: 'user', params: { projectId: newProject.id, listId: ALL_TASKS_LIST_ID } })+ }+}+</script>diff --git a/web/src/components/sidebars/dashboard-second/SidebarOrgSelect.vue b/web/src/components/sidebars/dashboard-second/SidebarOrgSelect.vuenew file mode 100644index 0000000..8b4f478--- /dev/null+++ b/web/src/components/sidebars/dashboard-second/SidebarOrgSelect.vue@@ -0,0 +1,121 @@+<template>+ <div class="flex flex-col gap-2">+ <UPopover+ v-model:open="open"+ :content="{ align: 'start' }"+ :ui="{ content: 'w-(--reka-popper-anchor-width) rounded-2xl' }"+ >+ <UButton+ color="neutral"+ variant="soft"+ size="xl"+ block+ icon="i-lucide-building-2"+ trailing-icon="i-lucide-chevron-down"+ :ui="{ base: 'rounded-xl', trailingIcon: 'ms-auto' }"+ >+ <span+ class="flex-1 text-left truncate"+ :class="currentOrg ? '' : 'text-muted'"+ >+ {{ currentOrg?.name ?? t('organizations.title') }}+ </span>+ </UButton>++ <template #content>+ <div class="p-1 flex flex-col gap-0.5 max-h-72 overflow-auto">+ <UButton+ v-for="org in organizations"+ :key="org.id"+ :label="org.name"+ icon="i-lucide-building-2"+ color="neutral"+ :variant="org.id === currentOrg?.id ? 'soft' : 'ghost'"+ block+ class="justify-start"+ @click="selectOrg(org)"+ />+ <USeparator class="my-1" />+ <UButton+ :label="t('organizations.create')"+ icon="i-lucide-plus"+ color="neutral"+ variant="ghost"+ block+ class="justify-start"+ @click="openCreate"+ />+ </div>+ </template>+ </UPopover>++ <div+ v-if="currentOrg"+ class="flex items-center justify-center gap-2"+ >+ <UButton+ icon="i-lucide-user-plus"+ color="neutral"+ variant="soft"+ size="sm"+ :ui="{ base: 'rounded-lg' }"+ @click="isDetailOpen = true"+ />+ <UButton+ icon="i-lucide-pencil"+ color="neutral"+ variant="soft"+ size="sm"+ :ui="{ base: 'rounded-lg' }"+ @click="isDetailOpen = true"+ />+ <UButton+ icon="i-lucide-shield"+ color="neutral"+ variant="soft"+ size="sm"+ :ui="{ base: 'rounded-lg' }"+ @click="isDetailOpen = true"+ />+ </div>++ <OrgCreateModal+ v-model="isCreateOpen"+ @created="isCreateOpen = false"+ />+ <OrgDetailModal+ v-model="isDetailOpen"+ :organization="currentOrg"+ />+ </div>+</template>++<script setup lang="ts">+import { ref } from 'vue'+import { useI18n } from 'vue-i18n'+import { storeToRefs } from 'pinia'+import type { Organization } from 'taskview-api'+import { useOrganizationStore } from '@/stores/organization.store'+import { useOrgSwitcher } from '@/composables/useOrgSwitcher'+import OrgCreateModal from '@/components/features/organizations/parts/OrgCreateModal.vue'+import OrgDetailModal from '@/components/features/organizations/parts/OrgDetailModal.vue'++const { t } = useI18n()+const orgStore = useOrganizationStore()+const { organizations, currentOrg } = storeToRefs(orgStore)+const { switchOrg } = useOrgSwitcher()++const open = ref(false)+const isCreateOpen = ref(false)+const isDetailOpen = ref(false)++function selectOrg(org: Organization) {+ open.value = false+ switchOrg(org)+}++function openCreate() {+ open.value = false+ isCreateOpen.value = true+}+</script>diff --git a/web/src/components/sidebars/dashboard-second/SidebarProjectSelect.vue b/web/src/components/sidebars/dashboard-second/SidebarProjectSelect.vuenew file mode 100644index 0000000..7914b93--- /dev/null+++ b/web/src/components/sidebars/dashboard-second/SidebarProjectSelect.vue@@ -0,0 +1,207 @@+<template>+ <div class="flex flex-col gap-2">+ <UPopover+ v-model:open="open"+ :content="{ align: 'start' }"+ :ui="{ content: 'w-(--reka-popper-anchor-width) rounded-xl' }"+ >+ <UButton+ color="neutral"+ variant="soft"+ size="xl"+ block+ icon="i-lucide-folder"+ trailing-icon="i-lucide-chevron-down"+ :ui="{ base: 'rounded-xl', trailingIcon: 'ms-auto' }"+ >+ <span+ class="flex-1 text-left truncate"+ :class="currentProject ? '' : 'text-muted'"+ >+ {{ currentProject?.name ?? t('projects.selectProject') }}+ </span>+ </UButton>++ <template #content>+ <div class="p-1 flex flex-col gap-0.5 max-h-72 overflow-auto">+ <UButton+ v-for="project in activeProjects"+ :key="project.id"+ :label="project.name"+ icon="i-lucide-folder"+ color="neutral"+ :variant="project.id === currentProjectId ? 'soft' : 'ghost'"+ block+ class="justify-start"+ @click="selectProject(project)"+ />+ <p+ v-if="!activeProjects.length"+ class="text-sm text-muted px-3 py-2"+ >+ {{ t('projects.empty') }}+ </p>++ <USeparator+ v-if="archivedProjects.length"+ class="my-1"+ />+ <UCollapsible+ v-if="archivedProjects.length"+ v-model:open="archiveOpen"+ class="group"+ :ui="{ content: 'p-0' }"+ >+ <button+ type="button"+ class="flex items-center justify-between w-full px-2 py-1.5 cursor-pointer select-none"+ >+ <span class="text-xs font-semibold uppercase tracking-wide text-muted">+ {{ t('archive.title') }} · {{ archivedProjects.length }}+ </span>+ <UIcon+ name="i-lucide-chevron-down"+ class="size-4 text-muted transition-transform duration-200 group-data-[state=closed]:-rotate-90"+ />+ </button>+ <template #content>+ <div class="flex flex-col gap-0.5 pt-0.5">+ <UButton+ v-for="project in archivedProjects"+ :key="project.id"+ :label="project.name"+ icon="i-lucide-archive"+ color="neutral"+ :variant="project.id === currentProjectId ? 'soft' : 'ghost'"+ block+ class="justify-start"+ @click="selectProject(project)"+ />+ </div>+ </template>+ </UCollapsible>+ </div>+ </template>+ </UPopover>++ <div+ v-if="currentProject"+ class="flex items-center justify-end gap-2"+ >+ <UButton+ v-if="canEditGoal && !isArchived"+ icon="i-lucide-archive"+ color="neutral"+ variant="soft"+ size="sm"+ :title="t('contextMenu.moveToArchive')"+ :ui="{ base: 'rounded-lg' }"+ @click="archive"+ />+ <UButton+ v-if="canEditGoal && isArchived"+ icon="i-lucide-archive-restore"+ color="neutral"+ variant="soft"+ size="sm"+ :title="t('contextMenu.restoreFromArchive')"+ :ui="{ base: 'rounded-lg' }"+ @click="restore"+ />+ <UButton+ v-if="canEditGoal"+ icon="i-lucide-pencil"+ color="neutral"+ variant="soft"+ size="sm"+ :ui="{ base: 'rounded-lg' }"+ @click="isEditOpen = true"+ />+ <UButton+ v-if="canDeleteGoal"+ icon="i-lucide-trash-2"+ color="error"+ variant="soft"+ size="sm"+ :ui="{ base: 'rounded-lg' }"+ @click="isDeleteOpen = true"+ />+ </div>++ <ProjectEditModal+ v-model:open="isEditOpen"+ :project="currentProject"+ @save="onSave"+ />+ <ProjectDeleteDialog+ v-model:open="isDeleteOpen"+ :project="currentProject"+ @confirm="onDelete"+ />+ </div>+</template>++<script setup lang="ts">+import { computed, ref } from 'vue'+import { useI18n } from 'vue-i18n'+import { useRoute, useRouter } from 'vue-router'+import { storeToRefs } from 'pinia'+import { ALL_TASKS_LIST_ID } from 'taskview-api'+import { useGoalsStore } from '@/stores/goals.store'+import { useGoalPermissionsFor } from '@/composables/useGoalPermissions'+import type { Project, ProjectSaveData } from '@/components/features/projects/types'+import ProjectEditModal from '@/components/features/projects/parts/ProjectEditModal.vue'+import ProjectDeleteDialog from '@/components/features/projects/parts/ProjectDeleteDialog.vue'++const { t } = useI18n()+const route = useRoute()+const router = useRouter()+const goalsStore = useGoalsStore()+const { goals } = storeToRefs(goalsStore)++const open = ref(false)+const archiveOpen = ref(false)+const isEditOpen = ref(false)+const isDeleteOpen = ref(false)++const currentProjectId = computed(() => Number(route.params.projectId) || null)+const activeProjects = computed(() => goals.value.filter(p => p.archive === 0))+const archivedProjects = computed(() => goals.value.filter(p => p.archive === 1))+const currentProject = computed<Project | null>(() =>+ currentProjectId.value ? goalsStore.goalMap.get(currentProjectId.value) ?? null : null,+)+const isArchived = computed(() => currentProject.value?.archive === 1)++const { canEditGoal, canDeleteGoal } = useGoalPermissionsFor(currentProject)++function selectProject(project: Project) {+ open.value = false+ router.push({ name: 'user', params: { projectId: project.id, listId: ALL_TASKS_LIST_ID } })+}++async function archive() {+ if (!currentProject.value) return+ await goalsStore.updateGoal({ id: currentProject.value.id, archive: 1 })+}++async function restore() {+ if (!currentProject.value) return+ await goalsStore.updateGoal({ id: currentProject.value.id, archive: 0 })+}++async function onSave(data: ProjectSaveData) {+ if (!currentProject.value) return+ await goalsStore.updateGoal({+ id: currentProject.value.id,+ name: data.name,+ description: data.description,+ estimateUnit: data.estimateUnit,+ })+}++async function onDelete() {+ if (!currentProject.value) return+ await goalsStore.deleteGoal(currentProject.value.id)+ router.push({ name: 'user' })+}+</script>diff --git a/web/src/components/sidebars/dashboard-second/SidebarTools.vue b/web/src/components/sidebars/dashboard-second/SidebarTools.vuenew file mode 100644index 0000000..b4d7b9b--- /dev/null+++ b/web/src/components/sidebars/dashboard-second/SidebarTools.vue@@ -0,0 +1,111 @@+<template>+ <UCollapsible+ v-if="currentProject"+ v-model:open="open"+ class="flex flex-col gap-1 group"+ :ui="{ content: 'p-0' }"+ >+ <button+ type="button"+ class="flex items-center justify-between w-full px-2 py-1 cursor-pointer select-none"+ >+ <span class="text-xs font-semibold uppercase tracking-wide text-muted">{{ t('msg.tools') }}</span>+ <UIcon+ name="i-lucide-chevron-down"+ class="size-4 text-muted transition-transform duration-200 group-data-[state=closed]:-rotate-90"+ />+ </button>++ <template #content>+ <div class="flex flex-col gap-0.5 pt-1">+ <UButton+ v-for="tool in tools"+ :key="tool.key"+ :label="tool.label"+ :icon="tool.icon"+ color="neutral"+ :variant="tool.active() ? 'soft' : 'ghost'"+ block+ class="justify-start"+ :ui="{ base: 'rounded-xl' }"+ :to="tool.to"+ />+ </div>+ </template>+ </UCollapsible>+</template>++<script setup lang="ts">+import { computed, ref } from 'vue'+import { useI18n } from 'vue-i18n'+import { useRoute, type RouteLocationRaw } from 'vue-router'+import { ALL_TASKS_LIST_ID } from 'taskview-api'+import { useGoalsStore } from '@/stores/goals.store'+import { useGoalPermissionsFor } from '@/composables/useGoalPermissions'+import type { Project } from '@/components/features/projects/types'++type Tool = {+ key: string+ label: string+ icon: string+ to: RouteLocationRaw+ active: () => boolean+}++const { t } = useI18n()+const route = useRoute()+const goalsStore = useGoalsStore()++const open = ref(true)++const projectId = computed(() => Number(route.params.projectId) || null)+const currentProject = computed<Project | null>(() =>+ projectId.value ? goalsStore.goalMap.get(projectId.value) ?? null : null,+)++const {+ canViewKanban,+ canViewGraph,+ canViewSprints,+ canManageUsers,+ canViewIntegrations,+ canViewTimeTracking,+} = useGoalPermissionsFor(currentProject)++const tools = computed<Tool[]>(() => {+ const id = projectId.value+ if (!id) return []++ const list: Tool[] = [+ {+ key: 'tasks',+ label: t('msg.tasks'),+ icon: 'i-lucide-list-checks',+ to: { name: 'user', params: { projectId: id, listId: ALL_TASKS_LIST_ID } },+ active: () => route.name === 'user',+ },+ ]++ if (canViewKanban.value) {+ list.push({ key: 'kanban', label: t('contextMenu.kanban'), icon: 'i-lucide-kanban', to: { name: 'kanban', params: { projectId: id } }, active: () => route.name === 'kanban' })+ }+ if (canViewGraph.value) {+ list.push({ key: 'graph', label: t('contextMenu.graph'), icon: 'i-lucide-git-graph', to: { name: 'graph', params: { projectId: id } }, active: () => route.name === 'graph' })+ }+ if (canViewSprints.value) {+ list.push({ key: 'sprints', label: t('contextMenu.sprints'), icon: 'i-lucide-rocket', to: { name: 'sprints', params: { projectId: id } }, active: () => route.name === 'sprints' })+ }+ if (canManageUsers.value) {+ list.push({ key: 'collaboration', label: t('contextMenu.collaboration'), icon: 'i-lucide-users', to: { name: 'collaboration', params: { projectId: id } }, active: () => route.name === 'collaboration' })+ }+ if (canViewIntegrations.value) {+ list.push({ key: 'webhooks', label: t('contextMenu.webhooks'), icon: 'i-lucide-webhook', to: { name: 'webhooks', params: { projectId: id } }, active: () => route.name === 'webhooks' })+ list.push({ key: 'integrations', label: t('contextMenu.integrations'), icon: 'i-lucide-plug', to: { name: 'integrations', params: { projectId: id } }, active: () => route.name === 'integrations' })+ }+ if (canViewTimeTracking.value) {+ list.push({ key: 'timeReports', label: t('contextMenu.timeReports'), icon: 'i-lucide-clock', to: { name: 'project-time-reports', params: { projectId: id } }, active: () => route.name === 'project-time-reports' })+ }++ return list+})+</script>diff --git a/web/src/composables/useGoalListOptions.ts b/web/src/composables/useGoalListOptions.tsnew file mode 100644index 0000000..63e559a--- /dev/null+++ b/web/src/composables/useGoalListOptions.ts@@ -0,0 +1,31 @@+import { computed } from 'vue'+import { useI18n } from 'vue-i18n'+import { useGoalListsStore } from '@/stores/goal-lists.store'+import { useProjectContext } from '@/composables/useProjectContext'++export type ListValue = number | null++export type ListOption = {+ value: ListValue+ label: string+ icon: string+ iconClass: string+}++export function useGoalListOptions() {+ const { t } = useI18n()+ const goalListsStore = useGoalListsStore()+ const projectContext = useProjectContext()++ const lists = computed(() => projectContext?.lists.value ?? goalListsStore.lists)++ const options = computed<ListOption[]>(() => [+ { value: null, label: t('tasks.noList'), icon: 'i-lucide-inbox', iconClass: 'text-dimmed' },+ ...lists.value.map(list => ({ value: list.id, label: list.name, icon: 'i-lucide-list', iconClass: 'text-dimmed' })),+ ])++ const findOption = (value: ListValue): ListOption | undefined =>+ options.value.find(o => o.value === value)++ return { options, findOption }+}diff --git a/web/src/composables/useKanbanStatusOptions.ts b/web/src/composables/useKanbanStatusOptions.tsnew file mode 100644index 0000000..4e7f29e--- /dev/null+++ b/web/src/composables/useKanbanStatusOptions.ts@@ -0,0 +1,34 @@+import { computed } from 'vue'+import { useI18n } from 'vue-i18n'+import { useKanbanStore } from '@/stores/kanban.store'+import { useProjectContext } from '@/composables/useProjectContext'+import { DEFAULT_ID } from '@/types/app.types'+import type { TvDropdownOption } from '@/types/tvDropdown.types'++export type StatusValue = number | null++export function useKanbanStatusOptions() {+ const { t } = useI18n()+ const kanbanStore = useKanbanStore()+ const projectContext = useProjectContext()++ const statuses = computed(() =>+ projectContext ? projectContext.statuses.value : kanbanStore.statuses,+ )++ const resolveLabel = (name: string): string => (name.startsWith('msg.') ? t(name) : name)++ const options = computed<TvDropdownOption<StatusValue>[]>(() =>+ statuses.value.map(status => ({+ value: status.id === DEFAULT_ID ? null : status.id,+ label: resolveLabel(status.name),+ icon: 'i-lucide-circle-dot',+ iconClass: 'text-dimmed',+ })),+ )++ const findOption = (value: StatusValue): TvDropdownOption<StatusValue> | undefined =>+ options.value.find(o => o.value === value)++ return { options, findOption }+}diff --git a/web/src/composables/useLsRef.ts b/web/src/composables/useLsRef.tsnew file mode 100644index 0000000..1f766fe--- /dev/null+++ b/web/src/composables/useLsRef.ts@@ -0,0 +1,39 @@+import { ref, watch, getCurrentScope, onScopeDispose, type Ref } from 'vue'+import { $ls } from '@/plugins/axios'++export function useLsRef<T>(key: string, defaultValue: T): Ref<T> {+ const state = ref(defaultValue) as Ref<T>+ let loaded = false+ let disposed = false++ $ls.getValue(key).then((raw) => {+ if (disposed || raw === null) {+ loaded = true+ return+ }+ try {+ state.value = JSON.parse(raw) as T+ } catch {+ state.value = raw as unknown as T+ }+ loaded = true+ })++ const stop = watch(+ state,+ (value) => {+ if (!loaded || disposed) return+ $ls.setValue(key, JSON.stringify(value))+ },+ { deep: true },+ )++ if (getCurrentScope()) {+ onScopeDispose(() => {+ disposed = true+ stop()+ })+ }++ return state+}diff --git a/web/src/composables/useNuxtUiTaskItemStyles.ts b/web/src/composables/useNuxtUiTaskItemStyles.tsnew file mode 100644index 0000000..e08c8be--- /dev/null+++ b/web/src/composables/useNuxtUiTaskItemStyles.ts@@ -0,0 +1,28 @@+import { ref } from 'vue'+import type { ButtonProps } from '@nuxt/ui'++const ACTIVATOR_BASE = 'rounded-14! px-3.5! text-base h-13! font-normal!'+const DROPDOWN_ITEM_BASE = 'h-11 rounded-10!'++export function useNuxtUiTaskItemStyles() {+ const buttonStyles = ref<ButtonProps['ui']>({+ base: ACTIVATOR_BASE,+ })+ const dropdownItemStyles = ref<ButtonProps['ui']>({+ base: DROPDOWN_ITEM_BASE,+ })+ const dropdownItemUi = (leadingIcon: string): ButtonProps['ui'] => ({+ base: DROPDOWN_ITEM_BASE,+ leadingIcon,+ })+ const activatorUi = (leadingIcon?: string): ButtonProps['ui'] => ({+ base: ACTIVATOR_BASE,+ leadingIcon: `${leadingIcon ?? ''} size-5`,+ })+ return {+ buttonStyles,+ dropdownItemStyles,+ dropdownItemUi,+ activatorUi,+ }+}diff --git a/web/src/composables/useOrgSwitcher.ts b/web/src/composables/useOrgSwitcher.tsnew file mode 100644index 0000000..2af454c--- /dev/null+++ b/web/src/composables/useOrgSwitcher.ts@@ -0,0 +1,20 @@+import { useRouter } from 'vue-router'+import type { Organization } from 'taskview-api'+import { useOrganizationStore } from '@/stores/organization.store'++export function useOrgSwitcher() {+ const router = useRouter()+ const orgStore = useOrganizationStore()++ function switchOrg(org: Organization) {+ if (org.id === orgStore.currentOrg?.id) return+ orgStore.setCurrentOrg(org)+ router.push({ name: 'user', params: { orgSlug: org.slug } })+ }++ function isCurrentOrg(orgId: Organization['id']): boolean {+ return orgStore.currentOrg?.id === orgId+ }++ return { switchOrg, isCurrentOrg }+}diff --git a/web/src/composables/usePriorityOptions.ts b/web/src/composables/usePriorityOptions.tsnew file mode 100644index 0000000..6d8ba4a--- /dev/null+++ b/web/src/composables/usePriorityOptions.ts@@ -0,0 +1,44 @@+import { computed } from 'vue'+import { useI18n } from 'vue-i18n'+import type { TaskBase } from 'taskview-api'+import { PRIORITY_COLORS } from '@/types/tasks.types'++export type PriorityId = NonNullable<TaskBase['priorityId']>+export type PriorityValue = PriorityId | null | undefined++export type PriorityOption = {+ value: PriorityId+ label: string+ description?: string+ color: string+ icon: string+ /** Tailwind text-color class for the flag icon (exact priority color). */+ iconClass: string+}++export function usePriorityOptions() {+ const { t } = useI18n()++ const options = computed<PriorityOption[]>(() => [+ {+ value: 3, label: t('tasks.priorityHigh'),+ //description: t('tasks.priorityHighDesc'),+ color: PRIORITY_COLORS['3'].color, icon: 'i-lucide-flag', iconClass: 'text-[#FF1744]'+ },+ {+ value: 2, label: t('tasks.priorityMedium'),+ // description: t('tasks.priorityMediumDesc'),+ color: PRIORITY_COLORS['2'].color, icon: 'i-lucide-flag', iconClass: 'text-[#FF9100]'+ },+ {+ value: 1, label: t('tasks.priorityLow'),+ // description: t('tasks.priorityLowDesc'),+ color: PRIORITY_COLORS['1'].color, icon: 'i-lucide-flag', iconClass: 'text-[#38D681]'+ },+ ])++ const findOption = (value: PriorityValue): PriorityOption | undefined =>+ value == null ? undefined : options.value.find(o => o.value === value)++ return { options, findOption }+}diff --git a/web/src/composables/useUserOptions.ts b/web/src/composables/useUserOptions.tsnew file mode 100644index 0000000..0a1f3d5--- /dev/null+++ b/web/src/composables/useUserOptions.ts@@ -0,0 +1,31 @@+import { computed } from 'vue'+import type { CollaborationResponseFetchAllUsers } from 'taskview-api'+import { useCollaborationStore } from '@/stores/collaboration.store'+import { useProjectContext } from '@/composables/useProjectContext'+import type { TvDropdownOption } from '@/types/tvDropdown.types'++export type UserValue = number++function getUserDisplayName(user: CollaborationResponseFetchAllUsers): string {+ return user.email+}++export function useUserOptions() {+ const collaborationStore = useCollaborationStore()+ const projectContext = useProjectContext()++ const users = computed(() =>+ projectContext ? projectContext.users.value : collaborationStore.users,+ )++ const options = computed<TvDropdownOption<UserValue>[]>(() =>+ users.value.map(user => ({+ value: user.id,+ label: getUserDisplayName(user),+ icon: 'i-lucide-at-sign',+ iconClass: 'text-dimmed',+ })),+ )++ return { options, users }+}diff --git a/web/src/helpers/recurrence.ts b/web/src/helpers/recurrence.tsindex 5ad7642..a9057b1 100644--- a/web/src/helpers/recurrence.ts+++ b/web/src/helpers/recurrence.ts@@ -112,6 +112,16 @@ export function previewOccurrences(args: { rrule: string; dtstart: Date; limit:* without one yields a date-only 'YYYY-MM-DD' iso so the backend keeps it* date-only instead of treating a midnight anchor as a real 00:00 deadline.*/+/**+ * Parse a rule's stored dtstart into a Date whose UTC components are the wall+ * clock. The value can arrive as a DB timestamp ('YYYY-MM-DD HH:mm:ss') or as+ * an ISO string with a trailing 'Z' — both must be read as floating wall-clock.+ */+export function parseRuleDtstart(value: string): Date {+ const iso = value.replace(' ', 'T')+ return new Date(/[zZ]$/.test(iso) ? iso : `${iso}Z`)+}+export function dtstartForTask(args: { startDate: string | null; startTime: string | null }): { date: Date; iso: string } {if (args.startDate && args.startTime?.match(/^\d{2}:\d{2}/)) {const instant = new Date(`${args.startDate}T${args.startTime.slice(0, 5)}:00Z`)diff --git a/web/src/layouts/UserLayout.vue b/web/src/layouts/UserLayout.vueindex 6d9adeb..2175bdb 100644--- a/web/src/layouts/UserLayout.vue+++ b/web/src/layouts/UserLayout.vue@@ -6,32 +6,8 @@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' }"- >- <div class="flex items-center justify-between px-1 gap-2">- <TvGoalLikeItem- :to="{ name: 'user' }"- variant="taskview"- class="flex-1"- >- {{ t('main') }}- </TvGoalLikeItem>- <ActiveTimerIndicator />- <NotificationBell />- </div>-- <ProjectsSidebar />-- <template #footer="{ collapsed }">- <UserMenu :collapsed="collapsed" />- </template>- </UDashboardSidebar>+ <DashboardSidebarFirst v-if="appStore.sidebarView === 'first'" />+ <DashboardSidebarSecond v-else /><RouterView /></UDashboardGroup>@@ -46,14 +22,12 @@ import { useRoute, useRouter } from 'vue-router'import { useEventListener } from '@vueuse/core'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 ConnectionStatusBanner from '@/components/ConnectionStatusBanner.vue'-import ProjectsSidebar from '@/components/features/projects/ProjectsSidebar.vue'-import NotificationBell from '@/components/NotificationBell.vue'-import ActiveTimerIndicator from '@/components/ActiveTimerIndicator.vue'+import DashboardSidebarFirst from '@/components/sidebars/DashboardSidebarFirst.vue'+import DashboardSidebarSecond from '@/components/sidebars/DashboardSidebarSecond.vue'import { useCentrifugo } from '@/composables/useCentrifugo'import { usePushNotifications } from '@/composables/usePushNotifications'import { useGoalsStore } from '@/stores/goals.store'@@ -61,7 +35,6 @@ import { useOrganizationStore } from '@/stores/organization.store'import { useTimeTrackingStore } from '@/stores/time-tracking.store'import { useUiPreferencesStore } from '@/stores/uiPreferences.store'-const { isSidebarOpen, isSidebarCollapsed } = useDashboard()const { connect: connectCentrifugo } = useCentrifugo()const { init: initPush } = usePushNotifications()const { t } = useI18n()@@ -119,6 +92,7 @@ App.addListener('appStateChange', async ({ isActive }) => {onMounted(async () => {console.log('-------------------------------- onMounted push notifications --------------------------------')appStore.initTaskDetailDisplayMode()+ appStore.initSidebarView()connectCentrifugo()initPush()diff --git a/web/src/locales/en.ts b/web/src/locales/en.tsindex 7741b36..15cd852 100644--- a/web/src/locales/en.ts+++ b/web/src/locales/en.ts@@ -100,6 +100,7 @@ export default {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',+ createNew: 'Create new project',add: 'Add project',},contextMenu: {@@ -161,6 +162,8 @@ export default {},msg: {allTasks: 'Backlog',+ tools: 'Tools',+ tasks: 'Tasks',todayTasks: 'Today',upcomingTasks: 'Upcoming',lastTasks: 'Recent Tasks',@@ -198,6 +201,7 @@ export default {startDate: 'Start date',endDate: 'End date',selectTime: 'Select time',+ selectRange: 'Select range',today: 'Today',tomorrow: 'Tomorrow',yesterday: 'Yesterday',@@ -216,12 +220,24 @@ export default {selectTime: 'Select time',notifyOnOccurrence: 'Remind about each occurrence',preview: 'Next occurrences',+ repeatEvery: 'Repeat every',+ specifyTime: 'Specify time',+ occurrenceTime: 'Occurrence time',+ datesCount: '{n} dates',+ previewFooterTime: '{period} · at {time}',frequency: {daily: 'Daily',weekly: 'Weekly',monthly: 'Monthly',yearly: 'Yearly',},+ freqShort: {+ none: 'None',+ daily: 'Day',+ weekly: 'Week',+ monthly: 'Month',+ yearly: 'Year',+ },units: {daily: 'days',weekly: 'weeks',@@ -413,6 +429,9 @@ export default {priorityLow: 'Low',priorityMedium: 'Medium',priorityHigh: 'High',+ priorityLowDesc: 'Can wait',+ priorityMediumDesc: 'Normal importance',+ priorityHighDesc: 'Urgent, do first',dueDate: 'Due Date',deadline: 'Deadline',addDueDate: 'Add due date',@@ -455,6 +474,7 @@ export default {},tags: {createTag: 'Create tag',+ createNamed: 'Create «{name}»',editTag: 'Edit tag',name: 'Name',namePlaceholder: 'Tag name',@@ -510,6 +530,9 @@ export default {taskDetailView: 'Task detail view',taskDetailSlideover: 'Side panel',taskDetailModal: 'Dialog',+ sidebarView: 'Sidebar view',+ sidebarViewSecond: 'Compact',+ sidebarViewFirst: 'Classic',site: 'Site',documentation: 'Documentation',github: 'GitHub repository',@@ -588,6 +611,7 @@ export default {},account: {title: 'Account settings',+ nav: 'Settings',management: 'Account management',deleteAccount: 'Delete account',deleteConfirm: 'Are you sure you want to delete the account and all associated data?',diff --git a/web/src/locales/ru.ts b/web/src/locales/ru.tsindex 4ab993e..269b7b5 100644--- a/web/src/locales/ru.ts+++ b/web/src/locales/ru.ts@@ -100,6 +100,7 @@ export default {deleteConfirm: 'Удалить проект',deleteMessage: 'Вы уверены, что хотите удалить проект "{name}"? Будет удалена вся история проекта, включая историю изменений задач и списков. Это действие нельзя отменить.',addPlaceholder: 'Введите название проекта',+ createNew: 'Создать новый проект',add: 'Добавить проект',},contextMenu: {@@ -161,6 +162,8 @@ export default {},msg: {allTasks: 'Backlog',+ tools: 'Инструменты',+ tasks: 'Задачи',todayTasks: 'Сегодня',upcomingTasks: 'Предстоящие',lastTasks: 'Последние задачи',@@ -198,6 +201,7 @@ export default {startDate: 'Дата начала',endDate: 'Дата окончания',selectTime: 'Выбрать время',+ selectRange: 'Выбрать период',today: 'Сегодня',tomorrow: 'Завтра',yesterday: 'Вчера',@@ -216,12 +220,24 @@ export default {selectTime: 'Выбрать время',notifyOnOccurrence: 'Напоминать о каждом повторении',preview: 'Ближайшие повторения',+ repeatEvery: 'Повторять каждые',+ specifyTime: 'Указать время',+ occurrenceTime: 'Время повторения',+ datesCount: '{n} дат',+ previewFooterTime: '{period} · в {time}',frequency: {daily: 'Ежедневно',weekly: 'Еженедельно',monthly: 'Ежемесячно',yearly: 'Ежегодно',},+ freqShort: {+ none: 'Нет',+ daily: 'День',+ weekly: 'Неделя',+ monthly: 'Месяц',+ yearly: 'Год',+ },units: {daily: 'дн.',weekly: 'нед.',@@ -386,6 +402,9 @@ export default {priorityLow: 'Низкий',priorityMedium: 'Средний',priorityHigh: 'Высокий',+ priorityLowDesc: 'Можно отложить',+ priorityMediumDesc: 'Обычная важность',+ priorityHighDesc: 'Срочно, в первую очередь',dueDate: 'Срок выполнения',deadline: 'Дедлайн',addDueDate: 'Добавить срок',@@ -428,6 +447,7 @@ export default {},tags: {createTag: 'Создать тег',+ createNamed: 'Создать «{name}»',editTag: 'Редактировать тег',name: 'Название',namePlaceholder: 'Название тега',@@ -483,6 +503,9 @@ export default {taskDetailView: 'Вид деталей задачи',taskDetailSlideover: 'Боковая панель',taskDetailModal: 'Диалог',+ sidebarView: 'Вид сайдбара',+ sidebarViewSecond: 'Компактный',+ sidebarViewFirst: 'Классический',site: 'Сайт',documentation: 'Документация',github: 'GitHub репозиторий',@@ -561,6 +584,7 @@ export default {},account: {title: 'Настройки аккаунта',+ nav: 'Настройки',management: 'Управление аккаунтом',deleteAccount: 'Удалить аккаунт',deleteConfirm: 'Вы действительно хотите удалить аккаунт и все связанные данные?',diff --git a/web/src/pages/user/graph.vue b/web/src/pages/user/graph.vueindex ff79dc7..6113eb4 100644--- a/web/src/pages/user/graph.vue+++ b/web/src/pages/user/graph.vue@@ -64,14 +64,16 @@ import { useAppRouteInfo } from '@/composables/useAppRouteInfo'import { useFiltersFromQuery } from '@/composables/useFiltersFromQuery'import { useGoalsStore } from '@/stores/goals.store'import { useProjectDataLoader } from '@/composables/useProjectDataLoader'+import { useTaskView } from '@/composables/useTaskView'const { t } = useI18n()const { projectId } = useAppRouteInfo()const goalsStore = useGoalsStore()const projectName = computed(() => goalsStore.goalMap.get(projectId.value)?.name ?? '')+const { isDesktop } = useTaskView()const { selectedListIds, selectedAssigneeIds, selectedSprintId, hasActiveFilters } = useFiltersFromQuery()-const showFilters = ref(hasActiveFilters.value)+const showFilters = ref(isDesktop.value || hasActiveFilters.value)useProjectDataLoader(projectId)</script>diff --git a/web/src/pages/user/kanban.vue b/web/src/pages/user/kanban.vueindex 1b2139e..6972676 100644--- a/web/src/pages/user/kanban.vue+++ b/web/src/pages/user/kanban.vue@@ -66,6 +66,7 @@ import TvKanbanFilters from '@/components/features/base/TvKanbanFilters.vue'import { useAppRouteInfo } from '@/composables/useAppRouteInfo'import { useFiltersFromQuery } from '@/composables/useFiltersFromQuery'import { useProjectDataLoader } from '@/composables/useProjectDataLoader'+import { useTaskView } from '@/composables/useTaskView'import { useGoalsStore } from '@/stores/goals.store'import { useKanbanStore } from '@/stores/kanban.store'@@ -75,12 +76,20 @@ const goalsStore = useGoalsStore()const kanbanStore = useKanbanStore()const projectName = computed(() => goalsStore.goalMap.get(projectId.value)?.name ?? '')+const { isDesktop } = useTaskView()const { selectedListIds, selectedAssigneeIds, selectedSprintId, hasActiveFilters } = useFiltersFromQuery()-const showFilters = ref(hasActiveFilters.value)+const showFilters = ref(isDesktop.value || hasActiveFilters.value)++kanbanStore.setFilters({+ listIds: selectedListIds.value,+ assigneeIds: selectedAssigneeIds.value,+ sprintId: selectedSprintId.value ?? undefined,+})watch([selectedListIds, selectedAssigneeIds, selectedSprintId], ([listIds, assigneeIds, sprintId]) => {kanbanStore.setFilters({ listIds, assigneeIds, sprintId: sprintId ?? undefined })-}, { immediate: true, deep: true })+ kanbanStore.reloadColumns()+}, { deep: true })useProjectDataLoader(projectId)</script>diff --git a/web/src/pages/user/ui-customization.vue b/web/src/pages/user/ui-customization.vueindex fa036fa..2793412 100644--- a/web/src/pages/user/ui-customization.vue+++ b/web/src/pages/user/ui-customization.vue@@ -18,7 +18,7 @@:items="tabs":orientation="isMobile ? 'vertical' : 'horizontal'"class="w-full"- :ui="{ root: 'flex-col', list: 'w-full' }"+ :ui="{ root: 'flex-col', list: 'w-full rounded-xl', trigger: 'rounded-lg', indicator: 'rounded-lg' }"><templatev-for="s in sections"diff --git a/web/src/stores/app.store.ts b/web/src/stores/app.store.tsindex 44cdf55..f821df8 100644--- a/web/src/stores/app.store.ts+++ b/web/src/stores/app.store.ts@@ -1,14 +1,16 @@import { defineStore } from 'pinia'-import type { AppStoreState, TaskDetailDisplayMode } from '@/types/global-app.types'+import type { AppStoreState, SidebarView, TaskDetailDisplayMode } from '@/types/global-app.types'import { $ls } from '@/plugins/axios'const TASK_DETAIL_MODE_KEY = 'taskview:taskDetailDisplayMode'+const SIDEBAR_VIEW_KEY = 'taskview:sidebarView'export const useAppStore = defineStore('app', {state(): AppStoreState {return {drawer: false,taskDetailDisplayMode: 'modal',+ sidebarView: 'second',}},actions: {@@ -18,6 +20,12 @@ export const useAppStore = defineStore('app', {this.taskDetailDisplayMode = stored}},+ async initSidebarView() {+ const stored = await $ls.getValue(SIDEBAR_VIEW_KEY)+ if (stored === 'first' || stored === 'second') {+ this.sidebarView = stored+ }+ },setDrawer(state: boolean) {this.drawer = state},@@ -25,5 +33,9 @@ export const useAppStore = defineStore('app', {this.taskDetailDisplayMode = mode$ls.setValue(TASK_DETAIL_MODE_KEY, mode)},+ setSidebarView(view: SidebarView) {+ this.sidebarView = view+ $ls.setValue(SIDEBAR_VIEW_KEY, view)+ },},})diff --git a/web/src/stores/kanban.store.ts b/web/src/stores/kanban.store.tsindex ac7ffea..cf71d15 100644--- a/web/src/stores/kanban.store.ts+++ b/web/src/stores/kanban.store.ts@@ -168,12 +168,15 @@ export const useKanbanStore = defineStore('kanban', {}},- async setFilters(filters: KanbanFilters) {+ setFilters(filters: KanbanFilters) {this.filters = filters+ },++ async reloadColumns() {this.tasksData = {}- for (const status of this.statuses) {- await this.fetchTasksForColumn(this.goalId, status.id === DEFAULT_ID ? null : status.id, null)- }+ await Promise.all(this.statuses.map((status) =>+ this.fetchTasksForColumn(this.goalId, status.id === DEFAULT_ID ? null : status.id, null),+ ))},async deleteStatus(data: KanbanArgDeleteColumn) {diff --git a/web/src/types/global-app.types.ts b/web/src/types/global-app.types.tsindex 95c3d52..ddcd2be 100644--- a/web/src/types/global-app.types.ts+++ b/web/src/types/global-app.types.ts@@ -5,7 +5,10 @@ export type AppResponse<S> = {export type TaskDetailDisplayMode = 'slideover' | 'modal';+export type SidebarView = 'first' | 'second';+export type AppStoreState = {drawer: boolean;taskDetailDisplayMode: TaskDetailDisplayMode;+ sidebarView: SidebarView;};diff --git a/web/src/types/tvDate.types.ts b/web/src/types/tvDate.types.tsnew file mode 100644index 0000000..283b326--- /dev/null+++ b/web/src/types/tvDate.types.ts@@ -0,0 +1,6 @@+import type { CalendarDate } from '@internationalized/date'++export type DateRangeValue = {+ start: CalendarDate | undefined+ end: CalendarDate | undefined+} | nulldiff --git a/web/src/types/tvDropdown.types.ts b/web/src/types/tvDropdown.types.tsnew file mode 100644index 0000000..7ece50f--- /dev/null+++ b/web/src/types/tvDropdown.types.ts@@ -0,0 +1,8 @@+export type TvDropdownOption<T> = {+ value: T+ label: string+ description?: string+ icon?: string+ iconClass?: string+ color?: string+}diff --git a/web/vite.config.ts b/web/vite.config.tsindex 8dbda2f..7d02b38 100644--- a/web/vite.config.ts+++ b/web/vite.config.ts@@ -30,8 +30,18 @@ export default defineConfig({vue(),ui({ui: {+ // Nuxt UI reads `ui.tv` at runtime (createTV) but omits it from the AppConfigUI type.+ // Teach tailwind-merge our custom radius scale so `rounded-10`/`rounded-14` are+ // recognized and properly dedupe the component default radius inside `:ui` overrides+ // (no `!` needed). See main.css @theme --radius-10 / --radius-14.+ ...({+ tv: { twMergeConfig: { extend: { theme: { radius: ['10', '14'] } } } },+ } as object),inputTime: {- slots: { base: 'text-base!' }+ slots: { base: 'text-base! rounded-10' },+ defaultVariants: {+ variant: 'soft'+ }},drawer: {slots: {@@ -56,13 +66,21 @@ export default defineConfig({fullscreen: {true: {content: 'py-safe',+ },+ false: {+ content: 'rounded-3xl ring-0',}}+ },+ },+ popover: {+ slots: {+ content: 'rounded-2xl'}},dashboardSearchButton: {slots: {- base: 'rounded-lg',+ base: 'rounded-xl',},},dashboardSearch: {@@ -82,19 +100,47 @@ export default defineConfig({},button: {slots: {- base: 'cursor-pointer',+ base: 'cursor-pointer rounded-14',},defaultVariants: {size: 'xl',},+ variants: {+ size: {+ xl: {+ leadingIcon: 'size-4.5',+ },+ lg: {+ leadingIcon: 'size-4',+ },+ md: {+ leadingIcon: 'size-3.5',+ }+ }+ }+ },+ inputNumber: {+ defaultVariants: {+ variant: 'soft'+ }},input: {slots: {- base: 'rounded-lg',+ base: 'rounded-xl',},defaultVariants: {size: 'xl',+ variant: 'soft',},+ variants: {+ size: {+ xl: {+ base: 'px-3.5',+ leadingIcon: 'size-4.5',+ leading: 'ps-3.5'+ },+ }+ }},textarea: {defaultVariants: {@@ -110,7 +156,15 @@ export default defineConfig({content: 'p-2',},},+ card: {+ slots: {+ root: 'rounded-3xl'+ }+ },pageCard: {+ slots: {+ container: 'sm:p-4'+ },variants: {variant: {taskview: {@@ -121,9 +175,30 @@ export default defineConfig({},},+ select: {+ defaultVariants: {+ size: 'xl'+ },+ slots: {+ content: 'rounded-2xl',+ item: 'before:rounded-xl',+ base: 'rounded-xl'+ }+ },+ selectMenu: {+ slots: {+ content: 'rounded-2xl',+ item: 'rounded-xl hover:bg-accented/40 before:rounded-xl',+ base: 'rounded-xl'+ },+ defaultVariants: {+ variant: 'soft',+ },+ },checkbox: {slots: {- base: 'ring-2 cursor-pointer',+ base: 'ring-2',+ root: 'cursor-pointer'},variants: {size: {@@ -131,6 +206,9 @@ export default defineConfig({base: 'size-5',container: 'h-5',},+ lg: {+ base: 'size-4',+ }},},defaultVariants: {