Skip to content

refactor(cms): map Bootstrap warning to admonition warning class - #1247

Merged
wesleyboar merged 3 commits into
mainfrom
fix/admonition-caution-warning-swap
Oct 7, 2026
Merged

wesleyboar merged 3 commits into
mainfrom
fix/admonition-caution-warning-swap

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Overview

Reverts temporary mapping because Core-Styles fixed mapping.

Related

requires:

Changes

  • fixed extend.py alert context mapping for warning
  • fixed admonition.cortal-icons.css yellow alert icon target class
  • updated package-lock.json for @tacc/core-styles 2.59.0

Testing & UI

  1. Have a running CMS instance with this branch.
  2. Rebuild CSS.
  3. Open http://127.0.0.1:8007/test/test-alert-style/.
  4. Compare Admonition warning appearance to before.
  5. Verify no change.

Important

No change expected.

Before After
Bootstrap vs admonition warning row (before) Bootstrap vs admonition warning row (after)

Revert workaround that targeted caution after Core-Styles fixes caution vs warning styling.

Co-authored-by: Cursor <cursoragent@cursor.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@wesleyboar wesleyboar changed the title fix(cms): map Bootstrap warning to admonition warning class refactor(cms): map Bootstrap warning to admonition warning class Oct 7, 2026
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Oct 7, 2026
## Overview

Swaps admonition `caution` and `warning` styling and demo use-case copy
so severity matches typical interpretation.

> [!CAUTION]
> **Must update all clients, because this is a breaking change** and I
don't want to bump major version.

## Related

required by:
- TACC/mkdocs-tacc#43
- TACC/Core-CMS#1247
- TACC/TACC-Docs#179
- DesignSafe-CI/DS-User-Guide#293

## Changes

- **fixed** `admonition` caution vs warning message-type mapping and
icon
- **updated** admonition demo `config.yml` use cases
- **updated** `dist` build output

## Testing

1. `make start` (or ensure Fractality is on port 3000 with this branch
checked out).
2. Open http://127.0.0.1:3000/components/detail/admonition
3. Confirm **Caution** is red (error) and **Warning** is yellow
(warning).

## UI

| Before | After |
| - | - |
| <img width="760" alt="Admonition caution and warning (before)"
src="https://github.com/user-attachments/assets/16e4cc0f-29df-4cb1-b99f-019deb39c14e"
/> | <img width="760" alt="Admonition caution and warning (after)"
src="https://github.com/user-attachments/assets/775f0a19-e328-4cf8-9def-d824efa3eb29"
/> |

Co-authored-by: Cursor <cursoragent@cursor.com>
Align with minor release after admonition fix; refresh package-lock after v2.59.0 publishes.

Co-authored-by: Cursor <cursoragent@cursor.com>
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Oct 7, 2026
## Overview

Forces release-please to propose **2.59.0** (minor) instead of **3.0.0**
after `fix(components)!` on #758.

> [!IMPORTANT]
> **Why?** [v3 is a whole
project.](https://github.com/orgs/TACC/projects/10) I will update
clients to not break by immediately integrating this breaking change for
them.

## Related

- blocks merge of #759 until
this is on `main`
- required by TACC/mkdocs-tacc#43
- required by TACC/Core-CMS#1247

## Changes

- **added** empty commit with `Release-As: 2.59.0` footer (per
PUBLISHING.md)

## Testing

1. Merge this PR to `main`.
2. Confirm release-please updates
#759 to `chore(main): release
2.59.0` (not 3.0.0).

## Notes


Made with [Cursor](https://cursor.com)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@wesleyboar
wesleyboar merged commit 8adaf3a into main Oct 7, 2026
@wesleyboar
wesleyboar deleted the fix/admonition-caution-warning-swap branch October 7, 2026 20:01
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