From 1a497a98e81592ce0f8f818507047da34d988b24 Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Fri, 27 Feb 2026 14:04:35 -0600 Subject: [PATCH] note specific navigation lock for embeding --- src/App.tsx | 2 +- src/views/NotepadView.tsx | 27 ++- tasgrid-embed-example_and_instructions.html | 245 -------------------- 3 files changed, 17 insertions(+), 257 deletions(-) delete mode 100644 tasgrid-embed-example_and_instructions.html diff --git a/src/App.tsx b/src/App.tsx index 8082f56..ffc3f4d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -104,7 +104,7 @@ const App: Component = () => { const searchParams = new URLSearchParams(window.location.search); const noteIdFromUrl = searchParams.get('noteId'); const [selectedNoteId, setSelectedNoteId] = createSignal(noteIdFromUrl); - return ; + return ; })()} diff --git a/src/views/NotepadView.tsx b/src/views/NotepadView.tsx index df0f460..d50ff24 100644 --- a/src/views/NotepadView.tsx +++ b/src/views/NotepadView.tsx @@ -13,6 +13,7 @@ import { NotesSidebar } from "@/components/NotesSidebar"; export const NotepadView: Component<{ selectedNoteId: string | null; setSelectedNoteId: (id: string | null) => void; + hideNavigation?: boolean; }> = (props) => { const [isLinking, setIsLinking] = createSignal(false); const [linkSearchQuery, setLinkSearchQuery] = createSignal(""); @@ -131,12 +132,14 @@ export const NotepadView: Component<{ return (
{/* Mobile Notes List */} -
- -
+ +
+ +
+
{/* Note Editor (Main Panel) */}
{/* Mobile Back Button */} -
- -
+ +
+ +
+
- - - - - - TasGrid Parent App Simulator - - - - - -

TasGrid Parent App Simulator

- -
-
-

Login to Parent Application

-

This simulates the parent application authenticating with the shared backend.

- -
-
- -
-

Or send a token manually:

- - -
- -
-
- Developer Integration Guide - -
-

1. Available Routes:

-
    -
  • /embed/notes: Renders the full notepad/editor.
  • -
  • /embed/quick-add: Renders a standalone task creation form.
  • -
- -

2. Authentication Protocol:

-

The parent application must send a postMessage to the iframe immediately after the - iframe loads (or whenever auth state changes).

-
-iframe.contentWindow.postMessage({
-  type: "TASGRID_AUTH",
-  token: "YOUR_POCKETBASE_TOKEN",
-  user: { /* optional PB user record */ }
-}, "*");
- -

3. Responsiveness:

-

Both routes are designed to be fluid. Ensure your iframe container has defined dimensions; the - content will expand to fill it.

-
-
-
-
- -
-
-
- Notes Embed - /embed/notes -
- -
- -
-
- Quick Add Embed - /embed/quick-add -
- -
-
- - - - - \ No newline at end of file