feat: Settings submenu (Settings.../About...), git column, projects tab
- main.cpp: registrar info About via fn_ui::about_window_set_info - views.cpp: nueva columna "Git" en la tabla Apps (remote/local/-) - data.h/cpp + data_http.cpp: AppRow gana repo_url + dir_path - views.cpp: actions bar (Reindex / + Add / Reload / inbox) y modal Add - views.cpp: tab Projects con tree + detalle anidado - data_http.cpp: load_projects_http, load_project_detail_http, http_post_* - http_client.cpp: SO_RCVTIMEO en Windows como DWORD ms (timeout 5 ms bug) - CMakeLists: limpieza de srcs duplicados con fn_framework - app.md: notas operativas y estado actual Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "app_base.h"
|
||||
#include "imgui.h"
|
||||
#include "core/fullscreen_window.h"
|
||||
#include "core/app_menubar.h"
|
||||
#include "core/app_about.h"
|
||||
#include "data.h"
|
||||
#include "data_http.h"
|
||||
#include "views.h"
|
||||
@@ -41,6 +43,9 @@ static void reload_data() {
|
||||
}
|
||||
|
||||
static void render() {
|
||||
// MainMenuBar (solo Settings — el dashboard no expone paneles toggleables)
|
||||
fn_ui::app_menubar(nullptr, 0, nullptr);
|
||||
|
||||
if (ImGui::GetIO().UserData != nullptr) {
|
||||
ImGui::GetIO().UserData = nullptr;
|
||||
reload_data();
|
||||
@@ -107,6 +112,18 @@ int main(int argc, char** argv) {
|
||||
if (g_db_path.empty()) g_db_path = db_candidates.back();
|
||||
}
|
||||
|
||||
// Compartir el API URL con las vistas (para reindex/add desde la toolbar)
|
||||
views_set_api_url(g_api_url);
|
||||
|
||||
// Info de la ventana About (submenu Settings → About...)
|
||||
fn_ui::about_window_set_info(
|
||||
"fn_registry Dashboard",
|
||||
"0.2.0",
|
||||
"Dashboard ImGui para visualizar el estado del fn_registry. "
|
||||
"Consume datos via sqlite_api HTTP (fallback a SQLite directo). "
|
||||
"KPIs, charts, tablas, desglose por lenguaje/dominio/pureza."
|
||||
);
|
||||
|
||||
reload_data();
|
||||
|
||||
return fn::run_app(
|
||||
|
||||
Reference in New Issue
Block a user