mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 07:26:30 +00:00
fix(admin): naver_list_import is an integration, not a trip addon
It has no trip tab and no page of its own — it pulls places from an external service, which is what the integration group is for. The type only drives grouping in the admin UI (and the global nav check), so existing installs just see the tile move; migration appended for them, seed fixed for fresh ones.
This commit is contained in:
@@ -4176,6 +4176,21 @@ function runMigrations(db: Database.Database): void {
|
||||
db.exec("ALTER TABLE mcp_tokens ADD COLUMN kind TEXT NOT NULL DEFAULT 'mcp'");
|
||||
}
|
||||
},
|
||||
/**
|
||||
* `naver_list_import` was typed 'trip', but a trip addon is one that earns its own
|
||||
* tab inside a trip — this one has no tab (it is not in tripTabs.ts) and no page. It
|
||||
* calls an external service to pull places into the sidebar, which is exactly what
|
||||
* 'integration' means here.
|
||||
*
|
||||
* The type is presentational: only `type === 'global'` is read anywhere
|
||||
* (client navItems.ts), so this moves the tile between admin groups and changes
|
||||
* nothing about how the import behaves.
|
||||
*
|
||||
* Appended LAST: the array is index-addressed against schema_version.
|
||||
*/
|
||||
() => {
|
||||
db.prepare("UPDATE addons SET type = 'integration' WHERE id = 'naver_list_import'").run();
|
||||
},
|
||||
];
|
||||
|
||||
if (currentVersion < migrations.length) {
|
||||
|
||||
Reference in New Issue
Block a user