Library Admin Guide
The Library Admin Guide describes how to manage the public PPPTools library. This document is intended for administrators with access to the admin panel.
Administrators only
The admin panel is only accessible with a valid API key. Unauthorized access is not possible.
Admin Panel
The admin panel is available at:
https://ppptools.library.happy-pc.ch/admin
Access requires an Admin API key, which is entered at login.
Reviewing Drafts (Submissions)
When users submit snippets via 💾 Save → Upload as Draft, they appear in the admin panel under the Drafts tab.
Draft List
| Column | Description |
|---|---|
| Name | Name of the submitted snippet |
| Category | Category specified by the submitter |
| Date | Submission date |
| Status | Pending / Approved / Rejected |
Reviewing a Draft
- Select a draft from the list
- Check the preview image and metadata
- View the code — the code scanner already checks for blocked patterns during upload
- Make a decision: Approve or Reject
Approving a Draft
- Select draft → click Approve
- Optionally: correct metadata (name, category, tags, description)
- Confirm → snippet appears immediately in the public gallery
What happens on approval?
- Status changes from
drafttopublished - The catalog cache is invalidated
- The snippet is immediately visible to all PPPTools users in online mode
Rejecting a Draft
- Select draft → click Reject
- Optionally: enter a reason for the rejection
- The submitter receives no automatic notification (contact them manually)
Editing Items
Already published items can be edited in the admin panel:
| Field | Editable |
|---|---|
| Name | ✅ |
| Description | ✅ |
| Category | ✅ |
| Tags | ✅ |
| Tier (free / premium) | ✅ |
| Status (published / hidden) | ✅ |
| Code | ❌ (submit a new snippet) |
| Preview image | ❌ (submit a new snippet) |
Setting Item Status
| Status | Meaning |
|---|---|
published |
Publicly visible in the gallery |
draft |
Submitted, not yet approved |
hidden |
Disabled, not visible in the gallery |
Setting the Tier
| Tier | Description |
|---|---|
free |
Free of charge, no restrictions |
premium |
(Phase 2) Reserved for premium content |
In the current phase (Phase 1), all items are free. Premium items will be introduced in Phase 2.
Invalidating the Cache
When approving a draft, the cache is invalidated automatically. To do it manually:
POST https://ppptools.library.happy-pc.ch/api/v1/admin/invalidate-cache
Header: X-Admin-Key: <API-KEY>
Or in the admin panel: click Clear Cache.
Library Structure on the Server
All items are stored on the Synology NAS:
/volume3/docker/ppptools_library/library/
├── snippets/{guid}/
│ ├── snippet.xml — Metadata
│ ├── code.cs — Roslyn script
│ └── preview.png — Preview image
├── slides/{guid}/
│ ├── slide.xml
│ ├── slide.pptx
│ └── preview.png
└── storylines/{guid}/
├── storyline.xml
├── preview.png
└── slides/{guid}/...
Related pages
- Publish Flow — How users submit snippets
- Online Library — User perspective
- Security — Advanced Snippet Editor — Code scanner and trust dialog