Skip to content

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

fix: add task on the main screen when no project is created

Nikolai Giman19e0212edf94
diff --git a/web/package.json b/web/package.json
index 6cd5d36..844430d 100644
--- a/web/package.json
+++ b/web/package.json
@@ -2,7 +2,7 @@
"name": "web-nuxt-ui",
"private": true,
"type": "module",
- "version": "1.52.1",
+ "version": "1.52.2",
"scripts": {
"dev": "vite",
"build:packages": "pnpm --filter taskview-db-schemas build && pnpm --filter taskview-api build && pnpm --filter capacitor-widget-bridge build",
diff --git a/web/src/components/features/main/screen-main/parts/SearchActivator.vue b/web/src/components/features/main/screen-main/parts/SearchActivator.vue
index d4c3d17..5261f9c 100644
--- a/web/src/components/features/main/screen-main/parts/SearchActivator.vue
+++ b/web/src/components/features/main/screen-main/parts/SearchActivator.vue
@@ -9,11 +9,9 @@
</template>
<script lang="ts" setup>
-import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
-import { useGoalsStore } from '@/stores/goals.store'
+import { useTaskView } from '@/composables/useTaskView'
const { t } = useI18n()
-const goalsStore = useGoalsStore()
-const hasActiveGoals = computed(() => goalsStore.goals.length > 0)
+const { hasActiveGoals } = useTaskView()
</script>
diff --git a/web/src/composables/useTaskView.ts b/web/src/composables/useTaskView.ts
index 62f0dad..080eb45 100644
--- a/web/src/composables/useTaskView.ts
+++ b/web/src/composables/useTaskView.ts
@@ -13,7 +13,8 @@ export const useTaskView = () => {
const isFullscreenModal = bp.smallerOrEqual('fullscreenModalMax')
return {
- hasActiveGoals: computed(() => goalsStore.goals.some(g => !g.isInbox)),
+ // Any non-archived project counts, including the Inbox — tasks can be added there too
+ hasActiveGoals: computed(() => goalsStore.goals.some(g => !g.archive)),
isMobile,
isDesktop,
isFullscreenModal,