Skip to content

Commit 00fbaac

Browse files
Merge pull request #6 from AnishSarkar22/feat/obsidian-plugin
chore: update GitHub Actions workflows to use Node.js 22.x and enhance connection indicator styling
2 parents ee6163b + 3b7f27c commit 00fbaac

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/obsidian-plugin-lint.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,12 @@ jobs:
2525
defaults:
2626
run:
2727
working-directory: surfsense_obsidian
28-
strategy:
29-
fail-fast: false
30-
matrix:
31-
node-version: [20.x, 22.x]
32-
3328
steps:
3429
- uses: actions/checkout@v6
3530

3631
- uses: actions/setup-node@v6
3732
with:
38-
node-version: ${{ matrix.node-version }}
33+
node-version: 22.x
3934
cache: npm
4035
cache-dependency-path: surfsense_obsidian/package-lock.json
4136

.github/workflows/release-obsidian-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- uses: actions/setup-node@v6
3838
with:
39-
node-version: 20.x
39+
node-version: 22.x
4040
cache: npm
4141
cache-dependency-path: surfsense_obsidian/package-lock.json
4242

surfsense_obsidian/src/settings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class SurfSenseSettingTab extends PluginSettingTab {
115115
if (this.plugin.settings.searchSpaceId !== null) {
116116
try {
117117
await this.plugin.engine.ensureConnected();
118-
await this.plugin.engine.flushQueue();
118+
await this.plugin.engine.maybeReconcile(true);
119119
new Notice("Surfsense: vault connected.");
120120
this.display();
121121
} catch (err) {
@@ -267,6 +267,7 @@ export class SurfSenseSettingTab extends PluginSettingTab {
267267

268268
private renderConnectionHeading(containerEl: HTMLElement): void {
269269
const heading = new Setting(containerEl).setName("Connection").setHeading();
270+
heading.nameEl.addClass("surfsense-connection-heading");
270271
const indicator = heading.nameEl.createSpan({
271272
cls: "surfsense-connection-indicator",
272273
});

surfsense_obsidian/styles.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,16 @@
4040

4141
.surfsense-connection-indicator {
4242
display: inline-flex;
43-
margin-left: 8px;
44-
vertical-align: middle;
4543
width: 14px;
4644
height: 14px;
4745
}
4846

47+
.surfsense-connection-heading {
48+
display: inline-flex;
49+
align-items: center;
50+
gap: 8px;
51+
}
52+
4953
.surfsense-connection-indicator svg {
5054
width: 14px;
5155
height: 14px;

0 commit comments

Comments
 (0)