mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 11:07:55 -05:00
refac
This commit is contained in:
1 parent
f1bcf93696
commit
7de92922fa
135 files changed
+9068
-125
No files matched your search
@@ -2110,6 +2110,8 @@ ENABLE_CHANNELS = os.getenv('ENABLE_CHANNELS', 'False').lower() == 'true'
|
||||
|
||||
ENABLE_TEAMS = os.getenv('ENABLE_TEAMS', 'False').lower() == 'true'
|
||||
|
||||
ENABLE_TASKS = os.getenv('ENABLE_TASKS', 'False').lower() == 'true'
|
||||
|
||||
ENABLE_ENCRYPTED_CHANNELS = os.getenv('ENABLE_ENCRYPTED_CHANNELS', 'False').lower() == 'true'
|
||||
|
||||
ENABLE_APPS = os.getenv('ENABLE_APPS', 'False').lower() == 'true'
|
||||
@@ -3307,6 +3309,7 @@ DEFAULT_CONFIG = {
|
||||
'folders.max_file_count': FOLDER_MAX_FILE_COUNT,
|
||||
'channels.enable': ENABLE_CHANNELS,
|
||||
'teams.enable': ENABLE_TEAMS,
|
||||
'tasks.enable': ENABLE_TASKS,
|
||||
'channels.encryption.enable': ENABLE_ENCRYPTED_CHANNELS,
|
||||
'apps.enable': ENABLE_APPS,
|
||||
'channels.model_response_mode': CHANNEL_MODEL_RESPONSE_MODE,
|
||||
|
||||
@@ -419,6 +419,18 @@ class EventDefinitions(BaseModel):
|
||||
NOTE_DELETED: EventDefinition = EventDefinition(
|
||||
name='note.deleted', description='A note was deleted.', message='Note deleted'
|
||||
)
|
||||
TASK_CREATED: EventDefinition = EventDefinition(
|
||||
name='task.created', description='A task was created.', message='Task created'
|
||||
)
|
||||
TASK_UPDATED: EventDefinition = EventDefinition(
|
||||
name='task.updated', description='A task was updated.', message='Task updated'
|
||||
)
|
||||
TASK_ASSIGNED: EventDefinition = EventDefinition(
|
||||
name='task.assigned', description='A task was assigned to someone.', message='Task assigned'
|
||||
)
|
||||
TASK_DELETED: EventDefinition = EventDefinition(
|
||||
name='task.deleted', description='A task was deleted.', message='Task deleted'
|
||||
)
|
||||
MEMORY_CREATED: EventDefinition = EventDefinition(
|
||||
name='memory.created', description='A memory was created.', message='Memory created'
|
||||
)
|
||||
|
||||
@@ -187,6 +187,7 @@ from open_webui.routers import (
|
||||
search,
|
||||
skills,
|
||||
system_model,
|
||||
tasks,
|
||||
teams,
|
||||
tools,
|
||||
users,
|
||||
@@ -893,6 +894,7 @@ app.include_router(memories.router, prefix='/api/v1/memories', tags=['memories']
|
||||
app.include_router(folders.router, prefix='/api/v1/folders', tags=['folders'])
|
||||
app.include_router(groups.router, prefix='/api/v1/groups', tags=['groups'])
|
||||
app.include_router(teams.router, prefix='/api/v1/teams', tags=['teams'])
|
||||
app.include_router(tasks.router, prefix='/api/v1/tasks', tags=['tasks'])
|
||||
app.include_router(files.router, prefix='/api/v1/files', tags=['files'])
|
||||
app.include_router(functions.router, prefix='/api/v1/functions', tags=['functions'])
|
||||
app.include_router(evaluations.router, prefix='/api/v1/evaluations', tags=['evaluations'])
|
||||
@@ -2478,6 +2480,7 @@ async def get_app_config(request: Request):
|
||||
'channels.enable',
|
||||
'channels.encryption.enable',
|
||||
'teams.enable',
|
||||
'tasks.enable',
|
||||
'apps.enable',
|
||||
'calendar.enable',
|
||||
'automations.enable',
|
||||
@@ -2590,6 +2593,7 @@ async def get_app_config(request: Request):
|
||||
'folder_max_file_count': config.get('folders.max_file_count'),
|
||||
'enable_channels': config.get('channels.enable'),
|
||||
'enable_teams': config.get('teams.enable'),
|
||||
'enable_tasks': config.get('tasks.enable'),
|
||||
'enable_encrypted_channels': config.get('channels.encryption.enable'),
|
||||
'enable_apps': config.get('apps.enable'),
|
||||
'enable_calendar': config.get('calendar.enable'),
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
"""add tasks
|
||||
|
||||
Revision ID: d8f2a6c41e7b
|
||||
Revises: b7e4c2a9d1f3
|
||||
Create Date: 2026-12-04 12:00:00
|
||||
|
||||
A task is a unit of work that lives in a folder, numbered per folder from the folder's
|
||||
task_counter, so a number is never reused. Its status is an id from the folder's statuses,
|
||||
which also say its category. Its history keeps one row per changed field, as Jira does:
|
||||
the value the task held, and the name it went by then when that value is an id.
|
||||
A chat started from a task points back to it with task_id.
|
||||
"""
|
||||
|
||||
from collections.abc import Sequence
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision: str = 'd8f2a6c41e7b'
|
||||
down_revision: str | None = 'b7e4c2a9d1f3'
|
||||
branch_labels: str | Sequence[str] | None = None
|
||||
depends_on: str | Sequence[str] | None = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
inspector = sa.inspect(op.get_bind())
|
||||
existing_tables = set(inspector.get_table_names())
|
||||
|
||||
if 'task' not in existing_tables:
|
||||
op.create_table(
|
||||
'task',
|
||||
sa.Column('id', sa.Text(), primary_key=True, nullable=False),
|
||||
sa.Column('folder_id', sa.Text(), nullable=False),
|
||||
sa.Column('number', sa.BigInteger(), nullable=False),
|
||||
sa.Column('user_id', sa.Text(), nullable=False),
|
||||
sa.Column('title', sa.Text(), nullable=False),
|
||||
sa.Column('description', sa.Text(), nullable=True),
|
||||
sa.Column('status', sa.Text(), nullable=False),
|
||||
sa.Column('priority', sa.Text(), nullable=True),
|
||||
sa.Column('assignee_id', sa.Text(), nullable=True),
|
||||
sa.Column('due_date', sa.Text(), nullable=True),
|
||||
sa.Column('status_at', sa.BigInteger(), nullable=False),
|
||||
sa.Column('status_durations', sa.JSON(), nullable=True),
|
||||
sa.Column('started_at', sa.BigInteger(), nullable=True),
|
||||
sa.Column('completed_at', sa.BigInteger(), nullable=True),
|
||||
sa.Column('canceled_at', sa.BigInteger(), nullable=True),
|
||||
sa.Column('data', sa.JSON(), nullable=True),
|
||||
sa.Column('meta', sa.JSON(), nullable=True),
|
||||
sa.Column('created_at', sa.BigInteger(), nullable=False),
|
||||
sa.Column('updated_at', sa.BigInteger(), nullable=False),
|
||||
sa.UniqueConstraint('folder_id', 'number', name='uq_task_folder_number'),
|
||||
)
|
||||
op.create_index('ix_task_assignee_id', 'task', ['assignee_id'])
|
||||
op.create_index('ix_task_user_id', 'task', ['user_id'])
|
||||
|
||||
if 'task_history' not in existing_tables:
|
||||
op.create_table(
|
||||
'task_history',
|
||||
sa.Column('id', sa.Text(), primary_key=True, nullable=False),
|
||||
sa.Column('task_id', sa.Text(), sa.ForeignKey('task.id', ondelete='CASCADE'), nullable=False),
|
||||
sa.Column('user_id', sa.Text(), nullable=True),
|
||||
sa.Column('field', sa.Text(), nullable=False),
|
||||
sa.Column('old_value', sa.Text(), nullable=True),
|
||||
sa.Column('new_value', sa.Text(), nullable=True),
|
||||
sa.Column('old_name', sa.Text(), nullable=True),
|
||||
sa.Column('new_name', sa.Text(), nullable=True),
|
||||
sa.Column('created_at', sa.BigInteger(), nullable=False),
|
||||
)
|
||||
op.create_index('ix_task_history_task_id_created_at', 'task_history', ['task_id', 'created_at'])
|
||||
|
||||
folder_columns = {column['name'] for column in inspector.get_columns('folder')}
|
||||
if 'task_counter' not in folder_columns:
|
||||
op.add_column('folder', sa.Column('task_counter', sa.BigInteger(), nullable=False, server_default='0'))
|
||||
|
||||
chat_columns = {column['name'] for column in inspector.get_columns('chat')}
|
||||
if 'task_id' not in chat_columns:
|
||||
op.add_column('chat', sa.Column('task_id', sa.Text(), nullable=True))
|
||||
op.create_index('ix_chat_task_id', 'chat', ['task_id'])
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_index('ix_chat_task_id', table_name='chat')
|
||||
with op.batch_alter_table('chat') as batch:
|
||||
batch.drop_column('task_id')
|
||||
with op.batch_alter_table('folder') as batch:
|
||||
batch.drop_column('task_counter')
|
||||
op.drop_index('ix_task_history_task_id_created_at', table_name='task_history')
|
||||
op.drop_table('task_history')
|
||||
op.drop_index('ix_task_user_id', table_name='task')
|
||||
op.drop_index('ix_task_assignee_id', table_name='task')
|
||||
op.drop_table('task')
|
||||
@@ -118,7 +118,7 @@ class PanelTabs(ViewModel):
|
||||
class FolderPage(ViewModel):
|
||||
"""What a folder's own page showed: its section and the directory browsed in Files."""
|
||||
|
||||
section: Literal['overview', 'files', 'chats', 'notes', 'automations', 'knowledge']
|
||||
section: Literal['overview', 'files', 'chats', 'tasks', 'notes', 'automations', 'knowledge']
|
||||
directory: str | None = None
|
||||
|
||||
|
||||
|
||||
@@ -209,6 +209,8 @@ class Chat(Base): # database table mapping for chat entity
|
||||
meta = Column(JSON, server_default='{}')
|
||||
variables = Column(JSON, nullable=True)
|
||||
folder_id = Column(Text, nullable=True)
|
||||
# The task this chat was started from, if any.
|
||||
task_id = Column(Text, nullable=True)
|
||||
|
||||
todos = Column(JSON, nullable=True)
|
||||
summary = Column(Text, nullable=True)
|
||||
@@ -220,6 +222,7 @@ class Chat(Base): # database table mapping for chat entity
|
||||
__table_args__ = (
|
||||
# Performance indexes for common queries
|
||||
Index('folder_id_idx', 'folder_id'),
|
||||
Index('ix_chat_task_id', 'task_id'),
|
||||
Index('user_id_pinned_idx', 'user_id', 'pinned'),
|
||||
Index('user_id_archived_idx', 'user_id', 'archived'),
|
||||
Index('updated_at_user_id_idx', 'updated_at', 'user_id'),
|
||||
@@ -261,6 +264,7 @@ class ChatModel(BaseModel):
|
||||
meta: dict = {}
|
||||
variables: dict = {}
|
||||
folder_id: str | None = None
|
||||
task_id: str | None = None
|
||||
|
||||
todos: list | None = None
|
||||
summary: str | None = None
|
||||
@@ -312,6 +316,7 @@ class ChatForm(BaseModel):
|
||||
chat: dict
|
||||
variables: dict | None = None
|
||||
folder_id: str | None = None
|
||||
task_id: str | None = None
|
||||
|
||||
|
||||
class ChatImportForm(ChatForm):
|
||||
@@ -344,6 +349,7 @@ class ChatResponse(BaseModel):
|
||||
meta: dict = {}
|
||||
variables: dict = {}
|
||||
folder_id: str | None = None
|
||||
task_id: str | None = None
|
||||
|
||||
todos: list | None = None
|
||||
summary: str | None = None
|
||||
@@ -731,6 +737,7 @@ class ChatTable:
|
||||
),
|
||||
'chat': self._clean_null_bytes(form_data.chat),
|
||||
'folder_id': form_data.folder_id,
|
||||
'task_id': form_data.task_id,
|
||||
'meta': internal_meta or {},
|
||||
'timer_at': timer_at,
|
||||
'variables': form_data.variables or {},
|
||||
|
||||
@@ -9,7 +9,7 @@ from pydantic import BaseModel, ConfigDict, Field, field_validator
|
||||
from sqlalchemy import JSON, BigInteger, Column, Index, Text, UniqueConstraint, case, delete, func, select, update
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
ResourceType = Literal['model', 'knowledge', 'prompt', 'skill', 'tool', 'note', 'chat']
|
||||
ResourceType = Literal['model', 'knowledge', 'prompt', 'skill', 'tool', 'note', 'chat', 'task']
|
||||
|
||||
|
||||
class Comment(Base):
|
||||
|
||||
@@ -27,6 +27,8 @@ class Folder(Base):
|
||||
meta = Column(JSON, nullable=True)
|
||||
data = Column(JSON, nullable=True)
|
||||
is_expanded = Column(Boolean, default=False)
|
||||
# The last task number given out here; tasks take the next one, so numbers are never reused.
|
||||
task_counter = Column(BigInteger, nullable=False, server_default='0')
|
||||
created_at = Column(BigInteger)
|
||||
updated_at = Column(BigInteger)
|
||||
|
||||
|
||||
@@ -59,6 +59,10 @@ class ChatMentionData(NotificationData):
|
||||
model_name: str
|
||||
|
||||
|
||||
class TaskAssignedData(NotificationData):
|
||||
number: int
|
||||
|
||||
|
||||
class SystemData(NotificationData):
|
||||
message: str = Field(min_length=1, max_length=2000)
|
||||
|
||||
@@ -72,6 +76,7 @@ DATA_TYPES = {
|
||||
'channel.replied': NotificationData,
|
||||
'calendar.alert_triggered': ReminderData,
|
||||
'automation.run_failed': NotificationData,
|
||||
'task.assigned': TaskAssignedData,
|
||||
'system.announcement': SystemData,
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class ResourceTag(Base):
|
||||
__tablename__ = 'resource_tag'
|
||||
|
||||
id = Column(Text, primary_key=True)
|
||||
resource_type = Column(Text, nullable=False) # "chat" or "note"
|
||||
resource_type = Column(Text, nullable=False) # "chat", "note" or "task"
|
||||
resource_id = Column(Text, nullable=False)
|
||||
tag_id = Column(Text, nullable=False)
|
||||
user_id = Column(Text, nullable=False) # the resource's owner, whose tag this is
|
||||
|
||||
@@ -0,0 +1,645 @@
|
||||
import re
|
||||
import time
|
||||
import uuid
|
||||
from datetime import date
|
||||
from typing import Literal, Optional
|
||||
|
||||
from open_webui.internal.db import Base, get_async_db_context
|
||||
from open_webui.models.comments import delete_resource_comments
|
||||
from open_webui.models.folders import Folder
|
||||
from open_webui.models.notifications import emit_changes
|
||||
from open_webui.models.tags import Tags, delete_resource_tags, get_tag_id, resource_tag_filter
|
||||
from open_webui.models.users import User
|
||||
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
||||
from sqlalchemy import (
|
||||
JSON,
|
||||
BigInteger,
|
||||
Column,
|
||||
ForeignKey,
|
||||
Index,
|
||||
Text,
|
||||
UniqueConstraint,
|
||||
and_,
|
||||
case,
|
||||
delete,
|
||||
false,
|
||||
func,
|
||||
or_,
|
||||
select,
|
||||
update,
|
||||
)
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
# Priorities are the folder chats' scale, most urgent first; a task without one stores null.
|
||||
TASK_PRIORITIES = ('urgent', 'high', 'medium', 'low')
|
||||
TaskPriority = Literal['urgent', 'high', 'medium', 'low']
|
||||
|
||||
# A status's glyph is its category: views across folders group by it, moves map by it, and it sets
|
||||
# the started, completed and canceled times. It's optional: a status without one has no category,
|
||||
# and its tasks have none of those times.
|
||||
STATUS_GLYPHS = ('backlog', 'todo', 'in_progress', 'waiting', 'done', 'canceled')
|
||||
STARTED_GLYPHS = ('in_progress', 'waiting')
|
||||
|
||||
# The workflow of a folder that has no statuses of its own. It isn't written to the folder;
|
||||
# the ids are the glyph names, so tasks keep their status if the folder later saves these.
|
||||
DEFAULT_TASK_STATUSES = [
|
||||
{'id': 'backlog', 'name': 'Backlog', 'glyph': 'backlog', 'color': 'gray'},
|
||||
{'id': 'todo', 'name': 'To do', 'glyph': 'todo', 'color': 'gray'},
|
||||
{'id': 'in_progress', 'name': 'In progress', 'glyph': 'in_progress', 'color': 'amber'},
|
||||
{'id': 'done', 'name': 'Done', 'glyph': 'done', 'color': 'violet'},
|
||||
{'id': 'canceled', 'name': 'Canceled', 'glyph': 'canceled', 'color': 'gray'},
|
||||
]
|
||||
|
||||
TASK_PAGE_SIZE = 50 # FOLDER_PAGE_SIZE in src/lib/utils/folders.ts
|
||||
TASK_SORT_KEYS = ('updated_at', 'created_at', 'priority', 'due_date', 'title')
|
||||
# Linear leaves edits made in an issue's first three minutes out of its history.
|
||||
HISTORY_GRACE_SECONDS = 3 * 60
|
||||
|
||||
|
||||
def task_statuses(folder_meta: dict | None) -> list[dict]:
|
||||
"""The folder's statuses in order, or the default workflow when it has none."""
|
||||
statuses = []
|
||||
for item in (folder_meta or {}).get('statuses') or []:
|
||||
if (
|
||||
isinstance(item, dict)
|
||||
and isinstance(item.get('id'), str)
|
||||
and 0 < len(item['id']) <= 64
|
||||
and item['id'] != 'none'
|
||||
and all(status['id'] != item['id'] for status in statuses)
|
||||
):
|
||||
glyph = item.get('glyph') if item.get('glyph') in STATUS_GLYPHS else None
|
||||
statuses.append({**item, 'glyph': glyph})
|
||||
return statuses or DEFAULT_TASK_STATUSES
|
||||
|
||||
|
||||
def status_glyph(statuses: list[dict], status: str | None) -> str | None:
|
||||
return next((item['glyph'] for item in statuses if item['id'] == status), None)
|
||||
|
||||
|
||||
def default_status(statuses: list[dict]) -> str:
|
||||
"""Where new tasks start: the first status to do, else the first status."""
|
||||
return next((item['id'] for item in statuses if item['glyph'] == 'todo'), statuses[0]['id'])
|
||||
|
||||
|
||||
def matching_status(statuses: list[dict], glyph: str | None) -> str:
|
||||
"""The first status with this glyph, for a task whose status is gone or that changes folder."""
|
||||
return next((item['id'] for item in statuses if item['glyph'] == glyph), default_status(statuses))
|
||||
|
||||
|
||||
def parse_due_date(value: str | None) -> str | None:
|
||||
if value is None:
|
||||
return None
|
||||
return date.fromisoformat(value).isoformat()
|
||||
|
||||
|
||||
# Task DB Schema
|
||||
|
||||
|
||||
class Task(Base):
|
||||
__tablename__ = 'task'
|
||||
|
||||
id = Column(Text, primary_key=True)
|
||||
folder_id = Column(Text, nullable=False)
|
||||
number = Column(BigInteger, nullable=False)
|
||||
user_id = Column(Text, nullable=False)
|
||||
|
||||
title = Column(Text, nullable=False)
|
||||
description = Column(Text, nullable=True)
|
||||
status = Column(Text, nullable=False)
|
||||
priority = Column(Text, nullable=True)
|
||||
assignee_id = Column(Text, nullable=True)
|
||||
due_date = Column(Text, nullable=True)
|
||||
|
||||
# Time in status works as it does for folder chats: seconds banked per status, plus when the current one began.
|
||||
status_at = Column(BigInteger, nullable=False)
|
||||
status_durations = Column(JSON, nullable=True)
|
||||
started_at = Column(BigInteger, nullable=True)
|
||||
completed_at = Column(BigInteger, nullable=True)
|
||||
canceled_at = Column(BigInteger, nullable=True)
|
||||
|
||||
data = Column(JSON, nullable=True)
|
||||
meta = Column(JSON, nullable=True)
|
||||
|
||||
created_at = Column(BigInteger, nullable=False)
|
||||
updated_at = Column(BigInteger, nullable=False)
|
||||
|
||||
__table_args__ = (
|
||||
UniqueConstraint('folder_id', 'number', name='uq_task_folder_number'),
|
||||
Index('ix_task_assignee_id', 'assignee_id'),
|
||||
Index('ix_task_user_id', 'user_id'),
|
||||
)
|
||||
|
||||
|
||||
class TaskHistory(Base):
|
||||
__tablename__ = 'task_history'
|
||||
|
||||
id = Column(Text, primary_key=True)
|
||||
task_id = Column(Text, ForeignKey('task.id', ondelete='CASCADE'), nullable=False)
|
||||
user_id = Column(Text, nullable=True)
|
||||
# One row per changed field. The value is what the task's column held; when it's an id
|
||||
# (a status, person or folder), the name is what that was called then.
|
||||
field = Column(Text, nullable=False)
|
||||
old_value = Column(Text, nullable=True)
|
||||
new_value = Column(Text, nullable=True)
|
||||
old_name = Column(Text, nullable=True)
|
||||
new_name = Column(Text, nullable=True)
|
||||
created_at = Column(BigInteger, nullable=False)
|
||||
|
||||
__table_args__ = (Index('ix_task_history_task_id_created_at', 'task_id', 'created_at'),)
|
||||
|
||||
|
||||
class TaskModel(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
id: str
|
||||
folder_id: str
|
||||
number: int
|
||||
user_id: str
|
||||
|
||||
title: str
|
||||
description: Optional[str] = None
|
||||
status: str
|
||||
priority: Optional[str] = None
|
||||
assignee_id: Optional[str] = None
|
||||
due_date: Optional[str] = None
|
||||
|
||||
status_at: int
|
||||
status_durations: Optional[dict] = None
|
||||
started_at: Optional[int] = None
|
||||
completed_at: Optional[int] = None
|
||||
canceled_at: Optional[int] = None
|
||||
|
||||
data: Optional[dict] = None
|
||||
meta: Optional[dict] = None
|
||||
|
||||
created_at: int
|
||||
updated_at: int
|
||||
|
||||
|
||||
class TaskHistoryModel(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
id: str
|
||||
task_id: str
|
||||
user_id: Optional[str] = None
|
||||
field: str
|
||||
old_value: Optional[str] = None
|
||||
new_value: Optional[str] = None
|
||||
old_name: Optional[str] = None
|
||||
new_name: Optional[str] = None
|
||||
created_at: int
|
||||
|
||||
|
||||
class TaskForm(BaseModel):
|
||||
folder_id: str
|
||||
title: str = Field(min_length=1)
|
||||
description: Optional[str] = None
|
||||
status: Optional[str] = None
|
||||
priority: Optional[TaskPriority] = None
|
||||
assignee_id: Optional[str] = None
|
||||
due_date: Optional[str] = None
|
||||
# Tag names; they're kept in the folder owner's tags, as a shared note's are in its owner's.
|
||||
tags: list[str] = Field(default_factory=list, max_length=50)
|
||||
|
||||
@field_validator('tags')
|
||||
@classmethod
|
||||
def check_tags(cls, value: list[str]) -> list[str]:
|
||||
names = list(dict.fromkeys(name.strip() for name in value if name.strip()))
|
||||
if any(len(name) > 64 for name in names):
|
||||
raise ValueError('A tag name can be at most 64 characters')
|
||||
# 'none' is how filters name untagged tasks.
|
||||
if any(get_tag_id(name) == 'none' for name in names):
|
||||
raise ValueError('Tag name cannot be "None"')
|
||||
return names
|
||||
|
||||
@field_validator('title')
|
||||
@classmethod
|
||||
def strip_title(cls, value: str) -> str:
|
||||
if not value.strip():
|
||||
raise ValueError('A task needs a title')
|
||||
return value.strip()
|
||||
|
||||
@field_validator('due_date')
|
||||
@classmethod
|
||||
def check_due_date(cls, value):
|
||||
return parse_due_date(value)
|
||||
|
||||
|
||||
class TaskUpdateForm(BaseModel):
|
||||
"""Every field is optional: a missing field stays as it is, and null clears it."""
|
||||
|
||||
folder_id: Optional[str] = None
|
||||
title: Optional[str] = None
|
||||
description: Optional[str] = None
|
||||
status: Optional[str] = None
|
||||
priority: Optional[TaskPriority] = None
|
||||
assignee_id: Optional[str] = None
|
||||
due_date: Optional[str] = None
|
||||
|
||||
@field_validator('title')
|
||||
@classmethod
|
||||
def strip_title(cls, value):
|
||||
if value is not None and not value.strip():
|
||||
raise ValueError('A task needs a title')
|
||||
return value.strip() if value is not None else None
|
||||
|
||||
@field_validator('due_date')
|
||||
@classmethod
|
||||
def check_due_date(cls, value):
|
||||
return parse_due_date(value)
|
||||
|
||||
|
||||
def apply_category(task: Task, glyph: str | None, now: int) -> None:
|
||||
"""Set the started, completed and canceled times a task's category implies."""
|
||||
if glyph in STARTED_GLYPHS:
|
||||
task.started_at = task.started_at or now
|
||||
task.completed_at = None
|
||||
task.canceled_at = None
|
||||
elif glyph == 'done':
|
||||
task.completed_at = task.completed_at or now
|
||||
task.canceled_at = None
|
||||
elif glyph == 'canceled':
|
||||
task.canceled_at = task.canceled_at or now
|
||||
task.completed_at = None
|
||||
else:
|
||||
task.started_at = None
|
||||
task.completed_at = None
|
||||
task.canceled_at = None
|
||||
|
||||
|
||||
def set_status(task: Task, status: str, statuses: list[dict], now: int, old_statuses: list[dict] | None = None) -> None:
|
||||
"""Move a task to a status, banking the time spent in the old one, as folder chats do.
|
||||
|
||||
`old_statuses` are the ones its current status is from, when they're not `statuses`.
|
||||
"""
|
||||
if task.status == status:
|
||||
return
|
||||
durations = dict(task.status_durations or {})
|
||||
if task.status and task.status_at is not None:
|
||||
durations[task.status] = int(durations.get(task.status) or 0) + max(0, now - task.status_at)
|
||||
task.status_durations = durations
|
||||
previous_glyph = status_glyph(old_statuses or statuses, task.status)
|
||||
task.status = status
|
||||
task.status_at = now
|
||||
glyph = status_glyph(statuses, status)
|
||||
if glyph != previous_glyph:
|
||||
# Entering done or canceled again starts its clock again.
|
||||
task.completed_at = task.completed_at if glyph != 'done' else None
|
||||
task.canceled_at = task.canceled_at if glyph != 'canceled' else None
|
||||
apply_category(task, glyph, now)
|
||||
|
||||
|
||||
def priority_rank():
|
||||
"""Most urgent first when sorted ascending; no priority last."""
|
||||
return case(
|
||||
*[(Task.priority == priority, index) for index, priority in enumerate(TASK_PRIORITIES)],
|
||||
else_=len(TASK_PRIORITIES),
|
||||
)
|
||||
|
||||
|
||||
async def history_rows(
|
||||
db: AsyncSession,
|
||||
task_id: str,
|
||||
user_id: str,
|
||||
changes: dict,
|
||||
statuses: list[dict],
|
||||
now: int,
|
||||
old_statuses: list[dict] | None = None,
|
||||
) -> list[TaskHistory]:
|
||||
"""One row per changed field, with the names its ids went by at the time."""
|
||||
ids = {value for field in ('assignee_id', 'folder_id') for value in changes.get(field, []) if value}
|
||||
people = dict((await db.execute(select(User.id, User.name).where(User.id.in_(ids)))).all()) if ids else {}
|
||||
folders = dict((await db.execute(select(Folder.id, Folder.name).where(Folder.id.in_(ids)))).all()) if ids else {}
|
||||
|
||||
def name(field, item, statuses):
|
||||
if item is None:
|
||||
return None
|
||||
if field == 'status':
|
||||
return next((status.get('name') for status in statuses if status['id'] == item), None)
|
||||
if field == 'assignee_id':
|
||||
return people.get(item)
|
||||
if field == 'folder_id':
|
||||
return folders.get(item)
|
||||
return None
|
||||
|
||||
def value(item):
|
||||
return None if item is None else str(item)
|
||||
|
||||
return [
|
||||
TaskHistory(
|
||||
id=str(uuid.uuid4()),
|
||||
task_id=task_id,
|
||||
user_id=user_id,
|
||||
field=field,
|
||||
old_value=value(old),
|
||||
new_value=value(new),
|
||||
old_name=name(field, old, old_statuses or statuses),
|
||||
new_name=name(field, new, statuses),
|
||||
created_at=now,
|
||||
)
|
||||
for field, (old, new) in changes.items()
|
||||
]
|
||||
|
||||
|
||||
class TasksTable:
|
||||
async def next_number(self, folder_id: str, db: AsyncSession) -> int:
|
||||
"""Take the folder's next task number; the caller's transaction keeps it."""
|
||||
return await db.scalar(
|
||||
update(Folder)
|
||||
.where(Folder.id == folder_id)
|
||||
.values(task_counter=Folder.task_counter + 1)
|
||||
.returning(Folder.task_counter)
|
||||
)
|
||||
|
||||
async def insert_new_task(
|
||||
self, user_id: str, form: TaskForm, statuses: list[dict], db: Optional[AsyncSession] = None
|
||||
) -> TaskModel:
|
||||
async with get_async_db_context(db) as db:
|
||||
now = int(time.time())
|
||||
task = Task(
|
||||
id=str(uuid.uuid4()),
|
||||
folder_id=form.folder_id,
|
||||
number=await self.next_number(form.folder_id, db),
|
||||
user_id=user_id,
|
||||
title=form.title,
|
||||
description=form.description,
|
||||
priority=form.priority,
|
||||
assignee_id=form.assignee_id,
|
||||
due_date=form.due_date,
|
||||
status_durations={},
|
||||
created_at=now,
|
||||
updated_at=now,
|
||||
)
|
||||
set_status(task, form.status or default_status(statuses), statuses, now)
|
||||
db.add(task)
|
||||
await db.commit()
|
||||
return TaskModel.model_validate(task)
|
||||
|
||||
async def get_task_by_id(self, id: str, db: Optional[AsyncSession] = None) -> Optional[TaskModel]:
|
||||
async with get_async_db_context(db) as db:
|
||||
task = await db.get(Task, id)
|
||||
return TaskModel.model_validate(task) if task else None
|
||||
|
||||
async def get_task_by_number(
|
||||
self, folder_id: str, number: int, db: Optional[AsyncSession] = None
|
||||
) -> Optional[TaskModel]:
|
||||
async with get_async_db_context(db) as db:
|
||||
task = await db.scalar(select(Task).where(Task.folder_id == folder_id, Task.number == number))
|
||||
return TaskModel.model_validate(task) if task else None
|
||||
|
||||
async def get_tasks(
|
||||
self,
|
||||
readable_folder_ids,
|
||||
*,
|
||||
folder_id: Optional[str] = None,
|
||||
assignee_id: Optional[str] = None,
|
||||
creator_id: Optional[str] = None,
|
||||
statuses: Optional[list[str]] = None,
|
||||
categories: Optional[list[str]] = None,
|
||||
priorities: Optional[list[str]] = None,
|
||||
assignee_ids: Optional[list[str]] = None,
|
||||
folder_ids: Optional[list[str]] = None,
|
||||
tag_ids: Optional[list[str]] = None,
|
||||
search: Optional[str] = None,
|
||||
sort_by: str = 'updated_at',
|
||||
sort_dir: str = 'desc',
|
||||
page: int = 1,
|
||||
limit: int = TASK_PAGE_SIZE,
|
||||
db: Optional[AsyncSession] = None,
|
||||
) -> dict:
|
||||
"""A page of the tasks in folders the caller may read (`readable_folder_ids`, a select of ids).
|
||||
|
||||
In the list filters, 'none' stands for an unset priority or assignee, or no tags.
|
||||
"""
|
||||
conditions = [Task.folder_id.in_(readable_folder_ids)]
|
||||
if folder_id:
|
||||
conditions.append(Task.folder_id == folder_id)
|
||||
if folder_ids:
|
||||
conditions.append(Task.folder_id.in_(folder_ids))
|
||||
if tag_ids:
|
||||
conditions.append(resource_tag_filter('task', Task.id, tag_ids))
|
||||
if assignee_id:
|
||||
conditions.append(Task.assignee_id == assignee_id)
|
||||
if creator_id:
|
||||
conditions.append(Task.user_id == creator_id)
|
||||
if statuses:
|
||||
conditions.append(Task.status.in_(statuses))
|
||||
for column, values in ((Task.priority, priorities), (Task.assignee_id, assignee_ids)):
|
||||
if values:
|
||||
named = [value for value in values if value != 'none']
|
||||
conditions.append(or_(column.in_(named), column.is_(None)) if 'none' in values else column.in_(named))
|
||||
if search and search.strip():
|
||||
text = search.strip()
|
||||
matches = [Task.title.ilike(f'%{text}%')]
|
||||
if number := re.fullmatch(r'#?(\d{1,18})', text):
|
||||
matches.append(Task.number == int(number.group(1)))
|
||||
conditions.append(or_(*matches))
|
||||
|
||||
ascending = sort_dir == 'asc'
|
||||
|
||||
def direction(column, up):
|
||||
return column.asc() if up else column.desc()
|
||||
|
||||
if sort_by == 'priority':
|
||||
# Descending puts the most urgent first.
|
||||
order = [direction(priority_rank(), not ascending)]
|
||||
elif sort_by == 'due_date':
|
||||
order = [Task.due_date.is_(None), direction(Task.due_date, ascending)]
|
||||
elif sort_by == 'title':
|
||||
order = [direction(func.lower(Task.title), ascending)]
|
||||
else:
|
||||
order = [direction(Task.created_at if sort_by == 'created_at' else Task.updated_at, ascending)]
|
||||
order.append(Task.number.desc())
|
||||
|
||||
async with get_async_db_context(db) as db:
|
||||
if categories:
|
||||
# Categories live on each folder's statuses, so they become those statuses, folder by folder.
|
||||
in_folders = select(Task.folder_id).where(*conditions).distinct()
|
||||
folders = (await db.execute(select(Folder.id, Folder.meta).where(Folder.id.in_(in_folders)))).all()
|
||||
matches = []
|
||||
for folder_id, meta in folders:
|
||||
ids = [item['id'] for item in task_statuses(meta) if (item['glyph'] or 'none') in categories]
|
||||
if ids:
|
||||
matches.append(and_(Task.folder_id == folder_id, Task.status.in_(ids)))
|
||||
conditions.append(or_(false(), *matches))
|
||||
total = await db.scalar(select(func.count(Task.id)).where(*conditions))
|
||||
rows = (
|
||||
await db.scalars(
|
||||
select(Task).where(*conditions).order_by(*order).offset((page - 1) * limit).limit(limit)
|
||||
)
|
||||
).all()
|
||||
return {
|
||||
'tasks': [TaskModel.model_validate(task) for task in rows],
|
||||
'total': total,
|
||||
'has_more': page * limit < total,
|
||||
}
|
||||
|
||||
async def update_task(
|
||||
self,
|
||||
id: str,
|
||||
user_id: str,
|
||||
changes: dict,
|
||||
statuses: list[dict],
|
||||
db: Optional[AsyncSession] = None,
|
||||
) -> Optional[TaskModel]:
|
||||
"""Apply checked changes and record what changed; `changes` holds only the fields to set."""
|
||||
async with get_async_db_context(db) as db:
|
||||
task = await db.get(Task, id)
|
||||
if task is None:
|
||||
return None
|
||||
now = int(time.time())
|
||||
recorded = {}
|
||||
for field, value in changes.items():
|
||||
previous = getattr(task, field)
|
||||
if previous == value:
|
||||
continue
|
||||
if field == 'status':
|
||||
set_status(task, value, statuses, now)
|
||||
else:
|
||||
setattr(task, field, value)
|
||||
# The description has no history of its own; its changes aren't listed.
|
||||
if field != 'description':
|
||||
recorded[field] = [previous, value]
|
||||
if recorded or 'description' in changes:
|
||||
task.updated_at = now
|
||||
if recorded and not (task.user_id == user_id and now - task.created_at < HISTORY_GRACE_SECONDS):
|
||||
db.add_all(await history_rows(db, id, user_id, recorded, statuses, now))
|
||||
await db.commit()
|
||||
return TaskModel.model_validate(task)
|
||||
|
||||
async def move_task(
|
||||
self,
|
||||
id: str,
|
||||
user_id: str,
|
||||
folder_id: str,
|
||||
statuses: list[dict],
|
||||
keep_assignee: bool,
|
||||
db: Optional[AsyncSession] = None,
|
||||
) -> Optional[TaskModel]:
|
||||
"""Move a task to another folder, with that folder's next number and its matching status."""
|
||||
async with get_async_db_context(db) as db:
|
||||
task = await db.get(Task, id)
|
||||
if task is None or task.folder_id == folder_id:
|
||||
return TaskModel.model_validate(task) if task else None
|
||||
now = int(time.time())
|
||||
old_folder = await db.get(Folder, task.folder_id)
|
||||
old_statuses = task_statuses(old_folder.meta if old_folder else None)
|
||||
recorded = {'folder_id': [task.folder_id, folder_id]}
|
||||
number = await self.next_number(folder_id, db)
|
||||
if number != task.number:
|
||||
recorded['number'] = [task.number, number]
|
||||
task.folder_id = folder_id
|
||||
task.number = number
|
||||
category = status_glyph(old_statuses, task.status)
|
||||
status = (
|
||||
task.status
|
||||
if any(item['id'] == task.status for item in statuses)
|
||||
and status_glyph(statuses, task.status) == category
|
||||
else matching_status(statuses, category)
|
||||
)
|
||||
if status != task.status:
|
||||
recorded['status'] = [task.status, status]
|
||||
set_status(task, status, statuses, now, old_statuses)
|
||||
elif status_glyph(statuses, status) != category:
|
||||
apply_category(task, status_glyph(statuses, status), now)
|
||||
if task.assignee_id and not keep_assignee:
|
||||
recorded['assignee_id'] = [task.assignee_id, None]
|
||||
task.assignee_id = None
|
||||
task.updated_at = now
|
||||
db.add_all(await history_rows(db, id, user_id, recorded, statuses, now, old_statuses))
|
||||
await db.commit()
|
||||
new_folder = await db.get(Folder, folder_id)
|
||||
if old_folder and new_folder and old_folder.user_id != new_folder.user_id:
|
||||
# Tags are the folder owner's, so a task moving to someone else's folder takes its tags into theirs.
|
||||
tags = (await Tags.get_tags_by_resources('task', [id], db=db)).get(id, [])
|
||||
await delete_resource_tags('task', [id], db)
|
||||
await db.commit()
|
||||
await Tags.set_resource_tags('task', id, [tag['name'] for tag in tags], new_folder.user_id, db=db)
|
||||
return TaskModel.model_validate(task)
|
||||
|
||||
async def remap_statuses(
|
||||
self,
|
||||
folder_id: str,
|
||||
old_statuses: list[dict],
|
||||
statuses: list[dict],
|
||||
db: Optional[AsyncSession] = None,
|
||||
) -> None:
|
||||
"""After a folder's statuses change, move tasks off removed statuses and refresh their times."""
|
||||
async with get_async_db_context(db) as db:
|
||||
now = int(time.time())
|
||||
ids = {item['id'] for item in statuses}
|
||||
for task in (await db.scalars(select(Task).where(Task.folder_id == folder_id))).all():
|
||||
category = status_glyph(old_statuses, task.status)
|
||||
if task.status not in ids:
|
||||
set_status(task, matching_status(statuses, category), statuses, now, old_statuses)
|
||||
task.updated_at = now
|
||||
elif status_glyph(statuses, task.status) != category:
|
||||
# Same status with a new category: its clock keeps running, and the times follow.
|
||||
apply_category(task, status_glyph(statuses, task.status), now)
|
||||
task.updated_at = now
|
||||
await db.commit()
|
||||
|
||||
async def unassign(
|
||||
self,
|
||||
*,
|
||||
folder_ids: Optional[list[str]] = None,
|
||||
keep_user_ids: Optional[set[str]] = None,
|
||||
user_id: Optional[str] = None,
|
||||
db: Optional[AsyncSession] = None,
|
||||
) -> None:
|
||||
"""Clear assignees: in folders, those not in keep_user_ids; or one user everywhere."""
|
||||
conditions = [Task.assignee_id.is_not(None)]
|
||||
if folder_ids is not None:
|
||||
conditions.append(Task.folder_id.in_(folder_ids))
|
||||
if keep_user_ids is not None:
|
||||
conditions.append(Task.assignee_id.not_in(keep_user_ids))
|
||||
if user_id is not None:
|
||||
conditions.append(Task.assignee_id == user_id)
|
||||
async with get_async_db_context(db) as db:
|
||||
await db.execute(update(Task).where(*conditions).values(assignee_id=None))
|
||||
await db.commit()
|
||||
|
||||
async def delete_tasks(self, ids: list[str], db: Optional[AsyncSession] = None) -> None:
|
||||
"""Delete tasks with their history, comments, tags and notifications; their chats stay, unlinked."""
|
||||
if not ids:
|
||||
return
|
||||
from open_webui.models.chats import Chat
|
||||
|
||||
async with get_async_db_context(db) as db:
|
||||
await db.execute(update(Chat).where(Chat.task_id.in_(ids)).values(task_id=None))
|
||||
recipients = await delete_resource_comments('task', ids, db=db)
|
||||
await delete_resource_tags('task', ids, db)
|
||||
await db.execute(delete(TaskHistory).where(TaskHistory.task_id.in_(ids)))
|
||||
await db.execute(delete(Task).where(Task.id.in_(ids)))
|
||||
await db.commit()
|
||||
await emit_changes(recipients)
|
||||
|
||||
async def delete_tasks_by_folder_ids(self, folder_ids: list[str], db: Optional[AsyncSession] = None) -> None:
|
||||
async with get_async_db_context(db) as session:
|
||||
ids = list((await session.scalars(select(Task.id).where(Task.folder_id.in_(folder_ids)))).all())
|
||||
await self.delete_tasks(ids, db=db)
|
||||
|
||||
async def count_tasks_by_folder_ids(self, folder_ids: list[str], db: Optional[AsyncSession] = None) -> int:
|
||||
async with get_async_db_context(db) as db:
|
||||
return await db.scalar(select(func.count(Task.id)).where(Task.folder_id.in_(folder_ids))) or 0
|
||||
|
||||
async def get_history(self, task_id: str, db: Optional[AsyncSession] = None) -> list[TaskHistoryModel]:
|
||||
async with get_async_db_context(db) as db:
|
||||
rows = await db.scalars(
|
||||
select(TaskHistory).where(TaskHistory.task_id == task_id).order_by(TaskHistory.created_at)
|
||||
)
|
||||
return [TaskHistoryModel.model_validate(row) for row in rows.all()]
|
||||
|
||||
async def get_chat_counts(self, task_ids: list[str], db: Optional[AsyncSession] = None) -> dict[str, int]:
|
||||
if not task_ids:
|
||||
return {}
|
||||
from open_webui.models.chats import Chat
|
||||
|
||||
async with get_async_db_context(db) as db:
|
||||
rows = await db.execute(
|
||||
select(Chat.task_id, func.count(Chat.id)).where(Chat.task_id.in_(task_ids)).group_by(Chat.task_id)
|
||||
)
|
||||
return dict(rows.all())
|
||||
|
||||
|
||||
Tasks = TasksTable()
|
||||
@@ -899,6 +899,9 @@ class UsersTable:
|
||||
from open_webui.models.access_grants import AccessGrant
|
||||
|
||||
await session.execute(delete(AccessGrant).filter_by(principal_type='user', principal_id=id))
|
||||
from open_webui.models.tasks import Task
|
||||
|
||||
await session.execute(update(Task).where(Task.assignee_id == id).values(assignee_id=None))
|
||||
await session.execute(delete(User).where(User.id == id))
|
||||
await session.commit()
|
||||
return True
|
||||
|
||||
@@ -136,6 +136,7 @@ ADMIN_CONFIG_KEYS = {
|
||||
'ENABLE_AUTOMATION_WEBHOOKS': 'automations.webhooks.enable',
|
||||
'ENABLE_CHANNELS': 'channels.enable',
|
||||
'ENABLE_TEAMS': 'teams.enable',
|
||||
'ENABLE_TASKS': 'tasks.enable',
|
||||
'ENABLE_COMMENTS': 'comments.enable',
|
||||
'ENABLE_NOTIFICATIONS': 'notifications.enable',
|
||||
'ENABLE_ENCRYPTED_CHANNELS': 'channels.encryption.enable',
|
||||
@@ -1196,6 +1197,7 @@ class AdminConfig(MfaConfigForm):
|
||||
ENABLE_AUTOMATION_WEBHOOKS: bool = True
|
||||
ENABLE_CHANNELS: bool
|
||||
ENABLE_TEAMS: bool = False
|
||||
ENABLE_TASKS: bool = False
|
||||
ENABLE_COMMENTS: bool = False
|
||||
ENABLE_NOTIFICATIONS: bool = True
|
||||
ENABLE_ENCRYPTED_CHANNELS: bool = False
|
||||
|
||||
@@ -920,6 +920,18 @@ async def create_new_chat(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail=ERROR_MESSAGES.NOT_FOUND,
|
||||
)
|
||||
if form_data.task_id is not None:
|
||||
# A chat started from a task runs in the task's folder.
|
||||
from open_webui.models.tasks import Tasks
|
||||
from open_webui.utils.access_control.tasks import has_task_access
|
||||
|
||||
task = await Tasks.get_task_by_id(form_data.task_id, db=db)
|
||||
if (
|
||||
task is None
|
||||
or task.folder_id != form_data.folder_id
|
||||
or not await has_task_access(user.id, task, 'read', db)
|
||||
):
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=ERROR_MESSAGES.NOT_FOUND)
|
||||
normalize_machine_id(form_data.chat)
|
||||
await require_chat_folder_machine(form_data.folder_id, machine_id_of(form_data.chat))
|
||||
directory = await get_folder_directory(form_data.folder_id)
|
||||
|
||||
@@ -32,6 +32,7 @@ from open_webui.models.groups import Groups
|
||||
from open_webui.models.memories import Memories
|
||||
from open_webui.models.notes import NoteListResponse, Notes, NoteUserResponse
|
||||
from open_webui.models.shared_chats import ChatShareMode
|
||||
from open_webui.models.tasks import Tasks, task_statuses
|
||||
from open_webui.models.users import Users
|
||||
from open_webui.retrieval.vector.async_client import ASYNC_VECTOR_DB_CLIENT
|
||||
from open_webui.routers.notes import check_notes_access, truncate_note_data
|
||||
@@ -58,6 +59,7 @@ FolderActivity = Literal['unread', 'generating', 'waiting_for_approval', 'idle']
|
||||
|
||||
|
||||
from open_webui.utils.access_control.folders import has_folder_access as _has_folder_access
|
||||
from open_webui.utils.access_control.tasks import folder_user_ids
|
||||
|
||||
|
||||
async def get_folder_unread_counts(user_id: str, db: AsyncSession | None = None) -> dict[str, int]:
|
||||
@@ -78,6 +80,14 @@ async def get_folder_unread_counts(user_id: str, db: AsyncSession | None = None)
|
||||
return unread_counts
|
||||
|
||||
|
||||
async def unassign_tasks_without_access(folder_ids: list[str], db: AsyncSession) -> None:
|
||||
"""Tasks keep only assignees who can still edit their folder."""
|
||||
for folder in await Folders.get_folders_by_ids(folder_ids, db=db):
|
||||
writers = await folder_user_ids(folder, 'write', db)
|
||||
if writers is not None:
|
||||
await Tasks.unassign(folder_ids=[folder.id], keep_user_ids=writers, db=db)
|
||||
|
||||
|
||||
async def check_folders_permission(request: Request, user, db=None):
|
||||
"""Verify the folders feature is enabled and the user has permission."""
|
||||
config = await Config.get_many('folders.enable', 'user.permissions')
|
||||
@@ -495,7 +505,11 @@ async def update_folder_name_by_id(
|
||||
)
|
||||
|
||||
try:
|
||||
old_statuses = task_statuses(folder.meta)
|
||||
folder = await Folders.update_folder_by_id_and_user_id(id, folder.user_id, form_data, db=db)
|
||||
if form_data.meta and 'statuses' in form_data.meta:
|
||||
# Tasks on a removed status move to the nearest one left.
|
||||
await Tasks.remap_statuses(id, old_statuses, task_statuses(folder.meta), db=db)
|
||||
await publish_event(
|
||||
request,
|
||||
EVENTS.FOLDER_UPDATED,
|
||||
@@ -557,6 +571,10 @@ async def update_folder_parent_id_by_id(
|
||||
|
||||
try:
|
||||
folder = await Folders.update_folder_parent_id_by_id_and_user_id(id, user.id, form_data.parent_id, db=db)
|
||||
# A new parent can change who inherits access.
|
||||
await unassign_tasks_without_access(
|
||||
await Folders.get_folder_ids_by_id_and_user_id_in_subtree(id, user.id, db=db), db
|
||||
)
|
||||
await publish_event(
|
||||
request,
|
||||
EVENTS.FOLDER_PARENT_UPDATED,
|
||||
@@ -667,6 +685,9 @@ async def update_folder_access_by_id(
|
||||
id, folder.user_id, FolderUpdateForm(data={'share_mode': form_data.share_mode}), db=db
|
||||
)
|
||||
|
||||
await unassign_tasks_without_access(
|
||||
await Folders.get_folder_ids_by_id_and_user_id_in_subtree(id, folder.user_id, db=db), db
|
||||
)
|
||||
grants = await AccessGrants.get_grants_by_resource('folder', id, db=db)
|
||||
await publish_event(
|
||||
request,
|
||||
@@ -1111,6 +1132,9 @@ async def delete_folder_by_id(
|
||||
detail=ERROR_MESSAGES.ACCESS_PROHIBITED,
|
||||
)
|
||||
|
||||
# Tasks live only in folders, so they go with the folder whatever happens to its chats and notes.
|
||||
await Tasks.delete_tasks_by_folder_ids(folder_ids, db=db)
|
||||
|
||||
folders = []
|
||||
folders.append(folder)
|
||||
while folders:
|
||||
|
||||
@@ -0,0 +1,513 @@
|
||||
import logging
|
||||
import time
|
||||
from typing import Literal, Optional
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query, Request, status
|
||||
from open_webui.constants import ERROR_MESSAGES
|
||||
from open_webui.events import EVENTS, publish_event
|
||||
from open_webui.internal.db import get_async_db_context, get_async_session
|
||||
from open_webui.models.chats import Chat, ChatTitleIdResponse
|
||||
from open_webui.models.config import Config
|
||||
from open_webui.models.folders import Folders
|
||||
from open_webui.models.groups import Groups
|
||||
from open_webui.models.notifications import emit_changes, insert_notifications
|
||||
from open_webui.models.tags import TagModel, Tags, get_tag_id
|
||||
from open_webui.models.tasks import (
|
||||
TASK_SORT_KEYS,
|
||||
STATUS_GLYPHS,
|
||||
Task,
|
||||
TaskForm,
|
||||
TaskHistoryModel,
|
||||
TaskModel,
|
||||
Tasks,
|
||||
TaskUpdateForm,
|
||||
task_statuses,
|
||||
)
|
||||
from open_webui.models.users import Users
|
||||
from open_webui.routers.chats import add_active_state_to_chat_list
|
||||
from open_webui.routers.folders import check_folders_permission
|
||||
from open_webui.socket.main import emit_to_users
|
||||
from open_webui.utils.access_control.folders import accessible_folder_ids, has_folder_access
|
||||
from open_webui.utils.access_control.tasks import folder_user_ids, has_task_access
|
||||
from open_webui.utils.auth import get_verified_user
|
||||
from pydantic import BaseModel, Field
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
async def check_tasks_enabled(request: Request, user=Depends(get_verified_user)):
|
||||
if not await Config.get('tasks.enable'):
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.FEATURE_DISABLED('Tasks'))
|
||||
# Tasks live in folders, so they need folders too.
|
||||
await check_folders_permission(request, user)
|
||||
|
||||
|
||||
class TaskResponse(TaskModel):
|
||||
folder: Optional[dict] = None
|
||||
user: Optional[dict] = None
|
||||
assignee: Optional[dict] = None
|
||||
chat_count: int = 0
|
||||
write_access: Optional[bool] = None
|
||||
# The task's tags as list rows show them: id, name and color.
|
||||
tags: list[dict] = []
|
||||
|
||||
|
||||
class TaskListResponse(BaseModel):
|
||||
tasks: list[TaskResponse]
|
||||
total: int
|
||||
has_more: bool
|
||||
|
||||
|
||||
class TaskHistoryResponse(TaskHistoryModel):
|
||||
user: Optional[dict] = None
|
||||
|
||||
|
||||
class TaskChatResponse(ChatTitleIdResponse):
|
||||
user_id: str
|
||||
owner_name: Optional[str] = None
|
||||
|
||||
|
||||
async def task_responses(tasks: list[TaskModel], db: AsyncSession, user=None) -> list[TaskResponse]:
|
||||
"""Tasks with their folder, creator and assignee, fetched once for the whole list.
|
||||
|
||||
With a user, each task also says whether that user may edit it, checked once per folder.
|
||||
"""
|
||||
folders = {
|
||||
folder.id: folder for folder in await Folders.get_folders_by_ids(list({t.folder_id for t in tasks}), db=db)
|
||||
}
|
||||
writable = (
|
||||
{id: await has_folder_access(user.id, folder, 'write', db) for id, folder in folders.items()} if user else {}
|
||||
)
|
||||
user_ids = {t.user_id for t in tasks} | {t.assignee_id for t in tasks if t.assignee_id}
|
||||
users = {u.id: {'id': u.id, 'name': u.name} for u in await Users.get_users_by_user_ids(list(user_ids), db=db)}
|
||||
chat_counts = await Tasks.get_chat_counts([t.id for t in tasks], db=db)
|
||||
tags = await Tags.get_tags_by_resources('task', [t.id for t in tasks], db=db)
|
||||
responses = []
|
||||
for task in tasks:
|
||||
folder = folders.get(task.folder_id)
|
||||
responses.append(
|
||||
TaskResponse(
|
||||
**task.model_dump(),
|
||||
folder=(
|
||||
{
|
||||
'id': folder.id,
|
||||
'name': folder.name,
|
||||
'icon': (folder.meta or {}).get('icon'),
|
||||
'statuses': (folder.meta or {}).get('statuses') or [],
|
||||
}
|
||||
if folder
|
||||
else None
|
||||
),
|
||||
user=users.get(task.user_id),
|
||||
assignee=users.get(task.assignee_id) if task.assignee_id else None,
|
||||
chat_count=chat_counts.get(task.id, 0),
|
||||
write_access=writable.get(task.folder_id) if user else None,
|
||||
tags=tags.get(task.id, []),
|
||||
)
|
||||
)
|
||||
return responses
|
||||
|
||||
|
||||
async def get_readable_task(id: str, user, db: AsyncSession, permission: str = 'read') -> TaskModel:
|
||||
task = await Tasks.get_task_by_id(id, db=db)
|
||||
if task is None or not await has_task_access(user.id, task, 'read', db):
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=ERROR_MESSAGES.NOT_FOUND)
|
||||
if permission == 'write' and not await has_task_access(user.id, task, 'write', db):
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.ACCESS_PROHIBITED)
|
||||
return task
|
||||
|
||||
|
||||
async def get_writable_folder(folder_id: str, user, db: AsyncSession):
|
||||
folder = await Folders.get_folder_by_id(folder_id, db=db)
|
||||
if folder is None or not await has_folder_access(user.id, folder, 'write', db):
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=ERROR_MESSAGES.NOT_FOUND)
|
||||
return folder
|
||||
|
||||
|
||||
def check_status(statuses: list[dict], value: str | None) -> None:
|
||||
if value is not None and all(item['id'] != value for item in statuses):
|
||||
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail='Unknown status for this folder')
|
||||
|
||||
|
||||
async def check_assignee(folder, assignee_id: str | None, db: AsyncSession) -> None:
|
||||
if assignee_id is None:
|
||||
return
|
||||
writers = await folder_user_ids(folder, 'write', db)
|
||||
if writers is None:
|
||||
if not await Users.get_user_by_id(assignee_id, db=db):
|
||||
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail='Unknown assignee')
|
||||
elif assignee_id not in writers:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_400_BAD_REQUEST, detail='The assignee must be able to edit the folder'
|
||||
)
|
||||
|
||||
|
||||
async def notify_task_change(task: TaskModel, actor_id: str, db: AsyncSession) -> None:
|
||||
"""Refresh open task lists and pages of everyone who can read the task's folder."""
|
||||
folder = await Folders.get_folder_by_id(task.folder_id, db=db)
|
||||
readers = await folder_user_ids(folder, 'read', db) if folder else None
|
||||
[response] = await task_responses([task], db)
|
||||
await emit_to_users(
|
||||
'events',
|
||||
{'data': {'type': 'task:changed', 'data': {'task': response.model_dump()}}},
|
||||
list(readers if readers is not None else {actor_id}),
|
||||
)
|
||||
|
||||
|
||||
async def notify_assignee(task: TaskModel, actor_id: str) -> None:
|
||||
if not task.assignee_id or task.assignee_id == actor_id:
|
||||
return
|
||||
async with get_async_db_context() as db:
|
||||
recipients = await insert_notifications(
|
||||
recipients={task.assignee_id: 'task.assigned'},
|
||||
event_key=f'task.assigned:{task.id}:{time.time_ns()}',
|
||||
actor_id=actor_id,
|
||||
resource_type='task',
|
||||
resource_id=task.id,
|
||||
object_type='task',
|
||||
object_id=task.id,
|
||||
data={'number': task.number},
|
||||
db=db,
|
||||
)
|
||||
await db.commit()
|
||||
await emit_changes(recipients)
|
||||
|
||||
|
||||
############################
|
||||
# Tasks
|
||||
############################
|
||||
|
||||
|
||||
@router.get('/', response_model=TaskListResponse, dependencies=[Depends(check_tasks_enabled)])
|
||||
async def get_tasks(
|
||||
folder_id: Optional[str] = None,
|
||||
assigned_to_me: bool = False,
|
||||
created_by_me: bool = False,
|
||||
search: Optional[str] = Query(default=None, max_length=256),
|
||||
status_ids: list[str] = Query(default=[], alias='status'),
|
||||
# 'none' keeps tasks whose status has no category.
|
||||
categories: list[Literal[(*STATUS_GLYPHS, 'none')]] = Query(default=[], alias='category'),
|
||||
priorities: list[str] = Query(default=[], alias='priority'),
|
||||
assignee_ids: list[str] = Query(default=[], alias='assignee_id'),
|
||||
folder_ids: list[str] = Query(default=[], alias='folder'),
|
||||
# 'none' keeps untagged tasks.
|
||||
tag_ids: list[str] = Query(default=[], alias='tag'),
|
||||
sort_by: str = 'updated_at',
|
||||
sort_dir: Literal['asc', 'desc'] = 'desc',
|
||||
page: int = Query(default=1, ge=1),
|
||||
user=Depends(get_verified_user),
|
||||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
if sort_by not in TASK_SORT_KEYS:
|
||||
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail='Unknown sort')
|
||||
group_ids = {group.id for group in await Groups.get_groups_by_member_id(user.id, db=db, include_inherited=True)}
|
||||
page_data = await Tasks.get_tasks(
|
||||
accessible_folder_ids(user.id, group_ids, 'read'),
|
||||
folder_id=folder_id,
|
||||
assignee_id=user.id if assigned_to_me else None,
|
||||
creator_id=user.id if created_by_me else None,
|
||||
statuses=status_ids,
|
||||
categories=categories,
|
||||
priorities=priorities,
|
||||
assignee_ids=assignee_ids,
|
||||
folder_ids=folder_ids,
|
||||
tag_ids=tag_ids,
|
||||
search=search,
|
||||
sort_by=sort_by,
|
||||
sort_dir=sort_dir,
|
||||
page=page,
|
||||
db=db,
|
||||
)
|
||||
return TaskListResponse(
|
||||
tasks=await task_responses(page_data['tasks'], db, user),
|
||||
total=page_data['total'],
|
||||
has_more=page_data['has_more'],
|
||||
)
|
||||
|
||||
|
||||
@router.get('/assignees', dependencies=[Depends(check_tasks_enabled)])
|
||||
async def get_task_assignees(
|
||||
folder_id: str,
|
||||
query: str = Query(default='', max_length=256),
|
||||
user=Depends(get_verified_user),
|
||||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
"""Who a task in this folder can be assigned to: everyone who can edit the folder."""
|
||||
folder = await Folders.get_folder_by_id(folder_id, db=db)
|
||||
if folder is None or not await has_folder_access(user.id, folder, 'read', db):
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=ERROR_MESSAGES.NOT_FOUND)
|
||||
writers = await folder_user_ids(folder, 'write', db)
|
||||
if writers is None:
|
||||
# Open to everyone: search the users instead of listing them all.
|
||||
result = await Users.get_users(filter={'query': query}, limit=30, db=db)
|
||||
users = result['users']
|
||||
else:
|
||||
users = await Users.get_users_by_user_ids(list(writers), db=db)
|
||||
text = query.strip().lower()
|
||||
users = [u for u in users if not text or text in u.name.lower() or text in (u.email or '').lower()]
|
||||
return sorted(
|
||||
[{'id': u.id, 'name': u.name} for u in users],
|
||||
key=lambda entry: (entry['id'] != user.id, entry['name'].casefold()),
|
||||
)
|
||||
|
||||
|
||||
@router.get('/tags', dependencies=[Depends(check_tasks_enabled)])
|
||||
async def get_task_tag_counts(
|
||||
folder_id: Optional[str] = None,
|
||||
user=Depends(get_verified_user),
|
||||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
"""Tags on the tasks the user can read, or a folder's, with how many carry each; for filters and pickers."""
|
||||
group_ids = {group.id for group in await Groups.get_groups_by_member_id(user.id, db=db, include_inherited=True)}
|
||||
task_ids = select(Task.id).where(Task.folder_id.in_(accessible_folder_ids(user.id, group_ids, 'read')))
|
||||
if folder_id:
|
||||
task_ids = task_ids.where(Task.folder_id == folder_id)
|
||||
return await Tags.get_tag_counts('task', task_ids, db=db)
|
||||
|
||||
|
||||
@router.get('/count', dependencies=[Depends(check_tasks_enabled)])
|
||||
async def count_folder_tasks(
|
||||
folder_id: str, user=Depends(get_verified_user), db: AsyncSession = Depends(get_async_session)
|
||||
):
|
||||
"""How many tasks a folder and its subfolders hold; they go with the folder when it's deleted."""
|
||||
folder = await Folders.get_folder_by_id(folder_id, db=db)
|
||||
if folder is None or not await has_folder_access(user.id, folder, 'read', db):
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=ERROR_MESSAGES.NOT_FOUND)
|
||||
folder_ids = await Folders.get_folder_ids_by_id_and_user_id_in_subtree(folder_id, folder.user_id, db=db)
|
||||
return {'count': await Tasks.count_tasks_by_folder_ids(folder_ids, db=db)}
|
||||
|
||||
|
||||
@router.post('/create', response_model=TaskResponse, dependencies=[Depends(check_tasks_enabled)])
|
||||
async def create_task(
|
||||
request: Request,
|
||||
form_data: TaskForm,
|
||||
user=Depends(get_verified_user),
|
||||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
folder = await get_writable_folder(form_data.folder_id, user, db)
|
||||
statuses = task_statuses(folder.meta)
|
||||
check_status(statuses, form_data.status)
|
||||
await check_assignee(folder, form_data.assignee_id, db)
|
||||
|
||||
task = await Tasks.insert_new_task(user.id, form_data, statuses, db=db)
|
||||
if form_data.tags:
|
||||
await Tags.set_resource_tags('task', task.id, form_data.tags, folder.user_id, db=db)
|
||||
await publish_event(
|
||||
request,
|
||||
EVENTS.TASK_CREATED,
|
||||
actor=user,
|
||||
subject_id=task.id,
|
||||
data={'title': task.title, 'folder_id': task.folder_id, 'number': task.number},
|
||||
)
|
||||
await notify_assignee(task, user.id)
|
||||
await notify_task_change(task, user.id, db)
|
||||
[response] = await task_responses([task], db, user)
|
||||
return response
|
||||
|
||||
|
||||
@router.get('/id/{id}', response_model=TaskResponse, dependencies=[Depends(check_tasks_enabled)])
|
||||
async def get_task_by_id(id: str, user=Depends(get_verified_user), db: AsyncSession = Depends(get_async_session)):
|
||||
task = await get_readable_task(id, user, db)
|
||||
[response] = await task_responses([task], db, user)
|
||||
return response
|
||||
|
||||
|
||||
class TaskTagForm(BaseModel):
|
||||
name: str = Field(min_length=1, max_length=64)
|
||||
|
||||
|
||||
class TaskTagColorForm(TaskTagForm):
|
||||
# A palette name chosen by the frontend, e.g. 'blue'; the server only stores it.
|
||||
color: str = Field(min_length=1, max_length=32, pattern=r'^[a-z][a-z0-9-]*$')
|
||||
|
||||
|
||||
async def get_tag_owner(task: TaskModel, db: AsyncSession) -> str:
|
||||
"""Whose tags a task's are: its folder owner's, so every task in a folder shares one set."""
|
||||
folder = await Folders.get_folder_by_id(task.folder_id, db=db)
|
||||
if folder is None:
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=ERROR_MESSAGES.NOT_FOUND)
|
||||
return folder.user_id
|
||||
|
||||
|
||||
@router.get('/id/{id}/tags', response_model=list[TagModel], dependencies=[Depends(check_tasks_enabled)])
|
||||
async def get_task_tags(id: str, user=Depends(get_verified_user), db: AsyncSession = Depends(get_async_session)):
|
||||
await get_readable_task(id, user, db)
|
||||
return await Tags.get_tags_by_resource('task', id, db=db)
|
||||
|
||||
|
||||
@router.post('/id/{id}/tags', response_model=list[TagModel], dependencies=[Depends(check_tasks_enabled)])
|
||||
async def add_task_tag(
|
||||
id: str,
|
||||
form_data: TaskTagForm,
|
||||
user=Depends(get_verified_user),
|
||||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
task = await get_readable_task(id, user, db, 'write')
|
||||
# 'none' is how filters name untagged tasks.
|
||||
if get_tag_id(form_data.name) == 'none':
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_400_BAD_REQUEST, detail=ERROR_MESSAGES.DEFAULT('Tag name cannot be "None"')
|
||||
)
|
||||
await Tags.add_tag_to_resource('task', id, form_data.name, await get_tag_owner(task, db), db=db)
|
||||
await notify_task_change(task, user.id, db)
|
||||
return await Tags.get_tags_by_resource('task', id, db=db)
|
||||
|
||||
|
||||
@router.delete('/id/{id}/tags', response_model=list[TagModel], dependencies=[Depends(check_tasks_enabled)])
|
||||
async def remove_task_tag(
|
||||
id: str,
|
||||
form_data: TaskTagForm,
|
||||
user=Depends(get_verified_user),
|
||||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
task = await get_readable_task(id, user, db, 'write')
|
||||
await Tags.remove_tag_from_resource('task', id, form_data.name, await get_tag_owner(task, db), db=db)
|
||||
await notify_task_change(task, user.id, db)
|
||||
return await Tags.get_tags_by_resource('task', id, db=db)
|
||||
|
||||
|
||||
@router.patch('/id/{id}/tags', response_model=list[TagModel], dependencies=[Depends(check_tasks_enabled)])
|
||||
async def update_task_tag_color(
|
||||
id: str,
|
||||
form_data: TaskTagColorForm,
|
||||
user=Depends(get_verified_user),
|
||||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
task = await get_readable_task(id, user, db, 'write')
|
||||
tags = await Tags.get_tags_by_resources('task', [id], db=db)
|
||||
if get_tag_id(form_data.name) not in [tag['id'] for tag in tags.get(id, [])]:
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.ACCESS_PROHIBITED)
|
||||
owner = await get_tag_owner(task, db)
|
||||
if not await Tags.update_tag_color_by_name_and_user_id(form_data.name, owner, form_data.color, db=db):
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.ACCESS_PROHIBITED)
|
||||
await notify_task_change(task, user.id, db)
|
||||
return await Tags.get_tags_by_resource('task', id, db=db)
|
||||
|
||||
|
||||
@router.post('/id/{id}/update', response_model=TaskResponse, dependencies=[Depends(check_tasks_enabled)])
|
||||
async def update_task_by_id(
|
||||
request: Request,
|
||||
id: str,
|
||||
form_data: TaskUpdateForm,
|
||||
user=Depends(get_verified_user),
|
||||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
task = await get_readable_task(id, user, db, 'write')
|
||||
changes = form_data.model_dump(include=form_data.model_fields_set)
|
||||
if 'title' in changes and changes['title'] is None:
|
||||
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail='A task needs a title')
|
||||
if 'status' in changes and changes['status'] is None:
|
||||
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail='A task needs a status')
|
||||
|
||||
folder_id = changes.pop('folder_id', None) or task.folder_id
|
||||
folder = await get_writable_folder(folder_id, user, db)
|
||||
statuses = task_statuses(folder.meta)
|
||||
check_status(statuses, changes.get('status'))
|
||||
if changes.get('assignee_id'):
|
||||
await check_assignee(folder, changes['assignee_id'], db)
|
||||
|
||||
previous_assignee = task.assignee_id
|
||||
if folder_id != task.folder_id:
|
||||
# The assignee comes along only if they can edit the new folder too.
|
||||
if 'assignee_id' in changes:
|
||||
keep = changes['assignee_id'] is not None
|
||||
else:
|
||||
writers = await folder_user_ids(folder, 'write', db)
|
||||
keep = task.assignee_id is not None and (writers is None or task.assignee_id in writers)
|
||||
task = await Tasks.move_task(id, user.id, folder_id, statuses, keep, db=db)
|
||||
|
||||
task = await Tasks.update_task(id, user.id, changes, statuses, db=db)
|
||||
await publish_event(
|
||||
request,
|
||||
EVENTS.TASK_UPDATED,
|
||||
actor=user,
|
||||
subject_id=task.id,
|
||||
data={'title': task.title, 'folder_id': task.folder_id, 'number': task.number},
|
||||
)
|
||||
if task.assignee_id != previous_assignee and task.assignee_id:
|
||||
await publish_event(
|
||||
request,
|
||||
EVENTS.TASK_ASSIGNED,
|
||||
actor=user,
|
||||
subject_id=task.id,
|
||||
data={'title': task.title, 'assignee_id': task.assignee_id},
|
||||
)
|
||||
await notify_assignee(task, user.id)
|
||||
await notify_task_change(task, user.id, db)
|
||||
[response] = await task_responses([task], db, user)
|
||||
return response
|
||||
|
||||
|
||||
@router.delete('/id/{id}/delete', response_model=bool, dependencies=[Depends(check_tasks_enabled)])
|
||||
async def delete_task_by_id(
|
||||
request: Request, id: str, user=Depends(get_verified_user), db: AsyncSession = Depends(get_async_session)
|
||||
):
|
||||
task = await get_readable_task(id, user, db, 'write')
|
||||
folder = await Folders.get_folder_by_id(task.folder_id, db=db)
|
||||
if user.role != 'admin' and user.id not in {task.user_id, folder.user_id if folder else None}:
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.ACCESS_PROHIBITED)
|
||||
await Tasks.delete_tasks([task.id], db=db)
|
||||
await publish_event(
|
||||
request,
|
||||
EVENTS.TASK_DELETED,
|
||||
actor=user,
|
||||
subject_id=task.id,
|
||||
data={'title': task.title, 'folder_id': task.folder_id},
|
||||
)
|
||||
readers = await folder_user_ids(folder, 'read', db) if folder else None
|
||||
await emit_to_users(
|
||||
'events',
|
||||
{'data': {'type': 'task:deleted', 'data': {'id': task.id, 'folder_id': task.folder_id}}},
|
||||
list(readers if readers is not None else {user.id}),
|
||||
)
|
||||
return True
|
||||
|
||||
|
||||
@router.get('/id/{id}/history', response_model=list[TaskHistoryResponse], dependencies=[Depends(check_tasks_enabled)])
|
||||
async def get_task_history(id: str, user=Depends(get_verified_user), db: AsyncSession = Depends(get_async_session)):
|
||||
await get_readable_task(id, user, db)
|
||||
history = await Tasks.get_history(id, db=db)
|
||||
user_ids = list({row.user_id for row in history if row.user_id})
|
||||
users = {u.id: u.name for u in await Users.get_users_by_user_ids(user_ids, db=db)}
|
||||
return [
|
||||
TaskHistoryResponse(
|
||||
**row.model_dump(),
|
||||
user={'id': row.user_id, 'name': users[row.user_id]} if row.user_id in users else None,
|
||||
)
|
||||
for row in history
|
||||
]
|
||||
|
||||
|
||||
@router.get('/id/{id}/chats', response_model=list[TaskChatResponse], dependencies=[Depends(check_tasks_enabled)])
|
||||
async def get_task_chats(
|
||||
request: Request, id: str, user=Depends(get_verified_user), db: AsyncSession = Depends(get_async_session)
|
||||
):
|
||||
"""The chats started from this task that the caller can open, newest first."""
|
||||
from open_webui.models.chats import Chats
|
||||
|
||||
await get_readable_task(id, user, db)
|
||||
rows = (
|
||||
await db.execute(
|
||||
select(Chat.id, Chat.title, Chat.user_id, Chat.meta, Chat.folder_id, Chat.updated_at, Chat.created_at)
|
||||
.where(Chat.task_id == id, Chat.archived.is_(False))
|
||||
.order_by(Chat.updated_at.desc())
|
||||
)
|
||||
).all()
|
||||
visible = [row for row in rows if await Chats.has_chat_access(row.id, user, db=db, chat=row)]
|
||||
owners = {u.id: u.name for u in await Users.get_users_by_user_ids(list({row.user_id for row in visible}), db=db)}
|
||||
chats = [
|
||||
TaskChatResponse(
|
||||
id=row.id,
|
||||
title=row.title,
|
||||
updated_at=row.updated_at,
|
||||
created_at=row.created_at,
|
||||
user_id=row.user_id,
|
||||
owner_name=owners.get(row.user_id),
|
||||
)
|
||||
for row in visible
|
||||
]
|
||||
return await add_active_state_to_chat_list(request, chats, db=db)
|
||||
@@ -5066,6 +5066,364 @@ async def delete_automation(
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
|
||||
|
||||
# Task tools
|
||||
|
||||
|
||||
async def _task_context(user_id: str, chat_id: str | None, folder: str | None):
|
||||
"""The user, the folders they can read, and the chat's folder and task, for the task tools."""
|
||||
from open_webui.utils.access_control.folders import accessible_folder_ids
|
||||
|
||||
user = await Users.get_user_by_id(user_id)
|
||||
group_ids = {group.id for group in await Groups.get_groups_by_member_id(user_id, include_inherited=True)}
|
||||
readable = accessible_folder_ids(user_id, group_ids, 'read')
|
||||
chat = await Chats.get_chat_by_id(chat_id) if is_saved_chat_id(chat_id) else None
|
||||
folder_id = None
|
||||
if folder and folder.strip():
|
||||
from open_webui.internal.db import get_async_db_context
|
||||
from open_webui.models.folders import Folder
|
||||
from sqlalchemy import func, select
|
||||
|
||||
async with get_async_db_context() as db:
|
||||
rows = (
|
||||
await db.execute(
|
||||
select(Folder.id, Folder.name).where(
|
||||
Folder.id.in_(readable), func.lower(Folder.name) == folder.strip().lower()
|
||||
)
|
||||
)
|
||||
).all()
|
||||
if not rows:
|
||||
raise ValueError(f'No folder named "{folder}" that you can open')
|
||||
if len(rows) > 1:
|
||||
raise ValueError(f'More than one folder is named "{folder}"; rename one to tell them apart')
|
||||
folder_id = rows[0].id
|
||||
elif chat and chat.folder_id:
|
||||
folder_id = chat.folder_id
|
||||
return user, readable, folder_id, chat
|
||||
|
||||
|
||||
async def _find_task(readable, folder_id: str | None, number, chat):
|
||||
from open_webui.models.tasks import Tasks
|
||||
|
||||
if number in (None, ''):
|
||||
if chat and chat.task_id:
|
||||
task = await Tasks.get_task_by_id(chat.task_id)
|
||||
if task:
|
||||
return task
|
||||
raise ValueError('Give the task number')
|
||||
if not folder_id:
|
||||
raise ValueError('Give the folder the task is in')
|
||||
try:
|
||||
value = int(str(number).strip().lstrip('#'))
|
||||
except ValueError:
|
||||
raise ValueError(f'"{number}" is not a task number')
|
||||
task = await Tasks.get_task_by_number(folder_id, value)
|
||||
if task is None:
|
||||
raise ValueError(f'No task #{value} in that folder')
|
||||
return task
|
||||
|
||||
|
||||
def _match_status(statuses: list[dict], value: str) -> str:
|
||||
text = value.strip().lower()
|
||||
for item in statuses:
|
||||
if text in (item['id'].lower(), str(item.get('name') or '').lower()):
|
||||
return item['id']
|
||||
names = ', '.join(str(item.get('name') or item['id']) for item in statuses)
|
||||
raise ValueError(f'Unknown status "{value}". This folder has: {names}')
|
||||
|
||||
|
||||
async def _match_assignee(folder, value: str, user) -> str | None:
|
||||
from open_webui.utils.access_control.tasks import folder_user_ids
|
||||
|
||||
text = value.strip().lower()
|
||||
if text in ('', 'none', 'nobody', 'unassigned'):
|
||||
return None
|
||||
if text in ('me', 'myself'):
|
||||
return user.id
|
||||
writers = await folder_user_ids(folder, 'write')
|
||||
if writers is None:
|
||||
result = await Users.get_users(filter={'query': value.strip()}, limit=10)
|
||||
candidates = result['users']
|
||||
else:
|
||||
candidates = await Users.get_users_by_user_ids(list(writers))
|
||||
matches = [u for u in candidates if text in (u.name.lower(), (u.email or '').lower())]
|
||||
if len(matches) != 1:
|
||||
raise ValueError(f'No single person named "{value}" can edit this folder')
|
||||
return matches[0].id
|
||||
|
||||
|
||||
async def _task_summary(task, folder_name: str | None = None, statuses: list[dict] | None = None) -> dict:
|
||||
from open_webui.models.folders import Folders
|
||||
from open_webui.models.tasks import task_statuses
|
||||
|
||||
if folder_name is None or statuses is None:
|
||||
folder = await Folders.get_folder_by_id(task.folder_id)
|
||||
folder_name = folder.name if folder else None
|
||||
statuses = task_statuses(folder.meta if folder else None)
|
||||
from open_webui.models.tags import Tags
|
||||
|
||||
assignee = await Users.get_user_by_id(task.assignee_id) if task.assignee_id else None
|
||||
tags = (await Tags.get_tags_by_resources('task', [task.id])).get(task.id, [])
|
||||
return {
|
||||
'number': task.number,
|
||||
'folder': folder_name,
|
||||
'title': task.title,
|
||||
'status': next((item.get('name') for item in statuses if item['id'] == task.status), task.status),
|
||||
'priority': task.priority,
|
||||
'assignee': assignee.name if assignee else None,
|
||||
'due_date': task.due_date,
|
||||
'tags': [tag['name'] for tag in tags],
|
||||
'url': f'/tasks/{task.id}',
|
||||
}
|
||||
|
||||
|
||||
async def search_tasks(
|
||||
query: str = '',
|
||||
folder: str = '',
|
||||
status: str = '',
|
||||
assignee: str = '',
|
||||
tag: str = '',
|
||||
count: int = 10,
|
||||
__user__: dict = None,
|
||||
__chat_id__: str = None,
|
||||
) -> str:
|
||||
"""
|
||||
Search tasks in folders the user can open. Each task has a number within its folder, like #12.
|
||||
|
||||
:param query: Words in the title, or a task number like "#12"; empty lists recent tasks
|
||||
:param folder: Folder name to search in; empty searches the chat's folder, or every folder outside one
|
||||
:param status: Status category to keep: backlog, todo, in_progress, waiting, done or canceled
|
||||
:param assignee: "me" for tasks assigned to the user
|
||||
:param tag: Tag name to keep, like "bug"
|
||||
:param count: Maximum number of tasks to return (default: 10)
|
||||
:return: JSON list of tasks with number, folder, title, status, priority, assignee, due date and tags
|
||||
"""
|
||||
if not __user__:
|
||||
return JSONCodec.dumps({'error': 'User context not available'})
|
||||
try:
|
||||
from open_webui.models.tags import get_tag_id
|
||||
from open_webui.models.tasks import STATUS_GLYPHS, Tasks
|
||||
|
||||
user, readable, folder_id, _ = await _task_context(__user__['id'], __chat_id__, folder)
|
||||
categories = [status.strip()] if status and status.strip() in STATUS_GLYPHS else []
|
||||
page = await Tasks.get_tasks(
|
||||
readable,
|
||||
folder_id=folder_id,
|
||||
assignee_id=user.id if assignee.strip().lower() in ('me', 'myself') else None,
|
||||
categories=categories,
|
||||
tag_ids=[get_tag_id(tag)] if tag.strip() else None,
|
||||
search=query,
|
||||
limit=max(1, min(count, 50)),
|
||||
)
|
||||
return JSONCodec.dumps([await _task_summary(task) for task in page['tasks']])
|
||||
except ValueError as e:
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
except Exception as e:
|
||||
log.exception(f'search_tasks error: {e}')
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
|
||||
|
||||
async def get_task(
|
||||
number: Optional[str] = None,
|
||||
folder: str = '',
|
||||
__user__: dict = None,
|
||||
__chat_id__: str = None,
|
||||
) -> str:
|
||||
"""
|
||||
Get one task with its description.
|
||||
|
||||
:param number: The task's number in its folder, like "12" or "#12"; empty means the task this chat is for
|
||||
:param folder: The task's folder name; empty means the chat's folder
|
||||
:return: JSON task with number, folder, title, status, priority, assignee, due date and description
|
||||
"""
|
||||
if not __user__:
|
||||
return JSONCodec.dumps({'error': 'User context not available'})
|
||||
try:
|
||||
_, readable, folder_id, chat = await _task_context(__user__['id'], __chat_id__, folder)
|
||||
task = await _find_task(readable, folder_id, number, chat)
|
||||
from open_webui.utils.access_control.tasks import has_task_access
|
||||
|
||||
if not await has_task_access(__user__['id'], task, 'read'):
|
||||
return JSONCodec.dumps({'error': 'Task not found'})
|
||||
return JSONCodec.dumps({**await _task_summary(task), 'description': task.description})
|
||||
except ValueError as e:
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
except Exception as e:
|
||||
log.exception(f'get_task error: {e}')
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
|
||||
|
||||
async def create_task(
|
||||
title: str,
|
||||
folder: str = '',
|
||||
description: str = '',
|
||||
status: str = '',
|
||||
priority: str = '',
|
||||
assignee: str = '',
|
||||
due_date: str = '',
|
||||
tags: str = '',
|
||||
__request__: Request = None,
|
||||
__user__: dict = None,
|
||||
__chat_id__: str = None,
|
||||
) -> str:
|
||||
"""
|
||||
Create a task in a folder. Use it for follow-up work the user wants tracked.
|
||||
|
||||
:param title: Short title of the task
|
||||
:param folder: Folder name to create it in; empty means the chat's folder
|
||||
:param description: Optional details, in markdown
|
||||
:param status: Optional status name from the folder's workflow, like "Backlog"; empty starts it in Todo
|
||||
:param priority: Optional priority: urgent, high, medium or low
|
||||
:param assignee: Optional person who can edit the folder, by name or email, or "me"
|
||||
:param due_date: Optional due date as YYYY-MM-DD
|
||||
:param tags: Optional tag names, separated by commas, like "bug, frontend"
|
||||
:return: JSON with the created task's number, folder, title, status, tags and link
|
||||
"""
|
||||
if not __user__:
|
||||
return JSONCodec.dumps({'error': 'User context not available'})
|
||||
try:
|
||||
from open_webui.models.folders import Folders
|
||||
from open_webui.models.tasks import TASK_PRIORITIES, TaskForm, Tasks, task_statuses
|
||||
from open_webui.utils.access_control.folders import has_folder_access
|
||||
|
||||
user, _, folder_id, _ = await _task_context(__user__['id'], __chat_id__, folder)
|
||||
if not folder_id:
|
||||
return JSONCodec.dumps({'error': 'Give the folder to create the task in'})
|
||||
target = await Folders.get_folder_by_id(folder_id)
|
||||
if not target or not await has_folder_access(user.id, target, 'write', None):
|
||||
return JSONCodec.dumps({'error': 'You cannot add tasks to that folder'})
|
||||
statuses = task_statuses(target.meta)
|
||||
if priority and priority.strip().lower() not in TASK_PRIORITIES:
|
||||
return JSONCodec.dumps({'error': 'Priority must be urgent, high, medium or low'})
|
||||
form = TaskForm(
|
||||
folder_id=folder_id,
|
||||
title=title,
|
||||
description=description or None,
|
||||
status=_match_status(statuses, status) if status.strip() else None,
|
||||
priority=priority.strip().lower() or None,
|
||||
assignee_id=await _match_assignee(target, assignee, user) if assignee.strip() else None,
|
||||
due_date=due_date.strip() or None,
|
||||
tags=tags.split(','),
|
||||
)
|
||||
task = await Tasks.insert_new_task(user.id, form, statuses)
|
||||
if form.tags:
|
||||
from open_webui.models.tags import Tags
|
||||
|
||||
await Tags.set_resource_tags('task', task.id, form.tags, target.user_id)
|
||||
from open_webui.routers.tasks import notify_assignee
|
||||
|
||||
if __request__ is not None:
|
||||
await publish_event(
|
||||
__request__,
|
||||
EVENTS.TASK_CREATED,
|
||||
actor=user,
|
||||
subject_id=task.id,
|
||||
data={'title': task.title, 'folder_id': task.folder_id, 'number': task.number},
|
||||
)
|
||||
await notify_assignee(task, user.id)
|
||||
from open_webui.internal.db import get_async_db_context
|
||||
from open_webui.routers.tasks import notify_task_change
|
||||
|
||||
async with get_async_db_context() as db:
|
||||
await notify_task_change(task, user.id, db)
|
||||
return JSONCodec.dumps(await _task_summary(task, target.name, statuses))
|
||||
except ValueError as e:
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
except Exception as e:
|
||||
log.exception(f'create_task error: {e}')
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
|
||||
|
||||
async def update_task(
|
||||
number: Optional[str] = None,
|
||||
folder: str = '',
|
||||
title: Optional[str] = None,
|
||||
description: Optional[str] = None,
|
||||
status: Optional[str] = None,
|
||||
priority: Optional[str] = None,
|
||||
assignee: Optional[str] = None,
|
||||
due_date: Optional[str] = None,
|
||||
tags: Optional[str] = None,
|
||||
__request__: Request = None,
|
||||
__user__: dict = None,
|
||||
__chat_id__: str = None,
|
||||
) -> str:
|
||||
"""
|
||||
Change a task. Leave a field out to keep it; pass an empty string to clear priority, assignee or due date.
|
||||
|
||||
:param number: The task's number in its folder, like "12"; empty means the task this chat is for
|
||||
:param folder: The task's folder name; empty means the chat's folder
|
||||
:param title: New title
|
||||
:param description: New description, in markdown; replaces the old one
|
||||
:param status: Status name from the folder's workflow, like "In Progress" or "Done"
|
||||
:param priority: urgent, high, medium or low, or empty to clear
|
||||
:param assignee: Person who can edit the folder, by name or email, "me", or empty to unassign
|
||||
:param due_date: Due date as YYYY-MM-DD, or empty to clear
|
||||
:param tags: Tag names separated by commas; replaces the task's tags, or empty to remove them all
|
||||
:return: JSON with the updated task
|
||||
"""
|
||||
if not __user__:
|
||||
return JSONCodec.dumps({'error': 'User context not available'})
|
||||
try:
|
||||
from open_webui.models.folders import Folders
|
||||
from open_webui.models.tasks import TASK_PRIORITIES, Tasks, TaskUpdateForm, task_statuses
|
||||
from open_webui.utils.access_control.tasks import has_task_access
|
||||
|
||||
user, readable, folder_id, chat = await _task_context(__user__['id'], __chat_id__, folder)
|
||||
task = await _find_task(readable, folder_id, number, chat)
|
||||
if not await has_task_access(user.id, task, 'write'):
|
||||
return JSONCodec.dumps({'error': 'You cannot change that task'})
|
||||
target = await Folders.get_folder_by_id(task.folder_id)
|
||||
statuses = task_statuses(target.meta if target else None)
|
||||
changes = {}
|
||||
if title is not None:
|
||||
changes['title'] = title
|
||||
if description is not None:
|
||||
changes['description'] = description or None
|
||||
if status is not None:
|
||||
changes['status'] = _match_status(statuses, status)
|
||||
if priority is not None:
|
||||
value = priority.strip().lower() or None
|
||||
if value is not None and value not in TASK_PRIORITIES:
|
||||
return JSONCodec.dumps({'error': 'Priority must be urgent, high, medium or low'})
|
||||
changes['priority'] = value
|
||||
if assignee is not None:
|
||||
changes['assignee_id'] = await _match_assignee(target, assignee, user)
|
||||
if due_date is not None:
|
||||
changes['due_date'] = due_date.strip() or None
|
||||
form = TaskUpdateForm(**changes)
|
||||
previous_assignee = task.assignee_id
|
||||
task = await Tasks.update_task(task.id, user.id, form.model_dump(include=set(changes)), statuses)
|
||||
if tags is not None and target:
|
||||
from open_webui.models.tags import Tags
|
||||
from open_webui.models.tasks import TaskForm
|
||||
|
||||
# The same checks as a new task's tags; they're the folder owner's.
|
||||
names = TaskForm(folder_id=task.folder_id, title=task.title, tags=tags.split(',')).tags
|
||||
await Tags.set_resource_tags('task', task.id, names, target.user_id)
|
||||
from open_webui.routers.tasks import notify_assignee, notify_task_change
|
||||
|
||||
if __request__ is not None:
|
||||
await publish_event(
|
||||
__request__,
|
||||
EVENTS.TASK_UPDATED,
|
||||
actor=user,
|
||||
subject_id=task.id,
|
||||
data={'title': task.title, 'folder_id': task.folder_id, 'number': task.number},
|
||||
)
|
||||
if task.assignee_id and task.assignee_id != previous_assignee:
|
||||
await notify_assignee(task, user.id)
|
||||
from open_webui.internal.db import get_async_db_context
|
||||
|
||||
async with get_async_db_context() as db:
|
||||
await notify_task_change(task, user.id, db)
|
||||
return JSONCodec.dumps(await _task_summary(task, target.name if target else None, statuses))
|
||||
except ValueError as e:
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
except Exception as e:
|
||||
log.exception(f'update_task error: {e}')
|
||||
return JSONCodec.dumps({'error': str(e)})
|
||||
|
||||
|
||||
# Calendar tools
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
from open_webui.models.access_grants import AccessGrants
|
||||
from open_webui.models.folders import FolderModel, Folders
|
||||
from open_webui.models.groups import Groups
|
||||
from open_webui.models.tasks import TaskModel
|
||||
from open_webui.models.teams import Teams
|
||||
from open_webui.utils.access_control.folders import has_folder_access
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
|
||||
async def has_task_access(user_id: str, task: TaskModel, permission: str, db: AsyncSession | None = None) -> bool:
|
||||
"""A task is open to whoever has the same access to its folder."""
|
||||
folder = await Folders.get_folder_by_id(task.folder_id, db=db)
|
||||
return bool(folder) and await has_folder_access(user_id, folder, permission, db)
|
||||
|
||||
|
||||
async def folder_user_ids(folder: FolderModel, permission: str, db: AsyncSession | None = None) -> set[str] | None:
|
||||
"""Everyone with this access to the folder: its owner plus whoever its grants, and its parents', reach.
|
||||
|
||||
Read access counts write grants too. None means a grant is open to everyone.
|
||||
"""
|
||||
permissions = {'write'} if permission == 'write' else {'read', 'write'}
|
||||
user_ids, group_ids, team_ids = set(), set(), set()
|
||||
seen = set()
|
||||
while folder and folder.id not in seen:
|
||||
seen.add(folder.id)
|
||||
user_ids.add(folder.user_id)
|
||||
for grant in await AccessGrants.get_grants_by_resource('folder', folder.id, db=db):
|
||||
if grant.permission not in permissions:
|
||||
continue
|
||||
if grant.principal_type == 'user':
|
||||
if grant.principal_id == '*':
|
||||
return None
|
||||
user_ids.add(grant.principal_id)
|
||||
elif grant.principal_type == 'group':
|
||||
group_ids.add(grant.principal_id)
|
||||
elif grant.principal_type == 'team':
|
||||
team_ids.add(grant.principal_id)
|
||||
folder = await Folders.get_folder_by_id(folder.parent_id, db=db) if folder.parent_id else None
|
||||
if group_ids:
|
||||
members = await Groups.get_group_user_ids_by_ids(list(group_ids), db=db, include_inherited=True)
|
||||
user_ids.update(user_id for ids in members.values() for user_id in ids)
|
||||
if team_ids:
|
||||
user_ids.update(await Teams.get_user_ids_by_team_ids(list(team_ids), db=db))
|
||||
return user_ids
|
||||
@@ -19,6 +19,7 @@ def resource_models():
|
||||
from open_webui.models.notes import Note
|
||||
from open_webui.models.prompts import Prompt
|
||||
from open_webui.models.skills import Skill
|
||||
from open_webui.models.tasks import Task
|
||||
from open_webui.models.tools import Tool
|
||||
|
||||
return dict(
|
||||
@@ -29,6 +30,7 @@ def resource_models():
|
||||
tool=Tool,
|
||||
note=Note,
|
||||
chat=Chat,
|
||||
task=Task,
|
||||
)
|
||||
|
||||
|
||||
@@ -65,6 +67,13 @@ async def comment_resource(resource_type, resource_id, user, db, *, lock=False,
|
||||
from open_webui.models.chats import Chats
|
||||
|
||||
allowed = await Chats.has_chat_access(resource_id, user, db=db, chat=resource)
|
||||
elif resource_type == 'task':
|
||||
from open_webui.models.tasks import TaskModel
|
||||
from open_webui.utils.access_control.tasks import has_task_access
|
||||
|
||||
allowed = await Config.get('tasks.enable') and await has_task_access(
|
||||
user.id, TaskModel.model_validate(resource), 'read', db
|
||||
)
|
||||
else:
|
||||
if resource_type == 'note':
|
||||
if not await Config.get('notes.enable') or (
|
||||
|
||||
@@ -70,6 +70,8 @@ async def validate_source(event_type, resource_type, resource_id, object_type, o
|
||||
and obj.automation_id == resource_id
|
||||
and obj.status == 'error'
|
||||
)
|
||||
elif event_type == 'task.assigned':
|
||||
valid = object_type == 'task' and resource_type == 'task' and obj.id == resource_id
|
||||
elif event_type == 'calendar.alert_triggered':
|
||||
valid = (
|
||||
object_type == 'calendar_event'
|
||||
@@ -92,6 +94,7 @@ async def resource_access(user_ids, db):
|
||||
'channels.enable',
|
||||
'calendar.enable',
|
||||
'automations.enable',
|
||||
'tasks.enable',
|
||||
'user.permissions',
|
||||
db=db,
|
||||
)
|
||||
@@ -185,6 +188,9 @@ def resource_queries(user, user_groups, config):
|
||||
if enabled('automations'):
|
||||
model = models['automation']
|
||||
queries['automation'] = select(model.id).where(model.user_id == user.id)
|
||||
if config.get('tasks.enable'):
|
||||
model = models['task']
|
||||
queries['task'] = select(model.id).where(model.folder_id.in_(select(folders.c.id)))
|
||||
return queries
|
||||
|
||||
|
||||
@@ -234,6 +240,7 @@ async def visible_clause(user, db):
|
||||
('chat_message', 'chat_id', ['chat.mentioned']),
|
||||
('automation_run', 'automation_id', ['automation.run_failed']),
|
||||
('calendar_event', 'calendar_id', ['calendar.alert_triggered']),
|
||||
('task', 'id', ['task.assigned']),
|
||||
):
|
||||
model = models[kind]
|
||||
conditions = [model.id == Notification.object_id, getattr(model, parent_column) == Notification.resource_id]
|
||||
|
||||
@@ -53,6 +53,7 @@ from open_webui.tools.builtin import (
|
||||
calculate_timestamp,
|
||||
create_automation,
|
||||
create_calendar_event,
|
||||
create_task,
|
||||
create_todos,
|
||||
create_tool,
|
||||
delegate_task,
|
||||
@@ -66,6 +67,7 @@ from open_webui.tools.builtin import (
|
||||
generate_image,
|
||||
generate_video,
|
||||
get_current_timestamp,
|
||||
get_task,
|
||||
grep_chat_files,
|
||||
grep_knowledge_files,
|
||||
kb_exec,
|
||||
@@ -92,6 +94,7 @@ from open_webui.tools.builtin import (
|
||||
search_knowledge_files,
|
||||
search_memories,
|
||||
search_notes,
|
||||
search_tasks,
|
||||
search_users,
|
||||
search_web,
|
||||
send_message,
|
||||
@@ -100,6 +103,7 @@ from open_webui.tools.builtin import (
|
||||
update_automation,
|
||||
update_calendar_event,
|
||||
update_memory,
|
||||
update_task,
|
||||
update_todo,
|
||||
view_channel_message,
|
||||
view_channel_thread,
|
||||
@@ -722,6 +726,8 @@ async def get_builtin_tools(
|
||||
'notes.enable',
|
||||
'channels.enable',
|
||||
'automations.enable',
|
||||
'tasks.enable',
|
||||
'folders.enable',
|
||||
'calendar.enable',
|
||||
'ui.enable_user_webhooks',
|
||||
'subagents.enable',
|
||||
@@ -1002,6 +1008,15 @@ async def get_builtin_tools(
|
||||
[create_automation, update_automation, list_automations, toggle_automation, delete_automation]
|
||||
)
|
||||
|
||||
# Task tools - find, read, create and change the tasks in folders
|
||||
if (
|
||||
is_builtin_tool_enabled('tasks')
|
||||
and config.get('tasks.enable')
|
||||
and config.get('folders.enable') is not False
|
||||
and await has_user_permission('folders')
|
||||
):
|
||||
builtin_functions.extend([search_tasks, get_task, create_task, update_task])
|
||||
|
||||
# Calendar tools - search/create/update/delete events
|
||||
if is_builtin_tool_enabled('calendar') and config.get('calendar.enable') and await has_user_permission('calendar'):
|
||||
builtin_functions.extend(
|
||||
|
||||
@@ -70,7 +70,9 @@ export const createNewChat = async (
|
||||
token: string,
|
||||
chat: object,
|
||||
folderId: string | null,
|
||||
variables: object | null = null
|
||||
variables: object | null = null,
|
||||
// The task the chat is started from; it must be in the same folder.
|
||||
taskId: string | null = null
|
||||
) => {
|
||||
let error = null;
|
||||
|
||||
@@ -84,7 +86,8 @@ export const createNewChat = async (
|
||||
body: JSON.stringify({
|
||||
chat: chat,
|
||||
...(variables !== null ? { variables } : {}),
|
||||
folder_id: folderId ?? null
|
||||
folder_id: folderId ?? null,
|
||||
...(taskId ? { task_id: taskId } : {})
|
||||
})
|
||||
})
|
||||
.then(async (res) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { WEBUI_API_BASE_URL } from '$lib/constants';
|
||||
|
||||
export type CommentResource = {
|
||||
resource_type: 'model' | 'knowledge' | 'prompt' | 'skill' | 'tool' | 'note' | 'chat';
|
||||
resource_type: 'model' | 'knowledge' | 'prompt' | 'skill' | 'tool' | 'note' | 'chat' | 'task';
|
||||
resource_id: string;
|
||||
};
|
||||
export type CommentAnchor = {
|
||||
|
||||
@@ -63,5 +63,6 @@ export const inboxLabels: Record<string, string> = {
|
||||
'channel.replied': '{{name}} replied',
|
||||
'calendar.alert_triggered': 'Upcoming event',
|
||||
'automation.run_failed': 'Automation failed',
|
||||
'task.assigned': '{{name}} assigned you a task',
|
||||
'system.announcement': 'Announcement'
|
||||
};
|
||||
@@ -0,0 +1,173 @@
|
||||
import { WEBUI_API_BASE_URL } from '$lib/constants';
|
||||
import type { StatusGlyph } from '$lib/utils/folders';
|
||||
import type { FolderTag } from '$lib/utils/tags';
|
||||
|
||||
export type TaskPriority = 'urgent' | 'high' | 'medium' | 'low';
|
||||
|
||||
export type TaskPerson = { id: string; name: string };
|
||||
|
||||
export type Task = {
|
||||
id: string;
|
||||
folder_id: string;
|
||||
// Numbered per folder (#12); a moved task takes its new folder's next number.
|
||||
number: number;
|
||||
user_id: string;
|
||||
title: string;
|
||||
description: string | null;
|
||||
// An id from its folder's statuses, which also say its category (`folder.statuses`).
|
||||
status: string;
|
||||
priority: TaskPriority | null;
|
||||
assignee_id: string | null;
|
||||
// A plain date, YYYY-MM-DD.
|
||||
due_date: string | null;
|
||||
// Time in status, as folder chats keep it: when the current status began, and seconds banked per status.
|
||||
status_at: number;
|
||||
status_durations: Record<string, number> | null;
|
||||
// Set by the status's category: started on in progress or waiting, then done or canceled.
|
||||
started_at: number | null;
|
||||
completed_at: number | null;
|
||||
canceled_at: number | null;
|
||||
data: Record<string, unknown> | null;
|
||||
meta: Record<string, unknown> | null;
|
||||
created_at: number;
|
||||
updated_at: number;
|
||||
folder: {
|
||||
id: string;
|
||||
name: string;
|
||||
icon?: string | null;
|
||||
statuses: unknown[];
|
||||
} | null;
|
||||
user: TaskPerson | null;
|
||||
assignee: TaskPerson | null;
|
||||
chat_count: number;
|
||||
write_access?: boolean | null;
|
||||
// Its folder owner's tags, so every task in a folder shares one set.
|
||||
tags: FolderTag[];
|
||||
};
|
||||
|
||||
export type TaskPage = { tasks: Task[]; total: number; has_more: boolean };
|
||||
|
||||
export type TaskQuery = {
|
||||
folder_id?: string;
|
||||
assigned_to_me?: boolean;
|
||||
created_by_me?: boolean;
|
||||
search?: string;
|
||||
status?: string[];
|
||||
category?: string[];
|
||||
priority?: string[];
|
||||
assignee_id?: string[];
|
||||
folder?: string[];
|
||||
// Tag ids; 'none' keeps untagged tasks.
|
||||
tag?: string[];
|
||||
sort_by?: string;
|
||||
sort_dir?: 'asc' | 'desc';
|
||||
page?: number;
|
||||
};
|
||||
|
||||
export type TaskChanges = Partial<
|
||||
Pick<
|
||||
Task,
|
||||
'folder_id' | 'title' | 'description' | 'status' | 'priority' | 'assignee_id' | 'due_date'
|
||||
>
|
||||
>;
|
||||
|
||||
export type TaskHistoryEntry = {
|
||||
id: string;
|
||||
task_id: string;
|
||||
user_id: string | null;
|
||||
// One changed field. A value is what the task's field held; when it's an id
|
||||
// (status, assignee_id, folder_id), the name is what that was called then.
|
||||
field: string;
|
||||
old_value: string | null;
|
||||
new_value: string | null;
|
||||
old_name: string | null;
|
||||
new_name: string | null;
|
||||
created_at: number;
|
||||
user: TaskPerson | null;
|
||||
};
|
||||
|
||||
export type TaskChat = {
|
||||
id: string;
|
||||
title: string;
|
||||
updated_at: number;
|
||||
created_at: number;
|
||||
user_id: string;
|
||||
owner_name: string | null;
|
||||
active: boolean;
|
||||
pending_approval: boolean;
|
||||
};
|
||||
|
||||
// Throws the server's `detail`, as the other API clients do, so callers can toast it.
|
||||
async function request<T>(token: string, path: string, method = 'GET', body?: object): Promise<T> {
|
||||
const res = await fetch(`${WEBUI_API_BASE_URL}/tasks${path}`, {
|
||||
method,
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
authorization: `Bearer ${token}`
|
||||
},
|
||||
...(body ? { body: JSON.stringify(body) } : {})
|
||||
});
|
||||
const json = await res.json().catch(() => null);
|
||||
if (!res.ok) {
|
||||
console.error(json);
|
||||
throw json?.detail ?? `${res.status}`;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
export const getTasks = (token: string, query: TaskQuery = {}) => {
|
||||
const params = new URLSearchParams();
|
||||
for (const [key, value] of Object.entries(query)) {
|
||||
if (Array.isArray(value)) value.forEach((item) => params.append(key, item));
|
||||
else if (value !== undefined && value !== null && value !== '' && value !== false)
|
||||
params.set(key, String(value));
|
||||
}
|
||||
return request<TaskPage>(token, `/?${params}`);
|
||||
};
|
||||
|
||||
export const getTaskAssignees = (token: string, folderId: string, query = '') =>
|
||||
request<TaskPerson[]>(token, `/assignees?${new URLSearchParams({ folder_id: folderId, query })}`);
|
||||
|
||||
// Tasks in a folder and its subfolders; they're deleted with the folder.
|
||||
export const countFolderTasks = (token: string, folderId: string) =>
|
||||
request<{ count: number }>(token, `/count?${new URLSearchParams({ folder_id: folderId })}`);
|
||||
|
||||
export const createTask = (
|
||||
token: string,
|
||||
form: TaskChanges & { folder_id: string; title: string; tags?: string[] }
|
||||
) => request<Task>(token, '/create', 'POST', form);
|
||||
|
||||
// Tags on the tasks the user can read, or one folder's, with how many tasks carry each.
|
||||
export const getTaskTags = (token: string, folderId: string | null = null) =>
|
||||
request<FolderTag[]>(
|
||||
token,
|
||||
`/tags?${new URLSearchParams(folderId ? { folder_id: folderId } : {})}`
|
||||
);
|
||||
|
||||
export const getTaskTagsById = (token: string, id: string) =>
|
||||
request<FolderTag[]>(token, `/id/${id}/tags`);
|
||||
|
||||
export const addTaskTagById = (token: string, id: string, name: string) =>
|
||||
request<FolderTag[]>(token, `/id/${id}/tags`, 'POST', { name });
|
||||
|
||||
export const deleteTaskTagById = (token: string, id: string, name: string) =>
|
||||
request<FolderTag[]>(token, `/id/${id}/tags`, 'DELETE', { name });
|
||||
|
||||
export const updateTaskTagColorById = (token: string, id: string, name: string, color: string) =>
|
||||
request<FolderTag[]>(token, `/id/${id}/tags`, 'PATCH', { name, color });
|
||||
|
||||
export const getTaskById = (token: string, id: string) => request<Task>(token, `/id/${id}`);
|
||||
|
||||
// Only the fields given change; null clears one.
|
||||
export const updateTaskById = (token: string, id: string, changes: TaskChanges) =>
|
||||
request<Task>(token, `/id/${id}/update`, 'POST', changes);
|
||||
|
||||
export const deleteTaskById = (token: string, id: string) =>
|
||||
request<boolean>(token, `/id/${id}/delete`, 'DELETE');
|
||||
|
||||
export const getTaskHistory = (token: string, id: string) =>
|
||||
request<TaskHistoryEntry[]>(token, `/id/${id}/history`);
|
||||
|
||||
export const getTaskChats = (token: string, id: string) =>
|
||||
request<TaskChat[]>(token, `/id/${id}/chats`);
|
||||
@@ -80,6 +80,7 @@
|
||||
ENABLE_NOTIFICATIONS: $i18n.t('settings.admin.general.notifications.label'),
|
||||
ENABLE_CHANNELS: $i18n.t('settings.admin.general.channels.label'),
|
||||
ENABLE_TEAMS: $i18n.t('settings.admin.general.teams.label'),
|
||||
ENABLE_TASKS: $i18n.t('settings.admin.general.tasks.label'),
|
||||
ENABLE_ENCRYPTED_CHANNELS: $i18n.t('settings.admin.general.encryptedChannels.label'),
|
||||
CHANNEL_MODEL_RESPONSE_MODE: $i18n.t('settings.admin.general.modelResponseMode.label'),
|
||||
ENABLE_APPS: $i18n.t('settings.admin.general.apps.label'),
|
||||
@@ -318,6 +319,13 @@
|
||||
>
|
||||
<Switch bind:state={adminConfig.ENABLE_TEAMS} ariaLabelledbyId={labelId} />
|
||||
</AdminSettingRow>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.tasks.label')}
|
||||
description={$i18n.t('settings.admin.general.tasks.description')}
|
||||
let:labelId
|
||||
>
|
||||
<Switch bind:state={adminConfig.ENABLE_TASKS} ariaLabelledbyId={labelId} />
|
||||
</AdminSettingRow>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.userStatus.label')}
|
||||
description={$i18n.t('settings.admin.general.userStatus.description')}
|
||||
|
||||
@@ -264,6 +264,7 @@
|
||||
export let parentChatId = '';
|
||||
export let draftTitle = '';
|
||||
export let draftFolderId: string | null = null;
|
||||
let draftTaskId: string | null = null;
|
||||
export let suggestedPrompts = [];
|
||||
export let selectedText = '';
|
||||
export let notePageId = '';
|
||||
@@ -3147,6 +3148,8 @@
|
||||
const searchParams = url?.searchParams ?? new URLSearchParams();
|
||||
const queuedPrompt = embedded ? null : $newChatPrompt;
|
||||
if (queuedPrompt) newChatPrompt.set(null);
|
||||
// A task's New chat opens its folder with ?task=, so the chat is linked to the task.
|
||||
draftTaskId = embedded ? null : searchParams.get('task');
|
||||
mainChatHref = '/';
|
||||
if (url?.pathname === '/') {
|
||||
mainChatHref += url.search + url.hash;
|
||||
@@ -4722,6 +4725,7 @@
|
||||
: {
|
||||
files: $i18n.t('Files'),
|
||||
chats: $i18n.t('Chats'),
|
||||
tasks: $i18n.t('Tasks'),
|
||||
notes: $i18n.t('Notes'),
|
||||
automations: $i18n.t('Automations'),
|
||||
knowledge: $i18n.t('Knowledge')
|
||||
@@ -5859,8 +5863,10 @@
|
||||
timestamp: Date.now()
|
||||
},
|
||||
selectedFolderId,
|
||||
chatVariables
|
||||
chatVariables,
|
||||
draftTaskId
|
||||
);
|
||||
draftTaskId = null;
|
||||
|
||||
if (!createdChat?.id) throw new Error($i18n.t('Failed to create chat'));
|
||||
if (!Object.values(_history.messages).some((message) => message.role === 'assistant')) {
|
||||
@@ -6484,6 +6490,7 @@
|
||||
id: $chatId,
|
||||
archived: chat?.archived ?? false,
|
||||
folder_id: chat?.folder_id,
|
||||
task_id: chat?.task_id,
|
||||
chat: {
|
||||
title: $chatTitle,
|
||||
models: selectedModels,
|
||||
|
||||
@@ -147,6 +147,16 @@ const labels = (t: Translate, name: string): Labels | null => {
|
||||
case 'update_todo':
|
||||
return [t('Updating to-do'), t('Updated to-do'), t('Failed to update to-do')];
|
||||
|
||||
// Tasks
|
||||
case 'search_tasks':
|
||||
return [t('Searching tasks'), t('Searched tasks'), t('Failed to search tasks')];
|
||||
case 'get_task':
|
||||
return [t('Reading task'), t('Read task'), t('Failed to read task')];
|
||||
case 'create_task':
|
||||
return [t('Creating task'), t('Created task'), t('Failed to create task')];
|
||||
case 'update_task':
|
||||
return [t('Updating task'), t('Updated task'), t('Failed to update task')];
|
||||
|
||||
// Automations
|
||||
case 'create_automation':
|
||||
return [t('Creating automation'), t('Created automation'), t('Failed to create automation')];
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
import SplitPanel from '../icons/SplitPanel.svelte';
|
||||
import { isTemporaryChatId } from '$lib/utils/chatId';
|
||||
import ChatParticipants from '$lib/components/common/ChatParticipants.svelte';
|
||||
import TaskChip from '$lib/components/tasks/TaskChip.svelte';
|
||||
|
||||
const i18n: any = getContext('i18n');
|
||||
|
||||
@@ -204,6 +205,7 @@
|
||||
{title || chat?.chat?.title || $i18n.t('New Chat')}
|
||||
</h1>
|
||||
{/if}
|
||||
{#if chat?.task_id}<TaskChip id={chat.task_id} />{/if}
|
||||
|
||||
{#if !$temporaryChat && ($user?.role === 'admin' || ($user?.permissions?.chat?.delete ?? true))}
|
||||
<button
|
||||
|
||||
@@ -153,22 +153,25 @@
|
||||
{@const chats = group.page?.chats ?? []}
|
||||
{#if group.label}
|
||||
<!-- The header itself is frosted, so rows scrolling under it blur and a chat background image still shows around it. -->
|
||||
<div class="sticky top-0 z-[1] mt-1.5 first:mt-0">
|
||||
<div class="group-header flex h-8 items-center gap-2 rounded-xl pl-2 pr-3 backdrop-blur-md">
|
||||
<button
|
||||
type="button"
|
||||
class="flex size-5 items-center justify-center rounded-md text-base-400 hover:text-base-700 dark:text-base-500 dark:hover:text-base-200"
|
||||
aria-expanded={!collapsed[group.id]}
|
||||
aria-label={collapsed[group.id]
|
||||
? $i18n.t('Expand {{name}}', { name: group.label })
|
||||
: $i18n.t('Collapse {{name}}', { name: group.label })}
|
||||
on:click={() => onCollapse(group.id)}
|
||||
<!-- The whole header toggles the group, as a heading wrapping its button (the disclosure pattern). -->
|
||||
<h3 class="sticky top-0 z-[1] mt-1.5 first:mt-0">
|
||||
<button
|
||||
type="button"
|
||||
class="group-header group/header flex h-8 w-full items-center gap-2 rounded-xl pl-2 pr-3 text-left backdrop-blur-md"
|
||||
aria-expanded={!collapsed[group.id]}
|
||||
aria-label={collapsed[group.id]
|
||||
? $i18n.t('Expand {{name}}', { name: group.label })
|
||||
: $i18n.t('Collapse {{name}}', { name: group.label })}
|
||||
on:click={() => onCollapse(group.id)}
|
||||
>
|
||||
<span
|
||||
class="flex size-5 items-center justify-center text-base-400 transition-colors group-hover/header:text-base-700 dark:text-base-500 dark:group-hover/header:text-base-200"
|
||||
>
|
||||
<ChevronRight
|
||||
className="size-3 transition-transform {collapsed[group.id] ? '' : 'rotate-90'}"
|
||||
strokeWidth="2"
|
||||
/>
|
||||
</button>
|
||||
</span>
|
||||
{#if group.status}
|
||||
<StatusIcon status={group.status} />
|
||||
{:else if group.priority}
|
||||
@@ -182,14 +185,14 @@
|
||||
><span class="size-2 rounded-full {group.dot}"></span></span
|
||||
>
|
||||
{/if}
|
||||
<h3 class="text-xs text-base-700 dark:text-base-200">
|
||||
<span class="text-xs text-base-700 dark:text-base-200">
|
||||
{group.label}
|
||||
</h3>
|
||||
</span>
|
||||
<span class="text-xs tabular-nums text-base-400 dark:text-base-500"
|
||||
>{group.page?.total ?? ''}</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
</h3>
|
||||
{/if}
|
||||
|
||||
{#if !collapsed[group.id]}
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
import { getContext } from 'svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
import { folders, models, teams } from '$lib/stores';
|
||||
import { config, folders, models, teams } from '$lib/stores';
|
||||
import { loadFolderChatPage, type FolderDetails } from '$lib/stores/folderStates';
|
||||
import type { FolderAutomation } from '$lib/apis/automations';
|
||||
import { getTasks, type Task } from '$lib/apis/tasks';
|
||||
import { taskStatusDef } from '$lib/utils/tasks';
|
||||
import StatusIcon from './FolderStatusIcon.svelte';
|
||||
import type { AppLayoutContext } from '$lib/types';
|
||||
import type { WorkspaceChat } from '$lib/utils/folders';
|
||||
import { openFolderChat } from './folderChat';
|
||||
@@ -55,6 +58,24 @@
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
// Open tasks, newest first, when tasks are on.
|
||||
let tasks: Task[] = [];
|
||||
let tasksFor = '';
|
||||
$: if ($config?.features?.enable_tasks && folder.id !== tasksFor) {
|
||||
tasksFor = folder.id;
|
||||
tasks = [];
|
||||
const folderId = folder.id;
|
||||
getTasks(localStorage.token, {
|
||||
folder_id: folderId,
|
||||
category: ['backlog', 'todo', 'in_progress', 'waiting', 'none'],
|
||||
sort_by: 'updated_at'
|
||||
})
|
||||
.then((page) => {
|
||||
if (folder.id === folderId) tasks = page.tasks.slice(0, RECENT);
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
// Notes and automations open in a page tab, as their own tabs open them.
|
||||
const openPage = (event: MouseEvent, href: string, label: string) => {
|
||||
if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)
|
||||
@@ -258,6 +279,39 @@
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
{#if tasks.length}
|
||||
<section>
|
||||
{@render groupHeader('tasks', $i18n.t('Tasks'))}
|
||||
{#if !folded.tasks}
|
||||
<ul class="py-0.5">
|
||||
{#each tasks as task (task.id)}
|
||||
<li>
|
||||
<a
|
||||
href="/tasks/{task.id}"
|
||||
class={groupRow}
|
||||
on:click={(event) =>
|
||||
openPage(event, `/tasks/${task.id}`, `#${task.number} ${task.title}`)}
|
||||
>
|
||||
<span class={railIcon}
|
||||
><StatusIcon
|
||||
glyph={taskStatusDef(task, (key) => $i18n.t(key)).glyph}
|
||||
color={taskStatusDef(task, (key) => $i18n.t(key)).color}
|
||||
emoji={taskStatusDef(task, (key) => $i18n.t(key)).icon}
|
||||
dot={!taskStatusDef(task, (key) => $i18n.t(key)).glyph}
|
||||
/></span
|
||||
>
|
||||
<span class="shrink-0 text-base-400 tabular-nums dark:text-base-500"
|
||||
>#{task.number}</span
|
||||
>
|
||||
<span class="min-w-0 truncate">{task.title}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{/if}
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
{#if notes?.length}
|
||||
<section>
|
||||
{@render groupHeader('notes', $i18n.t('Notes'))}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import { getContext, onMount, setContext, tick } from 'svelte';
|
||||
import { writable } from 'svelte/store';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { page } from '$app/stores';
|
||||
// @ts-expect-error The installed SortableJS package has no type declarations.
|
||||
import Sortable from 'sortablejs';
|
||||
import {
|
||||
@@ -45,6 +46,7 @@
|
||||
NO_STATUS,
|
||||
NO_PRIORITY,
|
||||
statusDefs,
|
||||
customStatuses,
|
||||
groupedStatusDefs,
|
||||
priorityDefs,
|
||||
priorityKey,
|
||||
@@ -87,6 +89,7 @@
|
||||
import FolderNotes from './FolderNotes.svelte';
|
||||
import FolderKnowledge from './FolderKnowledge.svelte';
|
||||
import FolderOverview from './FolderOverview.svelte';
|
||||
import Tasks from '$lib/components/tasks/Tasks.svelte';
|
||||
import KnowledgeSelector from '$lib/components/workspace/Models/Knowledge/KnowledgeSelector.svelte';
|
||||
import { getFolderAutomations, type FolderAutomation } from '$lib/apis/automations';
|
||||
import AdjustmentsHorizontal from '$lib/components/icons/AdjustmentsHorizontal.svelte';
|
||||
@@ -204,6 +207,9 @@
|
||||
|
||||
$: if (!canUseAutomations && folderSection === 'automations') folderSection = 'overview';
|
||||
|
||||
$: canUseTasks = !!$config?.features?.enable_tasks;
|
||||
$: if (!canUseTasks && folderSection === 'tasks') folderSection = 'overview';
|
||||
|
||||
let knowledgeView: FolderKnowledge;
|
||||
let knowledgeItems: any[] = [];
|
||||
let showKnowledgePicker = false;
|
||||
@@ -214,6 +220,7 @@
|
||||
'overview',
|
||||
'files',
|
||||
'chats',
|
||||
'tasks',
|
||||
'notes',
|
||||
'knowledge',
|
||||
'automations'
|
||||
@@ -229,6 +236,7 @@
|
||||
overview: $i18n.t('Overview'),
|
||||
files: $i18n.t('Files'),
|
||||
chats: $i18n.t('Chats'),
|
||||
tasks: $i18n.t('Tasks'),
|
||||
notes: $i18n.t('Notes'),
|
||||
automations: $i18n.t('Automations'),
|
||||
knowledge: $i18n.t('Knowledge')
|
||||
@@ -239,6 +247,7 @@
|
||||
(id) =>
|
||||
(id !== 'files' || filesTarget) &&
|
||||
(id !== 'notes' || canUseNotes) &&
|
||||
(id !== 'tasks' || canUseTasks) &&
|
||||
(id !== 'automations' || canUseAutomations)
|
||||
);
|
||||
// Overview is always shown.
|
||||
@@ -419,6 +428,9 @@
|
||||
setContext('folder-statuses', defsStore);
|
||||
setContext('folder-statuses-manage', manageStore);
|
||||
let showStatuses = false;
|
||||
// The task list's statuses, when it opens the editor for a folder that has none yet.
|
||||
let taskStatusSeed: StatusDef[] | null = null;
|
||||
$: if (!showStatuses) taskStatusSeed = null;
|
||||
$: defs = statusDefs(folder?.meta, (key) => $i18n.t(key));
|
||||
$: defsStore.set(defs);
|
||||
$: manageStore.set(readOnly ? null : () => (showStatuses = true));
|
||||
@@ -510,7 +522,6 @@
|
||||
let currentFolderId = '';
|
||||
let section: HTMLElement;
|
||||
let searchInput: HTMLInputElement;
|
||||
let searchOpen = false;
|
||||
|
||||
let search = '';
|
||||
let appliedSearch = '';
|
||||
@@ -1043,8 +1054,6 @@
|
||||
}
|
||||
|
||||
async function openSearch() {
|
||||
searchOpen = true;
|
||||
await tick();
|
||||
searchInput?.focus();
|
||||
}
|
||||
|
||||
@@ -1138,6 +1147,8 @@
|
||||
function shortcuts(event: KeyboardEvent) {
|
||||
if (event.defaultPrevented || event.metaKey || event.ctrlKey || event.altKey) return;
|
||||
if (!section?.offsetParent) return;
|
||||
// The task list has its own keys.
|
||||
if (folderSection === 'tasks') return;
|
||||
const target = event.target as HTMLElement | null;
|
||||
if (
|
||||
target?.closest('input, textarea, select, [contenteditable=""], [contenteditable="true"]') ||
|
||||
@@ -1210,7 +1221,6 @@
|
||||
const state = getFolderState(folder.id);
|
||||
search = '';
|
||||
appliedSearch = '';
|
||||
searchOpen = false;
|
||||
statusFilter = [];
|
||||
priorityFilter = [];
|
||||
selectedTags = [];
|
||||
@@ -1239,7 +1249,11 @@
|
||||
restoredFolderId = folder.id;
|
||||
const saved = folderView?.state.folderPage;
|
||||
filesDirectory = saved?.directory ?? null;
|
||||
if (saved) showSection(saved.section, false);
|
||||
// Arriving with a prompt (a task's New chat) keeps a page that shows the message box.
|
||||
const prompted =
|
||||
!!$page.url.searchParams.get('q') &&
|
||||
!['overview', 'chats', 'files'].includes(saved?.section ?? '');
|
||||
if (saved && !prompted) showSection(saved.section, false);
|
||||
}
|
||||
|
||||
// Backstop: tag groups that appear later (e.g. a tag created while open) get their chats.
|
||||
@@ -1432,6 +1446,8 @@
|
||||
<!-- The Overview has no toolbar. -->
|
||||
{:else if folderSection === 'files'}
|
||||
<!-- The file browser keeps its own toolbar. -->
|
||||
{:else if folderSection === 'tasks'}
|
||||
<!-- The task list keeps its own toolbar. -->
|
||||
{:else if folderSection === 'notes'}
|
||||
{#if !readOnly}
|
||||
<button
|
||||
@@ -1505,59 +1521,52 @@
|
||||
</svelte:fragment>
|
||||
</KnowledgeSelector>
|
||||
{/if}
|
||||
{:else}
|
||||
{#if searchOpen || search}
|
||||
<div
|
||||
class="flex h-6.5 w-40 items-center gap-1.5 rounded-full border border-base-100 bg-base-50/60 px-2 text-base-400 @lg:w-52 dark:border-base-850 dark:bg-base-850/50 dark:text-base-500"
|
||||
>
|
||||
<Icon name="search" size={13} />
|
||||
<input
|
||||
bind:this={searchInput}
|
||||
class="min-w-0 flex-1 bg-transparent text-[0.8125rem] text-base-800 outline-none placeholder:text-base-400 dark:text-base-100 dark:placeholder:text-base-500"
|
||||
aria-label={$i18n.t('Search this folder')}
|
||||
title={$i18n.t('Search conversation titles and messages')}
|
||||
placeholder={$i18n.t('Search…')}
|
||||
maxlength="256"
|
||||
bind:value={search}
|
||||
on:input={searchChanged}
|
||||
on:blur={() => {
|
||||
if (!search) searchOpen = false;
|
||||
}}
|
||||
on:keydown={(event) => {
|
||||
if (event.isComposing || event.keyCode === 229) return;
|
||||
if (event.key === 'Enter') apply();
|
||||
if (event.key === 'Escape') {
|
||||
search = '';
|
||||
apply();
|
||||
searchOpen = false;
|
||||
searchInput.blur();
|
||||
}
|
||||
}}
|
||||
/>
|
||||
{#if search}
|
||||
<button
|
||||
type="button"
|
||||
class="flex size-4 shrink-0 items-center justify-center rounded-full hover:text-base-700 dark:hover:text-base-200"
|
||||
aria-label={$i18n.t('Clear search')}
|
||||
on:mousedown|preventDefault
|
||||
on:click={() => {
|
||||
search = '';
|
||||
apply();
|
||||
searchInput?.focus();
|
||||
}}><XMark className="size-3" /></button
|
||||
>
|
||||
{/if}
|
||||
</div>
|
||||
{:else}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if folderSection === 'chats'}
|
||||
<!-- Search across the row, with filters and display beside it, as on the Tasks tab. -->
|
||||
<div class="flex h-8 shrink-0 items-center gap-1 px-3 pb-1">
|
||||
<label
|
||||
class="flex h-full min-w-0 flex-1 items-center gap-2 px-1 text-base-400 dark:text-base-500"
|
||||
>
|
||||
<Icon name="search" size={14} class="shrink-0" />
|
||||
<input
|
||||
bind:this={searchInput}
|
||||
class="min-w-0 flex-1 bg-transparent text-[0.8125rem] text-base-800 outline-hidden placeholder:text-base-400 dark:text-base-100 dark:placeholder:text-base-500"
|
||||
aria-label={$i18n.t('Search Chats')}
|
||||
title={$i18n.t('Search conversation titles and messages')}
|
||||
placeholder={$i18n.t('Search Chats')}
|
||||
maxlength="256"
|
||||
bind:value={search}
|
||||
on:input={searchChanged}
|
||||
on:keydown={(event) => {
|
||||
if (event.isComposing || event.keyCode === 229) return;
|
||||
if (event.key === 'Enter') apply();
|
||||
if (event.key === 'Escape') {
|
||||
if (search) {
|
||||
search = '';
|
||||
apply();
|
||||
} else searchInput.blur();
|
||||
}
|
||||
}}
|
||||
/>
|
||||
{#if search}
|
||||
<button
|
||||
type="button"
|
||||
class={iconButton}
|
||||
aria-label={$i18n.t('Search')}
|
||||
title={`${$i18n.t('Search')} /`}
|
||||
on:click={openSearch}><Icon name="search" size={14} /></button
|
||||
class="flex size-4 shrink-0 items-center justify-center rounded-full hover:text-base-700 dark:hover:text-base-200"
|
||||
aria-label={$i18n.t('Clear search')}
|
||||
on:mousedown|preventDefault
|
||||
on:click={() => {
|
||||
search = '';
|
||||
apply();
|
||||
searchInput?.focus();
|
||||
}}><XMark className="size-3" strokeWidth="2" /></button
|
||||
>
|
||||
{/if}
|
||||
|
||||
</label>
|
||||
<div class="flex shrink-0 items-center gap-1">
|
||||
<Dropdown
|
||||
bind:this={filterDropdown}
|
||||
bind:show={filterShow}
|
||||
@@ -1790,9 +1799,9 @@
|
||||
</button>
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if filterCount && folderSection === 'chats'}
|
||||
<div class="flex shrink-0 flex-wrap items-center gap-1 px-2.5 pb-1.5 md:px-3.5">
|
||||
@@ -1912,6 +1921,30 @@
|
||||
onReload={() => loadNotes()}
|
||||
onMore={loadMoreNotes}
|
||||
/>
|
||||
{:else if folderSection === 'tasks' && folder}
|
||||
{#key JSON.stringify(folder.meta?.statuses ?? null)}
|
||||
<Tasks
|
||||
folder={{
|
||||
id: folder.id,
|
||||
name: folder.name,
|
||||
icon: folder.meta?.icon ?? null,
|
||||
statuses: folder.meta?.statuses ?? []
|
||||
}}
|
||||
canCreate={!readOnly}
|
||||
onManageStatuses={readOnly
|
||||
? null
|
||||
: (list) => {
|
||||
// A folder without statuses starts from the ones its tasks use.
|
||||
taskStatusSeed = customStatuses(folder?.meta).length
|
||||
? null
|
||||
: [
|
||||
...list.map((item) => ({ ...item, custom: true })),
|
||||
statusDefs(null, (key) => $i18n.t(key))[0]
|
||||
];
|
||||
showStatuses = true;
|
||||
}}
|
||||
/>
|
||||
{/key}
|
||||
{:else if folderSection === 'automations'}
|
||||
<FolderAutomations
|
||||
bind:this={automationsView}
|
||||
@@ -2001,6 +2034,6 @@
|
||||
|
||||
<FolderStatusesModal
|
||||
bind:show={showStatuses}
|
||||
statuses={groupedStatusDefs(folder?.meta, (key) => $i18n.t(key))}
|
||||
statuses={taskStatusSeed ?? groupedStatusDefs(folder?.meta, (key) => $i18n.t(key))}
|
||||
onSave={saveStatuses}
|
||||
/>
|
||||
@@ -17,12 +17,14 @@
|
||||
export let glyph: StatusGlyph | undefined = undefined;
|
||||
export let color: TagColor | undefined = undefined;
|
||||
export let emoji: string | undefined = undefined;
|
||||
/** A status without a glyph: a dot in its color. */
|
||||
export let dot = false;
|
||||
export let className = 'size-3.5';
|
||||
|
||||
const defs = getContext<Readable<StatusDef[]> | undefined>('folder-statuses');
|
||||
$: def = glyph || emoji ? undefined : $defs?.find((item) => item.id === status);
|
||||
$: shownEmoji = emoji ?? def?.icon;
|
||||
$: shape = glyph ?? def?.glyph ?? (status === NO_STATUS || !def ? null : 'todo');
|
||||
$: shape = glyph ?? def?.glyph ?? (dot || def ? 'dot' : null);
|
||||
$: tone = glyphColor[color ?? def?.color ?? 'gray'];
|
||||
</script>
|
||||
|
||||
@@ -40,7 +42,9 @@
|
||||
</svg>
|
||||
{:else}
|
||||
<svg class="shrink-0 {tone} {className}" viewBox="0 0 14 14" fill="none" aria-hidden="true">
|
||||
{#if shape === 'done'}
|
||||
{#if shape === 'dot'}
|
||||
<circle cx="7" cy="7" r="3" fill="currentColor" />
|
||||
{:else if shape === 'done'}
|
||||
<circle cx="7" cy="7" r="6.25" fill="currentColor" />
|
||||
<path
|
||||
d="M4.4 7.2 6.1 8.9 9.6 5.4"
|
||||
@@ -49,6 +53,14 @@
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
/>
|
||||
{:else if shape === 'canceled'}
|
||||
<circle cx="7" cy="7" r="6.25" fill="currentColor" />
|
||||
<path
|
||||
d="M5 5l4 4M9 5 5 9"
|
||||
stroke="var(--color-white)"
|
||||
stroke-width="1.5"
|
||||
stroke-linecap="round"
|
||||
/>
|
||||
{:else}
|
||||
<circle
|
||||
cx="7"
|
||||
|
||||
@@ -9,11 +9,16 @@
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
const defs = getContext<Readable<StatusDef[]> | undefined>('folder-statuses');
|
||||
|
||||
export let chat: WorkspaceChat;
|
||||
export let chat: Pick<
|
||||
WorkspaceChat,
|
||||
'status' | 'status_since' | 'status_entered_at' | 'status_durations'
|
||||
>;
|
||||
// Tasks mix folders, so they pass their own folder's statuses instead of the page's.
|
||||
export let statuses: { id: string; name: string }[] | null = null;
|
||||
export let className = '';
|
||||
|
||||
const escape = (value: string) => value.replace(/[&<>"']/g, (char) => `&#${char.charCodeAt(0)};`);
|
||||
const nameOf = (id: string) => $defs?.find((item) => item.id === id)?.name ?? id;
|
||||
$: nameOf = (id: string) => (statuses ?? $defs)?.find((item) => item.id === id)?.name ?? id;
|
||||
// A plain length of time, e.g. "2 hours", from a number of seconds.
|
||||
const span = (seconds: number) => formatElapsed(Date.now() / 1000 - seconds, $i18n.language);
|
||||
|
||||
|
||||
@@ -35,11 +35,13 @@
|
||||
let dragId = '';
|
||||
|
||||
const glyphLabels: Record<string, string> = {
|
||||
dot: 'Dot',
|
||||
backlog: 'Dashed',
|
||||
todo: 'Ring',
|
||||
in_progress: 'Half',
|
||||
waiting: 'Three quarters',
|
||||
done: 'Done'
|
||||
done: 'Done',
|
||||
canceled: 'Canceled'
|
||||
};
|
||||
|
||||
// Start a fresh draft each time the modal opens. "No status" rides along so it can be moved.
|
||||
@@ -182,13 +184,32 @@
|
||||
aria-label={$i18n.t('Change status icon')}
|
||||
title={$i18n.t('Change status icon')}
|
||||
>
|
||||
<StatusIcon glyph={item.glyph} color={item.color} emoji={item.icon} />
|
||||
<StatusIcon
|
||||
glyph={item.glyph}
|
||||
color={item.color}
|
||||
emoji={item.icon}
|
||||
dot={!item.glyph}
|
||||
/>
|
||||
</button>
|
||||
<DropdownMenu slot="content" className="w-48">
|
||||
<div class="px-2 pt-1.5 pb-0.5 text-xs text-base-400 dark:text-base-500">
|
||||
{$i18n.t('Icon')}
|
||||
</div>
|
||||
<div class="flex gap-0.5 px-1 pb-1">
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={!item.icon && !item.glyph}
|
||||
aria-label={$i18n.t(glyphLabels.dot)}
|
||||
title={$i18n.t(glyphLabels.dot)}
|
||||
class="flex size-7 items-center justify-center rounded-lg transition hover:bg-base-50 dark:hover:bg-base-800 {!item.icon &&
|
||||
!item.glyph
|
||||
? 'bg-base-50 dark:bg-base-800'
|
||||
: ''}"
|
||||
on:click={() => update(item.id, { glyph: undefined, icon: undefined })}
|
||||
>
|
||||
<StatusIcon color={item.color} dot />
|
||||
</button>
|
||||
{#each statusGlyphs as glyph}
|
||||
<button
|
||||
type="button"
|
||||
@@ -288,7 +309,7 @@
|
||||
<span class="w-3 shrink-0"></span>
|
||||
<span
|
||||
class="flex size-6 items-center justify-center opacity-60 transition group-hover:opacity-100"
|
||||
><StatusIcon glyph={item.glyph} color={item.color} /></span
|
||||
><StatusIcon glyph={item.glyph} color={item.color} dot={!item.glyph} /></span
|
||||
>
|
||||
<span class="flex-1 text-left">{item.name}</span>
|
||||
<Plus
|
||||
|
||||
@@ -13,10 +13,12 @@
|
||||
|
||||
export let chat: Pick<WorkspaceChat, 'id' | 'title' | 'tags'>;
|
||||
export let max = 2;
|
||||
/** A notes list passes its notes here; it has no folder to say who may edit. */
|
||||
export let resourceType: 'chats' | 'notes' = 'chats';
|
||||
/** A notes or tasks list passes its notes or tasks here; it says who may edit with `editable`. */
|
||||
export let resourceType: 'chats' | 'notes' | 'tasks' = 'chats';
|
||||
/** A task's folder, whose tasks' tags the picker offers. */
|
||||
export let folderId: string | null = null;
|
||||
export let editable: boolean | null = null;
|
||||
export let onChange: () => Promise<void> = async () => {};
|
||||
export let onChange: (tags: FolderTag[]) => Promise<void> | void = async () => {};
|
||||
|
||||
let show = false;
|
||||
let assigned: FolderTag[] = [];
|
||||
@@ -66,11 +68,12 @@
|
||||
<DropdownMenu slot="content" className="w-52 text-base-700 dark:text-base-200">
|
||||
<TagPicker
|
||||
{resourceType}
|
||||
{folderId}
|
||||
id={chat.id}
|
||||
{assigned}
|
||||
onChange={async (next) => {
|
||||
assigned = next;
|
||||
await onChange();
|
||||
await onChange(next);
|
||||
}}
|
||||
/>
|
||||
</DropdownMenu>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import FolderTaskCount from '$lib/components/tasks/FolderTaskCount.svelte';
|
||||
import { getContext } from 'svelte';
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
@@ -234,6 +235,8 @@
|
||||
})}
|
||||
</div>
|
||||
|
||||
{#if showDeleteConfirm}<FolderTaskCount folderId={folder.id} />{/if}
|
||||
|
||||
<div class="flex items-center gap-1.5">
|
||||
<input
|
||||
aria-label={$i18n.t('Delete all contents inside this folder')}
|
||||
|
||||
@@ -103,6 +103,7 @@
|
||||
import HomeIcon from '$lib/components/icons/Home.svelte';
|
||||
import HashtagIcon from '$lib/components/icons/Hashtag.svelte';
|
||||
import NotesIcon from '$lib/components/layout/Sidebar/icons/Notes.svelte';
|
||||
import TaskListIcon from '$lib/components/icons/TaskList.svelte';
|
||||
import WorkspaceIcon from '$lib/components/layout/Sidebar/icons/Workspace.svelte';
|
||||
import ClockIcon from '$lib/components/layout/Sidebar/icons/Clock.svelte';
|
||||
import CalendarIcon from '$lib/components/layout/Sidebar/icons/Calendar.svelte';
|
||||
@@ -720,6 +721,7 @@
|
||||
};
|
||||
const pageIcons: Record<string, typeof NotesIcon> = {
|
||||
notes: NotesIcon,
|
||||
tasks: TaskListIcon,
|
||||
workspace: WorkspaceIcon,
|
||||
automations: ClockIcon,
|
||||
calendar: CalendarIcon,
|
||||
|
||||
@@ -69,6 +69,8 @@
|
||||
'/notes': () => import('$lib/components/notes/NotesPage.svelte'),
|
||||
'/notes/new': () => import('$lib/components/notes/CreateNote.svelte'),
|
||||
'/notes/:id': () => import('$lib/components/notes/NoteEditor.svelte'),
|
||||
'/tasks': () => import('$lib/components/tasks/MyTasks.svelte'),
|
||||
'/tasks/:id': () => import('$lib/components/tasks/Task.svelte'),
|
||||
'/automations': () => import('$lib/components/automations/Automations.svelte'),
|
||||
'/automations/:id': () => import('$lib/components/automations/Automation.svelte'),
|
||||
'/calendar': () => import('$lib/components/calendar/Calendar.svelte'),
|
||||
@@ -116,6 +118,10 @@
|
||||
(parts[1] !== 'notes' ||
|
||||
($config?.features?.enable_notes &&
|
||||
($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true)))) &&
|
||||
(parts[1] !== 'tasks' ||
|
||||
($config?.features?.enable_tasks &&
|
||||
($config?.features?.enable_folders ?? true) &&
|
||||
($user?.role === 'admin' || ($user?.permissions?.features?.folders ?? true)))) &&
|
||||
(parts[1] !== 'automations' ||
|
||||
($config?.features?.enable_automations &&
|
||||
($user?.role === 'admin' || $user?.permissions?.features?.automations))) &&
|
||||
|
||||
@@ -351,7 +351,7 @@ export const fileTabId = (machineId: string, path: string) =>
|
||||
export function pageTabKey(url: URL): string | null {
|
||||
if (url.pathname.startsWith('/workspace/functions')) return null;
|
||||
if (
|
||||
!/^\/(?:$|c\/|channels\/|notes(?:\/|$)|automations(?:\/|$)|calendar(?:\/|$)|workspace(?:\/|$)|playground(?:\/|$)|home(?:\/|$))/.test(
|
||||
!/^\/(?:$|c\/|channels\/|notes(?:\/|$)|tasks(?:\/|$)|automations(?:\/|$)|calendar(?:\/|$)|workspace(?:\/|$)|playground(?:\/|$)|home(?:\/|$))/.test(
|
||||
url.pathname
|
||||
)
|
||||
)
|
||||
|
||||
@@ -15,22 +15,36 @@
|
||||
getNoteTagsById,
|
||||
updateNoteTagColorById
|
||||
} from '$lib/apis/notes';
|
||||
import {
|
||||
addTaskTagById,
|
||||
deleteTaskTagById,
|
||||
getTaskTags,
|
||||
getTaskTagsById,
|
||||
updateTaskTagColorById
|
||||
} from '$lib/apis/tasks';
|
||||
import { colorDot, tagColor, tagColors, tagDot, type FolderTag } from '$lib/utils/tags';
|
||||
import Check from '$lib/components/icons/Check.svelte';
|
||||
import Plus from '$lib/components/icons/Plus.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
/** Search, toggle, create and recolor a chat's or note's tags. Render it inside a menu. */
|
||||
export let resourceType: 'chats' | 'notes' = 'chats';
|
||||
/** Search, toggle, create and recolor a chat's, note's or task's tags. Render it inside a menu. */
|
||||
export let resourceType: 'chats' | 'notes' | 'tasks' = 'chats';
|
||||
/** Empty for a task not created yet: the picker then only edits `assigned`. */
|
||||
export let id: string;
|
||||
/** A task's folder: its tasks' tags are the ones offered, since they're the folder owner's. */
|
||||
export let folderId: string | null = null;
|
||||
/** The current tags; null fetches them when the picker opens. */
|
||||
export let assigned: FolderTag[] | null = null;
|
||||
|
||||
const loaders = { chats: getTagsById, notes: getNoteTagsById };
|
||||
const adders = { chats: addTagById, notes: addNoteTagById };
|
||||
const removers = { chats: deleteTagById, notes: deleteNoteTagById };
|
||||
const colorers = { chats: updateTagColorById, notes: updateNoteTagColorById };
|
||||
const loaders = { chats: getTagsById, notes: getNoteTagsById, tasks: getTaskTagsById };
|
||||
const adders = { chats: addTagById, notes: addNoteTagById, tasks: addTaskTagById };
|
||||
const removers = { chats: deleteTagById, notes: deleteNoteTagById, tasks: deleteTaskTagById };
|
||||
const colorers = {
|
||||
chats: updateTagColorById,
|
||||
notes: updateNoteTagColorById,
|
||||
tasks: updateTaskTagColorById
|
||||
};
|
||||
export let onChange: (assigned: FolderTag[]) => Promise<void> | void = () => {};
|
||||
|
||||
let query = '';
|
||||
@@ -39,30 +53,45 @@
|
||||
let busy = false;
|
||||
let input: HTMLInputElement;
|
||||
|
||||
let folderTags: FolderTag[] = [];
|
||||
|
||||
$: current = assigned ?? [];
|
||||
$: known = resourceType === 'tasks' ? folderTags : (($userTags ?? []) as FolderTag[]);
|
||||
$: needle = query.trim().toLowerCase();
|
||||
$: options = [
|
||||
...current,
|
||||
...(($userTags ?? []) as FolderTag[]).filter(
|
||||
(tag) => !current.some((item) => item.id === tag.id)
|
||||
)
|
||||
...known.filter((tag) => !current.some((item) => item.id === tag.id))
|
||||
].filter((tag) => tag.name.toLowerCase().includes(needle));
|
||||
$: canCreate =
|
||||
needle &&
|
||||
needle !== 'none' &&
|
||||
![...current, ...(($userTags ?? []) as FolderTag[])].some(
|
||||
![...current, ...known].some(
|
||||
(tag) => tag.id === needle.replaceAll(' ', '_') || tag.name.toLowerCase() === needle
|
||||
);
|
||||
|
||||
const isAssigned = (tag: FolderTag) => current.some((item) => item.id === tag.id);
|
||||
|
||||
const refresh = async () => {
|
||||
if (resourceType === 'tasks') folderTags = await getTaskTags(localStorage.token, folderId);
|
||||
else $userTags = await getAllTags(localStorage.token);
|
||||
};
|
||||
|
||||
const add = (name: string): Promise<FolderTag[]> =>
|
||||
id
|
||||
? adders[resourceType](localStorage.token, id, name)
|
||||
: Promise.resolve([...current, { id: name.toLowerCase().replaceAll(' ', '_'), name }]);
|
||||
const remove = (tag: FolderTag): Promise<FolderTag[]> =>
|
||||
id
|
||||
? removers[resourceType](localStorage.token, id, tag.name)
|
||||
: Promise.resolve(current.filter((item) => item.id !== tag.id));
|
||||
|
||||
async function mutate(action: () => Promise<FolderTag[]>, reset = false) {
|
||||
if (busy) return;
|
||||
busy = true;
|
||||
try {
|
||||
assigned = await action();
|
||||
if (reset) query = '';
|
||||
$userTags = await getAllTags(localStorage.token);
|
||||
await refresh();
|
||||
await onChange(assigned);
|
||||
} catch (error) {
|
||||
toast.error(String(error));
|
||||
@@ -73,21 +102,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
const toggle = (tag: FolderTag) =>
|
||||
mutate(() =>
|
||||
isAssigned(tag)
|
||||
? removers[resourceType](localStorage.token, id, tag.name)
|
||||
: adders[resourceType](localStorage.token, id, tag.name)
|
||||
);
|
||||
const toggle = (tag: FolderTag) => mutate(() => (isAssigned(tag) ? remove(tag) : add(tag.name)));
|
||||
|
||||
onMount(async () => {
|
||||
input?.focus();
|
||||
try {
|
||||
const [all, mine] = await Promise.all([
|
||||
getAllTags(localStorage.token),
|
||||
assigned ? Promise.resolve(assigned) : loaders[resourceType](localStorage.token, id)
|
||||
const [, mine] = await Promise.all([
|
||||
refresh(),
|
||||
assigned || !id ? Promise.resolve(assigned) : loaders[resourceType](localStorage.token, id)
|
||||
]);
|
||||
$userTags = all;
|
||||
assigned = mine ?? [];
|
||||
} catch (error) {
|
||||
toast.error(String(error));
|
||||
@@ -99,8 +122,7 @@
|
||||
on:submit|preventDefault={() => {
|
||||
const exact = options.find((tag) => tag.name.toLowerCase() === needle);
|
||||
if (exact) void toggle(exact);
|
||||
else if (canCreate)
|
||||
void mutate(() => adders[resourceType](localStorage.token, id, query.trim()), true);
|
||||
else if (canCreate) void mutate(() => add(query.trim()), true);
|
||||
}}
|
||||
>
|
||||
<input
|
||||
@@ -138,7 +160,7 @@
|
||||
<span class="size-1.5 shrink-0 rounded-full {tagDot(tag)}"></span>
|
||||
<span class="min-w-0 flex-1 truncate text-left">{tag.name}</span>
|
||||
</button>
|
||||
{#if checked}
|
||||
{#if checked && id}
|
||||
<button
|
||||
type="button"
|
||||
class="flex size-5 items-center justify-center rounded-md transition hover:bg-base-100 focus-visible:opacity-100 group-hover/tag:opacity-100 dark:hover:bg-base-800 {coloring ===
|
||||
@@ -191,8 +213,7 @@
|
||||
type="button"
|
||||
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-left text-[0.8125rem] hover:bg-base-50/60 dark:hover:bg-base-800/60"
|
||||
disabled={busy}
|
||||
on:click={() =>
|
||||
mutate(() => adders[resourceType](localStorage.token, id, query.trim()), true)}
|
||||
on:click={() => mutate(() => add(query.trim()), true)}
|
||||
>
|
||||
<Plus className="size-3 text-base-400" />
|
||||
<span class="min-w-0 truncate">{$i18n.t('Create “{{name}}”', { name: query.trim() })}</span>
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
skill: 'Skill',
|
||||
tool: 'Tool',
|
||||
note: 'Note',
|
||||
chat: 'Chat'
|
||||
chat: 'Chat',
|
||||
task: 'Task'
|
||||
};
|
||||
let resource: CommentResource | null = null;
|
||||
const subscriptionId = uuidv4();
|
||||
@@ -275,7 +276,7 @@
|
||||
>
|
||||
</div>{/if}
|
||||
{#if resource && !loading}
|
||||
{#if !visibleItems.length && !error}<div
|
||||
{#if !visibleItems.length && !error && !embedded}<div
|
||||
class="flex flex-1 items-center justify-center px-4 py-6 text-center text-xs text-base-500"
|
||||
>
|
||||
{$i18n.t('No comments yet')}
|
||||
@@ -325,7 +326,8 @@
|
||||
{/if}
|
||||
</div>
|
||||
{#if resource && !loading}
|
||||
<div class="shrink-0 px-3 pt-1 pb-3 mt-2">
|
||||
<!-- Embedded under a page, it lines up with the page's content instead of the panel's inset. -->
|
||||
<div class="shrink-0 pt-1 pb-3 mt-2 {embedded ? '' : 'px-3'}">
|
||||
{#key `${resourceQuery(resource)}:${composerVersion}`}
|
||||
<CommentComposer
|
||||
bind:this={composer}
|
||||
|
||||
@@ -75,6 +75,8 @@
|
||||
);
|
||||
else if (current.resource_type === 'calendar')
|
||||
await goto(`/calendar?event=${encodeURIComponent(current.object_id!)}`, { state });
|
||||
else if (current.resource_type === 'task')
|
||||
await goto(`/tasks/${encodeURIComponent(current.resource_id!)}`, { state });
|
||||
};
|
||||
onMount(() => {
|
||||
if ($page.state.inbox && $page.state.inboxUserId !== $user?.id)
|
||||
|
||||
@@ -125,6 +125,7 @@
|
||||
import ClockIcon from './Sidebar/icons/Clock.svelte';
|
||||
import CodeIcon from './Sidebar/icons/Code.svelte';
|
||||
import EditPencilIcon from './Sidebar/icons/EditPencil.svelte';
|
||||
import TaskListIcon from '$lib/components/icons/TaskList.svelte';
|
||||
import NotesIcon from './Sidebar/icons/Notes.svelte';
|
||||
import SearchIcon from './Sidebar/icons/Search.svelte';
|
||||
import Sidebar from '../icons/Sidebar.svelte';
|
||||
@@ -474,6 +475,8 @@
|
||||
$config?.features?.enable_calendar &&
|
||||
($user?.role === 'admin' || $user?.permissions?.features?.calendar)
|
||||
);
|
||||
case 'tasks':
|
||||
return canUseTasks;
|
||||
case 'playground':
|
||||
return $user?.role === 'admin';
|
||||
default:
|
||||
@@ -487,6 +490,7 @@
|
||||
workspace: { label: $i18n.t('Workspace'), href: '/workspace', iconType: 'workspace' },
|
||||
automations: { label: $i18n.t('Automations'), href: '/automations', iconType: 'automations' },
|
||||
calendar: { label: $i18n.t('Calendar'), href: '/calendar', iconType: 'calendar' },
|
||||
tasks: { label: $i18n.t('My tasks'), href: '/tasks', iconType: 'tasks' },
|
||||
playground: { label: $i18n.t('Playground'), href: '/playground', iconType: 'playground' }
|
||||
};
|
||||
return items[id];
|
||||
@@ -731,6 +735,11 @@
|
||||
};
|
||||
|
||||
$: canUseTeams = $config?.features?.enable_teams ?? false;
|
||||
// Tasks live in folders, so they need folders too.
|
||||
$: canUseTasks =
|
||||
($config?.features?.enable_tasks ?? false) &&
|
||||
($config?.features?.enable_folders ?? true) &&
|
||||
($user?.role === 'admin' || ($user?.permissions?.features?.folders ?? true));
|
||||
$: canCreateTeams =
|
||||
canUseTeams && ($user?.role === 'admin' || ($user?.permissions?.features?.teams ?? false));
|
||||
$: if (canUseTeams) initTeams();
|
||||
@@ -1549,6 +1558,8 @@
|
||||
<ClockIcon className="size-3.75" strokeWidth="1.5" />
|
||||
{:else if itemId === 'calendar'}
|
||||
<CalendarIcon className="size-3.75" strokeWidth="1.5" />
|
||||
{:else if itemId === 'tasks'}
|
||||
<TaskListIcon className="size-3.75" />
|
||||
{:else if itemId === 'playground'}
|
||||
<CodeIcon className="size-3.75" strokeWidth="1.5" />
|
||||
{/if}
|
||||
@@ -1789,6 +1800,8 @@
|
||||
<ClockIcon className="size-3.75" strokeWidth="1.5" />
|
||||
{:else if itemId === 'calendar'}
|
||||
<CalendarIcon className="size-3.75" strokeWidth="1.5" />
|
||||
{:else if itemId === 'tasks'}
|
||||
<TaskListIcon className="size-3.75" />
|
||||
{:else if itemId === 'playground'}
|
||||
<CodeIcon className="size-3.75" strokeWidth="1.5" />
|
||||
{/if}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import FolderTaskCount from '$lib/components/tasks/FolderTaskCount.svelte';
|
||||
import { getContext, createEventDispatcher, onMount, onDestroy, tick } from 'svelte';
|
||||
|
||||
const i18n = getContext('i18n');
|
||||
@@ -786,6 +787,8 @@
|
||||
})}
|
||||
</div>
|
||||
|
||||
{#if showDeleteConfirm}<FolderTaskCount {folderId} />{/if}
|
||||
|
||||
<div class="flex items-center gap-1.5">
|
||||
<input
|
||||
aria-label={$i18n.t('Delete all contents inside this folder')}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
import UserStatusModal from './UserStatusModal.svelte';
|
||||
import Emoji from '$lib/components/common/Emoji.svelte';
|
||||
import CalendarIcon from './icons/Calendar.svelte';
|
||||
import TaskListIcon from '$lib/components/icons/TaskList.svelte';
|
||||
import ClockIcon from './icons/Clock.svelte';
|
||||
import CodeIcon from './icons/Code.svelte';
|
||||
import EmojiFaceIcon from './icons/EmojiFace.svelte';
|
||||
@@ -473,6 +474,59 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if $config?.features?.enable_tasks && ($config?.features?.enable_folders ?? true) && ($user?.role === 'admin' || ($user?.permissions?.features?.folders ?? true))}
|
||||
<div
|
||||
class="user-menu-row flex items-center w-full rounded-xl hover:bg-base-50/60 dark:hover:bg-base-800/60 transition-colors"
|
||||
>
|
||||
<a
|
||||
role="menuitem"
|
||||
href="/tasks"
|
||||
draggable="false"
|
||||
class="flex flex-1 min-w-0 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] cursor-pointer select-none"
|
||||
on:click={async (e) => {
|
||||
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;
|
||||
e.preventDefault();
|
||||
show = false;
|
||||
if (appLayout?.openPageTab)
|
||||
appLayout.openPageTab({ href: '/tasks', label: $i18n.t('My tasks') });
|
||||
else goto('/tasks');
|
||||
if ($mobile) {
|
||||
await tick();
|
||||
showSidebar.set(false);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div class="self-center">
|
||||
<TaskListIcon className="size-3.5" />
|
||||
</div>
|
||||
<div class="self-center truncate">{$i18n.t('My tasks')}</div>
|
||||
</a>
|
||||
{#if shiftKey}
|
||||
<Tooltip
|
||||
content={pinnedItems.includes('tasks')
|
||||
? $i18n.t('Unpin from Sidebar')
|
||||
: $i18n.t('Pin to Sidebar')}
|
||||
>
|
||||
<button
|
||||
aria-label={pinnedItems.includes('tasks')
|
||||
? $i18n.t('Unpin from Sidebar')
|
||||
: $i18n.t('Pin to Sidebar')}
|
||||
role="menuitem"
|
||||
type="button"
|
||||
class="p-1 mr-1 rounded-lg hover:bg-base-100/60 dark:hover:bg-base-700/60 transition"
|
||||
on:click|preventDefault|stopPropagation={() => togglePin('tasks')}
|
||||
>
|
||||
{#if pinnedItems.includes('tasks')}
|
||||
<PinSlashIcon className="size-3.5" strokeWidth="1.5" />
|
||||
{:else}
|
||||
<PinIcon className="size-3.5" strokeWidth="1.5" />
|
||||
{/if}
|
||||
</button>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if role === 'admin'}
|
||||
<div
|
||||
class="user-menu-row flex items-center w-full rounded-xl hover:bg-base-50/60 dark:hover:bg-base-800/60 transition-colors"
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { config } from '$lib/stores';
|
||||
import { countFolderTasks } from '$lib/apis/tasks';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
// Tasks live only in folders, so a deleted folder takes its tasks with it, contents kept or not.
|
||||
export let folderId: string;
|
||||
|
||||
let count = 0;
|
||||
$: if ($config?.features?.enable_tasks && folderId)
|
||||
void countFolderTasks(localStorage.token, folderId)
|
||||
.then((result) => (count = result.count))
|
||||
.catch(() => (count = 0));
|
||||
</script>
|
||||
|
||||
{#if count}
|
||||
<div class="mb-2 text-xs text-base-500">
|
||||
{$i18n.t('{{count}} tasks in this folder will be deleted too.', { count })}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,54 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { WEBUI_NAME } from '$lib/stores';
|
||||
import PageTitle from '$lib/components/common/PageTitle.svelte';
|
||||
import Tasks from './Tasks.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
const TAB_KEY = 'my-tasks-tab';
|
||||
let tab: 'assigned' | 'created' = 'assigned';
|
||||
try {
|
||||
if (localStorage.getItem(TAB_KEY) === 'created') tab = 'created';
|
||||
} catch {
|
||||
// The tab is only remembered when storage is available.
|
||||
}
|
||||
const select = (next: typeof tab) => {
|
||||
tab = next;
|
||||
try {
|
||||
localStorage.setItem(TAB_KEY, next);
|
||||
} catch {
|
||||
// As above.
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<!-- LICENSE covers this Open WebUI browser-title identifier.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<PageTitle title={`${$i18n.t('My tasks')} / ${$WEBUI_NAME}`} />
|
||||
|
||||
<div class="flex h-full min-h-0 flex-col pt-2">
|
||||
<div
|
||||
role="tablist"
|
||||
aria-label={$i18n.t('My tasks')}
|
||||
class="flex shrink-0 items-center gap-1 px-4 py-1"
|
||||
>
|
||||
{#each [['assigned', $i18n.t('Assigned')], ['created', $i18n.t('Created')]] as const as [value, label]}
|
||||
<button
|
||||
type="button"
|
||||
role="tab"
|
||||
aria-selected={tab === value}
|
||||
class="inline-flex min-w-fit items-center px-1 text-sm transition {tab === value
|
||||
? 'text-base-900 dark:text-base-100'
|
||||
: 'text-base-300 hover:text-base-700 dark:text-base-600 dark:hover:text-base-0'}"
|
||||
on:click={() => select(value)}>{label}</button
|
||||
>
|
||||
{/each}
|
||||
</div>
|
||||
<div class="min-h-0 flex-1">
|
||||
{#key tab}
|
||||
<Tasks mine={tab} />
|
||||
{/key}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,435 @@
|
||||
<script lang="ts">
|
||||
import { getContext, onDestroy, onMount } from 'svelte';
|
||||
import dayjs from 'dayjs';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { WEBUI_NAME, socket, user } from '$lib/stores';
|
||||
import { getPageContext } from '$lib/utils/page';
|
||||
import {
|
||||
deleteTaskById,
|
||||
getTaskById,
|
||||
getTaskChats,
|
||||
getTaskHistory,
|
||||
updateTaskById,
|
||||
type Task,
|
||||
type TaskChanges,
|
||||
type TaskChat,
|
||||
type TaskHistoryEntry
|
||||
} from '$lib/apis/tasks';
|
||||
import { priorityDefs, priorityKey } from '$lib/utils/folders';
|
||||
import { formatDue, taskStatuses } from '$lib/utils/tasks';
|
||||
import PageTitle from '$lib/components/common/PageTitle.svelte';
|
||||
import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
|
||||
import TaskStatusesModal from './TaskStatusesModal.svelte';
|
||||
import Dropdown from '$lib/components/common/Dropdown.svelte';
|
||||
import DropdownMenu from '$lib/components/common/DropdownMenu.svelte';
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import Textarea from '$lib/components/common/Textarea.svelte';
|
||||
import CommentsPanel from '$lib/components/comments/CommentsPanel.svelte';
|
||||
import FileNavIcon from '$lib/components/chat/FileNav/Icon.svelte';
|
||||
import MoreHorizontal from '$lib/components/icons/EllipsisHorizontal.svelte';
|
||||
import Plus from '$lib/components/icons/Plus.svelte';
|
||||
import TaskAssignee from './TaskAssignee.svelte';
|
||||
import TaskDueDate from './TaskDueDate.svelte';
|
||||
import FolderTags from '$lib/components/chat/Placeholder/FolderTags.svelte';
|
||||
import TaskFolder from './TaskFolder.svelte';
|
||||
import TaskPriority from './TaskPriority.svelte';
|
||||
import TaskStatus from './TaskStatus.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
const { goto, active } = getPageContext();
|
||||
|
||||
export let id: string;
|
||||
|
||||
let task: Task | null = null;
|
||||
let missing = false;
|
||||
let history: TaskHistoryEntry[] = [];
|
||||
let chats: TaskChat[] = [];
|
||||
let title = '';
|
||||
let description = '';
|
||||
let showDelete = false;
|
||||
let showStatuses = false;
|
||||
// The picker a key opened: s status, p priority, a assignee.
|
||||
let picker: 'status' | 'priority' | 'assignee' | null = null;
|
||||
|
||||
const load = async () => {
|
||||
const next = await getTaskById(localStorage.token, id).catch(() => null);
|
||||
if (!next) {
|
||||
missing = true;
|
||||
return;
|
||||
}
|
||||
setTask(next);
|
||||
void refreshSide();
|
||||
};
|
||||
const refreshSide = async () => {
|
||||
[history, chats] = await Promise.all([
|
||||
getTaskHistory(localStorage.token, id).catch(() => history),
|
||||
getTaskChats(localStorage.token, id).catch(() => chats)
|
||||
]);
|
||||
};
|
||||
const setTask = (next: Task) => {
|
||||
const writeAccess = next.write_access ?? task?.write_access;
|
||||
// Keep what's being typed; take everything else from the server.
|
||||
if (!task || title === task.title) title = next.title;
|
||||
if (!task || description === (task.description ?? '')) description = next.description ?? '';
|
||||
task = { ...next, write_access: writeAccess };
|
||||
};
|
||||
$: if (id) void load();
|
||||
|
||||
const update = async (changes: TaskChanges) => {
|
||||
if (!task) return;
|
||||
const previous = task;
|
||||
task = { ...task, ...changes };
|
||||
const next = await updateTaskById(localStorage.token, previous.id, changes).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
return null;
|
||||
});
|
||||
setTask(next ?? previous);
|
||||
if (next) void refreshSide();
|
||||
};
|
||||
|
||||
const saveTitle = () => {
|
||||
const value = title.trim();
|
||||
if (!task || value === task.title) return;
|
||||
if (!value) title = task.title;
|
||||
else void update({ title: value });
|
||||
};
|
||||
const saveDescription = () => {
|
||||
if (!task || description === (task.description ?? '')) return;
|
||||
void update({ description: description.trim() ? description : null });
|
||||
};
|
||||
|
||||
const remove = async () => {
|
||||
if (!task) return;
|
||||
const folderId = task.folder_id;
|
||||
const ok = await deleteTaskById(localStorage.token, task.id).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
return false;
|
||||
});
|
||||
if (ok) await goto(`/folders/${folderId}`);
|
||||
};
|
||||
|
||||
// A new chat opens in the task's folder with the task written into the message box.
|
||||
const newChat = () => {
|
||||
if (!task) return;
|
||||
const prompt = [`#${task.number} ${task.title}`, task.description ?? '']
|
||||
.filter(Boolean)
|
||||
.join('\n\n');
|
||||
const query = new URLSearchParams({ q: prompt, task: task.id });
|
||||
void goto(`/folders/${task.folder_id}?${query}`);
|
||||
};
|
||||
|
||||
const onEvent = (event: { data?: { type?: string; data?: any } }) => {
|
||||
const type = event?.data?.type;
|
||||
if (type === 'task:changed' && event.data!.data.task.id === id) {
|
||||
setTask(event.data!.data.task);
|
||||
void refreshSide();
|
||||
} else if (type === 'task:deleted' && event.data!.data.id === id) missing = true;
|
||||
};
|
||||
onMount(() => $socket?.on('events', onEvent));
|
||||
onDestroy(() => $socket?.off('events', onEvent));
|
||||
|
||||
// s, p and a open the pickers, as on a list row, unless you're typing.
|
||||
const keys = (event: KeyboardEvent) => {
|
||||
if (!$active || !task?.write_access) return;
|
||||
if (event.metaKey || event.ctrlKey || event.altKey || event.isComposing) return;
|
||||
const target = event.target as HTMLElement;
|
||||
if (target.closest('input, textarea, [contenteditable="true"], [role="menu"], [role="dialog"]'))
|
||||
return;
|
||||
const kind = ({ s: 'status', p: 'priority', a: 'assignee' } as const)[event.key];
|
||||
if (kind) {
|
||||
event.preventDefault();
|
||||
picker = kind;
|
||||
} else if (event.key === 'i' && $user && task.assignee_id !== $user.id) {
|
||||
event.preventDefault();
|
||||
void update({ assignee_id: $user.id });
|
||||
}
|
||||
};
|
||||
|
||||
$: statuses = taskStatuses(task?.folder?.statuses, (key) => $i18n.t(key));
|
||||
// The status's name now if it still exists, so default statuses are translated; else its name then.
|
||||
$: statusName = (id: string | null, name: string | null) =>
|
||||
statuses.find((item) => item.id === id)?.name ?? name ?? id ?? '';
|
||||
$: priorityName = (priority: unknown) =>
|
||||
priorityDefs((key) => $i18n.t(key)).find((item) => item.id === priorityKey(String(priority)))
|
||||
?.name ?? '';
|
||||
|
||||
// One line per change, in the words Linear uses.
|
||||
const describe = (entry: TaskHistoryEntry): string => {
|
||||
const to = entry.new_value;
|
||||
if (entry.field === 'status')
|
||||
return $i18n.t('changed status from {{from}} to {{to}}', {
|
||||
from: statusName(entry.old_value, entry.old_name),
|
||||
to: statusName(entry.new_value, entry.new_name)
|
||||
});
|
||||
if (entry.field === 'priority')
|
||||
return to
|
||||
? $i18n.t('set priority to {{priority}}', { priority: priorityName(to) })
|
||||
: $i18n.t('removed the priority');
|
||||
if (entry.field === 'assignee_id')
|
||||
return to
|
||||
? $i18n.t('assigned to {{name}}', { name: entry.new_name ?? '' })
|
||||
: $i18n.t('removed the assignee');
|
||||
if (entry.field === 'due_date')
|
||||
return to
|
||||
? $i18n.t('set the due date to {{date}}', { date: formatDue(to) })
|
||||
: $i18n.t('removed the due date');
|
||||
if (entry.field === 'title') return $i18n.t('renamed to {{title}}', { title: to ?? '' });
|
||||
if (entry.field === 'folder_id')
|
||||
return $i18n.t('moved to {{folder}}', { folder: entry.new_name ?? '' });
|
||||
return '';
|
||||
};
|
||||
|
||||
const railLabel = 'mb-1 text-[0.6875rem] text-base-400 dark:text-base-500';
|
||||
const groupLabel = 'mb-1.5 text-xs text-base-400 dark:text-base-500';
|
||||
</script>
|
||||
|
||||
<svelte:window on:keydown={keys} />
|
||||
|
||||
{#if task}
|
||||
<!-- LICENSE covers this Open WebUI browser-title identifier.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<PageTitle title={`#${task.number} ${task.title} / ${$WEBUI_NAME}`} />
|
||||
{/if}
|
||||
|
||||
{#if missing}
|
||||
<div class="p-6 text-sm text-base-500 dark:text-base-400">
|
||||
{$i18n.t('This task was deleted, or you no longer have access to it.')}
|
||||
</div>
|
||||
{:else if !task}
|
||||
<div class="my-10 flex justify-center"><Spinner className="size-4" /></div>
|
||||
{:else}
|
||||
{@const editable = !!task.write_access}
|
||||
<!-- Full width with the folder Overview's margins, so the rail sits at the right edge. -->
|
||||
<div class="w-full px-2.5 pt-1 pb-16 @container md:px-3.5">
|
||||
<!-- Columns follow the space the page has, not the window: tabs and splits can be narrow. -->
|
||||
<div class="grid w-full gap-7 @2xl:grid-cols-[minmax(0,1fr)_13rem]">
|
||||
<div class="min-w-0">
|
||||
<div class="flex items-center gap-1 text-xs text-base-400 dark:text-base-500">
|
||||
<a
|
||||
href={`/folders/${task.folder_id}`}
|
||||
class="truncate transition-colors hover:text-base-700 dark:hover:text-base-200"
|
||||
>{task.folder?.name ?? ''}</a
|
||||
>
|
||||
<span aria-hidden="true">›</span>
|
||||
<span class="tabular-nums">#{task.number}</span>
|
||||
{#if editable}
|
||||
<Dropdown align="start">
|
||||
<button
|
||||
type="button"
|
||||
class="ml-1 flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:text-base-700 dark:text-base-500 dark:hover:text-base-300"
|
||||
aria-label={$i18n.t('More')}
|
||||
>
|
||||
<MoreHorizontal className="size-3.5" />
|
||||
</button>
|
||||
<DropdownMenu slot="content" className="w-40">
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
navigator.clipboard.writeText(`${location.origin}/tasks/${task?.id}`);
|
||||
toast.success($i18n.t('Copied link to clipboard'));
|
||||
}}
|
||||
>
|
||||
<FileNavIcon name="copy" size={14} />{$i18n.t('Copy link')}
|
||||
</button>
|
||||
{#if $user?.role === 'admin' || task.user_id === $user?.id}
|
||||
<button type="button" on:click={() => (showDelete = true)}>
|
||||
<FileNavIcon name="trash" size={14} />{$i18n.t('Delete')}
|
||||
</button>
|
||||
{/if}
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if editable}
|
||||
<input
|
||||
class="mt-2 w-full bg-transparent text-xl font-medium text-base-900 outline-hidden dark:text-base-0"
|
||||
aria-label={$i18n.t('Task title')}
|
||||
bind:value={title}
|
||||
on:blur={saveTitle}
|
||||
on:keydown={(event) => {
|
||||
if (event.key === 'Enter') (event.currentTarget as HTMLInputElement).blur();
|
||||
}}
|
||||
/>
|
||||
<Textarea
|
||||
className="mt-3 w-full bg-transparent text-[0.8125rem] leading-relaxed text-base-700 outline-hidden placeholder:text-base-300 dark:text-base-200 dark:placeholder:text-base-700"
|
||||
placeholder={$i18n.t('Add description…')}
|
||||
ariaLabel={$i18n.t('Description')}
|
||||
minSize={60}
|
||||
bind:value={description}
|
||||
onBlur={saveDescription}
|
||||
/>
|
||||
{:else}
|
||||
<h2 class="mt-2 text-xl font-medium text-base-900 dark:text-base-0">{task.title}</h2>
|
||||
{#if task.description}
|
||||
<p
|
||||
class="mt-3 text-[0.8125rem] leading-relaxed whitespace-pre-line text-base-700 dark:text-base-200"
|
||||
>
|
||||
{task.description}
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<!-- Chats started from this task, with whether a reply is still running or waiting. -->
|
||||
<section class="mt-8">
|
||||
<div class="flex items-center justify-between">
|
||||
<h3 class={groupLabel}>{$i18n.t('Chats')}</h3>
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-6 items-center gap-1 rounded-lg px-1 text-xs text-base-500 transition-colors hover:text-base-800 dark:text-base-400 dark:hover:text-base-100"
|
||||
on:click={newChat}
|
||||
>
|
||||
<Plus className="size-3.5" />{$i18n.t('New Chat')}
|
||||
</button>
|
||||
</div>
|
||||
{#if chats.length}
|
||||
<ul class="flex flex-col">
|
||||
{#each chats as chat (chat.id)}
|
||||
<li>
|
||||
<a
|
||||
href={`/c/${chat.id}`}
|
||||
class="-mx-2 flex min-h-8 items-center gap-2 rounded-xl px-2 py-1.5 text-[0.8125rem] text-base-800 transition-colors hover:text-base-1000 dark:text-base-200 dark:hover:text-base-0"
|
||||
>
|
||||
<span class="flex size-4 shrink-0 items-center justify-center">
|
||||
{#if chat.pending_approval}
|
||||
<span
|
||||
class="size-1.5 rounded-full bg-yellow-500"
|
||||
role="status"
|
||||
aria-label={$i18n.t('Waiting for approval')}
|
||||
title={$i18n.t('Waiting for approval')}
|
||||
></span>
|
||||
{:else if chat.active}
|
||||
<span role="status" aria-label={$i18n.t('Generating…')}
|
||||
><Spinner className="size-3" /></span
|
||||
>
|
||||
{:else}
|
||||
<FileNavIcon name="chat-lines" size={14} />
|
||||
{/if}
|
||||
</span>
|
||||
<span class="min-w-0 flex-1 truncate">{chat.title}</span>
|
||||
<span class="shrink-0 text-[0.6875rem] text-base-400 dark:text-base-500"
|
||||
>{chat.owner_name ?? ''} · {dayjs(chat.updated_at * 1000).fromNow()}</span
|
||||
>
|
||||
</a>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{:else}
|
||||
<p class="text-xs text-base-400 dark:text-base-500">
|
||||
{$i18n.t('Start a chat to work on this task with a model or an agent.')}
|
||||
</p>
|
||||
{/if}
|
||||
</section>
|
||||
|
||||
<section class="mt-8">
|
||||
<h3 class={groupLabel}>{$i18n.t('Activity')}</h3>
|
||||
<ul class="flex flex-col gap-1.5 text-xs text-base-500 dark:text-base-400">
|
||||
<li>
|
||||
<span class="text-base-700 dark:text-base-200">{task.user?.name ?? ''}</span>
|
||||
{$i18n.t('created the task')} · {dayjs(task.created_at * 1000).fromNow()}
|
||||
</li>
|
||||
{#each history as entry (entry.id)}
|
||||
{@const line = describe(entry)}
|
||||
{#if line}
|
||||
<li>
|
||||
<span class="text-base-700 dark:text-base-200">{entry.user?.name ?? ''}</span>
|
||||
{line} · {dayjs(entry.created_at * 1000).fromNow()}
|
||||
</li>
|
||||
{/if}
|
||||
{/each}
|
||||
</ul>
|
||||
<div class="mt-4">
|
||||
{#key task.id}
|
||||
<CommentsPanel embedded view={{ resource_type: 'task', resource_id: task.id }} />
|
||||
{/key}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<aside class="flex flex-col gap-4 text-base-700 dark:text-base-200">
|
||||
<div>
|
||||
<div class={railLabel}>{$i18n.t('Status')}</div>
|
||||
<TaskStatus
|
||||
{task}
|
||||
labeled
|
||||
disabled={!editable}
|
||||
show={picker === 'status'}
|
||||
onChange={(status) => void update({ status })}
|
||||
onManage={editable ? () => (showStatuses = true) : null}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<div class={railLabel}>{$i18n.t('Priority')}</div>
|
||||
<TaskPriority
|
||||
{task}
|
||||
labeled
|
||||
disabled={!editable}
|
||||
show={picker === 'priority'}
|
||||
onChange={(priority) => void update({ priority })}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<div class={railLabel}>{$i18n.t('Assignee')}</div>
|
||||
<TaskAssignee
|
||||
folderId={task.folder_id}
|
||||
assignee={task.assignee}
|
||||
labeled
|
||||
disabled={!editable}
|
||||
show={picker === 'assignee'}
|
||||
onChange={(person) => {
|
||||
if (task) task = { ...task, assignee: person };
|
||||
void update({ assignee_id: person?.id ?? null });
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<div class={railLabel}>{$i18n.t('Due date')}</div>
|
||||
<TaskDueDate
|
||||
date={task.due_date}
|
||||
labeled
|
||||
disabled={!editable}
|
||||
onChange={(due_date) => void update({ due_date })}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<div class={railLabel}>{$i18n.t('Tags')}</div>
|
||||
<FolderTags
|
||||
resourceType="tasks"
|
||||
chat={task}
|
||||
folderId={task.folder_id}
|
||||
{editable}
|
||||
max={6}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<div class={railLabel}>{$i18n.t('Folder')}</div>
|
||||
<TaskFolder
|
||||
folder={task.folder}
|
||||
disabled={!editable}
|
||||
onChange={(next) => void update({ folder_id: next.id })}
|
||||
/>
|
||||
</div>
|
||||
<div class="text-[0.6875rem] leading-5 text-base-400 dark:text-base-500">
|
||||
<div>{$i18n.t('Created by {{name}}', { name: task.user?.name ?? '' })}</div>
|
||||
<div>{dayjs(task.created_at * 1000).format('LL')}</div>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ConfirmDialog bind:show={showDelete} title={$i18n.t('Delete task?')} onConfirm={remove}>
|
||||
<div class="flex-1 text-sm text-base-700 line-clamp-3 dark:text-base-300">
|
||||
{$i18n.t('This deletes #{{number}} with its history and comments. Its chats stay.', {
|
||||
number: task.number
|
||||
})}
|
||||
</div>
|
||||
</ConfirmDialog>
|
||||
<!-- Writing a task needs write access to its folder, which is what editing its statuses needs. -->
|
||||
<TaskStatusesModal
|
||||
bind:show={showStatuses}
|
||||
folderId={task.folder_id}
|
||||
statuses={task.folder?.statuses ?? []}
|
||||
onSaved={() => void load()}
|
||||
/>
|
||||
{/if}
|
||||
@@ -0,0 +1,129 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { WEBUI_API_BASE_URL } from '$lib/constants';
|
||||
import { user } from '$lib/stores';
|
||||
import { getTaskAssignees, type TaskPerson } from '$lib/apis/tasks';
|
||||
import Dropdown from '$lib/components/common/Dropdown.svelte';
|
||||
import DropdownMenu from '$lib/components/common/DropdownMenu.svelte';
|
||||
import Check from '$lib/components/icons/Check.svelte';
|
||||
import UserIcon from '$lib/components/icons/User.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
export let folderId: string;
|
||||
export let assignee: TaskPerson | null;
|
||||
export let disabled = false;
|
||||
export let show = false;
|
||||
export let labeled = false;
|
||||
export let onChange: (assignee: TaskPerson | null) => void;
|
||||
|
||||
let query = '';
|
||||
let people: TaskPerson[] = [];
|
||||
let loading = false;
|
||||
let request = 0;
|
||||
|
||||
// Everyone who can edit the folder, searched as you type.
|
||||
const load = async () => {
|
||||
const id = ++request;
|
||||
loading = true;
|
||||
const result = await getTaskAssignees(localStorage.token, folderId, query.trim()).catch(
|
||||
() => []
|
||||
);
|
||||
if (id !== request) return;
|
||||
people = result;
|
||||
loading = false;
|
||||
};
|
||||
$: if (show) void (query, load());
|
||||
|
||||
const pick = (person: TaskPerson | null) => {
|
||||
show = false;
|
||||
query = '';
|
||||
if ((person?.id ?? null) !== (assignee?.id ?? null)) onChange(person);
|
||||
};
|
||||
|
||||
$: label = assignee?.name ?? $i18n.t('Unassigned');
|
||||
</script>
|
||||
|
||||
{#snippet avatar(person: TaskPerson | null)}
|
||||
{#if person}
|
||||
<img
|
||||
class="size-4 shrink-0 rounded-full object-cover"
|
||||
src={`${WEBUI_API_BASE_URL}/users/${person.id}/profile/image`}
|
||||
alt=""
|
||||
/>
|
||||
{:else}
|
||||
<span
|
||||
class="flex size-4 shrink-0 items-center justify-center rounded-full border border-dashed border-base-300 text-base-400 dark:border-base-600 dark:text-base-500"
|
||||
><UserIcon className="size-2.5" /></span
|
||||
>
|
||||
{/if}
|
||||
{/snippet}
|
||||
|
||||
{#if disabled}
|
||||
<span class="flex shrink-0 items-center gap-1.5" title={label}>
|
||||
<span class="flex size-5 items-center justify-center">{@render avatar(assignee)}</span>
|
||||
{#if labeled}<span class="truncate text-xs">{label}</span>{/if}
|
||||
</span>
|
||||
{:else}
|
||||
<Dropdown bind:show align="start" onOpenChange={() => (query = '')}>
|
||||
<button
|
||||
type="button"
|
||||
class="flex min-w-0 shrink-0 items-center gap-1.5 rounded-md transition-colors {labeled
|
||||
? 'h-6 px-1 text-xs hover:text-base-900 dark:hover:text-base-0'
|
||||
: 'size-5 justify-center hover:bg-base-100 dark:hover:bg-base-800'}"
|
||||
aria-label={$i18n.t('Assignee: {{name}}', { name: label })}
|
||||
title={labeled ? undefined : label}
|
||||
>
|
||||
{@render avatar(assignee)}
|
||||
{#if labeled}<span class="truncate">{label}</span>{/if}
|
||||
</button>
|
||||
<DropdownMenu slot="content" className="w-56">
|
||||
<div class="flex h-[1.6875rem] items-center gap-2 px-2">
|
||||
<input
|
||||
class="min-w-0 flex-1 bg-transparent text-[0.8125rem] outline-none placeholder:text-base-400 dark:placeholder:text-base-500"
|
||||
aria-label={$i18n.t('Assign to…')}
|
||||
placeholder={$i18n.t('Assign to…')}
|
||||
bind:value={query}
|
||||
on:keydown={(event) => {
|
||||
if (event.key === 'Enter' && people[0]) {
|
||||
event.preventDefault();
|
||||
pick(people[0]);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<hr class="border-base-50/30 dark:border-base-800/30" />
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={!assignee}
|
||||
on:click={() => pick(null)}
|
||||
>
|
||||
{@render avatar(null)}
|
||||
<span class="min-w-0 flex-1 truncate text-left">{$i18n.t('Unassigned')}</span>
|
||||
{#if !assignee}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{#each people as person (person.id)}
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={assignee?.id === person.id}
|
||||
on:click={() => pick(person)}
|
||||
>
|
||||
{@render avatar(person)}
|
||||
<span class="min-w-0 flex-1 truncate text-left"
|
||||
>{person.name}{#if person.id === $user?.id}<span
|
||||
class="ml-1 text-base-400 dark:text-base-500">{$i18n.t('You')}</span
|
||||
>{/if}</span
|
||||
>
|
||||
{#if assignee?.id === person.id}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{/each}
|
||||
{#if loading && !people.length}
|
||||
<div class="px-2 py-1 text-xs text-base-400 dark:text-base-500">
|
||||
{$i18n.t('Loading...')}
|
||||
</div>
|
||||
{/if}
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
{/if}
|
||||
@@ -0,0 +1,119 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import type { Task } from '$lib/apis/tasks';
|
||||
import { dueTone, formatDue } from '$lib/utils/tasks';
|
||||
import { WEBUI_API_BASE_URL } from '$lib/constants';
|
||||
import PriorityIcon from '$lib/components/chat/Placeholder/FolderPriorityIcon.svelte';
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import TaskGroupIcon from './TaskGroupIcon.svelte';
|
||||
import TaskStatusTime from './TaskStatusTime.svelte';
|
||||
import FolderTags from '$lib/components/chat/Placeholder/FolderTags.svelte';
|
||||
import type { TaskGroup } from './groups';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
export let groups: TaskGroup[];
|
||||
export let inFolder = false;
|
||||
export let loading = false;
|
||||
export let hasMore = false;
|
||||
export let onOpen: (task: Task) => void;
|
||||
// Dropping a card into a column sets what that column stands for.
|
||||
export let onDrop: (task: Task, group: TaskGroup) => void;
|
||||
export let onMore: () => void;
|
||||
|
||||
let dragged: Task | null = null;
|
||||
let over: string | null = null;
|
||||
|
||||
const drop = (group: TaskGroup) => {
|
||||
const task = dragged;
|
||||
dragged = null;
|
||||
over = null;
|
||||
if (task && group.set && !group.tasks.some((item) => item.id === task.id)) onDrop(task, group);
|
||||
};
|
||||
</script>
|
||||
|
||||
<div class="flex h-full min-h-0 gap-2 overflow-x-auto px-3 pb-4">
|
||||
{#each groups as group (group.id)}
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<section
|
||||
class="flex w-64 shrink-0 flex-col rounded-2xl transition-colors {over === group.id
|
||||
? 'bg-base-50 dark:bg-base-850/50'
|
||||
: ''}"
|
||||
aria-label={group.label}
|
||||
on:dragover={(event) => {
|
||||
if (!dragged || !group.set) return;
|
||||
event.preventDefault();
|
||||
over = group.id;
|
||||
}}
|
||||
on:dragleave={() => (over = over === group.id ? null : over)}
|
||||
on:drop|preventDefault={() => drop(group)}
|
||||
>
|
||||
<header class="flex h-8 shrink-0 items-center gap-2 px-2">
|
||||
<TaskGroupIcon {group} />
|
||||
<h3 class="truncate text-xs text-base-700 dark:text-base-200">{group.label}</h3>
|
||||
<span class="text-xs text-base-400 tabular-nums dark:text-base-500"
|
||||
>{group.tasks.length}</span
|
||||
>
|
||||
</header>
|
||||
<ul class="flex min-h-0 flex-1 flex-col gap-1.5 overflow-y-auto px-1 pb-2">
|
||||
{#each group.tasks as task (task.id)}
|
||||
<!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_noninteractive_element_interactions -->
|
||||
<li
|
||||
class="flex cursor-pointer flex-col gap-1.5 rounded-xl border border-base-100 bg-base-0 px-3 py-2 transition-colors hover:border-base-200 dark:border-base-850 dark:bg-base-900 dark:hover:border-base-800 {dragged?.id ===
|
||||
task.id
|
||||
? 'opacity-50'
|
||||
: ''}"
|
||||
draggable={!!task.write_access}
|
||||
on:dragstart={(event) => {
|
||||
dragged = task;
|
||||
event.dataTransfer?.setData('text/plain', task.title);
|
||||
}}
|
||||
on:dragend={() => {
|
||||
dragged = null;
|
||||
over = null;
|
||||
}}
|
||||
on:click={() => onOpen(task)}
|
||||
>
|
||||
<div class="text-xs text-base-400 dark:text-base-500">
|
||||
{inFolder || !task.folder ? `#${task.number}` : `${task.folder.name} #${task.number}`}
|
||||
</div>
|
||||
<div class="line-clamp-2 text-[0.8125rem] leading-5 text-base-800 dark:text-base-100">
|
||||
{task.title}
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<TaskStatusTime {task} />
|
||||
{#if task.priority}<PriorityIcon priority={task.priority} />{/if}
|
||||
{#if task.due_date}
|
||||
<span class="text-xs tabular-nums {dueTone(task.due_date)}"
|
||||
>{formatDue(task.due_date)}</span
|
||||
>
|
||||
{/if}
|
||||
{#if task.tags?.length}
|
||||
<FolderTags resourceType="tasks" chat={task} editable={false} />
|
||||
{/if}
|
||||
{#if task.assignee}
|
||||
<img
|
||||
class="ml-auto size-4 shrink-0 rounded-full object-cover"
|
||||
src={`${WEBUI_API_BASE_URL}/users/${task.assignee.id}/profile/image`}
|
||||
alt={task.assignee.name}
|
||||
title={task.assignee.name}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
</section>
|
||||
{/each}
|
||||
</div>
|
||||
{#if loading}
|
||||
<div class="flex justify-center py-2"><Spinner className="size-4" /></div>
|
||||
{:else if hasMore}
|
||||
<div class="flex justify-center py-2">
|
||||
<button
|
||||
type="button"
|
||||
class="text-xs text-base-500 hover:text-base-800 dark:text-base-400 dark:hover:text-base-100"
|
||||
on:click={onMore}>{$i18n.t('Load more')}</button
|
||||
>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,35 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { getTaskById, type Task } from '$lib/apis/tasks';
|
||||
import { taskStatusDef } from '$lib/utils/tasks';
|
||||
import StatusIcon from '$lib/components/chat/Placeholder/FolderStatusIcon.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
// The task a chat was started from, linking back to it.
|
||||
export let id: string;
|
||||
|
||||
let task: Task | null = null;
|
||||
$: void getTaskById(localStorage.token, id)
|
||||
.then((next) => (task = next))
|
||||
.catch(() => (task = null));
|
||||
$: def = task ? taskStatusDef(task, (key) => $i18n.t(key)) : null;
|
||||
</script>
|
||||
|
||||
{#if task}
|
||||
<a
|
||||
href={`/tasks/${task.id}`}
|
||||
class="flex max-w-56 min-w-0 shrink items-center gap-1.5 rounded-lg px-1.5 py-0.5 text-xs text-base-500 transition-colors hover:text-base-800 dark:text-base-400 dark:hover:text-base-100"
|
||||
title={`#${task.number} ${task.title}`}
|
||||
>
|
||||
<StatusIcon
|
||||
glyph={def?.glyph}
|
||||
color={def?.color}
|
||||
emoji={def?.icon}
|
||||
dot={!!def && !def.glyph}
|
||||
className="size-3"
|
||||
/>
|
||||
<span class="shrink-0 tabular-nums">#{task.number}</span>
|
||||
<span class="min-w-0 truncate">{task.title}</span>
|
||||
</a>
|
||||
{/if}
|
||||
@@ -0,0 +1,66 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import dayjs from 'dayjs';
|
||||
import { dueTone, formatDue } from '$lib/utils/tasks';
|
||||
import Dropdown from '$lib/components/common/Dropdown.svelte';
|
||||
import DropdownMenu from '$lib/components/common/DropdownMenu.svelte';
|
||||
import CalendarIcon from '$lib/components/icons/Calendar.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
export let date: string | null;
|
||||
export let disabled = false;
|
||||
export let show = false;
|
||||
export let labeled = false;
|
||||
// Rows show nothing until a date is set; the rail and composer always show the control.
|
||||
export let hideEmpty = false;
|
||||
export let onChange: (date: string | null) => void;
|
||||
|
||||
const day = (offset: number) => dayjs().add(offset, 'day').format('YYYY-MM-DD');
|
||||
const pick = (value: string | null) => {
|
||||
show = false;
|
||||
if (value !== date) onChange(value);
|
||||
};
|
||||
|
||||
$: label = date ? formatDue(date) : $i18n.t('Due date');
|
||||
</script>
|
||||
|
||||
{#if disabled || (hideEmpty && !date)}
|
||||
{#if date}
|
||||
<span class="shrink-0 text-xs tabular-nums {dueTone(date)}" title={$i18n.t('Due date')}
|
||||
>{label}</span
|
||||
>
|
||||
{/if}
|
||||
{:else}
|
||||
<Dropdown bind:show align="start">
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-6 shrink-0 items-center gap-1.5 rounded-md px-1 text-xs tabular-nums transition-colors hover:text-base-900 dark:hover:text-base-0 {date
|
||||
? dueTone(date)
|
||||
: 'text-base-400 dark:text-base-500'}"
|
||||
aria-label={date ? `${$i18n.t('Due date')}: ${label}` : $i18n.t('Set due date')}
|
||||
>
|
||||
{#if labeled || !date}<CalendarIcon className="size-3.5" strokeWidth="1.75" />{/if}
|
||||
{#if labeled || date}<span class="truncate">{label}</span>{/if}
|
||||
</button>
|
||||
<DropdownMenu slot="content" className="w-48">
|
||||
<button type="button" on:click={() => pick(day(0))}>{$i18n.t('Today')}</button>
|
||||
<button type="button" on:click={() => pick(day(1))}>{$i18n.t('Tomorrow')}</button>
|
||||
<button type="button" on:click={() => pick(day(7))}>{$i18n.t('Next week')}</button>
|
||||
<hr class="border-base-50/30 dark:border-base-800/30" />
|
||||
<div class="px-2 py-1">
|
||||
<input
|
||||
type="date"
|
||||
class="w-full bg-transparent text-xs outline-none"
|
||||
aria-label={$i18n.t('Due date')}
|
||||
value={date ?? ''}
|
||||
on:change={(event) => pick(event.currentTarget.value || null)}
|
||||
/>
|
||||
</div>
|
||||
{#if date}
|
||||
<hr class="border-base-50/30 dark:border-base-800/30" />
|
||||
<button type="button" on:click={() => pick(null)}>{$i18n.t('Clear')}</button>
|
||||
{/if}
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
{/if}
|
||||
@@ -0,0 +1,109 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { getFolders, getSharedFolders } from '$lib/apis/folders';
|
||||
import Dropdown from '$lib/components/common/Dropdown.svelte';
|
||||
import DropdownMenu from '$lib/components/common/DropdownMenu.svelte';
|
||||
import Emoji from '$lib/components/common/Emoji.svelte';
|
||||
import Check from '$lib/components/icons/Check.svelte';
|
||||
import FolderIcon from '$lib/components/icons/Folder.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
type FolderOption = { id: string; name: string; icon?: string | null };
|
||||
|
||||
export let folder: FolderOption | null;
|
||||
export let disabled = false;
|
||||
export let show = false;
|
||||
export let onChange: (folder: FolderOption) => void;
|
||||
|
||||
let query = '';
|
||||
let options: FolderOption[] | null = null;
|
||||
|
||||
// The folders the user can add tasks to: their own, and shared ones they can edit.
|
||||
const load = async () => {
|
||||
const [own, shared] = await Promise.all([
|
||||
getFolders(localStorage.token).catch(() => []),
|
||||
getSharedFolders(localStorage.token).catch(() => [])
|
||||
]);
|
||||
const seen = new Set<string>();
|
||||
options = [
|
||||
...(own ?? []),
|
||||
...(shared ?? []).filter((item: { permission?: string }) => item.permission === 'write')
|
||||
]
|
||||
.filter((item) => !seen.has(item.id) && !!seen.add(item.id))
|
||||
.map((item) => ({ id: item.id, name: item.name, icon: item.meta?.icon ?? null }))
|
||||
.sort((a, b) => a.name.localeCompare(b.name));
|
||||
};
|
||||
$: if (show && !options) void load();
|
||||
|
||||
$: needle = query.trim().toLowerCase();
|
||||
$: matches = (options ?? []).filter(
|
||||
(item) => !needle || item.name.toLowerCase().includes(needle)
|
||||
);
|
||||
|
||||
const pick = (item: FolderOption) => {
|
||||
show = false;
|
||||
query = '';
|
||||
if (item.id !== folder?.id) onChange(item);
|
||||
};
|
||||
</script>
|
||||
|
||||
{#snippet icon(item: FolderOption | null)}
|
||||
{#if item?.icon}
|
||||
<Emoji shortCode={item.icon} className="size-3.5 shrink-0" />
|
||||
{:else}
|
||||
<FolderIcon className="size-3.5 shrink-0" strokeWidth="1.75" />
|
||||
{/if}
|
||||
{/snippet}
|
||||
|
||||
{#if disabled}
|
||||
<span class="flex min-w-0 items-center gap-1.5 text-xs">
|
||||
{@render icon(folder)}<span class="truncate">{folder?.name ?? ''}</span>
|
||||
</span>
|
||||
{:else}
|
||||
<Dropdown bind:show align="start" onOpenChange={() => (query = '')}>
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-6 min-w-0 shrink-0 items-center gap-1.5 rounded-md px-1 text-xs transition-colors hover:text-base-900 dark:hover:text-base-0 {folder
|
||||
? ''
|
||||
: 'text-base-400 dark:text-base-500'}"
|
||||
aria-label={folder ? `${$i18n.t('Folder')}: ${folder.name}` : $i18n.t('Choose a folder')}
|
||||
>
|
||||
{@render icon(folder)}
|
||||
<span class="truncate">{folder?.name ?? $i18n.t('Choose a folder')}</span>
|
||||
</button>
|
||||
<DropdownMenu slot="content" className="w-56 max-h-72 overflow-y-auto">
|
||||
<div class="flex h-[1.6875rem] items-center gap-2 px-2">
|
||||
<input
|
||||
class="min-w-0 flex-1 bg-transparent text-[0.8125rem] outline-none placeholder:text-base-400 dark:placeholder:text-base-500"
|
||||
aria-label={$i18n.t('Search Folders')}
|
||||
placeholder={$i18n.t('Search Folders')}
|
||||
bind:value={query}
|
||||
on:keydown={(event) => {
|
||||
if (event.key === 'Enter' && matches[0]) {
|
||||
event.preventDefault();
|
||||
pick(matches[0]);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<hr class="border-base-50/30 dark:border-base-800/30" />
|
||||
{#each matches as item (item.id)}
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={folder?.id === item.id}
|
||||
on:click={() => pick(item)}
|
||||
>
|
||||
{@render icon(item)}
|
||||
<span class="min-w-0 flex-1 truncate text-left">{item.name}</span>
|
||||
{#if folder?.id === item.id}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{:else}
|
||||
<div class="px-2 py-1 text-xs text-base-400 dark:text-base-500">
|
||||
{options ? $i18n.t('No folders found') : $i18n.t('Loading...')}
|
||||
</div>
|
||||
{/each}
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
{/if}
|
||||
@@ -0,0 +1,33 @@
|
||||
<script lang="ts">
|
||||
import { WEBUI_API_BASE_URL } from '$lib/constants';
|
||||
import Emoji from '$lib/components/common/Emoji.svelte';
|
||||
import FolderIcon from '$lib/components/icons/Folder.svelte';
|
||||
import StatusIcon from '$lib/components/chat/Placeholder/FolderStatusIcon.svelte';
|
||||
import PriorityIcon from '$lib/components/chat/Placeholder/FolderPriorityIcon.svelte';
|
||||
import type { TaskGroup } from './groups';
|
||||
|
||||
export let group: TaskGroup;
|
||||
</script>
|
||||
|
||||
{#if group.status}
|
||||
<StatusIcon
|
||||
glyph={group.status.glyph}
|
||||
color={group.status.color}
|
||||
emoji={group.status.icon}
|
||||
dot={!group.status.glyph}
|
||||
/>
|
||||
{:else if group.priority}
|
||||
<PriorityIcon priority={group.priority} />
|
||||
{:else if group.person}
|
||||
<img
|
||||
class="size-3.5 shrink-0 rounded-full object-cover"
|
||||
src={`${WEBUI_API_BASE_URL}/users/${group.person.id}/profile/image`}
|
||||
alt=""
|
||||
/>
|
||||
{:else if group.folder}
|
||||
{#if group.folder.icon}
|
||||
<Emoji shortCode={group.folder.icon} className="size-3.5 shrink-0" />
|
||||
{:else}
|
||||
<FolderIcon className="size-3.5 shrink-0 text-base-400 dark:text-base-500" strokeWidth="1.75" />
|
||||
{/if}
|
||||
{/if}
|
||||
@@ -0,0 +1,209 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { user } from '$lib/stores';
|
||||
import type { Task, TaskChanges } from '$lib/apis/tasks';
|
||||
import type { CustomStatus } from '$lib/utils/folders';
|
||||
import { taskLabel } from '$lib/utils/tasks';
|
||||
import ChevronRight from '$lib/components/icons/ChevronRight.svelte';
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import TaskStatus from './TaskStatus.svelte';
|
||||
import TaskStatusTime from './TaskStatusTime.svelte';
|
||||
import FolderTags from '$lib/components/chat/Placeholder/FolderTags.svelte';
|
||||
import TaskPriority from './TaskPriority.svelte';
|
||||
import TaskAssignee from './TaskAssignee.svelte';
|
||||
import TaskDueDate from './TaskDueDate.svelte';
|
||||
import TaskGroupIcon from './TaskGroupIcon.svelte';
|
||||
import type { TaskGroup } from './groups';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
export let groups: TaskGroup[];
|
||||
// On a folder page tasks show as #12; elsewhere with their folder's name.
|
||||
export let inFolder = false;
|
||||
export let collapsed: Record<string, boolean> = {};
|
||||
export let loading = false;
|
||||
export let hasMore = false;
|
||||
export let onCollapse: (id: string) => void;
|
||||
export let onUpdate: (task: Task, changes: TaskChanges) => void;
|
||||
export let onOpen: (task: Task) => void;
|
||||
export let onMore: () => void;
|
||||
export let onManageStatuses: ((task: Task, statuses: CustomStatus[]) => void) | null = null;
|
||||
|
||||
let container: HTMLElement;
|
||||
// Wide enough for the longest "#12" in the list, so the numbers line up without a gap.
|
||||
$: longest = Math.max(0, ...groups.flatMap((group) => group.tasks.map((task) => task.number)));
|
||||
$: numberWidth = `${String(longest).length + 1}ch`;
|
||||
// The picker a key opened on the focused row: s status, p priority, a assignee.
|
||||
let picker: { id: string; kind: 'status' | 'priority' | 'assignee' } | null = null;
|
||||
|
||||
const focusedTask = (target: EventTarget | null) => {
|
||||
const id = (target as HTMLElement | null)?.closest<HTMLElement>('[data-task-row]')?.dataset
|
||||
.taskRow;
|
||||
return groups.flatMap((group) => group.tasks).find((task) => task.id === id);
|
||||
};
|
||||
|
||||
// Linear's keys: j/k move, Enter opens, s/p/a open a picker, i assigns to me.
|
||||
function keys(event: KeyboardEvent) {
|
||||
if (event.metaKey || event.ctrlKey || event.altKey || event.isComposing) return;
|
||||
const target = event.target as HTMLElement;
|
||||
if (!target.matches('[data-task-row]')) return;
|
||||
const steps: Record<string, number> = { ArrowDown: 1, j: 1, ArrowUp: -1, k: -1 };
|
||||
if (steps[event.key]) {
|
||||
const rows = [...container.querySelectorAll<HTMLElement>('[data-task-row]')];
|
||||
const next = rows[rows.indexOf(target) + steps[event.key]];
|
||||
if (!next) return;
|
||||
event.preventDefault();
|
||||
next.focus();
|
||||
next.scrollIntoView({ block: 'nearest' });
|
||||
return;
|
||||
}
|
||||
const task = focusedTask(target);
|
||||
if (!task) return;
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault();
|
||||
onOpen(task);
|
||||
} else if (!task.write_access) {
|
||||
return;
|
||||
} else if (event.key === 's' || event.key === 'p' || event.key === 'a') {
|
||||
event.preventDefault();
|
||||
picker = {
|
||||
id: task.id,
|
||||
kind: ({ s: 'status', p: 'priority', a: 'assignee' } as const)[event.key]
|
||||
};
|
||||
} else if (event.key === 'i' && $user && task.assignee_id !== $user.id) {
|
||||
event.preventDefault();
|
||||
onUpdate(task, { assignee_id: $user.id });
|
||||
}
|
||||
}
|
||||
|
||||
const open = (event: MouseEvent, task: Task) => {
|
||||
if ((event.target as Element).closest('a, button, input, [role="menu"]')) return;
|
||||
if (window.getSelection()?.toString()) return;
|
||||
onOpen(task);
|
||||
};
|
||||
|
||||
$: pickerOpen = (task: Task, kind: string) => picker?.id === task.id && picker.kind === kind;
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
bind:this={container}
|
||||
class="scrollbar-hidden h-full min-h-0 min-w-0 overflow-y-auto px-3 @container"
|
||||
style="padding-bottom: 1.5rem"
|
||||
on:keydown={keys}
|
||||
>
|
||||
{#each groups as group (group.id)}
|
||||
{#if group.label}
|
||||
<!-- The whole header toggles the group, as a heading wrapping its button (the disclosure pattern). -->
|
||||
<h3 class="sticky top-0 z-[1] mt-1.5 first:mt-0">
|
||||
<button
|
||||
type="button"
|
||||
class="group/header flex h-8 w-full items-center gap-2 rounded-xl pr-3 pl-2 text-left backdrop-blur-md"
|
||||
aria-expanded={!collapsed[group.id]}
|
||||
aria-label={collapsed[group.id]
|
||||
? $i18n.t('Expand {{name}}', { name: group.label })
|
||||
: $i18n.t('Collapse {{name}}', { name: group.label })}
|
||||
on:click={() => onCollapse(group.id)}
|
||||
>
|
||||
<span
|
||||
class="flex size-5 items-center justify-center text-base-400 transition-colors group-hover/header:text-base-700 dark:text-base-500 dark:group-hover/header:text-base-200"
|
||||
>
|
||||
<ChevronRight
|
||||
className="size-3 transition-transform {collapsed[group.id] ? '' : 'rotate-90'}"
|
||||
strokeWidth="2"
|
||||
/>
|
||||
</span>
|
||||
<TaskGroupIcon {group} />
|
||||
<span class="text-xs text-base-700 dark:text-base-200">{group.label}</span>
|
||||
<span class="text-xs text-base-400 tabular-nums dark:text-base-500"
|
||||
>{group.tasks.length}</span
|
||||
>
|
||||
</button>
|
||||
</h3>
|
||||
{/if}
|
||||
|
||||
{#if !collapsed[group.id]}
|
||||
<ul class="py-0.5" aria-label={group.label || $i18n.t('Tasks')}>
|
||||
{#each group.tasks as task (task.id)}
|
||||
{@const editable = !!task.write_access}
|
||||
<!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_noninteractive_element_interactions, a11y_no_noninteractive_tabindex -->
|
||||
<li
|
||||
data-task-row={task.id}
|
||||
tabindex="0"
|
||||
class="group flex cursor-pointer items-center gap-2 rounded-xl px-3 py-1.5 transition-colors outline-none hover:bg-base-50 focus:bg-base-50 dark:hover:bg-base-850/50 dark:focus:bg-base-850/50"
|
||||
on:click={(event) => open(event, task)}
|
||||
>
|
||||
<div class="flex shrink-0 items-center gap-1">
|
||||
<TaskPriority
|
||||
{task}
|
||||
disabled={!editable}
|
||||
show={pickerOpen(task, 'priority')}
|
||||
onChange={(priority) => onUpdate(task, { priority })}
|
||||
/>
|
||||
<span
|
||||
class="mr-1.5 shrink-0 text-xs text-base-400 tabular-nums dark:text-base-500"
|
||||
style="min-width: {numberWidth}">#{task.number}</span
|
||||
>
|
||||
<!-- Status and its time sit as close as in chat lists. -->
|
||||
<div class="flex items-center gap-0.5">
|
||||
<TaskStatus
|
||||
{task}
|
||||
disabled={!editable}
|
||||
show={pickerOpen(task, 'status')}
|
||||
onChange={(status) => onUpdate(task, { status })}
|
||||
onManage={onManageStatuses
|
||||
? (statuses) => onManageStatuses?.(task, statuses)
|
||||
: null}
|
||||
/>
|
||||
<!-- Fixed width keeps titles aligned across rows, as in chat lists. -->
|
||||
<span class="flex w-6 shrink-0"><TaskStatusTime {task} /></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex min-w-0 flex-1 items-center gap-2">
|
||||
{#if !inFolder && task.folder}
|
||||
<span class="shrink-0 text-xs text-base-400 dark:text-base-500"
|
||||
>{task.folder.name}</span
|
||||
>
|
||||
{/if}
|
||||
<span
|
||||
class="min-w-0 truncate text-[0.8125rem] leading-5 text-base-800 dark:text-base-100"
|
||||
title={`${taskLabel(task, inFolder)} ${task.title}`}>{task.title}</span
|
||||
>
|
||||
</div>
|
||||
<div class="flex shrink-0 items-center gap-2">
|
||||
<!-- Tags where chat lists show theirs; open task lists refresh when they change. -->
|
||||
<div class="hidden @md:flex">
|
||||
<FolderTags resourceType="tasks" chat={task} folderId={task.folder_id} {editable} />
|
||||
</div>
|
||||
<TaskDueDate
|
||||
date={task.due_date}
|
||||
disabled={!editable}
|
||||
hideEmpty
|
||||
onChange={(due_date) => onUpdate(task, { due_date })}
|
||||
/>
|
||||
<TaskAssignee
|
||||
folderId={task.folder_id}
|
||||
assignee={task.assignee}
|
||||
disabled={!editable}
|
||||
show={pickerOpen(task, 'assignee')}
|
||||
onChange={(person) => onUpdate(task, { assignee_id: person?.id ?? null })}
|
||||
/>
|
||||
</div>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{/if}
|
||||
{/each}
|
||||
|
||||
{#if loading}
|
||||
<div class="flex justify-center py-3"><Spinner className="size-4" /></div>
|
||||
{:else if hasMore}
|
||||
<div class="flex justify-center py-2">
|
||||
<button
|
||||
type="button"
|
||||
class="text-xs text-base-500 hover:text-base-800 dark:text-base-400 dark:hover:text-base-100"
|
||||
on:click={onMore}>{$i18n.t('Load more')}</button
|
||||
>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,225 @@
|
||||
<script lang="ts">
|
||||
import { getContext, tick } from 'svelte';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { getFolderById } from '$lib/apis/folders';
|
||||
import { createTask, type Task, type TaskPerson, type TaskPriority } from '$lib/apis/tasks';
|
||||
import { taskStatuses } from '$lib/utils/tasks';
|
||||
import Modal from '$lib/components/common/Modal.svelte';
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import Switch from '$lib/components/common/Switch.svelte';
|
||||
import Textarea from '$lib/components/common/Textarea.svelte';
|
||||
import XMark from '$lib/components/icons/XMark.svelte';
|
||||
import TaskAssignee from './TaskAssignee.svelte';
|
||||
import TaskDueDate from './TaskDueDate.svelte';
|
||||
import TaskFolder from './TaskFolder.svelte';
|
||||
import TaskPriorityPicker from './TaskPriority.svelte';
|
||||
import TaskStatus from './TaskStatus.svelte';
|
||||
import TaskStatusesModal from './TaskStatusesModal.svelte';
|
||||
import FolderTags from '$lib/components/chat/Placeholder/FolderTags.svelte';
|
||||
import type { FolderTag } from '$lib/utils/tags';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
type FolderOption = { id: string; name: string; icon?: string | null };
|
||||
|
||||
export let show = false;
|
||||
// The folder page's folder; elsewhere the last folder a task was created in.
|
||||
export let folder: FolderOption | null = null;
|
||||
export let onCreated: (task: Task) => void = () => {};
|
||||
|
||||
const LAST_FOLDER_KEY = 'task-last-folder';
|
||||
|
||||
let title = '';
|
||||
let description = '';
|
||||
let target: FolderOption | null = null;
|
||||
let statuses: unknown[] = [];
|
||||
let status = '';
|
||||
let priority: TaskPriority | null = null;
|
||||
let assignee: TaskPerson | null = null;
|
||||
let dueDate: string | null = null;
|
||||
let tags: FolderTag[] = [];
|
||||
let createMore = false;
|
||||
let saving = false;
|
||||
let showStatuses = false;
|
||||
|
||||
const lastFolder = (): FolderOption | null => {
|
||||
try {
|
||||
return JSON.parse(localStorage.getItem(LAST_FOLDER_KEY) ?? 'null');
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
const defaultStatus = () => {
|
||||
const list = taskStatuses(statuses, (key) => $i18n.t(key));
|
||||
return (list.find((item) => item.glyph === 'todo') ?? list[0]).id;
|
||||
};
|
||||
|
||||
// A folder brings its own statuses; the status starts again from its first to-do.
|
||||
const chooseFolder = async (next: FolderOption | null) => {
|
||||
if (next?.id !== target?.id) assignee = null;
|
||||
target = next;
|
||||
statuses = [];
|
||||
if (next) {
|
||||
const details = await getFolderById(localStorage.token, next.id).catch(() => null);
|
||||
if (target?.id !== next.id) return;
|
||||
statuses = details?.meta?.statuses ?? [];
|
||||
}
|
||||
status = defaultStatus();
|
||||
};
|
||||
|
||||
const init = async () => {
|
||||
title = '';
|
||||
description = '';
|
||||
priority = null;
|
||||
assignee = null;
|
||||
dueDate = null;
|
||||
tags = [];
|
||||
await chooseFolder(folder ?? lastFolder());
|
||||
await tick();
|
||||
document.getElementById('task-title')?.focus();
|
||||
};
|
||||
$: if (show) void init();
|
||||
|
||||
// The pickers take a task; this is the one being written.
|
||||
$: draft = {
|
||||
title: title || $i18n.t('New task'),
|
||||
status,
|
||||
folder: target ? { ...target, statuses } : null
|
||||
} as unknown as Task;
|
||||
|
||||
const submit = async () => {
|
||||
if (!title.trim()) return toast.error($i18n.t('Enter a title'));
|
||||
if (!target) return toast.error($i18n.t('Choose a folder'));
|
||||
saving = true;
|
||||
const task = await createTask(localStorage.token, {
|
||||
folder_id: target.id,
|
||||
title: title.trim(),
|
||||
description: description.trim() || null,
|
||||
status,
|
||||
priority,
|
||||
assignee_id: assignee?.id ?? null,
|
||||
due_date: dueDate,
|
||||
tags: tags.map((tag) => tag.name)
|
||||
}).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
return null;
|
||||
});
|
||||
saving = false;
|
||||
if (!task) return;
|
||||
try {
|
||||
localStorage.setItem(LAST_FOLDER_KEY, JSON.stringify(target));
|
||||
} catch {
|
||||
// Remembering the folder is only a convenience.
|
||||
}
|
||||
onCreated(task);
|
||||
if (createMore) {
|
||||
title = '';
|
||||
description = '';
|
||||
await tick();
|
||||
document.getElementById('task-title')?.focus();
|
||||
} else {
|
||||
show = false;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<Modal bind:show size="md" ariaLabel={$i18n.t('New task')}>
|
||||
<form class="flex flex-col px-4 pt-3 pb-4" on:submit|preventDefault={submit}>
|
||||
<div class="flex items-center justify-between pb-2">
|
||||
<div class="flex min-w-0 items-center gap-1 text-xs text-base-500 dark:text-base-400">
|
||||
<TaskFolder folder={target} onChange={(next) => void chooseFolder(next)} />
|
||||
<span aria-hidden="true">›</span>
|
||||
<span>{$i18n.t('New task')}</span>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
aria-label={$i18n.t('Close')}
|
||||
class="rounded-lg p-1 text-base-500 transition hover:text-base-700 dark:text-base-400 dark:hover:text-base-200"
|
||||
on:click={() => (show = false)}
|
||||
>
|
||||
<XMark className="size-4" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<input
|
||||
id="task-title"
|
||||
class="w-full bg-transparent text-base font-medium outline-hidden placeholder:text-base-300 dark:placeholder:text-base-700"
|
||||
placeholder={$i18n.t('Task title')}
|
||||
aria-label={$i18n.t('Task title')}
|
||||
autocomplete="off"
|
||||
bind:value={title}
|
||||
/>
|
||||
<Textarea
|
||||
className="mt-1.5 w-full bg-transparent text-sm outline-hidden placeholder:text-base-300 dark:placeholder:text-base-700"
|
||||
placeholder={$i18n.t('Add description…')}
|
||||
ariaLabel={$i18n.t('Description')}
|
||||
minSize={60}
|
||||
maxSize={240}
|
||||
bind:value={description}
|
||||
/>
|
||||
|
||||
<div class="mt-3 flex flex-wrap items-center gap-1 text-base-600 dark:text-base-300">
|
||||
<TaskStatus
|
||||
task={draft}
|
||||
labeled
|
||||
disabled={!target}
|
||||
onChange={(next) => (status = next)}
|
||||
onManage={target ? () => (showStatuses = true) : null}
|
||||
/>
|
||||
<TaskPriorityPicker task={draft} labeled onChange={(next) => (priority = next)} />
|
||||
{#if target}
|
||||
<TaskAssignee
|
||||
folderId={target.id}
|
||||
{assignee}
|
||||
labeled
|
||||
onChange={(next) => (assignee = next)}
|
||||
/>
|
||||
{/if}
|
||||
<TaskDueDate date={dueDate} labeled onChange={(next) => (dueDate = next)} />
|
||||
{#if target}
|
||||
<!-- No id yet: the picker keeps the chosen tags here until the task is created. -->
|
||||
<FolderTags
|
||||
resourceType="tasks"
|
||||
chat={{ id: '', title: title || $i18n.t('New task'), tags }}
|
||||
folderId={target.id}
|
||||
editable
|
||||
max={4}
|
||||
onChange={(next) => {
|
||||
tags = next;
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="mt-4 flex items-center justify-end gap-3">
|
||||
<label class="flex items-center gap-2 text-xs text-base-500 dark:text-base-400">
|
||||
<Switch bind:state={createMore} ariaLabel={$i18n.t('Create more')} />
|
||||
{$i18n.t('Create more')}
|
||||
</label>
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="submit"
|
||||
disabled={saving}
|
||||
>
|
||||
{$i18n.t('Create task')}
|
||||
{#if saving}<Spinner className="size-3" />{/if}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</Modal>
|
||||
|
||||
{#if target}
|
||||
<!-- The folders offered here are ones the user can edit, so they may change its statuses. -->
|
||||
<TaskStatusesModal
|
||||
bind:show={showStatuses}
|
||||
folderId={target.id}
|
||||
{statuses}
|
||||
onSaved={(next) => {
|
||||
statuses = next;
|
||||
// A status that was removed or renamed away falls back to the first to-do.
|
||||
if (!taskStatuses(statuses, (key) => $i18n.t(key)).some((item) => item.id === status))
|
||||
status = defaultStatus();
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
@@ -0,0 +1,63 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import type { Task, TaskPriority } from '$lib/apis/tasks';
|
||||
import { NO_PRIORITY, priorityDefs, priorityKey, type FolderPriority } from '$lib/utils/folders';
|
||||
import Dropdown from '$lib/components/common/Dropdown.svelte';
|
||||
import DropdownMenu from '$lib/components/common/DropdownMenu.svelte';
|
||||
import Check from '$lib/components/icons/Check.svelte';
|
||||
import PriorityIcon from '$lib/components/chat/Placeholder/FolderPriorityIcon.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
export let task: Pick<Task, 'title' | 'priority'>;
|
||||
export let disabled = false;
|
||||
export let show = false;
|
||||
export let labeled = false;
|
||||
export let onChange: (priority: TaskPriority | null) => void;
|
||||
|
||||
$: defs = priorityDefs((key) => $i18n.t(key));
|
||||
$: current = priorityKey(task.priority);
|
||||
$: label = defs.find((item) => item.id === current)?.name ?? '';
|
||||
|
||||
const pick = (priority: FolderPriority) => {
|
||||
if (priority !== current) onChange(priority === NO_PRIORITY ? null : priority);
|
||||
};
|
||||
</script>
|
||||
|
||||
{#if disabled}
|
||||
<span class="flex shrink-0 items-center gap-1.5" title={label}>
|
||||
<span class="flex size-5 items-center justify-center"><PriorityIcon priority={current} /></span>
|
||||
{#if labeled}<span class="truncate text-xs">{label}</span>{/if}
|
||||
</span>
|
||||
{:else}
|
||||
<Dropdown bind:show align="start" closeOnSelect>
|
||||
<button
|
||||
type="button"
|
||||
class="flex shrink-0 items-center gap-1.5 rounded-md transition-colors {labeled
|
||||
? 'h-6 px-1 text-xs hover:text-base-900 dark:hover:text-base-0'
|
||||
: 'size-5 justify-center hover:bg-base-100 dark:hover:bg-base-800'}"
|
||||
aria-label={$i18n.t('Priority for {{title}}: {{priority}}', {
|
||||
title: task.title,
|
||||
priority: label
|
||||
})}
|
||||
title={labeled ? undefined : label}
|
||||
>
|
||||
<PriorityIcon priority={current} />
|
||||
{#if labeled}<span class="truncate">{label}</span>{/if}
|
||||
</button>
|
||||
<DropdownMenu slot="content" className="w-40">
|
||||
{#each defs as item (item.id)}
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={current === item.id}
|
||||
on:click={() => pick(item.id)}
|
||||
>
|
||||
<PriorityIcon priority={item.id} />
|
||||
<span class="min-w-0 flex-1 truncate text-left">{item.name}</span>
|
||||
{#if current === item.id}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{/each}
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
{/if}
|
||||
@@ -0,0 +1,86 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import type { Task } from '$lib/apis/tasks';
|
||||
import type { CustomStatus } from '$lib/utils/folders';
|
||||
import { taskStatusSince, taskStatuses } from '$lib/utils/tasks';
|
||||
import { formatElapsed } from '$lib/utils';
|
||||
import Dropdown from '$lib/components/common/Dropdown.svelte';
|
||||
import DropdownMenu from '$lib/components/common/DropdownMenu.svelte';
|
||||
import Check from '$lib/components/icons/Check.svelte';
|
||||
import Icon from '$lib/components/chat/FileNav/Icon.svelte';
|
||||
import StatusIcon from '$lib/components/chat/Placeholder/FolderStatusIcon.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
export let task: Task;
|
||||
export let disabled = false;
|
||||
export let show = false;
|
||||
// With the status name beside the icon, as in the task page's rail.
|
||||
export let labeled = false;
|
||||
export let onChange: (status: string) => void;
|
||||
// "Edit statuses…" for people who may change the folder's statuses.
|
||||
export let onManage: ((statuses: CustomStatus[]) => void) | null = null;
|
||||
|
||||
$: statuses = taskStatuses(task.folder?.statuses, (key) => $i18n.t(key));
|
||||
$: current = statuses.find((item) => item.id === task.status);
|
||||
// "In progress · 3 days", as the chats' status picker says it.
|
||||
// The composer's draft has no time in status yet.
|
||||
$: tip = task.status_at
|
||||
? `${current?.name ?? task.status} · ${formatElapsed(taskStatusSince(task), $i18n.language)}`
|
||||
: current?.name;
|
||||
</script>
|
||||
|
||||
{#snippet icon(item: CustomStatus | undefined)}
|
||||
<StatusIcon
|
||||
glyph={item?.glyph}
|
||||
color={item?.color}
|
||||
emoji={item?.icon}
|
||||
dot={!!item && !item.glyph}
|
||||
/>
|
||||
{/snippet}
|
||||
|
||||
{#if disabled}
|
||||
<span class="flex shrink-0 items-center gap-1.5" title={tip}>
|
||||
<span class="flex size-5 items-center justify-center">{@render icon(current)}</span>
|
||||
{#if labeled}<span class="truncate text-xs">{current?.name ?? task.status}</span>{/if}
|
||||
</span>
|
||||
{:else}
|
||||
<Dropdown bind:show align="start" closeOnSelect>
|
||||
<button
|
||||
type="button"
|
||||
class="flex shrink-0 items-center gap-1.5 rounded-md transition-colors {labeled
|
||||
? 'h-6 px-1 text-xs hover:text-base-900 dark:hover:text-base-0'
|
||||
: 'size-5 justify-center hover:bg-base-100 dark:hover:bg-base-800'}"
|
||||
aria-label={$i18n.t('Status for {{title}}: {{status}}', {
|
||||
title: task.title,
|
||||
status: current?.name ?? task.status
|
||||
})}
|
||||
title={labeled ? undefined : tip}
|
||||
>
|
||||
{@render icon(current)}
|
||||
{#if labeled}<span class="truncate">{current?.name ?? task.status}</span>{/if}
|
||||
</button>
|
||||
<DropdownMenu slot="content" className="w-44">
|
||||
{#each statuses as item (item.id)}
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={task.status === item.id}
|
||||
on:click={() => {
|
||||
if (task.status !== item.id) onChange(item.id);
|
||||
}}
|
||||
>
|
||||
{@render icon(item)}
|
||||
<span class="min-w-0 flex-1 truncate text-left">{item.name}</span>
|
||||
{#if task.status === item.id}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{/each}
|
||||
{#if onManage}
|
||||
<hr class="border-base-50/30 dark:border-base-800/30" />
|
||||
<button type="button" on:click={() => onManage?.(statuses)}>
|
||||
<Icon name="pencil" size={14} />{$i18n.t('Edit statuses…')}
|
||||
</button>
|
||||
{/if}
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
{/if}
|
||||
@@ -0,0 +1,23 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import type { Task } from '$lib/apis/tasks';
|
||||
import { taskStatusSince, taskStatuses } from '$lib/utils/tasks';
|
||||
import FolderStatusTime from '$lib/components/chat/Placeholder/FolderStatusTime.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
export let task: Task;
|
||||
export let className = '';
|
||||
</script>
|
||||
|
||||
<!-- "3d" with the chats' breakdown tooltip: how long the task has been in its status. -->
|
||||
<FolderStatusTime
|
||||
chat={{
|
||||
status: task.status,
|
||||
status_since: taskStatusSince(task),
|
||||
status_entered_at: task.status_at,
|
||||
status_durations: task.status_durations ?? {}
|
||||
}}
|
||||
statuses={taskStatuses(task.folder?.statuses, (key) => $i18n.t(key))}
|
||||
{className}
|
||||
/>
|
||||
@@ -0,0 +1,48 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { updateFolderById } from '$lib/apis/folders';
|
||||
import { selectedFolder } from '$lib/stores';
|
||||
import { markFolderChatsDirty, updateFolderDetails } from '$lib/stores/folderStates';
|
||||
import {
|
||||
customStatuses,
|
||||
groupedStatusDefs,
|
||||
statusDefs,
|
||||
type StatusEntry
|
||||
} from '$lib/utils/folders';
|
||||
import { taskStatuses } from '$lib/utils/tasks';
|
||||
import FolderStatusesModal from '$lib/components/chat/Placeholder/FolderStatusesModal.svelte';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
|
||||
// A folder's statuses, edited from a task view; the folder page saves its own.
|
||||
export let show = false;
|
||||
export let folderId: string;
|
||||
// The folder's meta.statuses, as the task view knows them.
|
||||
export let statuses: unknown;
|
||||
export let onSaved: (statuses: unknown[]) => void = () => {};
|
||||
|
||||
const t = (key: string) => $i18n.t(key);
|
||||
|
||||
// A folder without statuses starts from the ones its tasks use, as on the folder page.
|
||||
$: seed = customStatuses({ statuses }).length
|
||||
? groupedStatusDefs({ statuses }, t)
|
||||
: [
|
||||
...taskStatuses(statuses, t).map((item) => ({ ...item, custom: true })),
|
||||
statusDefs(null, t)[0]
|
||||
];
|
||||
|
||||
const save = async (next: StatusEntry[]) => {
|
||||
const updated = await updateFolderById(localStorage.token, folderId, {
|
||||
meta: { statuses: next }
|
||||
});
|
||||
if (!updated) return;
|
||||
updateFolderDetails(folderId, updated);
|
||||
selectedFolder.update((current) =>
|
||||
current?.id === folderId ? { ...current, ...updated } : current
|
||||
);
|
||||
markFolderChatsDirty(folderId);
|
||||
onSaved(updated.meta?.statuses ?? []);
|
||||
};
|
||||
</script>
|
||||
|
||||
<FolderStatusesModal bind:show statuses={seed} onSave={save} />
|
||||
@@ -0,0 +1,531 @@
|
||||
<script lang="ts">
|
||||
import { getContext, onDestroy, onMount, tick } from 'svelte';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { socket, user } from '$lib/stores';
|
||||
import { getPageContext } from '$lib/utils/page';
|
||||
import {
|
||||
getTaskTags,
|
||||
getTasks,
|
||||
updateTaskById,
|
||||
type Task,
|
||||
type TaskChanges
|
||||
} from '$lib/apis/tasks';
|
||||
import type { FolderTag } from '$lib/utils/tags';
|
||||
import { NO_PRIORITY, priorityDefs, type CustomStatus } from '$lib/utils/folders';
|
||||
import { categoryName, focusOrder, taskStatuses } from '$lib/utils/tasks';
|
||||
import Dropdown from '$lib/components/common/Dropdown.svelte';
|
||||
import DropdownMenu from '$lib/components/common/DropdownMenu.svelte';
|
||||
import DropdownSub from '$lib/components/common/DropdownSub.svelte';
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import FilterMenu from '$lib/components/workspace/common/FilterMenu.svelte';
|
||||
import FileNavIcon from '$lib/components/chat/FileNav/Icon.svelte';
|
||||
import AdjustmentsHorizontal from '$lib/components/icons/AdjustmentsHorizontal.svelte';
|
||||
import Check from '$lib/components/icons/Check.svelte';
|
||||
import ChevronRight from '$lib/components/icons/ChevronRight.svelte';
|
||||
import Plus from '$lib/components/icons/Plus.svelte';
|
||||
import XMark from '$lib/components/icons/XMark.svelte';
|
||||
import TaskBoard from './TaskBoard.svelte';
|
||||
import TaskList from './TaskList.svelte';
|
||||
import TaskModal from './TaskModal.svelte';
|
||||
import { groupTasks, statusForCategory, type TaskGroup, type TaskGrouping } from './groups';
|
||||
|
||||
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
|
||||
const { goto } = getPageContext();
|
||||
|
||||
// A folder's tasks, or the user's own across folders.
|
||||
export let folder: { id: string; name: string; icon?: string | null; statuses: unknown } | null =
|
||||
null;
|
||||
export let mine: 'assigned' | 'created' | null = null;
|
||||
export let canCreate = true;
|
||||
export let onManageStatuses: ((statuses: CustomStatus[]) => void) | null = null;
|
||||
|
||||
type Display = {
|
||||
view: 'list' | 'board';
|
||||
grouping: TaskGrouping;
|
||||
sortBy: 'updated_at' | 'created_at' | 'priority' | 'due_date' | 'title';
|
||||
sortDir: 'asc' | 'desc';
|
||||
showEmpty: boolean;
|
||||
};
|
||||
const DISPLAY_KEY = 'task-display';
|
||||
const readDisplay = (): Display => {
|
||||
const fallback: Display = {
|
||||
view: 'list',
|
||||
grouping: 'status',
|
||||
sortBy: 'priority',
|
||||
sortDir: 'desc',
|
||||
showEmpty: false
|
||||
};
|
||||
try {
|
||||
return { ...fallback, ...JSON.parse(localStorage.getItem(DISPLAY_KEY) ?? '{}') };
|
||||
} catch {
|
||||
return fallback;
|
||||
}
|
||||
};
|
||||
let display = readDisplay();
|
||||
const saveDisplay = (value: Display) => {
|
||||
try {
|
||||
localStorage.setItem(DISPLAY_KEY, JSON.stringify(value));
|
||||
} catch {
|
||||
// Display options are only remembered when storage is available.
|
||||
}
|
||||
};
|
||||
$: saveDisplay(display);
|
||||
// The board needs columns; folder grouping only makes sense across folders.
|
||||
$: grouping =
|
||||
(display.grouping === 'folder' && folder) ||
|
||||
(display.view === 'board' && display.grouping === 'none')
|
||||
? 'status'
|
||||
: display.grouping;
|
||||
|
||||
let query = '';
|
||||
let searchInput: HTMLInputElement;
|
||||
let filters = { status: '', priority: '', assignee: '', folder: '', tag: '' };
|
||||
// The tags on the tasks this view can show, for its tag filter.
|
||||
let tagOptions: FolderTag[] = [];
|
||||
const setFilter = (key: keyof typeof filters) => (value: string) =>
|
||||
(filters = { ...filters, [key]: value });
|
||||
|
||||
let tasks: Task[] = [];
|
||||
let hasMore = false;
|
||||
let page = 1;
|
||||
let loading = false;
|
||||
let loaded = false;
|
||||
let request = 0;
|
||||
let showCreate = false;
|
||||
// Done and canceled start folded, as Linear's Focus does.
|
||||
let collapsed: Record<string, boolean> = {
|
||||
'category:done': true,
|
||||
'category:canceled': true
|
||||
};
|
||||
|
||||
$: statuses = folder ? taskStatuses(folder.statuses, (key) => $i18n.t(key)) : null;
|
||||
|
||||
const load = async (more = false) => {
|
||||
const id = ++request;
|
||||
loading = true;
|
||||
page = more ? page + 1 : 1;
|
||||
const status = filters.status;
|
||||
if (!more)
|
||||
getTaskTags(localStorage.token, folder?.id ?? null)
|
||||
.then((tags) => (tagOptions = tags))
|
||||
.catch(() => {});
|
||||
const result = await getTasks(localStorage.token, {
|
||||
folder_id: folder?.id,
|
||||
assigned_to_me: mine === 'assigned',
|
||||
created_by_me: mine === 'created',
|
||||
search: query.trim(),
|
||||
...(status ? (folder ? { status: [status] } : { category: [status] }) : {}),
|
||||
priority: filters.priority ? [filters.priority] : [],
|
||||
assignee_id: filters.assignee
|
||||
? [filters.assignee === 'me' ? ($user?.id ?? '') : filters.assignee]
|
||||
: [],
|
||||
folder: filters.folder ? [filters.folder] : [],
|
||||
tag: filters.tag ? [filters.tag] : [],
|
||||
sort_by: display.sortBy,
|
||||
sort_dir: display.sortDir,
|
||||
page
|
||||
}).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
return null;
|
||||
});
|
||||
if (id !== request) return;
|
||||
loading = false;
|
||||
loaded = true;
|
||||
if (!result) return;
|
||||
tasks = more
|
||||
? [...tasks, ...result.tasks.filter((t) => !tasks.some((o) => o.id === t.id))]
|
||||
: result.tasks;
|
||||
hasMore = result.has_more;
|
||||
};
|
||||
|
||||
// Reload when the scope, filters or ordering change; typing waits a moment.
|
||||
let searchTimer: ReturnType<typeof setTimeout>;
|
||||
$: void (folder?.id, mine, filters, display.sortBy, display.sortDir, load());
|
||||
const search = () => {
|
||||
clearTimeout(searchTimer);
|
||||
searchTimer = setTimeout(() => load(), 250);
|
||||
};
|
||||
|
||||
$: groups = groupTasks(tasks, grouping, {
|
||||
statuses,
|
||||
showEmpty: display.showEmpty,
|
||||
t: (key) => $i18n.t(key)
|
||||
});
|
||||
|
||||
const inScope = (task: Task) =>
|
||||
folder
|
||||
? task.folder_id === folder.id
|
||||
: mine === 'assigned'
|
||||
? task.assignee_id === $user?.id
|
||||
: task.user_id === $user?.id;
|
||||
|
||||
const replace = (next: Task) => {
|
||||
const index = tasks.findIndex((task) => task.id === next.id);
|
||||
const merged =
|
||||
index >= 0 && next.write_access == null
|
||||
? { ...next, write_access: tasks[index].write_access }
|
||||
: next;
|
||||
if (!inScope(merged)) tasks = tasks.filter((task) => task.id !== next.id);
|
||||
else if (index >= 0) tasks = tasks.map((task) => (task.id === next.id ? merged : task));
|
||||
else tasks = [merged, ...tasks];
|
||||
};
|
||||
|
||||
const update = async (task: Task, changes: TaskChanges) => {
|
||||
replace({ ...task, ...changes });
|
||||
const next = await updateTaskById(localStorage.token, task.id, changes).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
return null;
|
||||
});
|
||||
if (next) replace(next);
|
||||
else void load();
|
||||
};
|
||||
|
||||
const drop = (task: Task, group: TaskGroup) => {
|
||||
const set = group.set;
|
||||
if (!set) return;
|
||||
if (set.status) void update(task, { status: set.status });
|
||||
else if ('category' in set) {
|
||||
const status = statusForCategory(task, set.category ?? null, (key) => $i18n.t(key));
|
||||
if (status) void update(task, { status });
|
||||
} else if (set.priority)
|
||||
void update(task, { priority: set.priority === NO_PRIORITY ? null : set.priority });
|
||||
else if ('assignee' in set) {
|
||||
replace({ ...task, assignee: set.assignee ?? null });
|
||||
void update(task, { assignee_id: set.assignee?.id ?? null });
|
||||
}
|
||||
};
|
||||
|
||||
const open = (task: Task) => goto(`/tasks/${task.id}`);
|
||||
|
||||
// Another tab or person changed a task: keep the list current without reloading it.
|
||||
const onEvent = (event: { data?: { type?: string; data?: any } }) => {
|
||||
const type = event?.data?.type;
|
||||
if (type === 'task:changed') replace(event.data!.data.task);
|
||||
else if (type === 'task:deleted')
|
||||
tasks = tasks.filter((task) => task.id !== event.data!.data.id);
|
||||
};
|
||||
onMount(() => $socket?.on('events', onEvent));
|
||||
onDestroy(() => {
|
||||
$socket?.off('events', onEvent);
|
||||
clearTimeout(searchTimer);
|
||||
});
|
||||
|
||||
// c writes a task and / searches while the list is on screen, unless you're typing or a dialog is open.
|
||||
let root: HTMLElement;
|
||||
const keys = (event: KeyboardEvent) => {
|
||||
if (
|
||||
event.defaultPrevented ||
|
||||
event.metaKey ||
|
||||
event.ctrlKey ||
|
||||
event.altKey ||
|
||||
event.isComposing
|
||||
)
|
||||
return;
|
||||
if (!root?.offsetParent || document.querySelector('[aria-modal="true"]')) return;
|
||||
const target = event.target as HTMLElement;
|
||||
if (target.closest('input, textarea, select, [contenteditable="true"], [role="menu"]')) return;
|
||||
if (event.key === 'c' && canCreate) {
|
||||
event.preventDefault();
|
||||
showCreate = true;
|
||||
} else if (event.key === '/') {
|
||||
event.preventDefault();
|
||||
searchInput?.focus();
|
||||
}
|
||||
};
|
||||
|
||||
$: statusItems = statuses
|
||||
? statuses.map((item) => ({ value: item.id, label: item.name }))
|
||||
: focusOrder.map((glyph) => ({
|
||||
value: glyph ?? 'none',
|
||||
label: categoryName(glyph, (key) => $i18n.t(key))
|
||||
}));
|
||||
$: folderItems = [
|
||||
...new Map(
|
||||
tasks.filter((task) => task.folder).map((task) => [task.folder_id, task.folder!.name])
|
||||
)
|
||||
].map(([value, label]) => ({ value, label }));
|
||||
$: groupings = [
|
||||
['none', $i18n.t('No grouping')],
|
||||
['status', $i18n.t('Status')],
|
||||
['priority', $i18n.t('Priority')],
|
||||
['assignee', $i18n.t('Assignee')],
|
||||
...(folder ? [] : [['folder', $i18n.t('Folder')]])
|
||||
] as [TaskGrouping, string][];
|
||||
$: orderings = [
|
||||
['priority', $i18n.t('Priority')],
|
||||
['updated_at', $i18n.t('Updated')],
|
||||
['created_at', $i18n.t('Created')],
|
||||
['due_date', $i18n.t('Due date')],
|
||||
['title', $i18n.t('Title')]
|
||||
] as [Display['sortBy'], string][];
|
||||
|
||||
const iconButton =
|
||||
'relative flex size-6.5 shrink-0 items-center justify-center rounded-full border border-base-100 bg-base-50/60 text-base-500 transition-colors hover:bg-base-100 hover:text-base-900 aria-expanded:bg-base-100 aria-expanded:text-base-900 dark:border-base-850 dark:bg-base-850/50 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0 dark:aria-expanded:bg-base-850 dark:aria-expanded:text-base-0';
|
||||
const subTrigger =
|
||||
'flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl px-2 text-left text-[0.8125rem] outline-hidden select-none';
|
||||
</script>
|
||||
|
||||
<svelte:window on:keydown={keys} />
|
||||
|
||||
<div bind:this={root} class="flex h-full min-h-0 flex-col">
|
||||
<div class="flex h-8 shrink-0 items-center gap-1 px-3 pb-1">
|
||||
<label
|
||||
class="flex h-full min-w-0 flex-1 items-center gap-2 px-1 text-base-400 dark:text-base-500"
|
||||
>
|
||||
<FileNavIcon name="search" size={14} class="shrink-0" />
|
||||
<input
|
||||
class="min-w-0 flex-1 bg-transparent text-[0.8125rem] text-base-800 outline-hidden placeholder:text-base-400 dark:text-base-100 dark:placeholder:text-base-500"
|
||||
bind:this={searchInput}
|
||||
bind:value={query}
|
||||
on:input={search}
|
||||
on:keydown={(event) => {
|
||||
if (event.isComposing || event.key !== 'Escape') return;
|
||||
if (query) {
|
||||
query = '';
|
||||
search();
|
||||
} else searchInput.blur();
|
||||
}}
|
||||
aria-label={$i18n.t('Search Tasks')}
|
||||
placeholder={$i18n.t('Search Tasks')}
|
||||
/>
|
||||
{#if query}
|
||||
<button
|
||||
type="button"
|
||||
class="flex size-4 shrink-0 items-center justify-center rounded-full hover:text-base-700 dark:hover:text-base-200"
|
||||
aria-label={$i18n.t('Clear search')}
|
||||
on:click={() => {
|
||||
query = '';
|
||||
search();
|
||||
}}
|
||||
>
|
||||
<XMark className="size-3" strokeWidth="2" />
|
||||
</button>
|
||||
{/if}
|
||||
</label>
|
||||
|
||||
<div class="flex shrink-0 items-center gap-1">
|
||||
<FilterMenu
|
||||
sections={[
|
||||
{
|
||||
label: $i18n.t('Status'),
|
||||
value: filters.status,
|
||||
items: statusItems,
|
||||
onChange: setFilter('status')
|
||||
},
|
||||
{
|
||||
label: $i18n.t('Priority'),
|
||||
value: filters.priority,
|
||||
items: priorityDefs((key) => $i18n.t(key)).map((item) => ({
|
||||
value: item.id,
|
||||
label: item.name
|
||||
})),
|
||||
onChange: setFilter('priority')
|
||||
},
|
||||
...(mine === 'assigned'
|
||||
? []
|
||||
: [
|
||||
{
|
||||
label: $i18n.t('Assignee'),
|
||||
value: filters.assignee,
|
||||
items: [
|
||||
{ value: 'me', label: $i18n.t('Me') },
|
||||
{ value: 'none', label: $i18n.t('Unassigned') }
|
||||
],
|
||||
onChange: setFilter('assignee')
|
||||
}
|
||||
]),
|
||||
...(tagOptions.length || filters.tag
|
||||
? [
|
||||
{
|
||||
label: $i18n.t('Tag'),
|
||||
value: filters.tag,
|
||||
items: [
|
||||
...tagOptions.map((tag) => ({ value: tag.id, label: tag.name })),
|
||||
{ value: 'none', label: $i18n.t('Untagged') }
|
||||
],
|
||||
onChange: setFilter('tag')
|
||||
}
|
||||
]
|
||||
: []),
|
||||
...(folder || !folderItems.length
|
||||
? []
|
||||
: [
|
||||
{
|
||||
label: $i18n.t('Folder'),
|
||||
value: filters.folder,
|
||||
items: folderItems,
|
||||
onChange: setFilter('folder')
|
||||
}
|
||||
])
|
||||
]}
|
||||
/>
|
||||
|
||||
<Dropdown align="end">
|
||||
<button
|
||||
type="button"
|
||||
class={iconButton}
|
||||
aria-label={$i18n.t('Display options')}
|
||||
title={$i18n.t('Display options')}
|
||||
>
|
||||
<AdjustmentsHorizontal className="size-3.75" />
|
||||
</button>
|
||||
<DropdownMenu slot="content" className="w-52">
|
||||
{#each [['list', $i18n.t('List')], ['board', $i18n.t('Board')]] as const as [value, label]}
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={display.view === value}
|
||||
on:click={() => (display = { ...display, view: value })}
|
||||
>
|
||||
<span class="flex-1 text-left">{label}</span>
|
||||
{#if display.view === value}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{/each}
|
||||
<hr class="border-base-50/30 dark:border-base-800/30" />
|
||||
<DropdownSub contentClass="select-none z-50" maxWidth={320} sideOffset={6}>
|
||||
<button slot="trigger" type="button" class={subTrigger}>
|
||||
<span class="min-w-0 flex-1 truncate text-left"
|
||||
>{display.view === 'board' ? $i18n.t('Columns') : $i18n.t('Grouping')}</span
|
||||
>
|
||||
<span class="truncate text-base-500 dark:text-base-400"
|
||||
>{groupings.find(([value]) => value === grouping)?.[1]}</span
|
||||
>
|
||||
<ChevronRight className="size-3.5 shrink-0 text-base-400 rtl:rotate-180" />
|
||||
</button>
|
||||
{#each groupings.filter(([value]) => display.view === 'list' || value !== 'none') as [value, label]}
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={grouping === value}
|
||||
on:click={() => (display = { ...display, grouping: value })}
|
||||
>
|
||||
<span class="flex-1 text-left">{label}</span>
|
||||
{#if grouping === value}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{/each}
|
||||
</DropdownSub>
|
||||
<DropdownSub contentClass="select-none z-50" maxWidth={320} sideOffset={6}>
|
||||
<button slot="trigger" type="button" class={subTrigger}>
|
||||
<span class="min-w-0 flex-1 truncate text-left">{$i18n.t('Ordering')}</span>
|
||||
<span class="truncate text-base-500 dark:text-base-400"
|
||||
>{orderings.find(([value]) => value === display.sortBy)?.[1]}</span
|
||||
>
|
||||
<ChevronRight className="size-3.5 shrink-0 text-base-400 rtl:rotate-180" />
|
||||
</button>
|
||||
{#each orderings as [value, label]}
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={display.sortBy === value}
|
||||
on:click={() =>
|
||||
(display = {
|
||||
...display,
|
||||
sortBy: value,
|
||||
sortDir: value === 'title' || value === 'due_date' ? 'asc' : 'desc'
|
||||
})}
|
||||
>
|
||||
<span class="flex-1 text-left">{label}</span>
|
||||
{#if display.sortBy === value}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{/each}
|
||||
<hr class="border-base-50/30 dark:border-base-800/30" />
|
||||
{#each [['asc', $i18n.t('Ascending')], ['desc', $i18n.t('Descending')]] as const as [value, label]}
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={display.sortDir === value}
|
||||
on:click={() => (display = { ...display, sortDir: value })}
|
||||
>
|
||||
<span class="flex-1 text-left">{label}</span>
|
||||
{#if display.sortDir === value}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
{/each}
|
||||
</DropdownSub>
|
||||
<hr class="border-base-50/30 dark:border-base-800/30" />
|
||||
<button
|
||||
type="button"
|
||||
role="menuitemcheckbox"
|
||||
aria-checked={display.showEmpty}
|
||||
on:click={() => (display = { ...display, showEmpty: !display.showEmpty })}
|
||||
>
|
||||
<span class="flex-1 text-left">{$i18n.t('Show empty groups')}</span>
|
||||
{#if display.showEmpty}<Check className="size-3! shrink-0" />{/if}
|
||||
</button>
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
|
||||
{#if canCreate}
|
||||
<button
|
||||
type="button"
|
||||
class={iconButton}
|
||||
aria-label={$i18n.t('New task')}
|
||||
title={$i18n.t('New task')}
|
||||
on:click={() => (showCreate = true)}
|
||||
>
|
||||
<Plus className="size-3.5" strokeWidth="2" />
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="min-h-0 flex-1">
|
||||
{#if !loaded}
|
||||
<div class="flex h-full items-center justify-center"><Spinner className="size-4" /></div>
|
||||
{:else if !tasks.length && !loading}
|
||||
<div class="flex h-full flex-col items-center justify-center gap-1 px-6 pb-16 text-center">
|
||||
<div class="text-sm text-base-800 dark:text-base-100">
|
||||
{query || Object.values(filters).some(Boolean)
|
||||
? $i18n.t('No tasks found')
|
||||
: $i18n.t('No tasks yet')}
|
||||
</div>
|
||||
{#if !query && !Object.values(filters).some(Boolean)}
|
||||
<div class="text-xs text-base-500 dark:text-base-400">
|
||||
{folder
|
||||
? $i18n.t('Tasks in this folder will show up here.')
|
||||
: mine === 'assigned'
|
||||
? $i18n.t('Tasks assigned to you will show up here.')
|
||||
: $i18n.t('Tasks you create will show up here.')}
|
||||
</div>
|
||||
{#if canCreate}
|
||||
<button
|
||||
type="button"
|
||||
class="mt-2 text-xs text-base-400 transition-colors hover:text-base-600 dark:text-base-500 dark:hover:text-base-300"
|
||||
on:click={() => (showCreate = true)}>{$i18n.t('New task')}</button
|
||||
>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{:else if display.view === 'board'}
|
||||
<TaskBoard
|
||||
{groups}
|
||||
inFolder={!!folder}
|
||||
{loading}
|
||||
{hasMore}
|
||||
onOpen={open}
|
||||
onDrop={drop}
|
||||
onMore={() => load(true)}
|
||||
/>
|
||||
{:else}
|
||||
<TaskList
|
||||
{groups}
|
||||
inFolder={!!folder}
|
||||
{collapsed}
|
||||
{loading}
|
||||
{hasMore}
|
||||
onCollapse={(id) => (collapsed = { ...collapsed, [id]: !collapsed[id] })}
|
||||
onUpdate={(task, changes) => void update(task, changes)}
|
||||
onOpen={open}
|
||||
onMore={() => load(true)}
|
||||
onManageStatuses={onManageStatuses ? (_, list) => onManageStatuses?.(list) : null}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<TaskModal
|
||||
bind:show={showCreate}
|
||||
folder={folder ? { id: folder.id, name: folder.name, icon: folder.icon } : null}
|
||||
onCreated={(task) => {
|
||||
if (inScope(task)) replace(task);
|
||||
}}
|
||||
/>
|
||||
@@ -0,0 +1,111 @@
|
||||
import type { Task, TaskPerson } from '$lib/apis/tasks';
|
||||
import {
|
||||
NO_PRIORITY,
|
||||
priorities,
|
||||
priorityDefs,
|
||||
priorityKey,
|
||||
type CustomStatus,
|
||||
type FolderPriority,
|
||||
type StatusGlyph
|
||||
} from '$lib/utils/folders';
|
||||
import { categoryName, focusOrder, taskStatusDef, taskStatuses } from '$lib/utils/tasks';
|
||||
|
||||
export type TaskGrouping = 'none' | 'status' | 'priority' | 'assignee' | 'folder';
|
||||
|
||||
export type TaskGroup = {
|
||||
id: string;
|
||||
// Empty when the list isn't grouped.
|
||||
label: string;
|
||||
status?: CustomStatus;
|
||||
priority?: FolderPriority;
|
||||
person?: TaskPerson | null;
|
||||
folder?: { icon?: string | null };
|
||||
// What moving a task into this group sets; a category picks each folder's first status with that glyph.
|
||||
set: {
|
||||
status?: string;
|
||||
category?: StatusGlyph | null;
|
||||
priority?: FolderPriority;
|
||||
assignee?: TaskPerson | null;
|
||||
} | null;
|
||||
tasks: Task[];
|
||||
};
|
||||
|
||||
type Options = {
|
||||
// A folder's statuses when every task is in that folder; otherwise status groups are categories.
|
||||
statuses: CustomStatus[] | null;
|
||||
showEmpty: boolean;
|
||||
t: (key: string) => string;
|
||||
};
|
||||
|
||||
export function groupTasks(tasks: Task[], by: TaskGrouping, { statuses, showEmpty, t }: Options) {
|
||||
let groups: TaskGroup[];
|
||||
if (by === 'status' && statuses) {
|
||||
groups = statuses.map((status) => ({
|
||||
id: `status:${status.id}`,
|
||||
label: status.name,
|
||||
status,
|
||||
set: { status: status.id },
|
||||
tasks: tasks.filter((task) => task.status === status.id)
|
||||
}));
|
||||
} else if (by === 'status') {
|
||||
groups = focusOrder.map((glyph) => ({
|
||||
id: `category:${glyph ?? 'none'}`,
|
||||
label: categoryName(glyph, t),
|
||||
status: { id: glyph ?? 'none', name: categoryName(glyph, t), glyph: glyph ?? undefined },
|
||||
set: { category: glyph },
|
||||
tasks: tasks.filter((task) => (taskStatusDef(task, t).glyph ?? null) === glyph)
|
||||
}));
|
||||
} else if (by === 'priority') {
|
||||
const order = [...priorities, NO_PRIORITY] as FolderPriority[];
|
||||
const names = Object.fromEntries(priorityDefs(t).map((item) => [item.id, item.name]));
|
||||
groups = order.map((priority) => ({
|
||||
id: `priority:${priority}`,
|
||||
label: names[priority],
|
||||
priority,
|
||||
set: { priority },
|
||||
tasks: tasks.filter((task) => priorityKey(task.priority) === priority)
|
||||
}));
|
||||
} else if (by === 'assignee') {
|
||||
const people = new Map<string, TaskPerson>();
|
||||
for (const task of tasks) if (task.assignee) people.set(task.assignee.id, task.assignee);
|
||||
groups = [...people.values()]
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.map((person) => ({
|
||||
id: `assignee:${person.id}`,
|
||||
label: person.name,
|
||||
person,
|
||||
set: { assignee: person },
|
||||
tasks: tasks.filter((task) => task.assignee_id === person.id)
|
||||
}));
|
||||
groups.push({
|
||||
id: 'assignee:none',
|
||||
label: t('Unassigned'),
|
||||
person: null,
|
||||
set: { assignee: null },
|
||||
tasks: tasks.filter((task) => !task.assignee_id)
|
||||
});
|
||||
} else if (by === 'folder') {
|
||||
const folders = new Map<string, NonNullable<Task['folder']>>();
|
||||
for (const task of tasks) if (task.folder) folders.set(task.folder.id, task.folder);
|
||||
groups = [...folders.values()]
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.map((folder) => ({
|
||||
id: `folder:${folder.id}`,
|
||||
label: folder.name,
|
||||
folder,
|
||||
set: null,
|
||||
tasks: tasks.filter((task) => task.folder_id === folder.id)
|
||||
}));
|
||||
} else {
|
||||
return [{ id: 'all', label: '', set: null, tasks }];
|
||||
}
|
||||
return showEmpty ? groups : groups.filter((group) => group.tasks.length);
|
||||
}
|
||||
|
||||
/** The status a task takes when moved into a category: its folder's first status with that glyph. */
|
||||
export const statusForCategory = (
|
||||
task: Task,
|
||||
glyph: StatusGlyph | null,
|
||||
t: (key: string) => string
|
||||
) =>
|
||||
taskStatuses(task.folder?.statuses, t).find((item) => (item.glyph ?? null) === glyph)?.id ?? null;
|
||||
@@ -82,6 +82,11 @@
|
||||
label: $i18n.t('settings.admin.models.builtinTools.todos.label'),
|
||||
description: $i18n.t('settings.admin.models.builtinTools.todos.description')
|
||||
},
|
||||
tasks: {
|
||||
label: $i18n.t('settings.admin.models.builtinTools.tasks.label'),
|
||||
description: $i18n.t('settings.admin.models.builtinTools.tasks.description'),
|
||||
enabled: $config?.features?.enable_tasks
|
||||
},
|
||||
automations: {
|
||||
label: $i18n.t('settings.admin.models.builtinTools.automations.label'),
|
||||
description: $i18n.t('settings.admin.models.builtinTools.automations.description'),
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "الفرق",
|
||||
"teams": "— الفرق",
|
||||
"This team is archived.": "هذا الفريق مؤرشف.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_zero": "لا أسطر مضافة ({{count}})",
|
||||
"{{count}} added lines_one": "سطر واحد مضاف ({{count}})",
|
||||
@@ -156,6 +220,8 @@
|
||||
"{{count}} shells_other": "{{count}} طرفية",
|
||||
"{{COUNT}} Sources": "عدد المصادر: {{COUNT}}",
|
||||
"{{COUNT}} stores": "عدد المخازن: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "عدد الأدوات: {{COUNT}}",
|
||||
"{{count}} turns_zero": "لا رسائل ({{count}})",
|
||||
"{{count}} turns_one": "رسالة واحدة ({{count}})",
|
||||
@@ -188,6 +254,7 @@
|
||||
"{{modelName}} mentioned you": "أشار إليك {{modelName}}",
|
||||
"{{modelName}} profile image": "صورة الملف الشخصي للنموذج {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (نسخة)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "علّق {{name}}",
|
||||
"{{name}} deleted": "تم حذف {{name}}",
|
||||
"{{NAME}} joined": "انضم {{NAME}}",
|
||||
@@ -2538,6 +2605,7 @@
|
||||
"No authentication": "بلا مصادقة",
|
||||
"No automations found": "لم يتم العثور على مهام آلية",
|
||||
"No automations yet": "لا توجد مهام آلية بعد",
|
||||
"No category": "",
|
||||
"No changes": "لا توجد تغييرات",
|
||||
"No channels": "لا توجد قنوات",
|
||||
"No chat": "لا توجد محادثة",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "الفرق",
|
||||
"teams": "— الفرق",
|
||||
"This team is archived.": "هذا الفريق مؤرشف.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "النماذج: {{ models }}",
|
||||
"{{count}} added lines_zero": "لا أسطر مضافة ({{count}})",
|
||||
"{{count}} added lines_one": "سطر واحد مضاف ({{count}})",
|
||||
@@ -156,6 +220,8 @@
|
||||
"{{count}} shells_other": "{{count}} طرفية",
|
||||
"{{COUNT}} Sources": "عدد المصادر: {{COUNT}}",
|
||||
"{{COUNT}} stores": "عدد المخازن: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "عدد الأدوات: {{COUNT}}",
|
||||
"{{count}} turns_zero": "لا رسائل ({{count}})",
|
||||
"{{count}} turns_one": "رسالة واحدة ({{count}})",
|
||||
@@ -188,6 +254,7 @@
|
||||
"{{modelName}} mentioned you": "أشار إليك النموذج {{modelName}}",
|
||||
"{{modelName}} profile image": "صورة الملف الشخصي للنموذج {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (نسخة)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "علّق {{name}}",
|
||||
"{{name}} deleted": "تم حذف {{name}}",
|
||||
"{{NAME}} joined": "انضم {{NAME}}",
|
||||
@@ -2538,6 +2605,7 @@
|
||||
"No authentication": "بلا مصادقة",
|
||||
"No automations found": "لم يتم العثور على مهام آلية",
|
||||
"No automations yet": "لا توجد مهام آلية بعد",
|
||||
"No category": "",
|
||||
"No changes": "لا توجد تغييرات",
|
||||
"No channels": "لا توجد قنوات",
|
||||
"No chat": "لا توجد محادثة",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Komandalar",
|
||||
"teams": "komandalar",
|
||||
"This team is archived.": "Bu komanda arxivləşdirilib.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} sətir əlavə edildi",
|
||||
"{{count}} added lines_other": "{{count}} sətir əlavə edildi",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} əmr qabığı",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Mənbə",
|
||||
"{{COUNT}} stores": "{{COUNT}} saxlanc",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} alət",
|
||||
"{{count}} turns_one": "{{count}} mesaj",
|
||||
"{{count}} turns_other": "{{count}} mesaj",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} sizi qeyd etdi",
|
||||
"{{modelName}} profile image": "{{modelName}} profil şəkli",
|
||||
"{{name}} (Copy)": "{{name}} (Nüsxə)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} şərh yazdı",
|
||||
"{{name}} deleted": "{{name}} silindi",
|
||||
"{{NAME}} joined": "{{NAME}} qoşuldu",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Autentifikasiya yoxdur",
|
||||
"No automations found": "Avtomatlaşdırma tapılmadı",
|
||||
"No automations yet": "Hələ avtomatik tapşırıq yoxdur",
|
||||
"No category": "",
|
||||
"No changes": "Dəyişiklik yoxdur",
|
||||
"No channels": "Kanal yoxdur",
|
||||
"No chat": "Çatsız",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Екипи",
|
||||
"teams": "— екипи",
|
||||
"This team is archived.": "Този екип е архивиран.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} добавен ред",
|
||||
"{{count}} added lines_other": "{{count}} добавени реда",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} командни обвивки",
|
||||
"{{COUNT}} Sources": "Източници: {{COUNT}}",
|
||||
"{{COUNT}} stores": "Хранилища: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} инструмента",
|
||||
"{{count}} turns_one": "{{count}} реплика",
|
||||
"{{count}} turns_other": "{{count}} реплики",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} ви спомена",
|
||||
"{{modelName}} profile image": "Профилна снимка на {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (копие)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} коментира",
|
||||
"{{name}} deleted": "Изтрито: {{name}}",
|
||||
"{{NAME}} joined": "{{NAME}} се присъедини",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Без автентикация",
|
||||
"No automations found": "Няма намерени автоматизации",
|
||||
"No automations yet": "Все още няма автоматизации",
|
||||
"No category": "",
|
||||
"No changes": "Няма промени",
|
||||
"No channels": "Няма канали",
|
||||
"No chat": "Няма чат",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "দলসমূহ",
|
||||
"teams": "দল",
|
||||
"This team is archived.": "এই দলটি আর্কাইভ করা হয়েছে।",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}}টি লাইন যোগ হয়েছে",
|
||||
"{{count}} added lines_other": "{{count}}টি লাইন যোগ হয়েছে",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}}টি শেল",
|
||||
"{{COUNT}} Sources": "{{COUNT}}টি উৎস",
|
||||
"{{COUNT}} stores": "{{COUNT}}টি স্টোর",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}}টি টুল",
|
||||
"{{count}} turns_one": "{{count}}টি বার্তা",
|
||||
"{{count}} turns_other": "{{count}}টি বার্তা",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} আপনাকে উল্লেখ করেছে",
|
||||
"{{modelName}} profile image": "{{modelName}}-এর প্রোফাইল ছবি",
|
||||
"{{name}} (Copy)": "{{name}} (কপি)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} মন্তব্য করেছেন",
|
||||
"{{name}} deleted": "{{name}} মুছে ফেলা হয়েছে",
|
||||
"{{NAME}} joined": "{{NAME}} যোগ দিয়েছেন",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "প্রমাণীকরণ নেই",
|
||||
"No automations found": "কোনো অটোমেশন পাওয়া যায়নি",
|
||||
"No automations yet": "এখনও কোনো অটোমেশন নেই",
|
||||
"No category": "",
|
||||
"No changes": "কোনো পরিবর্তন নেই",
|
||||
"No channels": "কোনো চ্যানেল নেই",
|
||||
"No chat": "চ্যাট ছাড়া",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "རུ་ཁག",
|
||||
"teams": "— རུ་ཁག",
|
||||
"This team is archived.": "རུ་ཁག་འདི་ཡིག་མཛོད་དུ་བཞག་ཟིན།",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_other": "བསྣན་པའི་ཕྲེང་བ་ {{count}}",
|
||||
"{{COUNT}} Available Skills": "སྤྱོད་རུང་གི་ནུས་རྩལ་ {{COUNT}}",
|
||||
@@ -76,6 +140,8 @@
|
||||
"{{count}} shells_other": "བཀའ་བརྡའི་འགྲེལ་བཤད་ཆས་ {{count}}",
|
||||
"{{COUNT}} Sources": "ཁུངས་ {{COUNT}}",
|
||||
"{{COUNT}} stores": "ཉར་མཛོད་ {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "ལག་ཆ་ {{COUNT}}",
|
||||
"{{count}} turns_other": "འཕྲིན་གཏོང་ཐེངས་ {{count}}",
|
||||
"{{count}} users_other": "བེད་སྤྱོད་མཁན་ {{count}}",
|
||||
@@ -93,6 +159,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} ཡིས་ཁྱེད་ཀྱི་མིང་འབོད་བྱས་ཟིན།",
|
||||
"{{modelName}} profile image": "{{modelName}} གི་སྒེར་གྱི་རྣམ་པའི་པར།",
|
||||
"{{name}} (Copy)": "{{name}} (འདྲ་བཤུས།)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} ཡིས་མཆན་བཏབ་ཟིན།",
|
||||
"{{name}} deleted": "{{name}} བསུབས་ཟིན།",
|
||||
"{{NAME}} joined": "{{NAME}} ཞུགས་ཟིན།",
|
||||
@@ -2393,6 +2460,7 @@
|
||||
"No authentication": "དངོས་ར་སྤྲོད་པ་མེད།",
|
||||
"No automations found": "རང་འགུལ་ལས་འགན་མ་རྙེད།",
|
||||
"No automations yet": "ད་དུང་རང་འགུལ་ལས་འགན་མེད།",
|
||||
"No category": "",
|
||||
"No changes": "བསྒྱུར་བཅོས་མེད།",
|
||||
"No channels": "བགྲོ་གླེང་མེད།",
|
||||
"No chat": "ཁ་བརྡ་མེད།",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Timovi",
|
||||
"teams": "— timovi",
|
||||
"This team is archived.": "Ovaj tim je arhiviran.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} dodan red",
|
||||
"{{count}} added lines_few": "{{count}} dodana reda",
|
||||
@@ -108,6 +172,8 @@
|
||||
"{{count}} shells_other": "{{count}} komandnih ljuski",
|
||||
"{{COUNT}} Sources": "Izvora: {{COUNT}}",
|
||||
"{{COUNT}} stores": "Spremišta: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "Alati: {{COUNT}}",
|
||||
"{{count}} turns_one": "{{count}} poruka",
|
||||
"{{count}} turns_few": "{{count}} poruke",
|
||||
@@ -131,6 +197,7 @@
|
||||
"{{modelName}} mentioned you": "Model {{modelName}} vas spominje",
|
||||
"{{modelName}} profile image": "Profilna slika modela {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (kopija)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} komentira",
|
||||
"{{name}} deleted": "Izbrisano: {{name}}",
|
||||
"{{NAME}} joined": "{{NAME}} je sada u razgovoru",
|
||||
@@ -2451,6 +2518,7 @@
|
||||
"No authentication": "Bez autentifikacije",
|
||||
"No automations found": "Nisu pronađene automatizacije",
|
||||
"No automations yet": "Još nema automatizacija",
|
||||
"No category": "",
|
||||
"No changes": "Nema izmjena",
|
||||
"No channels": "Nema kanala",
|
||||
"No chat": "Bez razgovora",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Equips",
|
||||
"teams": "equips",
|
||||
"This team is archived.": "Aquest equip està arxivat.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} línia afegida",
|
||||
"{{count}} added lines_many": "{{count}} línies afegides",
|
||||
@@ -108,6 +172,8 @@
|
||||
"{{count}} shells_other": "{{count}} shells",
|
||||
"{{COUNT}} Sources": "{{COUNT}} fonts",
|
||||
"{{COUNT}} stores": "{{COUNT}} magatzems",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} eines",
|
||||
"{{count}} turns_one": "{{count}} tornada",
|
||||
"{{count}} turns_many": "{{count}} tornades",
|
||||
@@ -131,6 +197,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} t'ha mencionat",
|
||||
"{{modelName}} profile image": "Imatge del perfil {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (còpia)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} ha comentat",
|
||||
"{{name}} deleted": "{{name}} eliminat",
|
||||
"{{NAME}} joined": "{{NAME}} s'ha unit",
|
||||
@@ -2451,6 +2518,7 @@
|
||||
"No authentication": "Sense autenticació",
|
||||
"No automations found": "No s'ha trobat cap automatització",
|
||||
"No automations yet": "Encara no hi ha automatitzacions",
|
||||
"No category": "",
|
||||
"No changes": "Sense canvis",
|
||||
"No channels": "Sense canals",
|
||||
"No chat": "Sense xat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Mga tim",
|
||||
"teams": "ka tim",
|
||||
"This team is archived.": "Kini nga tim naarkibo na.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} ka linya ang gidugang",
|
||||
"{{count}} added lines_other": "{{count}} ka linya ang gidugang",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} ka tighubad sa mga sugo",
|
||||
"{{COUNT}} Sources": "{{COUNT}} ka tinubdan",
|
||||
"{{COUNT}} stores": "{{COUNT}} ka tipiganan",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} ka himan",
|
||||
"{{count}} turns_one": "{{count}} ka mensahe",
|
||||
"{{count}} turns_other": "{{count}} ka mensahe",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "Gi-mention ka ni {{modelName}}",
|
||||
"{{modelName}} profile image": "Hulagway sa profile sa {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Kopya)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "Mikomento si {{name}}",
|
||||
"{{name}} deleted": "Napapas na ang {{name}}",
|
||||
"{{NAME}} joined": "Miapil si {{NAME}}",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Walay pagpamatuod sa pagkatawo",
|
||||
"No automations found": "Walay nakit-ang mga awtomasyon",
|
||||
"No automations yet": "Wala pay mga awtomasyon",
|
||||
"No category": "",
|
||||
"No changes": "Walay kausaban",
|
||||
"No channels": "Walay mga channel",
|
||||
"No chat": "Walay panaghisgot",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Týmy",
|
||||
"teams": "— týmy",
|
||||
"This team is archived.": "Tento tým je archivovaný.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} přidaný řádek",
|
||||
"{{count}} added lines_few": "{{count}} přidané řádky",
|
||||
@@ -124,6 +188,8 @@
|
||||
"{{count}} shells_other": "{{count}} příkazových interpretů",
|
||||
"{{COUNT}} Sources": "Počet zdrojů: {{COUNT}}",
|
||||
"{{COUNT}} stores": "Počet úložišť: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "Počet nástrojů: {{COUNT}}",
|
||||
"{{count}} turns_one": "{{count}} promluva",
|
||||
"{{count}} turns_few": "{{count}} promluvy",
|
||||
@@ -150,6 +216,7 @@
|
||||
"{{modelName}} mentioned you": "Model {{modelName}} vás zmínil",
|
||||
"{{modelName}} profile image": "Profilový obrázek modelu {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (kopie)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} přidal/a komentář",
|
||||
"{{name}} deleted": "Položka {{name}} byla smazána",
|
||||
"{{NAME}} joined": "{{NAME}} se připojil/a",
|
||||
@@ -2480,6 +2547,7 @@
|
||||
"No authentication": "Bez ověřování",
|
||||
"No automations found": "Nebyly nalezeny žádné automatizace",
|
||||
"No automations yet": "Zatím žádné automatizace",
|
||||
"No category": "",
|
||||
"No changes": "Žádné změny",
|
||||
"No channels": "Žádné kanály",
|
||||
"No chat": "Žádná konverzace",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Teams",
|
||||
"teams": "teams",
|
||||
"This team is archived.": "Dette team er arkiveret.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} tilføjet linje",
|
||||
"{{count}} added lines_other": "{{count}} tilføjede linjer",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} kommandofortolkere",
|
||||
"{{COUNT}} Sources": "{{COUNT}} kilder",
|
||||
"{{COUNT}} stores": "Antal lagre: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} værktøjer",
|
||||
"{{count}} turns_one": "{{count}} besked",
|
||||
"{{count}} turns_other": "{{count}} beskeder",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} omtalte dig",
|
||||
"{{modelName}} profile image": "Profilbillede for modellen {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (kopi)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} kommenterede",
|
||||
"{{name}} deleted": "{{name}} slettet",
|
||||
"{{NAME}} joined": "{{NAME}} deltager nu",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Ingen autentificering",
|
||||
"No automations found": "Ingen automatiseringer fundet",
|
||||
"No automations yet": "Ingen automatiseringer endnu",
|
||||
"No category": "",
|
||||
"No changes": "Ingen ændringer",
|
||||
"No channels": "Ingen kanaler",
|
||||
"No chat": "Ingen chat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Teams",
|
||||
"teams": "Teams",
|
||||
"This team is archived.": "Dieses Team ist archiviert.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} hinzugefügte Zeile",
|
||||
"{{count}} added lines_other": "{{count}} hinzugefügte Zeilen",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} Shells",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Quellen",
|
||||
"{{COUNT}} stores": "{{COUNT}} Vektorspeicher",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} Werkzeuge",
|
||||
"{{count}} turns_one": "{{count}} Nachricht",
|
||||
"{{count}} turns_other": "{{count}} Nachrichten",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} hat Sie erwähnt",
|
||||
"{{modelName}} profile image": "Profilbild von {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Kopie)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} hat kommentiert",
|
||||
"{{name}} deleted": "{{name}} gelöscht",
|
||||
"{{NAME}} joined": "{{NAME}} ist beigetreten",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Keine Authentifizierung",
|
||||
"No automations found": "Keine Automatisierungen gefunden",
|
||||
"No automations yet": "Noch keine Automatisierungen",
|
||||
"No category": "",
|
||||
"No changes": "Keine Änderungen",
|
||||
"No channels": "Keine Kanäle",
|
||||
"No chat": "Kein Chat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Many Teams",
|
||||
"teams": "teams",
|
||||
"This team is archived.": "Such team is archived. Much quiet.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} such added line",
|
||||
"{{count}} added lines_other": "{{count}} many added lines",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} many shells",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Such Sources",
|
||||
"{{COUNT}} stores": "{{COUNT}} stores",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} such tools",
|
||||
"{{count}} turns_one": "{{count}} such turn",
|
||||
"{{count}} turns_other": "{{count}} many turns",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} so mentioned you",
|
||||
"{{modelName}} profile image": "Such {{modelName}} profile image",
|
||||
"{{name}} (Copy)": "{{name}} (Copy)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} so commented",
|
||||
"{{name}} deleted": "{{name}} so deleted",
|
||||
"{{NAME}} joined": "{{NAME}} joined",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "No authentication",
|
||||
"No automations found": "No automations. Very quiet",
|
||||
"No automations yet": "No automations yet. Very empty",
|
||||
"No category": "",
|
||||
"No changes": "No changes. Very empty",
|
||||
"No channels": "No channels. Very empty",
|
||||
"No chat": "No chat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Ομάδες εργασίας",
|
||||
"teams": "ομάδες εργασίας",
|
||||
"This team is archived.": "Αυτή η ομάδα εργασίας είναι αρχειοθετημένη.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} γραμμή προστέθηκε",
|
||||
"{{count}} added lines_other": "{{count}} γραμμές προστέθηκαν",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} κελύφη",
|
||||
"{{COUNT}} Sources": "{{COUNT}} πηγές",
|
||||
"{{COUNT}} stores": "Αποθήκες: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} εργαλεία",
|
||||
"{{count}} turns_one": "{{count}} μήνυμα",
|
||||
"{{count}} turns_other": "{{count}} μηνύματα",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "Αναφορά σε εσάς από το μοντέλο {{modelName}}",
|
||||
"{{modelName}} profile image": "Εικόνα προφίλ του μοντέλου {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Αντίγραφο)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "Σχόλιο από {{name}}",
|
||||
"{{name}} deleted": "Το «{{name}}» διαγράφηκε",
|
||||
"{{NAME}} joined": "Μπήκε στη συνομιλία: {{NAME}}",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Χωρίς ταυτοποίηση",
|
||||
"No automations found": "Δεν βρέθηκαν αυτοματισμοί",
|
||||
"No automations yet": "Δεν υπάρχουν ακόμη αυτοματισμοί",
|
||||
"No category": "",
|
||||
"No changes": "Δεν υπάρχουν αλλαγές",
|
||||
"No channels": "Δεν υπάρχουν κανάλια",
|
||||
"No chat": "Χωρίς συνομιλία",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Teams",
|
||||
"teams": "teams",
|
||||
"This team is archived.": "This team is archived.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} added line",
|
||||
"{{count}} added lines_other": "{{count}} added lines",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} shells",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Sources",
|
||||
"{{COUNT}} stores": "{{COUNT}} stores",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} tools",
|
||||
"{{count}} turns_one": "{{count}} turn",
|
||||
"{{count}} turns_other": "{{count}} turns",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} mentioned you",
|
||||
"{{modelName}} profile image": "{{modelName}} profile image",
|
||||
"{{name}} (Copy)": "{{name}} (Copy)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} commented",
|
||||
"{{name}} deleted": "{{name}} deleted",
|
||||
"{{NAME}} joined": "{{NAME}} joined",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "No authentication",
|
||||
"No automations found": "No automations found",
|
||||
"No automations yet": "No automations yet",
|
||||
"No category": "",
|
||||
"No changes": "No changes",
|
||||
"No channels": "No channels",
|
||||
"No chat": "No chat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "",
|
||||
"teams": "",
|
||||
"This team is archived.": "",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "Allow users to track work as tasks in folders and hand it to models and agents.",
|
||||
"settings.admin.general.tasks.label": "Tasks",
|
||||
"settings.admin.models.builtinTools.tasks.description": "Find, read, create and update tasks in folders",
|
||||
"settings.admin.models.builtinTools.tasks.label": "Tasks",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "",
|
||||
"{{count}} added lines_one": "",
|
||||
"{{count}} added lines_other": "",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "",
|
||||
"{{COUNT}} Sources": "",
|
||||
"{{COUNT}} stores": "",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "{{count}} task in this folder will be deleted too.",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "",
|
||||
"{{count}} turns_one": "{{count}} turn",
|
||||
"{{count}} turns_other": "{{count}} turns",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} mentioned you",
|
||||
"{{modelName}} profile image": "",
|
||||
"{{name}} (Copy)": "",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "",
|
||||
"{{name}} deleted": "",
|
||||
"{{NAME}} joined": "",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "",
|
||||
"No automations found": "",
|
||||
"No automations yet": "",
|
||||
"No category": "",
|
||||
"No changes": "",
|
||||
"No channels": "",
|
||||
"No chat": "",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Equipos",
|
||||
"teams": "equipos",
|
||||
"This team is archived.": "Este equipo está archivado.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} línea añadida",
|
||||
"{{count}} added lines_many": "{{count}} líneas añadidas",
|
||||
@@ -108,6 +172,8 @@
|
||||
"{{count}} shells_other": "{{count}} intérpretes de comandos",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Fuentes",
|
||||
"{{COUNT}} stores": "Almacenes: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} herramientas",
|
||||
"{{count}} turns_one": "{{count}} turno",
|
||||
"{{count}} turns_many": "{{count}} turnos",
|
||||
@@ -131,6 +197,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} te ha mencionado",
|
||||
"{{modelName}} profile image": "imagen de perfíl de {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Copia)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} ha comentado",
|
||||
"{{name}} deleted": "Se ha eliminado {{name}}",
|
||||
"{{NAME}} joined": "Se ha unido {{NAME}}",
|
||||
@@ -2451,6 +2518,7 @@
|
||||
"No authentication": "Sin Autentificación",
|
||||
"No automations found": "No se encontró ninguna automatización",
|
||||
"No automations yet": "Aún no hay automatizaciones",
|
||||
"No category": "",
|
||||
"No changes": "Sin cambios",
|
||||
"No channels": "Sin canales",
|
||||
"No chat": "Sin chat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Meeskonnad",
|
||||
"teams": "meeskonnad",
|
||||
"This team is archived.": "See meeskond on arhiveeritud.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} lisatud rida",
|
||||
"{{count}} added lines_other": "{{count}} lisatud rida",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} kesta",
|
||||
"{{COUNT}} Sources": "{{COUNT}} allikat",
|
||||
"{{COUNT}} stores": "{{COUNT}} vektormälu",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} tööriista",
|
||||
"{{count}} turns_one": "{{count}} sõnum",
|
||||
"{{count}} turns_other": "{{count}} sõnumit",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} mainis teid",
|
||||
"{{modelName}} profile image": "{{modelName}} profiilipilt",
|
||||
"{{name}} (Copy)": "{{name}} (koopia)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} kommenteeris",
|
||||
"{{name}} deleted": "{{name}} kustutatud",
|
||||
"{{NAME}} joined": "{{NAME}} liitus",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Autentimist pole",
|
||||
"No automations found": "Automatiseeringuid ei leitud",
|
||||
"No automations yet": "Automatiseeringuid veel pole",
|
||||
"No category": "",
|
||||
"No changes": "Muudatusi pole",
|
||||
"No channels": "Kanaleid pole",
|
||||
"No chat": "Vestlus puudub",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Lantaldeak",
|
||||
"teams": "lantalde",
|
||||
"This team is archived.": "Lantalde hau artxibatuta dago.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "Gehitutako {{count}} lerro",
|
||||
"{{count}} added lines_other": "Gehitutako {{count}} lerro",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} komando-interprete",
|
||||
"{{COUNT}} Sources": "{{COUNT}} iturri",
|
||||
"{{COUNT}} stores": "{{COUNT}} biltegi",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} tresna",
|
||||
"{{count}} turns_one": "{{count}} txanda",
|
||||
"{{count}} turns_other": "{{count}} txanda",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} modeloak aipatu zaitu",
|
||||
"{{modelName}} profile image": "{{modelName}} modeloaren profil-irudia",
|
||||
"{{name}} (Copy)": "{{name}} (kopia)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} erabiltzaileak iruzkin bat egin du",
|
||||
"{{name}} deleted": "{{name}} ezabatu da",
|
||||
"{{NAME}} joined": "{{NAME}} elkartu da",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Autentifikaziorik gabe",
|
||||
"No automations found": "Ez da automatizaziorik aurkitu",
|
||||
"No automations yet": "Oraindik ez dago automatizaziorik",
|
||||
"No category": "",
|
||||
"No changes": "Ez dago aldaketarik",
|
||||
"No channels": "Ez dago kanalik",
|
||||
"No chat": "Txatik gabe",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "تیمها",
|
||||
"teams": "تیم",
|
||||
"This team is archived.": "این تیم بایگانی شده است.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} خط اضافه\u200cشده",
|
||||
"{{count}} added lines_other": "{{count}} خط اضافه\u200cشده",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} شل",
|
||||
"{{COUNT}} Sources": "{{COUNT}} منبع",
|
||||
"{{COUNT}} stores": "{{COUNT}} مخزن",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} ابزار",
|
||||
"{{count}} turns_one": "{{count}} نوبت",
|
||||
"{{count}} turns_other": "{{count}} نوبت",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} به شما اشاره کرد",
|
||||
"{{modelName}} profile image": "تصویر پروفایل {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (کپی)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} نظر نوشت",
|
||||
"{{name}} deleted": "{{name}} حذف شد",
|
||||
"{{NAME}} joined": "{{NAME}} به گفتگو پیوست",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "بدون احراز هویت",
|
||||
"No automations found": "هیچ خودکارسازی\u200cای یافت نشد",
|
||||
"No automations yet": "هنوز هیچ خودکارسازی\u200cای وجود ندارد",
|
||||
"No category": "",
|
||||
"No changes": "هیچ تغییری وجود ندارد",
|
||||
"No channels": "هیچ کانالی وجود ندارد",
|
||||
"No chat": "بدون گفتگو",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Tiimit",
|
||||
"teams": "tiimit",
|
||||
"This team is archived.": "Tämä tiimi on arkistoitu.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} lisätty rivi",
|
||||
"{{count}} added lines_other": "{{count}} lisättyä riviä",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} komentotulkkia",
|
||||
"{{COUNT}} Sources": "{{COUNT}} lähdettä",
|
||||
"{{COUNT}} stores": "{{COUNT}} varastoa",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} työkalua",
|
||||
"{{count}} turns_one": "{{count}} vuoro",
|
||||
"{{count}} turns_other": "{{count}} vuoroa",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} mainitsi sinut",
|
||||
"{{modelName}} profile image": "{{modelName}} profiilikuva",
|
||||
"{{name}} (Copy)": "{{name}} (kopio)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} kommentoi",
|
||||
"{{name}} deleted": "{{name}} poistettu",
|
||||
"{{NAME}} joined": "{{NAME}} liittyi",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Ei todennusta",
|
||||
"No automations found": "Automaatioita ei löytynyt",
|
||||
"No automations yet": "Ei vielä automaatioita",
|
||||
"No category": "",
|
||||
"No changes": "Ei muutoksia",
|
||||
"No channels": "Ei kanavia",
|
||||
"No chat": "Ei keskustelua",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Mga Team",
|
||||
"teams": "mga team",
|
||||
"This team is archived.": "Naka-archive ang team na ito.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} idinagdag na linya",
|
||||
"{{count}} added lines_other": "{{count}} idinagdag na linya",
|
||||
@@ -93,6 +157,8 @@
|
||||
"{{count}} shells_other": "{{count}} shell",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Pinagmulan",
|
||||
"{{COUNT}} stores": "{{COUNT}} imbakan",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} tool",
|
||||
"{{count}} turns_one": "{{count}} mensahe",
|
||||
"{{count}} turns_other": "{{count}} mensahe",
|
||||
@@ -113,6 +179,7 @@
|
||||
"{{modelName}} mentioned you": "Binanggit ka ng {{modelName}}",
|
||||
"{{modelName}} profile image": "Larawan sa profile ng {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Kopya)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "Nagkomento si {{name}}",
|
||||
"{{name}} deleted": "Nabura ang {{name}}",
|
||||
"{{NAME}} joined": "Sumali si {{NAME}}",
|
||||
@@ -2423,6 +2490,7 @@
|
||||
"No authentication": "Walang authentication",
|
||||
"No automations found": "Walang nahanap na automation",
|
||||
"No automations yet": "Wala pang automation",
|
||||
"No category": "",
|
||||
"No changes": "Walang pagbabago",
|
||||
"No channels": "Walang channel",
|
||||
"No chat": "Walang chat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Toymi",
|
||||
"teams": "toymi",
|
||||
"This team is archived.": "Hetta toymið er savnað.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} regla løgd afturat",
|
||||
"{{count}} added lines_other": "{{count}} reglur lagdar afturat",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} Shell",
|
||||
"{{COUNT}} Sources": "{{COUNT}} keldur",
|
||||
"{{COUNT}} stores": "{{COUNT}} goymslur",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} amboð",
|
||||
"{{count}} turns_one": "{{count}} boð",
|
||||
"{{count}} turns_other": "{{count}} boð",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} nevndi teg",
|
||||
"{{modelName}} profile image": "Vangamynd hjá {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (avrit)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} gjørdi viðmerking",
|
||||
"{{name}} deleted": "{{name}} strikað",
|
||||
"{{NAME}} joined": "{{NAME}} kom við",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Eingin innriting",
|
||||
"No automations found": "Ongar sjálvvirkningar funnar",
|
||||
"No automations yet": "Eingar sjálvvirkningar enn",
|
||||
"No category": "",
|
||||
"No changes": "Eingar broytingar",
|
||||
"No channels": "Eingar rásir",
|
||||
"No chat": "Einki kjatt",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Équipes",
|
||||
"teams": "équipes",
|
||||
"This team is archived.": "Cette équipe est archivée.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} ligne ajoutée",
|
||||
"{{count}} added lines_many": "{{count}} lignes ajoutées",
|
||||
@@ -108,6 +172,8 @@
|
||||
"{{count}} shells_other": "{{count}} consoles",
|
||||
"{{COUNT}} Sources": "{{COUNT}} sources",
|
||||
"{{COUNT}} stores": "Magasins : {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} outils",
|
||||
"{{count}} turns_one": "{{count}} tour",
|
||||
"{{count}} turns_many": "{{count}} tours",
|
||||
@@ -131,6 +197,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} vous a mentionné",
|
||||
"{{modelName}} profile image": "Image de profil de {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (copie)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} a ajouté un commentaire",
|
||||
"{{name}} deleted": "{{name}} supprimé",
|
||||
"{{NAME}} joined": "{{NAME}} a rejoint la conversation",
|
||||
@@ -2451,6 +2518,7 @@
|
||||
"No authentication": "Aucune authentification",
|
||||
"No automations found": "Aucune automatisation trouvée",
|
||||
"No automations yet": "Aucune automatisation pour l'instant",
|
||||
"No category": "",
|
||||
"No changes": "Aucune modification",
|
||||
"No channels": "Aucun canal",
|
||||
"No chat": "Aucune conversation",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Équipes",
|
||||
"teams": "équipes",
|
||||
"This team is archived.": "Cette équipe est archivée.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} ligne ajoutée",
|
||||
"{{count}} added lines_many": "{{count}} lignes ajoutées",
|
||||
@@ -108,6 +172,8 @@
|
||||
"{{count}} shells_other": "{{count}} shells",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Sources",
|
||||
"{{COUNT}} stores": "{{COUNT}} magasins",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} outils",
|
||||
"{{count}} turns_one": "{{count}} tour",
|
||||
"{{count}} turns_many": "{{count}} tours",
|
||||
@@ -131,6 +197,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} vous a mentionné",
|
||||
"{{modelName}} profile image": "Image de profil de {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Copie)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} a commenté",
|
||||
"{{name}} deleted": "{{name}} supprimé",
|
||||
"{{NAME}} joined": "{{NAME}} a rejoint",
|
||||
@@ -2451,6 +2518,7 @@
|
||||
"No authentication": "Aucune authentification",
|
||||
"No automations found": "Aucune automatisation trouvée",
|
||||
"No automations yet": "Aucune automatisation pour l'instant",
|
||||
"No category": "",
|
||||
"No changes": "Aucune modification",
|
||||
"No channels": "Aucun canal",
|
||||
"No chat": "Aucune conversation",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Equipos",
|
||||
"teams": "equipos",
|
||||
"This team is archived.": "Este equipo está arquivado.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} liña engadida",
|
||||
"{{count}} added lines_other": "{{count}} liñas engadidas",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} intérpretes de ordes",
|
||||
"{{COUNT}} Sources": "{{COUNT}} fontes",
|
||||
"{{COUNT}} stores": "{{COUNT}} almacéns",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} ferramentas",
|
||||
"{{count}} turns_one": "{{count}} quenda",
|
||||
"{{count}} turns_other": "{{count}} quendas",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} fíxolle unha mención",
|
||||
"{{modelName}} profile image": "Imaxe de perfil de {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (copia)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} comentou",
|
||||
"{{name}} deleted": "Eliminouse {{name}}",
|
||||
"{{NAME}} joined": "{{NAME}} uniuse",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Sen autenticación",
|
||||
"No automations found": "Non se atoparon automatizacións",
|
||||
"No automations yet": "Aínda non hai automatizacións",
|
||||
"No category": "",
|
||||
"No changes": "Sen cambios",
|
||||
"No channels": "Sen canles",
|
||||
"No chat": "Sen chat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "צוותים",
|
||||
"teams": "צוותים",
|
||||
"This team is archived.": "הצוות הזה נמצא בארכיון.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "נוספה שורה אחת",
|
||||
"{{count}} added lines_two": "נוספו {{count}} שורות",
|
||||
@@ -108,6 +172,8 @@
|
||||
"{{count}} shells_other": "{{count}} מעטפות",
|
||||
"{{COUNT}} Sources": "{{COUNT}} מקורות",
|
||||
"{{COUNT}} stores": "{{COUNT}} מאגרים",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} כלים",
|
||||
"{{count}} turns_one": "הודעה אחת",
|
||||
"{{count}} turns_two": "{{count}} הודעות",
|
||||
@@ -131,6 +197,7 @@
|
||||
"{{modelName}} mentioned you": "אוזכרת על ידי {{modelName}}",
|
||||
"{{modelName}} profile image": "תמונת הפרופיל של {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (עותק)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "הערה מאת {{name}}",
|
||||
"{{name}} deleted": "הפריט {{name}} נמחק",
|
||||
"{{NAME}} joined": "המשתמש {{NAME}} הצטרף",
|
||||
@@ -2451,6 +2518,7 @@
|
||||
"No authentication": "ללא אימות",
|
||||
"No automations found": "לא נמצאו אוטומציות",
|
||||
"No automations yet": "אין עדיין אוטומציות",
|
||||
"No category": "",
|
||||
"No changes": "אין שינויים",
|
||||
"No channels": "אין ערוצים",
|
||||
"No chat": "ללא צ'אט",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "टीमें",
|
||||
"teams": "टीमें",
|
||||
"This team is archived.": "यह टीम संग्रहीत है।",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} जोड़ी गई पंक्ति",
|
||||
"{{count}} added lines_other": "{{count}} जोड़ी गई पंक्तियाँ",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} शेल",
|
||||
"{{COUNT}} Sources": "{{COUNT}} स्रोत",
|
||||
"{{COUNT}} stores": "{{COUNT}} स्टोर",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} टूल",
|
||||
"{{count}} turns_one": "{{count}} संदेश",
|
||||
"{{count}} turns_other": "{{count}} संदेश",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} ने आपका उल्लेख किया",
|
||||
"{{modelName}} profile image": "{{modelName}} का प्रोफ़ाइल चित्र",
|
||||
"{{name}} (Copy)": "{{name}} (कॉपी)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} ने टिप्पणी की",
|
||||
"{{name}} deleted": "{{name}} हटा दिया गया",
|
||||
"{{NAME}} joined": "{{NAME}} शामिल हुए",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "कोई प्रमाणीकरण नहीं",
|
||||
"No automations found": "कोई ऑटोमेशन नहीं मिला",
|
||||
"No automations yet": "अभी तक कोई ऑटोमेशन नहीं",
|
||||
"No category": "",
|
||||
"No changes": "कोई बदलाव नहीं",
|
||||
"No channels": "कोई चैनल नहीं",
|
||||
"No chat": "कोई चैट नहीं",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Timovi",
|
||||
"teams": "— timovi",
|
||||
"This team is archived.": "Ovaj tim je arhiviran.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} dodan redak",
|
||||
"{{count}} added lines_few": "{{count}} dodana retka",
|
||||
@@ -108,6 +172,8 @@
|
||||
"{{count}} shells_other": "{{count}} naredbenih ljusaka",
|
||||
"{{COUNT}} Sources": "Izvora: {{COUNT}}",
|
||||
"{{COUNT}} stores": "Broj spremišta: {{COUNT}}",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "Alata: {{COUNT}}",
|
||||
"{{count}} turns_one": "{{count}} poruka",
|
||||
"{{count}} turns_few": "{{count}} poruke",
|
||||
@@ -131,6 +197,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} vas je spomenuo",
|
||||
"{{modelName}} profile image": "Profilna slika modela {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Kopija)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} je komentirao/la",
|
||||
"{{name}} deleted": "Izbrisano: {{name}}",
|
||||
"{{NAME}} joined": "{{NAME}} se pridružio/la",
|
||||
@@ -2451,6 +2518,7 @@
|
||||
"No authentication": "Bez autentifikacije",
|
||||
"No automations found": "Nisu pronađene automatizacije",
|
||||
"No automations yet": "Još nema automatizacija",
|
||||
"No category": "",
|
||||
"No changes": "Nema promjena",
|
||||
"No channels": "Nema kanala",
|
||||
"No chat": "Bez razgovora",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Csapatok",
|
||||
"teams": "csapatok",
|
||||
"This team is archived.": "Ez a csapat archivált.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} hozzáadott sor",
|
||||
"{{count}} added lines_other": "{{count}} hozzáadott sor",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} shell",
|
||||
"{{COUNT}} Sources": "{{COUNT}} forrás",
|
||||
"{{COUNT}} stores": "{{COUNT}} tár",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} eszköz",
|
||||
"{{count}} turns_one": "{{count}} üzenet",
|
||||
"{{count}} turns_other": "{{count}} üzenet",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} megemlített téged",
|
||||
"{{modelName}} profile image": "{{modelName}} profilképe",
|
||||
"{{name}} (Copy)": "{{name}} (másolat)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} megjegyzést írt",
|
||||
"{{name}} deleted": "{{name}} törölve",
|
||||
"{{NAME}} joined": "{{NAME}} csatlakozott",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Nincs hitelesítés",
|
||||
"No automations found": "Nem találhatók automatizálások",
|
||||
"No automations yet": "Még nincsenek automatizálások",
|
||||
"No category": "",
|
||||
"No changes": "Nincsenek módosítások",
|
||||
"No channels": "Nincsenek csatornák",
|
||||
"No chat": "Nincs beszélgetés",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Tim",
|
||||
"teams": "tim",
|
||||
"This team is archived.": "Tim ini telah diarsipkan.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} baris ditambahkan",
|
||||
"{{count}} added lines_other": "{{count}} baris ditambahkan",
|
||||
@@ -84,6 +148,8 @@
|
||||
"{{count}} shells_other": "{{count}} shell",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Sumber",
|
||||
"{{COUNT}} stores": "{{COUNT}} penyimpanan",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} alat",
|
||||
"{{count}} turns_other": "{{count}} giliran",
|
||||
"{{count}} users_one": "{{count}} pengguna",
|
||||
@@ -102,6 +168,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} menyebut Anda",
|
||||
"{{modelName}} profile image": "Gambar profil {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Salinan)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} berkomentar",
|
||||
"{{name}} deleted": "{{name}} dihapus",
|
||||
"{{NAME}} joined": "{{NAME}} bergabung",
|
||||
@@ -2406,6 +2473,7 @@
|
||||
"No authentication": "Tanpa autentikasi",
|
||||
"No automations found": "Tidak ada otomatisasi ditemukan",
|
||||
"No automations yet": "Belum ada otomatisasi",
|
||||
"No category": "",
|
||||
"No changes": "Tidak ada perubahan",
|
||||
"No channels": "Tidak ada saluran",
|
||||
"No chat": "Tanpa obrolan",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Foirne",
|
||||
"teams": "foirne",
|
||||
"This team is archived.": "Tá an fhoireann seo cartlannaithe.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} líne curtha leis",
|
||||
"{{count}} added lines_other": "{{count}} líne curtha leis",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} blaosc",
|
||||
"{{COUNT}} Sources": "{{COUNT}} Foinsí",
|
||||
"{{COUNT}} stores": "{{COUNT}} stór",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} uirlis",
|
||||
"{{count}} turns_one": "{{count}} seal cainte",
|
||||
"{{count}} turns_other": "{{count}} seal cainte",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "Luaigh {{modelName}} thú",
|
||||
"{{modelName}} profile image": "{{modelName}} íomhá próifíle",
|
||||
"{{name}} (Copy)": "{{name}} (Cóip)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "Rinne {{name}} trácht",
|
||||
"{{name}} deleted": "{{name}} scriosta",
|
||||
"{{NAME}} joined": "Tá {{NAME}} tagtha isteach",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Gan fíordheimhniú",
|
||||
"No automations found": "Níor aimsíodh aon uathoibrithe",
|
||||
"No automations yet": "Gan aon uathoibrithe fós",
|
||||
"No category": "",
|
||||
"No changes": "Gan aon athruithe",
|
||||
"No channels": "Gan aon chainéil",
|
||||
"No chat": "Gan aon chomhrá",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Team",
|
||||
"teams": "team",
|
||||
"This team is archived.": "Questo team è archiviato.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} righe aggiunte",
|
||||
"{{count}} added lines_many": "{{count}} righe aggiunte",
|
||||
@@ -108,6 +172,8 @@
|
||||
"{{count}} shells_other": "{{count}} shell",
|
||||
"{{COUNT}} Sources": "{{COUNT}} fonti",
|
||||
"{{COUNT}} stores": "{{COUNT}} archivi",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} strumenti",
|
||||
"{{count}} turns_one": "{{count}} turno",
|
||||
"{{count}} turns_many": "{{count}} turni",
|
||||
@@ -131,6 +197,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} ti ha menzionato",
|
||||
"{{modelName}} profile image": "Immagine del profilo di {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Copia)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} ha commentato",
|
||||
"{{name}} deleted": "{{name}} eliminato",
|
||||
"{{NAME}} joined": "{{NAME}} si è unito",
|
||||
@@ -2451,6 +2518,7 @@
|
||||
"No authentication": "Nessuna autenticazione",
|
||||
"No automations found": "Nessuna automazione trovata",
|
||||
"No automations yet": "Ancora nessuna automazione",
|
||||
"No category": "",
|
||||
"No changes": "Nessuna modifica",
|
||||
"No channels": "Nessun canale",
|
||||
"No chat": "Nessuna chat",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "チーム",
|
||||
"teams": "チーム",
|
||||
"This team is archived.": "このチームはアーカイブ済みです。",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} 行を追加",
|
||||
"{{count}} added lines_other": "{{count}} 行を追加",
|
||||
@@ -84,6 +148,8 @@
|
||||
"{{count}} shells_other": "{{count}} 個のシェル",
|
||||
"{{COUNT}} Sources": "{{COUNT}} 件のソース",
|
||||
"{{COUNT}} stores": "{{COUNT}} 個のストア",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} 個のツール",
|
||||
"{{count}} turns_other": "{{count}} ターン",
|
||||
"{{count}} users_one": "{{count}} 人のユーザー",
|
||||
@@ -102,6 +168,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} からメンションされました",
|
||||
"{{modelName}} profile image": "{{modelName}} のプロフィール画像",
|
||||
"{{name}} (Copy)": "{{name}} (コピー)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} がコメントしました",
|
||||
"{{name}} deleted": "{{name}} を削除しました",
|
||||
"{{NAME}} joined": "{{NAME}} が参加しました",
|
||||
@@ -2406,6 +2473,7 @@
|
||||
"No authentication": "認証なし",
|
||||
"No automations found": "オートメーションが見つかりません",
|
||||
"No automations yet": "オートメーションはまだありません",
|
||||
"No category": "",
|
||||
"No changes": "変更はありません",
|
||||
"No channels": "チャンネルがありません",
|
||||
"No chat": "チャットなし",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "გუნდები",
|
||||
"teams": "გუნდი",
|
||||
"This team is archived.": "ეს გუნდი დაარქივებულია.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} დამატებული ხაზი",
|
||||
"{{count}} added lines_other": "{{count}} დამატებული ხაზი",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} გარსი",
|
||||
"{{COUNT}} Sources": "{{COUNT}} წყარო",
|
||||
"{{COUNT}} stores": "{{COUNT}} საცავი",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} ხელსაწყო",
|
||||
"{{count}} turns_one": "{{count}} შეტყობინება",
|
||||
"{{count}} turns_other": "{{count}} შეტყობინება",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}}-მა მოგიხსენიათ",
|
||||
"{{modelName}} profile image": "{{modelName}}-ის პროფილის სურათი",
|
||||
"{{name}} (Copy)": "{{name}} (ასლი)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}}-მა კომენტარი დატოვა",
|
||||
"{{name}} deleted": "{{name}} წაიშალა",
|
||||
"{{NAME}} joined": "{{NAME}} შემოუერთდა",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "ავთენტიკაციის გარეშე",
|
||||
"No automations found": "ავტომატიზაციები აღმოჩენილი არაა",
|
||||
"No automations yet": "ავტომატიზაციები ჯერ არაა",
|
||||
"No category": "",
|
||||
"No changes": "ცვლილებების გარეშე",
|
||||
"No channels": "არხების გარეშე",
|
||||
"No chat": "ჩატის გარეშე",
|
||||
|
||||
@@ -38,6 +38,70 @@
|
||||
"Teams": "Tirbaɛ",
|
||||
"teams": "n tirbaɛ",
|
||||
"This team is archived.": "Tarbaɛt-a tettwaḥrez.",
|
||||
"Add description…": "",
|
||||
"Assign to…": "",
|
||||
"Assigned": "",
|
||||
"assigned to {{name}}": "",
|
||||
"Assignee": "",
|
||||
"Assignee: {{name}}": "",
|
||||
"Backlog": "",
|
||||
"Board": "",
|
||||
"Canceled": "",
|
||||
"changed status from {{from}} to {{to}}": "",
|
||||
"Choose a folder": "",
|
||||
"Create more": "",
|
||||
"Create task": "",
|
||||
"Created by {{name}}": "",
|
||||
"Created task": "",
|
||||
"created the task": "",
|
||||
"Creating task": "",
|
||||
"Delete task?": "",
|
||||
"Due date": "",
|
||||
"Enter a title": "",
|
||||
"Failed to create task": "",
|
||||
"Failed to read task": "",
|
||||
"Failed to search tasks": "",
|
||||
"Failed to update task": "",
|
||||
"Me": "",
|
||||
"moved to {{folder}}": "",
|
||||
"My tasks": "",
|
||||
"New task": "",
|
||||
"Next week": "",
|
||||
"No folders found": "",
|
||||
"No grouping": "",
|
||||
"No tasks found": "",
|
||||
"No tasks yet": "",
|
||||
"Read task": "",
|
||||
"Reading task": "",
|
||||
"removed the assignee": "",
|
||||
"removed the due date": "",
|
||||
"removed the priority": "",
|
||||
"renamed to {{title}}": "",
|
||||
"Search Folders": "",
|
||||
"Search Tasks": "",
|
||||
"Searched tasks": "",
|
||||
"Searching tasks": "",
|
||||
"Set due date": "",
|
||||
"set priority to {{priority}}": "",
|
||||
"set the due date to {{date}}": "",
|
||||
"settings.admin.general.tasks.description": "",
|
||||
"settings.admin.general.tasks.label": "",
|
||||
"settings.admin.models.builtinTools.tasks.description": "",
|
||||
"settings.admin.models.builtinTools.tasks.label": "",
|
||||
"Start a chat to work on this task with a model or an agent.": "",
|
||||
"Task": "",
|
||||
"Task title": "",
|
||||
"Tasks": "",
|
||||
"Tasks assigned to you will show up here.": "",
|
||||
"Tasks in this folder will show up here.": "",
|
||||
"Tasks you create will show up here.": "",
|
||||
"This deletes #{{number}} with its history and comments. Its chats stay.": "",
|
||||
"This task was deleted, or you no longer have access to it.": "",
|
||||
"To do": "",
|
||||
"Tomorrow": "",
|
||||
"Updated task": "",
|
||||
"Updating task": "",
|
||||
"Waiting": "",
|
||||
"{{ models }}": "{{ models }}",
|
||||
"{{count}} added lines_one": "{{count}} n yizirig yettwarnan",
|
||||
"{{count}} added lines_other": "{{count}} n yizirigen yettwarnan",
|
||||
@@ -92,6 +156,8 @@
|
||||
"{{count}} shells_other": "{{count}} n shells",
|
||||
"{{COUNT}} Sources": "{{COUNT}} n yiɣbula",
|
||||
"{{COUNT}} stores": "{{COUNT}} n tiffa",
|
||||
"{{count}} tasks in this folder will be deleted too._one": "",
|
||||
"{{count}} tasks in this folder will be deleted too._other": "",
|
||||
"{{COUNT}} tools": "{{COUNT}} n yifecka",
|
||||
"{{count}} turns_one": "{{count}} n tikkelt n umeslay",
|
||||
"{{count}} turns_other": "{{count}} n tikkal n umeslay",
|
||||
@@ -112,6 +178,7 @@
|
||||
"{{modelName}} mentioned you": "{{modelName}} yebder-ik·em-id",
|
||||
"{{modelName}} profile image": "Tugna n umaɣnu n {{modelName}}",
|
||||
"{{name}} (Copy)": "{{name}} (Anɣal)",
|
||||
"{{name}} assigned you a task": "",
|
||||
"{{name}} commented": "{{name}} yura awennit",
|
||||
"{{name}} deleted": "{{name}} yettwakkes",
|
||||
"{{NAME}} joined": "{{NAME}} yekcem",
|
||||
@@ -2422,6 +2489,7 @@
|
||||
"No authentication": "Ulac asesteb",
|
||||
"No automations found": "Ulac tiwurmanin yettwafen",
|
||||
"No automations yet": "Mazal ulac tiwurmanin",
|
||||
"No category": "",
|
||||
"No changes": "Ulac ibeddilen",
|
||||
"No channels": "Ulac ibuda",
|
||||
"No chat": "Ulac adiwenni",
|
||||
|
||||
Loaded 100 of 135 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user