Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FP-1318: Create Section Pattern via Bootstrap Container Plugin #431

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Jan 18, 2022

To Do

Overview

Quickly create existing TACC Section pattern via already-installed1 Django Bootstrap4 Container plugin.

CMS Admin/Designer has approved (via private review), but implementation needs dev review.

Tickets

Changes

To our default settings:

  • Add DJANGOCMS_BOOTSTRAP4_GRID_CONTAINERS (docs).
    • to allow user to quickly create light Section or dark Section (as Container or not)
  • (Optional) Load gettext_lazy.
    • to support translation of choice group labels and values2

To our default requirements:

Screenshots

FP-1318.Section.Pattern.via.Container.Plugin.mov

Testing

local: instructions
remote: https://dev.cep.tacc.utexas.edu/ (build, deploy)

  1. On any page, create a Container plugin.
  2. Choose some of the eight CONTAINER TYPEs.
  3. Confirm an element is added each time with the appropriate class attribute.*

* To see what the section should look like, you may compare to manual pattern library.

Notes

Related PRs

Footnotes

  1. The install is given a new requirement (in requirements.txt) to fix a minor UI bug.

  2. I.e. <optgroup> labels and <option> values in selection dropdown when DJANGOCMS_BOOTSTRAP4_GRID_CONTAINERS has nested tuples. 2

@wesleyboar wesleyboar marked this pull request as draft January 18, 2022 18:10
@wesleyboar wesleyboar changed the title FP-1318: Create Section Pattern via BS4 Container FP-1318: Create Section Pattern via Bootstrap Container Plugin Jan 18, 2022
@wesleyboar wesleyboar mentioned this pull request Jan 18, 2022
4 tasks
@rstijerina
Copy link
Member

Nice work on the PR to django-cms! Do we have an idea of when it will be merged?

@wesleyboar
Copy link
Member Author

wesleyboar commented Feb 21, 2022

Thank you.

We do not have an idea. I'll update here if I learn.

I've asked for the status on that PR and been watching the DjangoCMS Slack channel. Earlier this month, the team (and that PR's approver) had a heavy PR load so I haven't poked anyone. (But I have watched how others poke, so I can be ready to.)

@wesleyboar
Copy link
Member Author

wesleyboar commented Mar 11, 2022

@rstijerina I still have not received a reply to my inquiry of when DjangoCMS Bootstrap4's PR would get merged.

So, I've pinged 'em in their Slack channel, just now.

Copy link
Collaborator

@taoteg taoteg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described. Great job!

Screen Shot 2022-03-14 at 12 15 04 PM

@wesleyboar
Copy link
Member Author

wesleyboar commented Mar 14, 2022

Thanks, @taoteg!

I'm holding off on merging this to see if Django CMS will merge my fix to their code this spring, so we need not point to and maintain my fork.

@wesleyboar
Copy link
Member Author

wesleyboar commented Apr 19, 2022

Progress on the Django CMS PR: The approving reviewer pinged for others to double-check (Slack).

@wesleyboar
Copy link
Member Author

wesleyboar commented May 26, 2022

@wesleyboar wesleyboar added the blocked Unable to continue work label May 26, 2022
@wesleyboar
Copy link
Member Author

@wesleyboar
Copy link
Member Author

wesleyboar commented Jun 4, 2022

2nd reviewer claims he has comments for me. But I can't find them. While manually testing in isolation, I found two issues and noted them in the PR description.

I don't have the bandwidth to tend to it anymore right now.

@wesleyboar wesleyboar marked this pull request as draft June 4, 2022 18:38
@wesleyboar
Copy link
Member Author

wesleyboar commented Jun 6, 2022

Progress. It's on me again. Gotta add test cases for code coverage on plugin PR. Done enough today, though.

@wesleyboar
Copy link
Member Author

The PR from my fork is merged upstream! I updated this PR to install at the latest commit of the plugin's main branch, which is 13 commits (over two years) ahead of 2.0.0. I'll wait a month to see if they cut a new release. if not, I'll retest and ping for review.

@wesleyboar wesleyboar added paused Started but not actively in progress and removed blocked Unable to continue work labels Sep 1, 2022
@wesleyboar
Copy link
Member Author

All right, I want new-to-foss bragging rights for having several commits in django-cms/djangocms-bootstrap4 v3.0.0.

I'll update this PR to v3.0.0 and test when I get a chance.

pyproject.toml Outdated
Comment on lines 48 to 51
djangocms-bootstrap4 = {
git = "https://github.com/django-cms/djangocms-bootstrap4.git",
rev = "7543e87" # 13 commits (over two years) since 2.0.0
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
djangocms-bootstrap4 = {
git = "https://github.com/django-cms/djangocms-bootstrap4.git",
rev = "7543e87" # 13 commits (over two years) since 2.0.0
}
djangocms-bootstrap4 = "3.0.0"

pyproject.toml Outdated Show resolved Hide resolved
Though it was a good idea to update this, I don't want this branch to break anything it needn't touch. So, do not update it now.
@wesleyboar
Copy link
Member Author

Important
Still useful. Simpler diff. But bug since using djangocms-bootstrap4 v3.0.0 + main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alternative Alternative solution(s) exist(s) paused Started but not actively in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants