Skip to content

refactor(v3): reorganize styles per client library - #455

Draft
wesleyboar wants to merge 61 commits into
epic/v3from
epic/v3--reorg
Draft

refactor(v3): reorganize styles per client library#455
wesleyboar wants to merge 61 commits into
epic/v3from
epic/v3--reorg

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Feb 18, 2025

Copy link
Copy Markdown
Member

Overview

Moved patterns into directories per client library — Bootstrap 3, Bootstrap 4, Bootstrap 5, Ant, TACC, etc. — and into child directories that mirror the client library's.

Status

  • quality of life
    • support absolute imports
      (to make refactoring easier)
    • use absolute imports
  • user experience
    • group "Bootstrap 3/4/5" into "Bootstrap"
    • group "Django CMS …" into "Django CMS"
      (consider adding alias "TACC/Core-CMS")
    • group "…Docs & M…down" into "Styles for Docs"
  • reorganization
    • Bootstrap
    • (many others)
    • TACC
      move ___.css to ___/___.css
      add context:subdir to ___/config.yml
      change label "(CMS|…) ___" to just "CMS|…"
      • components
      • elements
      • generics
      • objects
      • settings
      • tools
      • trumps

Changes

  • organized Bootstrap patterns like Bootstrap
  • moved patterns into _imports/___ dir for each library
  • moved ___.css to ___/___.css
  • added context:subdir to ___/config.yml
  • added missing demos
  • refactored cross-client patterns to share code
  • added mixins
  • documented docs/upgrade-client.md

Testing

  1. Open every pattern in the demo.
  2. Verify styles are as they were.
  3. Verify organization mirrors client:

UI

2025-07-30

epic v3 reorg 2025-07-30

* feat(djangocms-blog): pagination

* feat(pagination): WIP See `TODO` and `XXX`

- 🚧 bootstrap4 .pagination
    - ✅ default
    - 🐞 tacc (CMS/Portal)
        - UI bugs
        - consider combining
- ✅ djangocms-blog .pagination
- ❌ TACC .c-page
    - deleted out of ignorance
    - must be restored
    - reference provided

* fix(pagination): skin (color, border, outline, …)

- 💡 bootstrap4 .pagination
    - ✅ default
    - ✅ tacc (CMS/Portal)
        - 💡 consider combining
- ✅ djangocms-blog .pagination
- ❌ TACC .c-page
    - deleted out of ignorance
    - must be restored
    - reference provided

* refactor(pagination): link vs link--end

* docs(pagination): TODO @import x-link x-button

* refactor(pagination): __item & __link → vs __…-item & __…-link

* fix(pagination): skipped bootstrap link blue

* chore(pagination): re-order style and remove cruft

* fix(pagination): button (as link) looses width

* refactor(pagination): assume links are <a>

* enhance(pagination): edge cases

* fix(pagination): cms & portal match but are split

* fix(pagination): easy button links & square links

* fix(c-page): restore

* fix(c-page): restore it as it was, no c-pagination

* feat(pagination): tools/x-pagination demo

* fix(pagination): consistent border-radius

- components/c-page
- bootstrap4/pagination
- tools/x-pagination

* fix(pagination): consistent skip/etc links

* refactor(pag…): disabled/active links → modifiers

* enhance(pagination): disabled link for c-page

* fix(pag…): c-page should NOT use button class

* fix(pag…): list too tall, inconsistentent w/ x-…

* enhancepagination): consistent demos

* chore(pagination): mark all demos as ready

* fix(pagination): bootstrap discrepancy
* feat!: bootstrap4 WIP

* fix(v3): nav bootstrap css load bugs

* refactor(v3): Nav: Nav Tabs → Nav: Tabs

* feat(v3): bs4 grid reorg

* conf(v3): move subdir definition to subdir

* feat(v3): distinguish global styles demo/set…/base

* fix(v3): lost col demo styles

* docs(v3): grid belongs in layout

* fix(v3): grid css moved so update core-styles

* docs(v3): move bs4 nav to bs4 components

* docs(v3): figure belongs in content

* docs(v3): order bs4 categogories

* refactor(v3): move remaining bs4 patterns

* docs(v3): match bootstrap 4 pattern naming

* enhance(v3): hack to support tacc btns in modals

* docs(v3): extra note about TACC modal button hack

* refactor(v3): move all bs4 .postcss into child dir

* fix(v3): user expects nav-tabs.css not tabs.css
@wesleyboar wesleyboar changed the title Epic/v3 reorg refactor(v3): reorganize styles per client library Feb 18, 2025
wesleyboar and others added 23 commits July 30, 2025 10:12
TODO: Rename component to match Bootstrap 5 naming
I dunno. They work now. They are consistent. They are redundant. I am tired. I am done.
## Overview

Import path fix since latest merge of `epic/v3`.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
wesleyboar and others added 3 commits August 6, 2026 14:22
## Overview

Syncs `epic/v3--reorg` with `epic/v3`'s merge of `main`.

## Related

- updates #455
- depends on #680 (merge that PR into `epic/v3` first)

## Changes

- **merged** `epic/v3` (with `main` merged in) into `epic/v3--reorg`
- **placed** new `bootstrap4/content/typography-headings` and
`tools/x-headings*` files per the reorg's client-library directory
structure
- **combined** reorg's own `portal` headings variant with main's new
`cms-vs-bootstrap`/`docs-vs-bootstrap` variants
- **combined** reorg's footer Bootstrap4 side-effects caveat with main's
newer footer note
- **removed** `headings--cms.hbs`, superseded by the generic
`headings.hbs` view

## Testing

1. `npm run build` - no errors
2. `npm run lint` - `No dist files found in source. Ready to publish.`

## UI

…

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Garrett Edmonds <43251554+edmondsgarrett@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
epic/v3's content (incl. main, via #680/#682) was already applied to
epic/v3--reorg via #681's chain propagation, but #681 was squash-merged,
severing the ancestry link again (same issue as #680 on epic/v3).
Recording this merge with the 'ours' strategy (verified zero net
content change) so future `git merge epic/v3` (and transitively
`git merge main`) operations compute the correct merge-base.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new feature or replacement of existing feature major An incompatible API change refactor Re-writes/structures code but retains behavior

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

1 participant