Files
navegator_dashboard/CMakeLists.txt
T
egutierrez bcc5fdcaef migrate 4 panel tables to data_table::render with renderers (issue 0081-J)
- ##browsers: 6 data cols with Mode Badge (#headless=#f59e0b, visible=#22c55e); actions as inline button list
- ##tabs: 5 data cols with Type Badge + Attached Badge; actions as inline button list
- ##wsframes: 4 cols with Dir Badge (send=#3b82f6, recv=#22c55e) + Op Badge (text/binary/close/ping/pong)
- ##requests: 7 cols with Status Badge (2xx/3xx/4xx/5xx), Method Badge (GET/POST/PUT/DELETE/PATCH), Time Duration renderer; Waterfall col omitted (requires custom ImDrawList, not a Fase-1 renderer)
- CMakeLists.txt: add fn_table_viz linkage (guarded by TARGET check for lua-absent builds)
- app.md: add 12 uses_functions IDs for fn_table_viz stack
- fn doctor cpp-apps: navegator_dashboard now OK (0 inline BeginTable remaining)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 16:55:12 +02:00

68 lines
2.2 KiB
CMake

# navegator_dashboard — Windows-only por diseño.
# Linux: skip silenciosamente para que cpp/build/ no falle.
if(NOT WIN32)
message(STATUS "navegator_dashboard: skipping (Windows-only).")
return()
endif()
add_imgui_app(navegator_dashboard
main.cpp
chrome_scanner.cpp
chrome_launcher.cpp
local_api.cpp
panels.cpp
agent.cpp
cdp_http.cpp
cdp_ws.cpp
network_state.cpp
session_state.cpp
)
target_include_directories(navegator_dashboard PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
# imgui_node_editor expone su propio include dir (vendor/imgui-node-editor)
# que contiene crude_json.{h,cpp}. Lo linkamos solo para reusar crude_json
# como parser JSON: sin dependencia nueva, sin codigo de node-editor en runtime.
target_link_libraries(navegator_dashboard PRIVATE
ws2_32
imgui_node_editor
)
# fn_table_viz: provides data_table::render(), viz_render, TQL engine, Lua, LLM.
# Guard keeps the app compilable in builds where vendor/lua is absent.
if(TARGET fn_table_viz)
target_link_libraries(navegator_dashboard PRIVATE fn_table_viz)
endif()
set_target_properties(navegator_dashboard PROPERTIES WIN32_EXECUTABLE TRUE)
# --- E2E tests (opt-in via -DFN_BUILD_TESTS=ON) ---
if(FN_BUILD_TESTS)
add_imgui_app(navegator_dashboard_tests
main.cpp
chrome_scanner.cpp
chrome_launcher.cpp
local_api.cpp
panels.cpp
agent.cpp
cdp_http.cpp
cdp_ws.cpp
network_state.cpp
session_state.cpp
tests/navegator_dashboard_tests.cpp
)
target_include_directories(navegator_dashboard_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(navegator_dashboard_tests PRIVATE
ws2_32
imgui_node_editor
)
if(TARGET fn_table_viz)
target_link_libraries(navegator_dashboard_tests PRIVATE fn_table_viz)
endif()
# Excluye int main() de main.cpp; el harness define su propio main().
target_compile_definitions(navegator_dashboard_tests PRIVATE FN_TEST_BUILD)
# Subsistema consola (no WIN32_EXECUTABLE) para ver output de los tests.
set_target_properties(navegator_dashboard_tests PROPERTIES WIN32_EXECUTABLE FALSE)
endif()