mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-04 18:32:33 -05:00
Show a tour when users first create a service
This commit adds a 3 screen tour, similar to those used on GOV.UK Verify and Passports. We guerilla tested this on Friday, and it really helped users to build a mental model of how Notify works, so that when they’re playing around with it they have a greater sense of what they’re aiming to do. This makes concepts like templates and placeholders click more quickly. https://www.pivotaltracker.com/story/show/116710119
This commit is contained in:
@@ -23,5 +23,6 @@ from app.main.views import (
|
||||
api_keys,
|
||||
manage_users,
|
||||
invites,
|
||||
all_services
|
||||
all_services,
|
||||
tour
|
||||
)
|
||||
|
||||
@@ -44,7 +44,7 @@ def add_service():
|
||||
user_id=session['user_id'],
|
||||
email_from=email_from)
|
||||
|
||||
return redirect(url_for('main.service_dashboard', service_id=service_id))
|
||||
return redirect(url_for('main.tour', service_id=service_id, page=1))
|
||||
else:
|
||||
return render_template(
|
||||
'views/add-service.html',
|
||||
|
||||
15
app/main/views/tour.py
Normal file
15
app/main/views/tour.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from flask import render_template
|
||||
from flask_login import login_required
|
||||
|
||||
from app.main import main
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/tour/<int:page>")
|
||||
@login_required
|
||||
def tour(service_id, page):
|
||||
return render_template(
|
||||
'views/tour/{}.html'.format(page),
|
||||
service_id=service_id, # TODO: fix when Nick’s PR is merged
|
||||
current_page=page,
|
||||
next_page=(page + 1)
|
||||
)
|
||||
Reference in New Issue
Block a user