question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Investigate making macros work better with the prototype kit

See original GitHub issue

From support, a checkbox item could look like this:

{ html: "Pension annex not uploaded",
value: "Pension annex not uploaded",
checked: (checked('reject','Pension annex not uploaded') == 'checked') },

In the kit we could make this much simpler.

  1. If a value is not given, we could make it the same as the text.
  2. We can manage checked automatically, by looking at the name and value and checking it against the stored data.

Leading to:

{ text: "Pension annex not uploaded"},

This would be relevant to other macros too.

I wonder if we can have macros in the prototype kit that try to do this extra work first, then call the Frontend macros. That way we keep in sync with Frontend macros.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
NickColleycommented, Jul 12, 2018

I did a small experiment how downstream macros can wrap upstream components, which might help this: https://glitch.com/edit/#!/downstream-nunjucks-macro-example

Since we have control over the kit we could add options merging custom functions to make it more robust.

0reactions
ruthhammondcommented, Dec 9, 2022

@joelanman to look for related ticket raised by Ollie

Read more comments on GitHub >

github_iconTop Results From Across the Web

We've updated the prototype kit - Design in government
UK prototype kit is the tool we use for rapidly creating HTML prototypes for GOV.UK services. Today we released version 2.0.0 of the...
Read more >
Tecplot 360 Scripting Guide - KIT
A Tecplot 360 macro is a set of instructions, called macro commands, ... These guidelines will allow you to create macros that will...
Read more >
Design Thinking Tools: how to use them to solve complex ...
We've separeted 30 Design Thinking tools to support your innovation process. Read our article and start enjoying their benefits right now!
Read more >
Analysis of the Electric Vehicle Industry
Greater adoption of PEVs will create rising demand for existing jobs and produce opportunities for new types of jobs as well. Among PEV...
Read more >
Prototype Threading Designs - Get Started with Intel® Advisor
application and choose the best candidates for parallelization with threads. ... If you work in the Microsoft Visual Studio IDE, you do not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found