Don't hide projects which didn't complete checklist

The UX here is pretty bad and at least a third of users are unaware that
they need to complete the checklist to publish their project.
This commit is contained in:
Drew DeVault 2020-11-15 14:19:35 -05:00
parent 502afdd0e1
commit 2220ddf633
2 changed files with 2 additions and 20 deletions

View File

@ -41,9 +41,7 @@ def getting_started():
@public.route("/projects")
def project_index():
projects = (Project.query
.filter(Project.visibility == Visibility.public)
.filter(Project.checklist_complete))
projects = Project.query.filter(Project.visibility == Visibility.public)
search = request.args.get("search")
search_error = None

View File

@ -99,17 +99,10 @@
{% if ncomplete == 3 %}
<div class="alert alert-info">
<p>
{% if project.visibility.value == "public" %}
<button class="btn btn-primary pull-right" type="submit">
Publish project
All done!
<span style="position: relative; top: -1px">{{icon('caret-right')}}</span>
</button>
{% else %}
<button class="btn btn-primary pull-right" type="submit">
<span style="position: relative; top: -1px">{{icon('check')}}</span>
Done
</button>
{% endif %}
You're all set! If you want to set up more things for your project,
click "more +" on the top right.
</p>
@ -118,15 +111,6 @@
</div>
</form>
</div>
{% else %}
<div class="row">
<div class="col-md-12">
<div class="alert alert-info">
This is a new project, and the author hasn't finished setting it up
yet. Come back later?
</div>
</div>
</div>
{% endif %}
{% endif %}
<div class="row">