-
Notifications
You must be signed in to change notification settings - Fork 29
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
Lead generation modal for Spicule #25
Conversation
Starting demo at: https://jaas-ai-canonical-websites-pr-25.run.demo.haus/ |
Ok, we can proceed on with this. We discussed the issue with legal, and we can have a combined message with Canonical and Spicule with a thick box agreement with both private policies. Tengu will stay as it is currently (no form), as the status of the partnership is unclear. Spicule can go on. Sending the copy for the check box shortly later. |
@barrymcgee, here's copy: |
748a006
to
f0196fc
Compare
@barrymcgee can you add labels if you want reviews please |
673650e
to
dcadaf2
Compare
@barrymcgee does this need a design review? |
Starting demo at: https://jaas-ai-canonical-websites-pr-25.run.demo.haus/ |
@spencerbygraves Yes please: Spicule experts page: https://jaas-ai-canonical-websites-pr-25.run.demo.haus/experts/spicule Spicule supported bundle: https://jaas-ai-canonical-websites-pr-25.run.demo.haus/u/spiculecharms/anssr-data-engine |
19f37ba
to
273ba4b
Compare
@barrymcgee it appears to work on the experts page but if I start to scroll this happens: When viewing the bundle I have to scroll to see the button, so when I click this happens: Also, I think the dialog being as wide as the page is unnecessary, something like half the width would be fine. Thanks. |
@barrymcgee I'm on holiday tomorrow and Friday, so please ask @clagom to take a look if another review is needed |
Hi @barrymcgee, @spencerbygraves and I had a look at the demo, thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@barrymcgee it appears to work on the experts page but if I start to scroll this happens:
When viewing the bundle I have to scroll to see the button, so when I click this happens:
Also, could you update a couple of things please:
- I think the dialog being as wide as the page is unnecessary, in the design it's much narrower.
- Can you adjust the spacing above and below the hr please:
- Can we group the two telephone numbers under the one icon please, see the design
- And the privacy message should be 14px please
Thanks
273ba4b
to
9473a99
Compare
bc0d42a
to
1411498
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @barrymcgee looking good.
Just two small things then both @clagom and I are happy.
- Can the 14px privacy text have a line-height of 1.25rem please, as in Vanilla
- Can you move the send button to the right please
Thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@barrymcgee thanks for updating. Could you just add 'rem' to the line-height, 1.25; please, it's not displaying correctly without it.
Also I missed the padding left on the contact list, could you remove it please so everything aligns on the left:
Thanks
@spencerbygraves Demo service playing up - here's a screenshot instead |
@barrymcgee looks good thanks for updating 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
.circleci/config.yml
Outdated
@@ -17,7 +16,7 @@ jobs: | |||
command: pip3 install flake8 | |||
- run: | |||
name: Lint webapp with Flake8 | |||
command: flake8 webapp | |||
command: flake8 --max-line-length 95 webapp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be overridden by #79
@@ -187,5 +150,9 @@ <h4> | |||
</div> | |||
</div> | |||
</div> | |||
{% include "shared/_spicule_lead-gen-form.html" %} | |||
<script> | |||
window.app.modal('leadGenerationModal'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the lead gen form is the one that actually includes the JS onto the page I feel like the instantiation of that modal should also be in that template. Doing it this way leads to the possibility of one or the other being removed accidentally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then you hardwire the id of the form within the partial? You previously asked that I refactor this partial so there could be more than one modal per page if needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case the partial is the lead generation form. And you're instantiating it as a lead generation form. If you were to create another modal you'd likely have another partial with a different name.
templates/store/bundle-details.html
Outdated
{% endif %} | ||
|
||
<script> | ||
window.app.modal('leadGenerationModal'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above comment about this initialization.
6594f73
to
a4c9726
Compare
a4c9726
to
1103eb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @barrymcgee just a small change then it's good to land.
static/js/app/modal.js
Outdated
@param { String } modalId | ||
The DOM id of the element you'd like to turn into a modal. | ||
*/ | ||
window.app.modal = function(modalId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that this is being included as a template it should check to see if the variable is available before assigning into it. In this case it's not really a problem but just a good practice
if (!window.app.model) {
...
}
Done
Added lead generation form for Spicule
QA
./run serve
Notes