Add fast note-creation entry points alongside the existing space-sidebar actions. - Home: refactor new-note-button.tsx into a reusable inner CreateNoteButton (parametrized by `temporary`/label/icon, keeps the 0/1/many writable-space resolution and space-picker dropdown) and render two equal-width buttons via `Group grow` — a regular note and a temporary note (IconHourglass). - Space overview: new SpaceCreateNoteButtons component with two buttons that create a regular/temporary note directly in the current space and open it, reusing useTreeMutation.handleCreate (optimistic sidebar-tree insert + navigation). Permission-gated to members who can manage pages; a local pending state shows a per-button spinner and disables both to prevent a double-create. Wired into space-home.tsx above the tabs. - Reuse existing i18n keys (no new strings): "New note", "New temporary note", "Create in space". - Docs: add a CHANGELOG [Unreleased] entry and a "Temporary notes" roadmap bullet to README.md and README.ru.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommendedtoplugin:@typescript-eslint/recommended-type-checkedorplugin:@typescript-eslint/strict-type-checked - Optionally add
plugin:@typescript-eslint/stylistic-type-checked - Install eslint-plugin-react and add
plugin:react/recommended&plugin:react/jsx-runtimeto theextendslist