chore: phase 3 refactorings

This commit is contained in:
2026-02-21 18:10:26 +01:00
parent 87200a8ad9
commit 9df081965b
9 changed files with 252 additions and 46 deletions

View File

@@ -1,6 +1,7 @@
import React, { useEffect, useMemo, useRef, useState } from 'react';
import { useAppStore } from '../../store';
import type { TaskProgress } from '../../../main/shared/electronApi';
import { openEntityTab } from '../../navigation/tabPolicy';
import { useI18n } from '../../i18n';
import './Panel.css';
@@ -296,7 +297,7 @@ export const Panel: React.FC = () => {
}
const handlePostLinkClick = (postId: string) => {
openTab({ type: 'post', id: postId, isTransient: false });
openEntityTab(openTab, 'post', postId, 'pin');
setSelectedPost(postId);
setActiveView('posts');
};