Skip to content

feat(ui): remove dead views and API functions for dropped v5 tables#204

Merged
thebtf merged 2 commits into
mainfrom
fix/remove-dead-ui-views
Apr 24, 2026
Merged

feat(ui): remove dead views and API functions for dropped v5 tables#204
thebtf merged 2 commits into
mainfrom
fix/remove-dead-ui-views

Conversation

@thebtf
Copy link
Copy Markdown
Owner

@thebtf thebtf commented Apr 24, 2026

Summary

Removes all Vue dashboard UI code that referenced the observations and indexed_sessions (sdk_sessions) tables dropped in the v5 cleanup (US3 T024 / PR #202).

Changes

Views deleted (5):

  • ObservationsView.vue, ObservationDetailView.vue
  • SessionsView.vue, SessionDetailView.vue
  • SearchView.vue

Components deleted (5 — old unreachable Sidebar cluster):

  • Sidebar.vue (old sidebar, never used by live App.vue which uses AppSidebar.vue)
  • ProjectFilter.vue, SearchAnalytics.vue, TopObservations.vue, SystemHealthDetails.vue

Composables deleted (3):

  • useObservation.ts, useSearch.ts, useSessions.ts

Edited (4):

  • router/index.ts — remove routes for /observations, /observations/:id, /sessions, /sessions/:id, /search
  • AppSidebar.vue — remove Observations, Sessions, Search nav items
  • composables/index.ts — remove dead barrel re-exports for deleted composables
  • utils/api.ts — remove ~270 lines of dead API functions, types, and helpers (fetchObservationsPaginated, fetchObservationById, updateObservation, archiveObservations, searchObservations, searchDecisions, all search analytics functions, sessions index section, fetchTopObservations, fetchMostRetrievedObservations, SystemHealth interface, ComponentHealth interface, fetchSystemHealth, putJson helper)

Verification

Build clean: vue-tsc -b && vite build✓ 115 modules transformed, ✓ built in 2.87s, 0 TypeScript errors.

Summary by CodeRabbit

  • Удалённые функции
    • Удалены разделы "Наблюдения", "Поиск" и "Сеансы" из боковой навигации.
    • Удалены страницы и детальные представления для наблюдений, поиска и сессий.
    • Удалены модальные окна аналитики поиска, системного здоровья и топ-наблюдений.
    • Удалён фильтр проектов и связанные элементы управления выбором проекта.
  • Обслуживание
    • Обновлён .gitignore для исключения метаданных сборки.

Delete all UI code tied to the observations and indexed_sessions tables
dropped in v5 cleanup (US3 T024):

Views deleted:
- ObservationsView.vue, ObservationDetailView.vue
- SessionsView.vue, SessionDetailView.vue
- SearchView.vue

Components deleted (old Sidebar cluster, unreachable from live App.vue):
- Sidebar.vue, ProjectFilter.vue, SearchAnalytics.vue
- TopObservations.vue, SystemHealthDetails.vue

Composables deleted:
- useObservation.ts, useSearch.ts, useSessions.ts

Edited:
- router/index.ts: remove /observations, /sessions, /search routes
- AppSidebar.vue: remove observations, sessions, search nav items
- composables/index.ts: remove dead barrel re-exports
- utils/api.ts: remove ~270 lines of dead API functions and types

Build: clean (vue-tsc + vite, 0 TS errors, 115 modules)
@thebtf
Copy link
Copy Markdown
Owner Author

thebtf commented Apr 24, 2026

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5e6aac4d-ea3c-4461-a745-6ff171a39355

📥 Commits

Reviewing files that changed from the base of the PR and between 075cdfa and 72bfedd.

📒 Files selected for processing (2)
  • .gitignore
  • ui/tsconfig.tsbuildinfo
💤 Files with no reviewable changes (1)
  • ui/tsconfig.tsbuildinfo
✅ Files skipped from review due to trivial changes (1)
  • .gitignore

Walkthrough

Это изменение удаляет множество страниц, компонентов, composables и API-экспортов, связанных с наблюдениями, поиском и сессиями, а также корректирует навигацию и индекс экспорта composables.

Changes

Cohort / File(s) Summary
Удаленные представления
ui/src/views/ObservationDetailView.vue, ui/src/views/ObservationsView.vue, ui/src/views/SearchView.vue, ui/src/views/SessionDetailView.vue, ui/src/views/SessionsView.vue
Полное удаление пяти основных страниц приложения: загрузка данных, состояние загрузки/ошибки, фильтры, действия пользователя и связанная логика.
Удаленные компоненты боковой панели и модалы
ui/src/components/Sidebar.vue, ui/src/components/ProjectFilter.vue, ui/src/components/SearchAnalytics.vue, ui/src/components/SystemHealthDetails.vue, ui/src/components/TopObservations.vue
Удаление боковой панели и связанных модальных компонентов — их состояние, API-вызовы, события и CSS-переходы.
Изменения навигации
ui/src/components/layout/AppSidebar.vue, ui/src/router/index.ts
Удалены маршруты и пункты навигации для Observations, Search и Sessions; обновлён список навигационных записей.
Удаленные composables и их экспорт
ui/src/composables/useObservation.ts, ui/src/composables/useSearch.ts, ui/src/composables/useSessions.ts, ui/src/composables/index.ts
Удалены три composable (обсервации, поиск, сессии) и их ре-экспорты из индексного файла.
Удаленные API-утилиты и типы
ui/src/utils/api.ts
Удаление множества экспортируемых API-функций и типов для наблюдений, поиска, аналитики, здоровья системы и сессий, включая вспомогательный putJson.
Сборочные/конфигурационные мелочи
ui/tsconfig.tsbuildinfo, .gitignore
Удалён tsbuildinfo из репозитория; добавлено правило игнорирования *.tsbuildinfo в .gitignore.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Poem

🐰
Я — кролик, что по норке идёт,
Код листопадом тихо уйдёт,
Компоненты спят в мягкой траве,
И новый путь зовёт впереди мне — в поле к свету и мечте.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(ui): remove dead views and API functions for dropped v5 tables' clearly and specifically describes the main change: removing UI views and API functions related to deprecated database tables from the v5 cleanup.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/remove-dead-ui-views

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@ui/tsconfig.tsbuildinfo`:
- Line 1: The file ui/tsconfig.tsbuildinfo is a TypeScript build artifact and
must be excluded from VCS: add a rule *.tsbuildinfo to your .gitignore (or
append that pattern if .gitignore exists) and then remove the tracked file from
Git with git rm --cached ui/tsconfig.tsbuildinfo (commit the .gitignore change
and the removal) so it is no longer tracked; ensure future .tsbuildinfo files
are ignored.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 94f6c989-fb77-416c-964a-934c5cfc365b

📥 Commits

Reviewing files that changed from the base of the PR and between 45c4f67 and 075cdfa.

📒 Files selected for processing (18)
  • ui/src/components/ProjectFilter.vue
  • ui/src/components/SearchAnalytics.vue
  • ui/src/components/Sidebar.vue
  • ui/src/components/SystemHealthDetails.vue
  • ui/src/components/TopObservations.vue
  • ui/src/components/layout/AppSidebar.vue
  • ui/src/composables/index.ts
  • ui/src/composables/useObservation.ts
  • ui/src/composables/useSearch.ts
  • ui/src/composables/useSessions.ts
  • ui/src/router/index.ts
  • ui/src/utils/api.ts
  • ui/src/views/ObservationDetailView.vue
  • ui/src/views/ObservationsView.vue
  • ui/src/views/SearchView.vue
  • ui/src/views/SessionDetailView.vue
  • ui/src/views/SessionsView.vue
  • ui/tsconfig.tsbuildinfo
💤 Files with no reviewable changes (16)
  • ui/src/router/index.ts
  • ui/src/components/ProjectFilter.vue
  • ui/src/composables/index.ts
  • ui/src/components/SystemHealthDetails.vue
  • ui/src/composables/useSessions.ts
  • ui/src/components/layout/AppSidebar.vue
  • ui/src/views/SessionsView.vue
  • ui/src/components/Sidebar.vue
  • ui/src/composables/useSearch.ts
  • ui/src/views/SearchView.vue
  • ui/src/views/SessionDetailView.vue
  • ui/src/views/ObservationsView.vue
  • ui/src/views/ObservationDetailView.vue
  • ui/src/composables/useObservation.ts
  • ui/src/components/TopObservations.vue
  • ui/src/components/SearchAnalytics.vue

Comment thread ui/tsconfig.tsbuildinfo Outdated
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request performs a major cleanup by removing features related to observations, search, and sessions, including their associated views, components, and composables. The feedback identifies a critical issue where the removal of system health API functions breaks the health monitoring display in the sidebar. Additionally, it is noted that some observation-related code remains in the API utility, which should likely be removed for consistency if the underlying data structures have been dropped.

I am having trouble creating individual review comments. Click here to see my feedback.

ui/src/utils/api.ts (315-331)

high

The removal of fetchSystemHealth and its associated types (SystemHealth, ComponentHealth) appears to be premature. While the SystemHealthDetails.vue view was removed, the live AppSidebar.vue component (which is retained and edited in this PR) still uses the useHealth composable to display system status in its stats panel. Removing these API functions and types will break the health monitoring display in the sidebar.

ui/src/utils/api.ts (1)

medium

The cleanup of observation-related code in this file seems incomplete. While several functions were removed, many others remain (e.g., fetchObservations, fetchObservationScore, submitObservationFeedback, updateObservationTags, and the Observation type itself). If the observations table has been completely dropped as stated in the PR description, these remaining functions and types are likely dead code and should also be removed to maintain consistency.

Add *.tsbuildinfo to .gitignore and untrack ui/tsconfig.tsbuildinfo.
TypeScript build artifacts should not be version-controlled.
@thebtf thebtf merged commit c52a169 into main Apr 24, 2026
8 checks passed
@thebtf thebtf deleted the fix/remove-dead-ui-views branch April 24, 2026 17:55
thebtf added a commit that referenced this pull request Apr 24, 2026
Bump daemon version v5.0.0 → v5.1.0, plugin 5.0.1 → 5.1.0.

Since v5.0.1:
- PR #202: dead-code sweep — removed Go references to dropped tables (-2861 lines)
- PR #203: env var cleanup, auth-skip-local, dead features removal (-5862 lines)
- PR #204: dead UI views and API functions removal (-4065 lines)
- PR #205: Activity Timeline + observation UI cleanup (-2784 lines)

Total: ~15,500 lines of dead code removed post-v5.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant