migrate entity panel Table to data_table_cpp_viz (issue 0081-J)
- views.cpp: replace ImGui::BeginTable("##tablev", 6, ...) + 200 LOC of
manual sort/filter/clipper helpers with data_table::render("##tablev_dt", ...)
AppState::table_dt_state persists sort+filter+stages between frames.
Removed helpers: render_one_table, render_table_headers_with_filters,
table_row_lt, table_row_field, table_col_name_by_id, k_table_cols,
TableColMeta, TableSortCtx, ci_contains, build_visible lambda.
NOTE: click-to-select-in-viewport removed from table panel; use Inspector.
- views.h: add #include "core/data_table_types.h" + data_table::State
table_dt_state member to AppState.
- CMakeLists.txt: target_link_libraries(graph_explorer PRIVATE fn_table_viz)
- app.md: uses_functions += [data_table_cpp_viz, viz_render_cpp_viz,
compute_stage_cpp_core, compute_pipeline_cpp_core, tql_emit_cpp_core,
tql_apply_cpp_core, lua_engine_cpp_core, join_tables_cpp_core,
auto_detect_type_cpp_core, compute_column_stats_cpp_core,
llm_anthropic_cpp_core, tql_to_sql_cpp_core]
Panels NOT migrated (have inline widget interactions incompatible with
data_table::render):
TODO: jobs_table (views_jobs.cpp) — ProgressBar + Cancel/Delete buttons
TODO: ##te_rows (views.cpp NodeGroups) — promote/demote buttons, context menus
TODO: ##ents/##rels (extract_panel.cpp) — editable InputText cells
TODO: ##insp_id/##insp_fields/##enr_params/##te_fields — layout helpers (2 col)
Build: OK (1 warning: tmpnam in llm_anthropic.cpp, unrelated to migration)
Tests: 125 pytest passed, 0 failures.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include "entity_ops.h"
|
||||
#include "node_groups.h"
|
||||
|
||||
#include "core/data_table_types.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <unordered_map>
|
||||
|
||||
@@ -246,6 +248,10 @@ struct AppState {
|
||||
char table_filter_input[96] = {}; // buffer del popup activo
|
||||
int table_filter_pending_col = -1; // col_user_id en edicion
|
||||
|
||||
// data_table::State para el panel Table (issue 0081-J).
|
||||
// Persiste filters/sort/stages entre frames; uno por instancia de render.
|
||||
data_table::State table_dt_state;
|
||||
|
||||
// ---- Type Editor (issue 0007) ------------------------------------------
|
||||
// Draft del editor de tipos. Se inicializa con una copia de parsed_types
|
||||
// tras cargar el grafo. Save reescribe `types.yaml` y dispara
|
||||
|
||||
Reference in New Issue
Block a user