Files
graph_explorer/CMakeLists.txt
T
egutierrez 810b564127 refactor(0036a): rename Table-expanded -> NodeGroups (paperwork)
Rename masivo sin cambio de comportamiento. Habilita 0036b-f que ya
asumen la nueva convencion.

Archivos:
- tableview.{cpp,h} -> node_groups.{cpp,h} (git mv para preservar history)
- CMakeLists.txt: tableview.cpp -> node_groups.cpp

Tipos:
- TableWindowState  -> NodeGroupsWindowState  (views.h)
- TableMetadata     -> NodeGroupsMeta         (node_groups.h)
- TablePageRow      -> NodeGroupsRow          (node_groups.h)

Campos AppState:
- table_windows         -> node_groups_windows
- table_node_counts     -> node_groups_counts
- toggle_expanded_id    -> toggle_nodegroups_id
- want_toggle_expanded  -> want_toggle_nodegroups

Funciones (window por contenedor — NO el panel generico Table):
- tableview_create / count / page / smoke_test / resolve_path /
  refresh_counts / list_columns / get_metadata / set_expanded /
  set_columns / promote_row / demote_row / ingest_file
  -> prefijo node_groups_*
- views_table_window         -> views_node_groups_window
- views_table_windows_sync   -> views_node_groups_windows_sync
- views_table_overlay        -> views_node_groups_overlay

Strings de UI:
- "Expand table" / "Collapse table" -> "Open NodeGroups" / "Close NodeGroups"
- Window title "<icon> <name>" -> "<icon> NodeGroups: <name>"
- Tooltip "(no expanded tables)" -> "(no open NodeGroups)"
- Logs [tableview_*] -> [node_groups_*]

Preservados intencionalmente (no son cambio de identificadores C++):
- CLI flag --test-tableview (cambiarlo seria cambio de behavior publico)
- Valor 'tableview' en columna entities.source (cambiarlo afectaria
  datos persistidos en BD)

NO tocado:
- Panel generico Table (views_table, panel_table, table_rows,
  table_show_all, table_search_buf, table_filter_*, table_col_filters,
  table_active_tab, TableRow, table_filter_group_*, etc.)
- issues/completed/* (historia)

Verificacion:
- Build C++ Linux + Windows: green sin warnings nuevos.
- pytest WSL: 89 passed.
- pytest Windows: 78 passed + 11 skipped.
- git grep audit: solo residuos en issues/ (historia) + CLI flag y
  source DB value preservados.

Refs: issues/0036a-rename-nodegroups.md
2026-05-04 00:43:16 +02:00

79 lines
3.0 KiB
CMake

# SQLite3: el target SQLite::SQLite3 lo crea ya cpp/CMakeLists.txt (sistema en
# Linux, vendored amalgamation en Windows). Si esta app se construye en
# stand-alone, levantar SQLite desde el amalgamation vendoreado del registry.
find_package(SQLite3 QUIET)
if(NOT SQLite3_FOUND AND NOT TARGET sqlite3_vendored)
set(SQLITE3_AMALG_DIR ${FN_CPP_ROOT_DIR}/vendor/sqlite3)
add_library(sqlite3_vendored STATIC ${SQLITE3_AMALG_DIR}/sqlite3.c)
target_include_directories(sqlite3_vendored PUBLIC ${SQLITE3_AMALG_DIR})
target_compile_definitions(sqlite3_vendored PRIVATE
SQLITE_THREADSAFE=1
SQLITE_ENABLE_FTS5
SQLITE_ENABLE_JSON1
)
add_library(SQLite::SQLite3 ALIAS sqlite3_vendored)
endif()
add_imgui_app(graph_explorer
main.cpp
data.cpp
views.cpp
views_jobs.cpp
types_registry.cpp
layout_store.cpp
entity_ops.cpp
project_manager.cpp
node_groups.cpp
jobs.cpp
enrichers.cpp
chat.cpp
# --- viz ---
${FN_CPP_ROOT_DIR}/functions/viz/graph_renderer.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_force_layout.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_force_layout_gpu.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_layouts.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_viewport.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_viewport_selection.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_labels.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_labels_select.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_icons.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_sources.cpp
${FN_CPP_ROOT_DIR}/functions/viz/graph_types.cpp
${FN_CPP_ROOT_DIR}/functions/core/graph_spatial_hash.cpp
# --- core UI ---
${FN_CPP_ROOT_DIR}/functions/core/button.cpp
${FN_CPP_ROOT_DIR}/functions/core/icon_button.cpp
${FN_CPP_ROOT_DIR}/functions/core/toolbar.cpp
${FN_CPP_ROOT_DIR}/functions/core/modal_dialog.cpp
${FN_CPP_ROOT_DIR}/functions/core/text_input.cpp
${FN_CPP_ROOT_DIR}/functions/core/select.cpp
${FN_CPP_ROOT_DIR}/functions/core/tree_view.cpp
${FN_CPP_ROOT_DIR}/functions/core/page_header.cpp
${FN_CPP_ROOT_DIR}/functions/core/fullscreen_window.cpp
${FN_CPP_ROOT_DIR}/functions/core/badge.cpp
${FN_CPP_ROOT_DIR}/functions/core/empty_state.cpp
)
target_include_directories(graph_explorer PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
${FN_CPP_ROOT_DIR}/functions
)
target_link_libraries(graph_explorer PRIVATE SQLite::SQLite3 DuckDB::DuckDB)
duckdb_copy_runtime(graph_explorer)
# Threads — issue 0026 (jobs system) usa std::thread + std::mutex + condvar.
find_package(Threads REQUIRED)
target_link_libraries(graph_explorer PRIVATE Threads::Threads)
# OpenGL: graph_renderer + graph_force_layout_gpu llaman gl* directamente.
# fn::run_app inicializa el loader cuando AppConfig::init_gl_loader = true.
if(NOT WIN32)
find_package(OpenGL REQUIRED)
target_link_libraries(graph_explorer PRIVATE OpenGL::GL)
endif()
if(WIN32)
set_target_properties(graph_explorer PROPERTIES WIN32_EXECUTABLE TRUE)
endif()