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

knowledgepixels / nanodash / 27824181946

19 Jun 2026 11:54AM UTC coverage: 26.592% (-0.4%) from 27.004%
27824181946

push

github

web-flow
Merge pull request #484 from knowledgepixels/feat/space-ref-disambiguation

Space-ref disambiguation: conflict notice, claimants overview, ref-pinned pages

1552 of 6857 branches covered (22.63%)

Branch coverage included in aggregate %.

3418 of 11833 relevant lines covered (28.89%)

4.26 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/AboutResourcePanel.java
1
package com.knowledgepixels.nanodash.component;
2

3
import com.knowledgepixels.nanodash.View;
4
import com.knowledgepixels.nanodash.ViewDisplay;
5
import com.knowledgepixels.nanodash.domain.MaintainedResource;
6
import org.apache.wicket.markup.html.panel.Panel;
7
import org.nanopub.extra.services.QueryRef;
8

9
/**
10
 * The "About" tab body for a maintained resource: its assigned presets and the
11
 * listing of its configured view displays (issue #302). Resource-level
12
 * members/roles are intentionally not shown (roles live on the parent space).
13
 */
14
public class AboutResourcePanel extends Panel {
15

16
    /**
17
     * The "ℹ️ Info" view for a maintained resource: key-value facts (type,
18
     * namespace, maintaining space). Also shown on the Content tab; surfaced here
19
     * at the top of the About tab.
20
     */
21
    public static final String MAINTAINED_RESOURCE_INFO_VIEW = "https://w3id.org/np/RAqKkqvOFWWCDJ4LOa6rrgQJMFbDnoaG56zkIBN5AMBZw/maintained-resource-info-view-kind";
22

23
    /**
24
     * View listing a maintained resource's configured view displays. Mirrors the space
25
     * view-displays view but its "add view display" action links the maintained-resource-
26
     * specific creation template.
27
     */
28
    public static final String MAINTAINED_RESOURCE_VIEW_DISPLAYS_VIEW = "https://w3id.org/np/RAZOxROZRaxSeoeO05iI0tKpDIy2mEN3jlUuVIo0uZN1I/view-displays-view";
29

30
    /**
31
     * @param id       the Wicket markup id
32
     * @param resource the maintained resource whose About listings to render
33
     */
34
    public AboutResourcePanel(String id, MaintainedResource resource) {
35
        super(id);
×
36

37
        // The info view leads the "Structure" section (to the left of the presets).
38
        View infoView = View.get(MAINTAINED_RESOURCE_INFO_VIEW);
×
39
        add(QueryResultTableBuilder.create("info", new QueryRef(infoView.getQuery().getQueryId(), "resource", resource.getId()), new ViewDisplay(infoView)).resourceWithProfile(resource).id(resource.getId()).contextId(resource.getId()).build());
×
40

41
        View presetsView = View.get(AboutSpacePanel.PRESET_ASSIGNMENTS_VIEW);
×
42
        add(QueryResultTableBuilder.create("presets", new QueryRef(presetsView.getQuery().getQueryId(), "resource", resource.getId()), new ViewDisplay(presetsView)).resourceWithProfile(resource).id(resource.getId()).contextId(resource.getId()).build());
×
43

44
        View vdView = View.get(MAINTAINED_RESOURCE_VIEW_DISPLAYS_VIEW);
×
45
        add(QueryResultTableBuilder.create("viewdisplays", new QueryRef(vdView.getQuery().getQueryId(), "resource", resource.getId()), new ViewDisplay(vdView)).resourceWithProfile(resource).id(resource.getId()).contextId(resource.getId()).build());
×
46
    }
×
47

48
}
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