@uvalib/web-components 1.1.0 → 1.1.1

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.1.1 — 2026-11-19
4
+
5
+ ### Features
6
+
7
+ - request components, features and fixes through GitHub issues
8
+
9
+ ### Other
10
+
11
+ - Merge branch 'feat/skill-issue-requests'
12
+ - Merge branch 'docs/skill-prompts'
13
+
3
14
  ## v1.1.0 — 2026-11-19
4
15
 
5
16
  ### Features
package/README.md CHANGED
@@ -7,7 +7,7 @@ Reusable web components for UVA Library sites, built with Lit and TypeScript:
7
7
  - **Cards:** `<uvalib-card>`, `<uvalib-card-grid>` and `<uvalib-pager>`.
8
8
  - **Records:** `<uvalib-metadata>` (a record's details, credit, rights and how to cite).
9
9
  - **Images:** `<uvalib-lightbox>` (an image viewer over plain links) and `<uvalib-photo-grid>` (justified rows of thumbnails).
10
- - **Search:** `<uvalib-filter>` and `<uvalib-date-range>`.
10
+ - **Search:** `<uvalib-filter>`, `<uvalib-date-range>` and `<uvalib-pagefind-search>` (with `pagefind.css`, the library theme for Pagefind static-site search).
11
11
  - **Library hours:** `<site-hours-section>`, `<library-weekly-hours>` and `<library-hours-setup>`.
12
12
  - **Library events:** `<events-section>`.
13
13
  - **Search results:** `<bento-box>` (library.virginia.edu/search), with its `<catalog-section>`, `<articles-section>`, `<libguides-section>` and `<website-section>`.
@@ -26,6 +26,50 @@ Then ask, for example:
26
26
 
27
27
  > Wrap this site's pages in the UVA Library `<site-page>` from the v1 CDN, with our own nav links in the header.
28
28
 
29
+ ### Example prompts
30
+
31
+ Name the skill so the agent loads it, say what to keep, and ask it to audit before editing and to check accessibility before finishing. These are starting points; add your site's specifics.
32
+
33
+ **Brand a new or existing site**
34
+
35
+ > Use the uvalib-web-components skill to apply UVA Library branding to this site with the v1 CDN. First audit, with no changes: list how the current header, footer, navigation, buttons, forms and colours map to the library components and classes, and show me the list. Then wrap every page in `<site-page site-name="Our site name">` with our own links as site links, link `base.css` in `<head>`, replace hand-built buttons and search forms with the library classes, and move our colours onto the `--uva-*` tokens. Keep every page and URL working. Verify with the skill's accessibility testing guide and commit on a new branch; don't push until I approve.
36
+
37
+ **Migrate from the old components**
38
+
39
+ > Use the uvalib-web-components skill to move this project off the old `/web-components/latest/` and `cdn-v…` URLs and `@uvalib/<package>` npm names to `@uvalib/web-components` v1. List every old reference first, then change them following the skill's migration guide, keeping the markup working. Run the site's tests and check each page in a browser.
40
+
41
+ **Switch one library.virginia.edu page**
42
+
43
+ > Use the uvalib-web-components skill's "Switching library.virginia.edu" table to update the script URLs on the /hours page to v1. Change only the URLs, keep the markup, and tell me what to check after it's live.
44
+
45
+ **Add one pattern**
46
+
47
+ > Use the uvalib-web-components skill to add breadcrumbs to every page under /collections/ (Home › Collections › the collection) with `<uvalib-breadcrumbs>`, placed where `<site-page>` puts them.
48
+
49
+ > Use the uvalib-web-components skill to turn our collections list into a grid of clickable `<uvalib-card>`s (title and item count), and add `<uvalib-pager>` previous/next links to the reading pages.
50
+
51
+ > Use the uvalib-web-components skill to show each record's details with `<uvalib-metadata>` (creator, date, subjects, downloads with file sizes, rights and how to cite), and open our IIIF page images in `<uvalib-lightbox>` instead of a new tab.
52
+
53
+ > Use the uvalib-web-components skill to theme our Pagefind search with `<uvalib-pagefind-search>` and `pagefind.css`, keeping our index shards and filters.
54
+
55
+ **Dark mode, analytics and search pages**
56
+
57
+ > Use the uvalib-web-components skill to turn on the library's opt-in dark mode (Light / Dark / System in the header) and make our own CSS follow the `--uva-color-*` role tokens. Check contrast in both schemes.
58
+
59
+ > Use the uvalib-web-components skill to add Matomo analytics with `<site-page matomo-id="42">`. This is a single-page app, so record a page view per route; tag our own Download and Share buttons with `data-uvalib-track`.
60
+
61
+ **Check and fix accessibility**
62
+
63
+ > Use the uvalib-web-components skill's accessibility testing guide to add a Playwright + axe test matched to Lighthouse and a Lighthouse CI config to this project, run them on the home, a list, a detail and the search page in light and dark at phone and desktop widths, and fix what they find. Report anything you couldn't test.
64
+
65
+ **Ask for something the library doesn't have**
66
+
67
+ > Our pages need an accordion and the library has none. Use the uvalib-web-components skill to check the repo's issues for an existing request, then draft a new-component issue for uvalib/reusable-web-library (what it's for, our public page URLs, the library.virginia.edu pattern to match, accessibility needs). Show me the draft before filing it, and build a small accessible stopgap that links the issue.
68
+
69
+ **Keep it current**
70
+
71
+ > Update the uvalib-web-components skill in this project to the latest release, then check whether anything we use changed and needs updating.
72
+
29
73
  - `npx` fetches the package on the fly, so this works in any repository, including sites that only use script tags (it needs Node, not an npm dependency).
30
74
  - Other agents or folders: `npx @uvalib/web-components install-skill --dir .agents/skills`. Add `--force` to update an existing copy.
31
75
  - Or copy `node_modules/@uvalib/web-components/skills/uvalib-web-components` into your skills folder. The skill is also on the CDN at `https://unpkg.internal.lib.virginia.edu/web-components/v1/skills/uvalib-web-components/SKILL.md`. More in [docs/usage.md](docs/usage.md#agent-skill).
@@ -61,6 +105,10 @@ Projects that commit `.claude/skills/` get each update as an ordinary reviewed c
61
105
 
62
106
  To do it by hand, read on.
63
107
 
108
+ ## Requests and bug reports
109
+
110
+ Ask for a new component, a feature or change in an existing one, or report a bug through [the repository's issues](https://github.com/uvalib/reusable-web-library/issues/new/choose). Each has a form: **New component**, **Feature or change request** and **Bug report**. The repository is public, so leave out passwords, tokens, internal-only hostnames and personal data. The agent skill knows the forms too: ask your agent to search the existing issues, draft one, and file it once you approve it (it uses the GitHub CLI, `gh`, or gives you the form's link).
111
+
64
112
  ## Playground
65
113
 
66
114
  Try every component and mode, edit the code, and share a link: <https://uvalib.github.io/reusable-web-library/>
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.1.1",
3
3
  "elements": {
4
4
  "site-page": "site-page.js",
5
5
  "site-header": "site-header.js",
@@ -630,3 +630,30 @@ Before finishing, load the page in a browser (or test) and confirm:
630
630
  ## 10. Keeping this skill current
631
631
 
632
632
  This skill is a copy. `installed.json` next to this file records the package version it came from. When the user asks about updating it, or the page loads a newer component version than that, check it with `npx @uvalib/web-components@latest install-skill --check --dir <skills-dir>` (`<skills-dir>` is the folder that holds this skill, usually `.claude/skills`); it prints the update command when a newer release exists.
633
+
634
+ ## 11. Requesting components, features and fixes
635
+
636
+ When the components can't do what the page needs, ask the library team through the GitHub issues of [uvalib/reusable-web-library](https://github.com/uvalib/reusable-web-library/issues) instead of building a permanent copy of the chrome or a look-alike component:
637
+
638
+ - **New component:** a pattern that several Library sites share and no component covers (check this skill's list and [reference/components.md](reference/components.md) first). Form: `new-component.yml`.
639
+ - **Feature or change:** an existing component needs an option, a behaviour or a fix in what it renders. Form: `feature-request.yml`.
640
+ - **Bug:** a component misbehaves, looks wrong, or fails an accessibility check. Form: `bug-report.yml`.
641
+
642
+ How to do it:
643
+
644
+ 1. **Search first**, including closed issues, so you add to an existing request rather than duplicating it:
645
+
646
+ ```bash
647
+ gh issue list --repo uvalib/reusable-web-library --state all --search "accordion in:title,body"
648
+ ```
649
+
650
+ 2. **Draft the issue and show it to the user before filing.** The repository is public: never include passwords, tokens, internal-only hostnames, patron or staff personal data, or private screenshots. Fill in the form's fields: what is needed, the public URLs of pages that need it, the existing library.virginia.edu or design-system pattern it should match, accessibility needs, the version in use (`installed.json`, the CDN `manifest.json` or package.json), and the workaround in place.
651
+ 3. **File it only after the user says yes.** With the GitHub CLI signed in:
652
+
653
+ ```bash
654
+ gh issue create --repo uvalib/reusable-web-library --label enhancement --title "[New component]: accordion" --body-file issue.md
655
+ ```
656
+
657
+ Use `--label bug` and a `[Bug]: ` title for bugs, `[Feature]: ` for changes. If `gh` isn't available or signed in, give the user the form's link instead, for example `https://github.com/uvalib/reusable-web-library/issues/new?template=new-component.yml`, with the drafted text to paste. Report the issue's URL.
658
+
659
+ 4. **Meanwhile:** build the smallest local workaround from the library's tokens (`--uva-*`), `base.css` classes and existing components, keep it accessible (section 9), and mark it in the code with a comment that links the issue, so it can be replaced when the component ships.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uvalib/web-components",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "UVA Library reusable web components",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -630,3 +630,30 @@ Before finishing, load the page in a browser (or test) and confirm:
630
630
  ## 10. Keeping this skill current
631
631
 
632
632
  This skill is a copy. `installed.json` next to this file records the package version it came from. When the user asks about updating it, or the page loads a newer component version than that, check it with `npx @uvalib/web-components@latest install-skill --check --dir <skills-dir>` (`<skills-dir>` is the folder that holds this skill, usually `.claude/skills`); it prints the update command when a newer release exists.
633
+
634
+ ## 11. Requesting components, features and fixes
635
+
636
+ When the components can't do what the page needs, ask the library team through the GitHub issues of [uvalib/reusable-web-library](https://github.com/uvalib/reusable-web-library/issues) instead of building a permanent copy of the chrome or a look-alike component:
637
+
638
+ - **New component:** a pattern that several Library sites share and no component covers (check this skill's list and [reference/components.md](reference/components.md) first). Form: `new-component.yml`.
639
+ - **Feature or change:** an existing component needs an option, a behaviour or a fix in what it renders. Form: `feature-request.yml`.
640
+ - **Bug:** a component misbehaves, looks wrong, or fails an accessibility check. Form: `bug-report.yml`.
641
+
642
+ How to do it:
643
+
644
+ 1. **Search first**, including closed issues, so you add to an existing request rather than duplicating it:
645
+
646
+ ```bash
647
+ gh issue list --repo uvalib/reusable-web-library --state all --search "accordion in:title,body"
648
+ ```
649
+
650
+ 2. **Draft the issue and show it to the user before filing.** The repository is public: never include passwords, tokens, internal-only hostnames, patron or staff personal data, or private screenshots. Fill in the form's fields: what is needed, the public URLs of pages that need it, the existing library.virginia.edu or design-system pattern it should match, accessibility needs, the version in use (`installed.json`, the CDN `manifest.json` or package.json), and the workaround in place.
651
+ 3. **File it only after the user says yes.** With the GitHub CLI signed in:
652
+
653
+ ```bash
654
+ gh issue create --repo uvalib/reusable-web-library --label enhancement --title "[New component]: accordion" --body-file issue.md
655
+ ```
656
+
657
+ Use `--label bug` and a `[Bug]: ` title for bugs, `[Feature]: ` for changes. If `gh` isn't available or signed in, give the user the form's link instead, for example `https://github.com/uvalib/reusable-web-library/issues/new?template=new-component.yml`, with the drafted text to paste. Report the issue's URL.
658
+
659
+ 4. **Meanwhile:** build the smallest local workaround from the library's tokens (`--uva-*`), `base.css` classes and existing components, keep it accessible (section 9), and mark it in the code with a comment that links the issue, so it can be replaced when the component ships.