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

knowledgepixels / nanodash / 27947621262

22 Jun 2026 10:54AM UTC coverage: 26.57% (-0.06%) from 26.63%
27947621262

push

github

web-flow
Merge pull request #492 from knowledgepixels/fix/observers-non-approved-union-scoping

feat: position-column tooltip labels on view-displays tables

1552 of 6873 branches covered (22.58%)

Branch coverage included in aggregate %.

3418 of 11832 relevant lines covered (28.89%)

4.25 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
     * View listing the presets assigned to a maintained resource. Mirrors the space
32
     * preset-assignments view but its "add preset" action links the maintained-resource-specific
33
     * template (offering only presets that apply to maintained resources).
34
     */
35
    public static final String MAINTAINED_RESOURCE_PRESET_ASSIGNMENTS_VIEW = "https://w3id.org/np/RA-CRSYJrYf-uaw1fip7hr_kdPqVb7_6dENwTPYQpikRY/preset-assignments-view";
36

37
    /**
38
     * @param id       the Wicket markup id
39
     * @param resource the maintained resource whose About listings to render
40
     */
41
    public AboutResourcePanel(String id, MaintainedResource resource) {
42
        super(id);
×
43

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

48
        View presetsView = View.get(MAINTAINED_RESOURCE_PRESET_ASSIGNMENTS_VIEW);
×
49
        add(QueryResultTableBuilder.create("presets", new QueryRef(presetsView.getQuery().getQueryId(), "resource", resource.getId()), new ViewDisplay(presetsView)).resourceWithProfile(resource).id(resource.getId()).contextId(resource.getId()).build());
×
50

51
        View vdView = View.get(MAINTAINED_RESOURCE_VIEW_DISPLAYS_VIEW);
×
52
        add(QueryResultTableBuilder.create("viewdisplays", new QueryRef(vdView.getQuery().getQueryId(), "resource", resource.getId()), new ViewDisplay(vdView)).resourceWithProfile(resource).id(resource.getId()).contextId(resource.getId()).build());
×
53
    }
×
54

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