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

knowledgepixels / nanodash / 27622721129

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

Pull #483

github

web-flow
Merge 73a4d0fe1 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/ProfileSigItem.java
1
package com.knowledgepixels.nanodash.component;
2

3
import com.knowledgepixels.nanodash.NanodashPreferences;
4
import com.knowledgepixels.nanodash.NanodashSession;
5
import com.knowledgepixels.nanodash.Utils;
6
import org.apache.wicket.markup.html.WebMarkupContainer;
7
import org.apache.wicket.markup.html.basic.Label;
8
import org.apache.wicket.markup.html.panel.Panel;
9

10
/**
11
 * Shows the user's local signing key as a single line: its short name and, in
12
 * local mode, the path of the key file ("Local key (...) is in file: ..."). The
13
 * approval status is no longer shown here — it is surfaced per key in the
14
 * introductions table.
15
 */
16
public class ProfileSigItem extends Panel {
17

18
    /**
19
     * Constructs a ProfileSigItem panel.
20
     *
21
     * @param id the Wicket component ID
22
     */
23
    public ProfileSigItem(String id) {
24
        super(id);
×
25
        boolean loginMode = NanodashPreferences.get().isOrcidLoginMode();
×
26

27
        final NanodashSession session = NanodashSession.get();
×
28
        boolean keyFileExists = session.getKeyFile().exists();
×
29
        boolean keyLoaded = keyFileExists && session.getKeyPair() != null;
×
30

31
        WebMarkupContainer keyLine = new WebMarkupContainer("keyline");
×
32
        keyLine.add(new Label("keylabel", keyLoaded ? Utils.getShortPubkeyName(session.getPubkeyhash()) : ".."));
×
33
        WebMarkupContainer filePart = new WebMarkupContainer("filepart");
×
34
        // The key file path is only meaningful in local mode (no ORCID login).
35
        filePart.add(new Label("keyfile", keyLoaded ? session.getKeyFile().getPath() : ""));
×
36
        filePart.setVisible(keyLoaded && !loginMode);
×
37
        keyLine.add(filePart);
×
38
        keyLine.setVisible(keyLoaded);
×
39
        add(keyLine);
×
40

41
        // Only relevant when the key file is present but could not be loaded.
42
        Label keyError = new Label("keyerror", "Error loading key file");
×
43
        keyError.setVisible(keyFileExists && session.getKeyPair() == null);
×
44
        add(keyError);
×
45
    }
×
46

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