@mccaskie-labs/workbench-directory 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cli.js +0 -0
- package/dist/styles.js +10 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @mccaskie-labs/workbench-directory
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Every tool follows the project's look (docs/theming.md step 2, Robert, 24 November 2026). Each tool's colour, font and corner variables now default to the shared theme tokens with a Clean, light fallback (`--wb-booking-accent: var(--wb-accent, #2563eb)`), and tool colours with no token of their own (a recessed panel, a status mark, a tinted pill) are worked out from the tokens with `color-mix()`. So a page drawn with these tools takes the look in the project's workbench.css: light (Clean) by default, or whatever brand.json and project.css say. Breaking for a project page that relied on the old dark defaults: give brand.json the look you want, or set the tokens in project.css. Variable and class names are unchanged, so existing project.css overrides still win. workbench-ui: `styleProblems` refuses a tool's text, muted, surface, line, background, accent, focus, danger, success, warning, font or radius variable whose default doesn't read its token (email, PDF and image follow in step 3); the `wb-ui` class no longer forces dark, and Workbench's own pages (`STYLE`, `UI_CSS`) keep their dark values; `shell` with `stylesheets` (a project page) no longer says dark in its meta tag.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @mccaskie-labs/workbench-forms@0.11.0
|
|
13
|
+
|
|
3
14
|
## 0.1.0
|
|
4
15
|
|
|
5
16
|
- First version (`docs/capabilities/29-directory.md`): `createDirectory` over the app's own database with `directoryMigration`. Business, member or job listings made from a workbench-forms form (`npx workbench-directory generate` copies each kind's fields from `workbench/forms/<form>.json`), approved by the owner before they show, with later edits waiting for approval while the page keeps the approved words. Postgres full-text search (word-start matching, English and Tagalog alike) with category, area, tick and choice filters, featured first; members-only kinds for signed-in viewers. Free, paid once or paid monthly or yearly plans, approved before paying: `charge()` gives the invoice line for the payments tool and `paid()` extends a listing once per payment id at the plan's price, featuring it when the plan does. `tick()` for reminders before and after a listing ends, `cleanup()` after `retention_months`; `preview()` for a share card with no personal detail. Service role only, one lock per lister for the listing limit. The search box, results, listing page, plan choice, "My listings" and refusals in `./ui` (`wb-directory-*`, `DIRECTORY_STYLES`, words in English, Tagalog and Taglish, money to 2 decimal places), and `npx workbench-directory generate|migration`.
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/styles.js
CHANGED
|
@@ -16,16 +16,16 @@ export const DIRECTORY_STYLES = {
|
|
|
16
16
|
title: "Directory",
|
|
17
17
|
prefix: "wb-directory-",
|
|
18
18
|
variables: [
|
|
19
|
-
{ name: "--wb-directory-text", value: "#
|
|
20
|
-
{ name: "--wb-directory-muted", value: "#
|
|
21
|
-
{ name: "--wb-directory-surface", value: "#
|
|
22
|
-
{ name: "--wb-directory-line", value: "#
|
|
23
|
-
{ name: "--wb-directory-accent", value: "#
|
|
24
|
-
{ name: "--wb-directory-accent-text", value: "#ffffff", about: "Text on the accent: the search button" },
|
|
25
|
-
{ name: "--wb-directory-featured", value: "#
|
|
26
|
-
{ name: "--wb-directory-good", value: "#
|
|
27
|
-
{ name: "--wb-directory-bad", value: "#
|
|
28
|
-
{ name: "--wb-directory-radius", value: "8px", about: "Corner rounding" },
|
|
19
|
+
{ name: "--wb-directory-text", value: "var(--wb-text, #1f2937)", about: "Text: names, summaries, facts" },
|
|
20
|
+
{ name: "--wb-directory-muted", value: "var(--wb-muted, #5b6472)", about: "Quieter text: category and area, counts, states" },
|
|
21
|
+
{ name: "--wb-directory-surface", value: "var(--wb-surface, #f7f8f8)", about: "Background of listings, the search box and notices" },
|
|
22
|
+
{ name: "--wb-directory-line", value: "var(--wb-line, #d7d8db)", about: "Borders" },
|
|
23
|
+
{ name: "--wb-directory-accent", value: "var(--wb-accent, #2563eb)", about: "Links, the search button and a featured listing's edge" },
|
|
24
|
+
{ name: "--wb-directory-accent-text", value: "var(--wb-on-accent, #ffffff)", about: "Text on the accent: the search button" },
|
|
25
|
+
{ name: "--wb-directory-featured", value: "var(--wb-warning, #a15c07)", about: "The \"Featured\" badge and a featured listing's edge" },
|
|
26
|
+
{ name: "--wb-directory-good", value: "var(--wb-success, #15803d)", about: "The edge of a live listing in \"My listings\"" },
|
|
27
|
+
{ name: "--wb-directory-bad", value: "var(--wb-danger, #b42318)", about: "The edge of a refusal, and of a listing that needs something" },
|
|
28
|
+
{ name: "--wb-directory-radius", value: "var(--wb-radius, 8px)", about: "Corner rounding" },
|
|
29
29
|
],
|
|
30
30
|
classes: [
|
|
31
31
|
{ name: "wb-directory-search", element: "form", about: "The search box", css: `display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem;margin:0 0 1rem;padding:.75rem 1rem;${box}` },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mccaskie-labs/workbench-directory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A directory for Workbench apps: business, member or job listings made from a forms form, approved by the owner, searched with Postgres full-text and filters, and free, paid once or paid monthly, with a featured tier, reminders before a listing ends and a clean-up.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"prepack": "node scripts/build.mjs"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mccaskie-labs/workbench-forms": "^0.
|
|
50
|
+
"@mccaskie-labs/workbench-forms": "^0.11.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "24.19.2",
|