Migrate the user-facing strings in builtin.tickets, builtin.pql, builtin.decisions, and builtin.problems (list/detail views, section headers, filters, empty/loading/error states, type chips) to ClideSettings.i18n; extend each extension's catalog. The detail/links tabs that had a bare title now wire titleKey + i18nNamespace so the tab title resolves too. Context threaded into the static label helpers. No en_US behaviour change (D-21). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
918 B
Dart
32 lines
918 B
Dart
import 'package:clide/builtin/pql/src/backlinks_view.dart';
|
|
import 'package:clide/extension/extension.dart';
|
|
import 'package:clide/kernel/kernel.dart';
|
|
import 'package:clide/widgets/widgets.dart';
|
|
|
|
class PqlExtension extends ClideExtension {
|
|
@override
|
|
String get id => 'builtin.pql';
|
|
@override
|
|
String get title => 'pql';
|
|
@override
|
|
String get version => '0.3.0';
|
|
@override
|
|
List<String> get dependsOn => const [];
|
|
|
|
// The pql search/query/markdown surface moved into the unified Search
|
|
// tab (T-201); this extension keeps only the Backlinks context panel.
|
|
@override
|
|
List<ContributionPoint> get contributions => [
|
|
TabContribution(
|
|
id: 'pql.backlinks',
|
|
slot: Slots.contextPanel,
|
|
title: 'Links',
|
|
titleKey: 'tab.links.title',
|
|
i18nNamespace: id,
|
|
icon: PhosphorIcons.byName('link'),
|
|
priority: -80,
|
|
build: (_) => const BacklinksView(),
|
|
),
|
|
];
|
|
}
|