iterate.com / tasks

git clone https://git.iterate.com/repos/tasks

tasks / index.htmlmain at 90c6edb

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <!-- interactive-widget: where a browser knows it (Chrome on Android), the keyboard makes the
         page shorter, so what stands at the bottom stays above it. iOS reads it not: app.js
         `useSeenScreen` does that work there. -->
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, interactive-widget=resizes-content"
    />
    <title>Tasks</title>
    <!-- The components' modules and stylesheet come from one other host: the connection to it
         starts now, while the rest of this head is read. -->
    <link rel="preconnect" href="https://ui.iterate.com" crossorigin />
    <link rel="preconnect" href="https://esm.iterate.com" crossorigin />
    <!-- What the app is called and its icon: the mind's sign-in pages show both. -->
    <link rel="manifest" href="/manifest.webmanifest" />
    <link rel="icon" href="/icon.svg" type="image/svg+xml" />
    <!-- iterate's components, pinned to one release of iterate's UI host (the version is a
         commit of the branch `dist` of git.iterate.com/repos/ui): the one that the Docs app pins.
         To upgrade, change the commit here, in every line that names it. -->
    <script type="importmap">
      {
        "imports": {
          "@iterate-com/ui/": "https://ui.iterate.com/@iterate-com/ui@113924454d6ae84a3194625bd4c88892430fb678/",
          "react": "https://ui.iterate.com/@iterate-com/ui@113924454d6ae84a3194625bd4c88892430fb678/react",
          "react/": "https://ui.iterate.com/@iterate-com/ui@113924454d6ae84a3194625bd4c88892430fb678/react/",
          "react-dom": "https://ui.iterate.com/@iterate-com/ui@113924454d6ae84a3194625bd4c88892430fb678/react-dom",
          "react-dom/": "https://ui.iterate.com/@iterate-com/ui@113924454d6ae84a3194625bd4c88892430fb678/react-dom/",
          "lucide-react": "https://esm.iterate.com/lucide-react@1.48.0?external=react,react-dom"
        }
      }
    </script>
    <!-- The page's socket, asked for here and not when the app's modules have loaded: `memberItx`
         (@iterate-com/ui/live, in app.js) takes it for its first session. It stands before the
         stylesheets, because a script after a stylesheet waits for it. -->
    <script>
      try {
        window.__itxSocket = new WebSocket(new URL("/itx", location.href.replace(/^http/, "ws")));
      } catch {}
    </script>
    <!-- The kit's stylesheet for a page with the docs editor (the task sheet has one): everything
         styles.css holds, and the editor's own classes and its live preview's look. It takes the
         place of styles.css: a page links one of the two, never both. -->
    <link
      rel="stylesheet"
      href="https://ui.iterate.com/@iterate-com/ui@113924454d6ae84a3194625bd4c88892430fb678/docs-editor.css"
    />
    <!-- The look of this mind's apps: theme.css of /repos/stdlib, one file for every app. One
         line there makes them all dark. shadcn's components also ask for the class `dark`, so the script
         puts it on <html> when the file says dark. -->
    <link rel="stylesheet" href="/theme.css" />
    <script>
      if (getComputedStyle(document.documentElement).colorScheme === "dark")
        document.documentElement.classList.add("dark");
    </script>
    <script>
      // `?embed=1`: the page is shown in a frame of another app of the mind (the Dash's panel
      // "Needs a person"). A frame is narrow: app.css draws no sidebar and no bar there, and
      // app.js shows the asks one at a time at any width. The same Tasks app, for the same member.
      if (new URLSearchParams(location.search).get("embed") === "1")
        document.documentElement.dataset.embed = "";
    </script>
    <link rel="stylesheet" href="/app.css" />
  </head>
  <body>
    <div id="root"><p class="tasks-note">Connecting…</p></div>
    <script type="module" src="/app.js"></script>
  </body>
</html>