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

Refactor document-list macro for compatibility Jinja2 templates #3179

Conversation

precious-onyenaucheya-ons
Copy link
Contributor

@precious-onyenaucheya-ons precious-onyenaucheya-ons commented May 7, 2024

What is the context of this PR?

Fixes #3163
Removed .push method which was used for adding file metadata information to a list. This is done to make document list component work with Jinja templates.

How to review this PR

Test the changes in Design system
Pull the latest PR (https://github.com/ONSdigital/design-system-python-flask-demo/pull/3) which is in review. Follow the updated readme.
Update the macro and test it in Flask.

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@precious-onyenaucheya-ons precious-onyenaucheya-ons added the Bug Something isn't working label May 7, 2024
@precious-onyenaucheya-ons precious-onyenaucheya-ons requested a review from a team May 7, 2024 15:28
Copy link

netlify bot commented May 7, 2024

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit d4a6a77
🔍 Latest deploy log https://app.netlify.com/sites/ons-design-system-preview/deploys/663e087f3f7bbe0008796b3d
😎 Deploy Preview https://deploy-preview-3179--ons-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@rmccar rmccar left a comment

Choose a reason for hiding this comment

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

Other than this, looks good

@rmccar rmccar changed the title update document list macro to allow compatibility with Jinja Update document list macro to allow compatibility with Jinja May 9, 2024
@rmccar rmccar changed the title Update document list macro to allow compatibility with Jinja Refactor document-list macro for compatibility Jinja2 templates May 9, 2024
Co-authored-by: rmccar <42928680+rmccar@users.noreply.github.com>
@precious-onyenaucheya-ons precious-onyenaucheya-ons merged commit b3f3014 into main May 13, 2024
9 checks passed
@precious-onyenaucheya-ons precious-onyenaucheya-ons deleted the feature/refactor-document-list-to-allow-compatibility-with-jinja branch May 13, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor document-list macros to suit Jinja2 templates
5 participants