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

knowledgepixels / nanodash / 27622310436

16 Jun 2026 01:49PM UTC coverage: 26.963% (+6.3%) from 20.697%
27622310436

Pull #483

github

web-flow
Merge dbba567c9 into 663f14f46
Pull Request #483: Space/resource About pages, ref-aware spaces, and magic query params

1542 of 6717 branches covered (22.96%)

Branch coverage included in aggregate %.

3407 of 11638 relevant lines covered (29.27%)

4.31 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
     * @param id       the Wicket markup id
25
     * @param resource the maintained resource whose About listings to render
26
     */
27
    public AboutResourcePanel(String id, MaintainedResource resource) {
28
        super(id);
×
29

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

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

37
        View vdView = View.get(AboutSpacePanel.VIEW_DISPLAYS_VIEW);
×
38
        add(QueryResultTableBuilder.create("viewdisplays", new QueryRef(vdView.getQuery().getQueryId(), "resource", resource.getId()), new ViewDisplay(vdView)).resourceWithProfile(resource).id(resource.getId()).contextId(resource.getId()).build());
×
39
    }
×
40

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