• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 26521817412

27 May 2026 03:42PM UTC coverage: 20.643% (+0.06%) from 20.586%
26521817412

Pull #472

github

web-flow
Merge 6aa25212e into 34154ab6b
Pull Request #472: Show all templates on Publish page as a single sortable table

1007 of 6186 branches covered (16.28%)

Branch coverage included in aggregate %.

2604 of 11307 relevant lines covered (23.03%)

3.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/nanodash/component/TemplateList.java
1
package com.knowledgepixels.nanodash.component;
2

3
import org.apache.wicket.markup.html.panel.Panel;
4
import org.nanopub.extra.services.QueryRef;
5

6
import com.knowledgepixels.nanodash.View;
7
import com.knowledgepixels.nanodash.ViewDisplay;
8

9
/**
10
 * The template chooser shown on the Publish page: the highlighted "popular" and
11
 * "get started" views, followed by a single filterable list of all templates.
12
 */
13
public class TemplateList extends Panel {
14

15
    /**
16
     * Constructs the template list.
17
     *
18
     * @param id the wicket id of this component
19
     */
20
    public TemplateList(String id) {
21
        super(id);
×
22
        setOutputMarkupId(true);
×
23

24
        View popularTemplatesView = View.get("https://w3id.org/np/RAYMZEdmvjIS5QGFASa8L5hygapUlvK3feZBpG6quMYqc/popular-templates");
×
25
        QueryRef ptQueryRef = new QueryRef(popularTemplatesView.getQuery().getQueryId());
×
26
        add(QueryResultItemListBuilder.create("popular-templates", ptQueryRef, new ViewDisplay(popularTemplatesView).withDisplayWidth(6)).build());
×
27

28
        View getStartedView = View.get("https://w3id.org/np/RAeFTjDGTQ-bdulJy4tUlWzRlK8EucXFCxqLrb7Qj35SM/suggested-templates-get-started");
×
29
        QueryRef gsQueryRef = new QueryRef(getStartedView.getQuery().getQueryId());
×
30
        add(QueryResultListBuilder.create("getstarted-templates", gsQueryRef, new ViewDisplay(getStartedView).withDisplayWidth(6)).build());
×
31

32
        View allTemplatesView = View.get("https://w3id.org/np/RA33Eah2-MF_vAZfMf9BCSKrHJRHxLPm7DNxJ14RPxdN8/all-templates-view");
×
33
        QueryRef atQueryRef = new QueryRef(allTemplatesView.getQuery().getQueryId());
×
34
        add(QueryResultTableBuilder.create("all-templates", atQueryRef, new ViewDisplay(allTemplatesView)).build());
×
35
    }
×
36

37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc