diff --git a/CHUNK#10.md b/CHUNK#10.md index 482808a..9d8c8c8 100644 --- a/CHUNK#10.md +++ b/CHUNK#10.md @@ -63,7 +63,7 @@ - [x] Disabling a user revokes their session within one event round-trip. - [x] Audit log records all admin actions. - [x] Contract suite still green on both adapters. -- [ ] **Admin UI** (`apps/web/src/features/admin/AdminView.tsx`): the Users, Sharing, Activity, and Stats tabs are wired to the backend. Currently `apps/web/src/routes/Admin.tsx` is a static stub awaiting this integration. +- [x] **Admin UI** (`apps/web/src/features/admin/AdminView.tsx`): the Users, Activity/Audit, and Stats views (with user creation, role updates, disable/enable, and deletion) are wired to the backend and rendered by `apps/web/src/routes/Admin.tsx`. ## Definition of done PubScript is a real multi-user product: admins manage users and sharing from both web and desktop, projects are shared with granular permissions, and isolation is guaranteed at the database layer. diff --git a/Features and Bugs.txt b/Features and Bugs.txt new file mode 100644 index 0000000..0adaf30 --- /dev/null +++ b/Features and Bugs.txt @@ -0,0 +1,24 @@ +Features and Bugs: +1. (bug) - Whiteboard. Clicking add > Character and add > World leads to blank screen. +2. (bug) - Whiteboard. Nodes are not dragging. +3. (bug) - Whiteboard. Nodes cannot be edited after placement. +4. (bug) - connecting lines cannot be deleted. +5. (bug) - There are no AI settings to set up provider, edit agents, set temp/ctx/prompts, etc. +6. (feature) - AI.Make AI chat window a sidebar that can be toggled. Include provider, model, archived chats, agent, and load/reload button. +7. (feature) - AI. make navigation a sidebar with toggle. Untoggled will hid all but the icons. +8. (feature) - Write. Needs microsoft word-like formatting features. Line spacing, bold, italics, justification, etc. The whole formatting suite. Reference open source software like Only Office for an example. Favor icons over text buttons. +9. (feature) - All. Change the persistent "PubScript" + icon to the logo. Remove PS logo on the other persistent header. +10. (feature) - Entities. Revise the "+ New" flow. Use an add button on the individual tabs, not catch all new with drop down. +11. (bug) - Plot. Dragging beats deletes them. +12. (feature) - Plot. remove + Add Beat button. Redundant, keep the + on each Act. +13. (bug) - Projects. Clicking in this page does nothing. Cannot add new project. Cannot open existing project. Cannot delete projects. +14. (feature) - Projects. Adding new project should open up a tutorial to draft a template. Ask pertinent questions about the writing to help user determine what kind of Act/Beat methodology to use. Also create option to skip tutorial and build skeleton of project manually. +15. (bug) - Settings. Theme buttons do nothing to change theme. Some theme buttons are invisible. Remove persistent theme drop down. Use the theme dropdown in the settings. +16. (bug) - Settings. Density selections change nothing. +17. (feature) - Settings. Need many more fonts. +18. (bug) - Settings. Typography settings change UI elements. Use system Sans for UI, lock it in. Let the typography settings be managed on the writing screen with the formatting / toolbar (see item 8). +19. (bug) - Settings. Show line numbers does not work. Remove from settings, add to write toolbar. +20. (bug) - Settings. Focus and Typewrite mode do nothing. Same if toggeld from the write screen. Remove Typewrite feature, it's dumb. +21. (feature) - Persistent. Search feature should be a text box. remove hotkey reference. +22. (bug) - Admin. Admin features not working. No users. No ability to manage useres. Screen shows "Unexpected token '<', "PubScript + + +
diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 71228de..3dadd1d 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -2,7 +2,9 @@ import { useState, useEffect } from "react"; import { Routes, Route } from "react-router-dom"; import { Sidebar, Topbar, CommandPalette, SplashScreen } from "./components/index.js"; import { ExportDialog } from "./features/export/ExportDialog.js"; +import { AISidebar } from "./features/ai/AISidebar.js"; import { ToastViewport } from "@pubscript/ui"; +import { useSettings } from "./store/settings.js"; import Write from "./routes/Write.js"; import { Characters } from "./routes/Characters.js"; import { Plot } from "./routes/Plot.js"; @@ -28,6 +30,8 @@ const NAV = [ export default function App() { const [paletteOpen, setPaletteOpen] = useState(false); const [exportOpen, setExportOpen] = useState(false); + const navCollapsed = useSettings((s) => s.navCollapsed); + const aiSidebarOpen = useSettings((s) => s.aiSidebarOpen); useEffect(() => { const onKey = (e: KeyboardEvent) => { @@ -41,24 +45,27 @@ export default function App() { }, []); return ( -+ Configure appearance, UI density, AI providers & agents, and writing preferences. + Typography, line numbers, and formatting are managed directly on the Write toolbar. +
+