Skip to content

feat(tup): add tup, migrate manually-synced snippets from tup-ui - #559

Merged
wesleyboar merged 5 commits into
mainfrom
ai/tup-ui-snippets-migration-674cd5
Jul 31, 2026
Merged

feat(tup): add tup, migrate manually-synced snippets from tup-ui#559
wesleyboar merged 5 commits into
mainfrom
ai/tup-ui-snippets-migration-674cd5

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Jul 31, 2026

Copy link
Copy Markdown
Member

Overview

Adds a new tup project for the main TACC site (tup-ui) and migrates its manually-synced djangocms-snippet copies here for version control.

Related

  • tup-ui's apps/tup-cms/src/taccsite_cms/templates/snippets/ folder

Changes

  • added tup/html/ with 11 snippet files copied as-is from tup-ui's main branch
  • updated project list in root README.md to include TACC

Testing

  1. Compare each new file's content against its git log history in tup-ui to confirm it matches the last "save" commit.

Notes

  • Not migrated (remain in tup-ui): css-js-staff-profile.html, redirect.html, news/open-external-post.html loaded directly via a snippet's "template" field; confirmed via {{html}} context-variable usage and an explicit doc comment for the first
  • Not migrated (not a snippet): a-legend-key-to-the-icons.html and css-js-staff-profile.md are reference/documentation files, not djangocms-snippet content.
  • Follow-up PR feat(tup): sync snippets to latest open tup-ui PRs #560 planned to bring these files current with open tup-ui PRs that update snippets.
  • tup-ui's copies are intentionally left in place for now; deleting them is planned as a separate future PR.

tup-ui's Django templates/snippets folder mixes two kinds of files:
manually-synced copies of djangocms-snippet content (versioned here
for reference only, per this repo's "Save Snippets" convention) and
files actually loaded live via a snippet's "template" field. Migrate
only the manually-synced snippets; the template-loaded ones stay in
tup-ui since Core-CMS-Custom does not serve them.
@wesleyboar wesleyboar changed the title feat(tup): add tup_assets, migrate manually-synced snippets from tup-ui feat(tup): add tup snippets from tup-ui Jul 31, 2026
Renamed per review feedback. Also removed embed-vislab-cal-content.html,
embed-vislab-cal.html, embed-vislab-form.html, and
iframe-styles-and-iframe-auto-height.html: my local tup-ui checkout had
tup-ui#568 (a still-open draft PR) checked out instead of main, so
those 4 files were pulled from that unmerged branch rather than
tup-ui's actual current state. They'll come back in via the planned
follow-up PR that syncs against open tup-ui PRs.
@wesleyboar wesleyboar changed the title feat(tup): add tup snippets from tup-ui feat(tup): add tup, migrate manually-synced snippets from tup-ui Jul 31, 2026
…l as manually synced

Both are manually maintained (editable directly in their CMS admin
snippet instance), not loaded via a "template" field as I'd assumed
from the pinned-CDN-loader pattern. Confirmed by direct feedback; that
pattern doesn't imply template loading on its own.
No other project uses a snippets subfolder, so drop the extra level.
@wesleyboar
wesleyboar merged commit 2a67caa into main Jul 31, 2026
@wesleyboar
wesleyboar deleted the ai/tup-ui-snippets-migration-674cd5 branch July 31, 2026 20:22
wesleyboar added a commit that referenced this pull request Jul 31, 2026
## Overview

Update `tup/html/` with every snippet change from a currently-open
tup-ui PR.

## Related

- requires #559
- migrates snippet changes from:
    - TACC/tup-ui#568
    - TACC/tup-ui#325
    - TACC/tup-ui#535
    - TACC/tup-ui#557
    - TACC/tup-ui#562
    - TACC/tup-ui#565
    - TACC/tup-ui#566

## Changes

- **added** `embed-vislab-*.html`
    <sup>latest versions from:</sup>
    - TACC/tup-ui#568
- **updated** `css-ad-hoc-styles.html`
    <sup>hand-composed from:</sup>
    - TACC/tup-ui#325
    - TACC/tup-ui#535
    - TACC/tup-ui#557
    - TACC/tup-ui#562
    - TACC/tup-ui#565
- **updated** `js-ad-hoc-scripts.html`
    <sup>hand-composed from:</sup>
    - TACC/tup-ui#535
    - TACC/tup-ui#566

## Testing

1. Compare `embed-vislab-*` files against the branch of
TACC/tup-ui#568 to confirm content matches.
2. For `css-ad-hoc-styles.html` and `js-ad-hoc-scripts.html`, compare
against each contributing PR's diff to confirm every intended change
made it in.
wesleyboar added a commit to TACC/tup-ui that referenced this pull request Aug 3, 2026
c-news.css, c-news--read.css, and c-news--list.css were general
Core-Styles gaps found during tup-ui development, not tup-specific
overrides, so they've moved to Core-CMS-Custom (TACC/Core-CMS-Custom#561)
where other projects can find and use them.

Loading moves to the ad-hoc CSS snippet (edited live in the CMS admin,
already migrated to TACC/Core-CMS-Custom#559/#560) instead of
assets_custom.html — no tup-ui code needs to load this CSS anymore.
wesleyboar added a commit that referenced this pull request Aug 3, 2026
## Overview

Migrates CSS/JS assets (that `tup/html/css-ad-hoc-styles.html` and
`js-ad-hoc-scripts.html` load) from [TACC/tup-ui] to here.

<details>

[TACC/tup-ui]: https://github.com/TACC/

The snippets files were already migrated (#559, #560); this closes the
loop so those snippets' `<link>`/`<script>` tags can point at this
repo's CDN pins instead of tup-ui's.

</details>

## Related

- adds to #563
- integrates changes from:
    - TACC/tup-ui#566
    - TACC/tup-ui#535
    - TACC/tup-ui#562

> [!IMPORTANT]
> **Follow-up:** Repoint `tup/html/css-ad-hoc-styles.html` and
`js-ad-hoc-scripts.html`'s CDN URLs at this repo (not done in this PR).

## Changes

- **added** `tup/css/ad-hoc/` (many files)
- **added** `tup/js/ad-hoc.js`
- **added** `tup/js/ad-hoc/manage-participants-field-required-attr.js`
- **added** `tup/css/ad-hoc/hide-blog-list-back-link.css` (from
TACC/tup-ui#562, open)
- **added** `tup/css/ad-hoc/adjust-logo.css` (from TACC/tup-ui#535,
open)
- **updated** `navbar-width-horz-scrollbar.css`

## Testing

1. Confirm each file's content matches TACC/tup-ui's current copy
exactly **except**:
    - `navbar-width-horz-scrollbar.css` matches TACC/tup-ui#535's branch
- `adjust-logo.css` matches TACC/tup-ui#535's branch (doesn't exist on
tup-ui `main`)
- `hide-blog-list-back-link.css` matches TACC/tup-ui#562's branch
(doesn't exist on tup-ui `main`)
- `ad-hoc.js`/`manage-participants-field-required-attr.js` matches the
commit already pinned in the live snippet, TACC/tup-ui@0c0beee5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant