Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ Under an Upgrading section, the bullets after **Local installs (`sdpm update`).*
scale) work as for `line`. `pptx_to_json` reads a radar chart back as `radar`, so an
edited one is rebuilt from its JSON; a filled radar chart still keeps its `_chartXml`.
New `chart-radar` guide. Local mode and the AWS stack (SdpmRuntime).
- **An SDPM icon.** A slide frame holding a green and an amber face, with a violet block
tilting in over its top-left corner. The Web UI uses it for the logo at the top of the
rail (the mobile top bar too, drawn without a tile and following the dark/light theme),
the favicon (also without a tile, so it fills the browser tab; the SVG favicon follows the
dark/light colour scheme), `icon.svg` and the PWA icons, which were blank squares before.
The Claude Desktop bundle (`sdpm.mcpb`) now carries it as its icon. Web UI
(`deploy_webui.sh`) and the next release's bundle.

### Security

Expand Down
1 change: 1 addition & 0 deletions scripts/build_mcpb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ tar -C "$ROOT" \
--exclude='*.pyc' \
-cf - servers/local sdpm shared | tar -C "$STAGE" -xf -
cp "$ROOT/scripts/mcpb/manifest.json" "$STAGE/manifest.json"
cp "$ROOT/scripts/mcpb/icon.png" "$STAGE/icon.png"
cp "$ROOT/scripts/mcpb/.mcpbignore" "$STAGE/.mcpbignore"

# The UV MCPB runtime requires a pyproject.toml at bundle root. Reuse the local
Expand Down
Binary file added scripts/mcpb/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions scripts/mcpb/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"homepage": "https://github.com/aws-samples/sample-spec-driven-presentation-maker",
"documentation": "https://github.com/aws-samples/sample-spec-driven-presentation-maker/blob/main/docs/en/getting-started.md",
"support": "https://github.com/aws-samples/sample-spec-driven-presentation-maker/issues",
"icon": "icon.png",
"server": {
"type": "uv",
"entry_point": "servers/local/server.py",
Expand Down
Binary file added web-ui/public/favicon.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions web-ui/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web-ui/public/icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web-ui/public/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 7 additions & 10 deletions web-ui/public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed web-ui/src/app/favicon.ico
Binary file not shown.
12 changes: 12 additions & 0 deletions web-ui/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
--agent-neutral: oklch(0.55 0 0);
--team-gradient: linear-gradient(90deg, var(--agent-layout), var(--agent-content), var(--agent-visual), var(--agent-data), var(--agent-decorator));
--team-spine-gradient: linear-gradient(180deg, var(--agent-layout), var(--agent-content), var(--agent-visual), var(--agent-data), var(--agent-decorator));
/* SDPM mark (SdpmMark.tsx): the app icon's colours, drawn without its tile. */
--mark-frame: #eeeeee;
--mark-visual: #b385fb;
--mark-content: #3bc59e;
--mark-data: #efac44;
--mark-slot-opacity: 0.22;
--entry-action-spectrum: conic-gradient(
from var(--team-angle, 0deg),
var(--agent-layout),
Expand Down Expand Up @@ -152,6 +158,12 @@
--agent-decorator: oklch(0.48 0.20 330);
--agent-neutral: oklch(0.45 0 0);
--human-text: oklch(0.55 0.12 95);
/* Darker versions of the same mark hues, for light backgrounds. */
--mark-frame: #181b1f;
--mark-visual: #7a3fd0;
--mark-content: #0a9478;
--mark-data: #c77a00;
--mark-slot-opacity: 0.2;
--entry-action-spectrum: conic-gradient(
from var(--team-angle, 0deg),
oklch(0.60 0.22 262) 0deg,
Expand Down
9 changes: 9 additions & 0 deletions web-ui/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ export const metadata: Metadata = {
title: "spec-driven-presentation-maker",
description: "AI-powered presentation builder",
manifest: "/manifest.json",
// The favicon is the bare mark (no tile) so it fills the 16px tab slot. Browsers that read SVG
// icons take favicon.svg, which follows the dark/light colour scheme; the ICO (light colours) is
// the fallback. The ICO is declared with a fixed size, not "any", so Chrome prefers the SVG.
icons: {
icon: [
{ url: "/favicon.ico", sizes: "32x32" },
{ url: "/favicon.svg", type: "image/svg+xml" },
],
},
other: {
"mobile-web-app-capable": "yes",
"apple-mobile-web-app-capable": "yes",
Expand Down
7 changes: 4 additions & 3 deletions web-ui/src/components/AppShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
import { ReactNode, useState, useRef, useEffect, useCallback } from "react"
import { usePathname } from "next/navigation"
import { useAuth } from "@/hooks/useAuth"
import { Layers, ChevronLeft, CircleUser, LogOut, Settings as SettingsIcon, Palette, GalleryVerticalEnd, LayoutTemplate } from "lucide-react"
import { ChevronLeft, CircleUser, LogOut, Settings as SettingsIcon, Palette, GalleryVerticalEnd, LayoutTemplate } from "lucide-react"
import { Settings } from "@/components/Settings"
import { SdpmMark } from "@/components/SdpmMark"
import { CloudOnly } from "@/lib/mode"
import { useTranslations } from "next-intl"

Expand Down Expand Up @@ -120,8 +121,8 @@ export function AppShell({ children, deckName, onBack, onNavDecks }: AppShellPro
)}
<div className={`items-center gap-2.5 sm:flex-col sm:gap-1 ${deckName && onBack ? "hidden sm:flex" : "flex"}`}>
<a href="/decks/" className="flex items-center no-underline sm:mb-3" aria-label={t("decks")}>
<div className="w-6 h-6 sm:w-9 sm:h-9 rounded-md sm:rounded-xl flex items-center justify-center shadow-[var(--shadow-card)]" style={{ background: "var(--team-gradient)" }}>
<Layers className="h-3.5 w-3.5 sm:h-[18px] sm:w-[18px] text-background" />
<div className="w-6 h-6 sm:w-9 sm:h-9 flex items-center justify-center">
<SdpmMark className="h-[22px] w-[22px] sm:h-8 sm:w-8" />
</div>
</a>
<div className="flex items-center gap-0.5 ml-1 sm:ml-0 sm:flex-col sm:gap-1">
Expand Down
44 changes: 44 additions & 0 deletions web-ui/src/components/SdpmMark.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
/**
* SdpmMark — the SDPM mark without its app-icon tile (public/icon.svg is the tiled form).
*
* A 16:9 slide frame holds a green and an amber face; the violet block breaks out over
* the top-left corner, tilted, above its faint-violet slot. Colours come from the
* --mark-* tokens in globals.css, so the mark follows the dark/light theme.
*
* @param props.className - Size and layout classes for the <svg>
* @returns Decorative inline SVG (aria-hidden; label the surrounding link instead)
*/

import { useId } from "react"

/** The slot and the falling block share one shape: a rounded 7.7 × 7.45 face. */
const SLOT = { x: 3.9, y: 10.9, width: 7.7, height: 7.45, rx: 0.8 }
const BLOCK_TRANSFORM = "translate(-1 -4.6) rotate(-12 7.75 14.625)"

export function SdpmMark({ className }: { className?: string }) {
// useId may contain characters that are awkward inside url(#…); keep it to [A-Za-z0-9_-].
const maskId = `sdpm-mark-cut-${useId().replace(/[^A-Za-z0-9_-]/g, "")}`

return (
<svg viewBox="0 0 24 24" className={className} aria-hidden="true" focusable="false">
<defs>
{/* Cuts a 1.25 gap around the falling block out of the frame and the faces below it. */}
<mask id={maskId} maskUnits="userSpaceOnUse" x="-4" y="-4" width="32" height="32">
<rect x="-4" y="-4" width="32" height="32" fill="#fff" />
<rect {...SLOT} transform={BLOCK_TRANSFORM} fill="#000" stroke="#000" strokeWidth="2.5" strokeLinejoin="round" />
</mask>
</defs>
<g transform="translate(0 -1.3)">
<g mask={`url(#${maskId})`}>
<rect x="2" y="9" width="20" height="11.25" rx="2.3" fill="none" strokeWidth="1.9" style={{ stroke: "var(--mark-frame)" }} />
<rect {...SLOT} style={{ fill: "var(--mark-visual)", opacity: "var(--mark-slot-opacity)" }} />
<rect x="12.6" y="10.9" width="7.5" height="3.225" rx="0.8" style={{ fill: "var(--mark-content)" }} />
<rect x="12.6" y="15.125" width="7.5" height="3.225" rx="0.8" style={{ fill: "var(--mark-data)" }} />
</g>
<rect {...SLOT} transform={BLOCK_TRANSFORM} style={{ fill: "var(--mark-visual)" }} />
</g>
</svg>
)
}
Loading