refactor(documents): remove unused document editing functionality and streamline components

- Eliminated references to document editing in DocumentNode, FolderTreeView, and DocumentsSidebar for a cleaner interface.
- Updated DocumentNode to enhance accessibility with keyboard interactions and improved click handling.
- Adjusted layout in AllChatsSidebar and MobileSidebar for better user experience and consistency across components.
This commit is contained in:
Anish Sarkar 2026-07-06 16:02:22 +05:30
parent 556f02c5be
commit 4088289f95
7 changed files with 66 additions and 83 deletions

View file

@ -1,5 +1,4 @@
const STORE_KEY = 'activeWorkspaceId';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let store: any = null;
async function getStore() {
@ -12,7 +11,6 @@ async function getStore() {
// One-time migration from the legacy `active-search-space` store so the
// user's last-selected workspace survives the rename.
if (store.get(STORE_KEY) == null) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const legacy: any = new Store({
name: 'active-search-space',
defaults: { activeSearchSpaceId: null as string | null },