8000 Add citation handler by edan-bainglass · Pull Request #488 · aiidalab/aiidalab · GitHub
[go: up one dir, main page]

Skip to content

Add citation handler - #488

Merged
edan-bainglass merged 3 commits into
aiidalab:mainfrom
edan-bainglass:handle-citations
Feb 13, 2026
Merged

edan-bainglass merged 3 commits into
aiidalab:mainfrom
edan-bainglass:handle-citations

Conversation

@edan-bainglass
@edan-bainglass edan-bainglass commented Feb 12, 2026 •
Copy link
Copy Markdown
Member

This PR adds a citation handler to the app base page:

    {%if metadata and metadata.citation %}
    <h2>
        Citation
    </h2>
    <div id='citation'>
        {{ metadata.citation }}
    </div>
    {% endif %}

as well as to metadata.py (Metadata dataclass and parser). This allows the following:

image

@edan-bainglass
Copy link
Copy Markdown
Member Author

@yakutovicha failed tests appear to be unrelated. Something to do with pkg_resources?

@danielhollas
Copy link
Copy Markdown
Contributor

@yakutovicha failed tests appear to be unrelated. Something to do with pkg_resources?

Yeah, I was meant to fix this. New version of setuptools removed pkg_resources module, we'll have to pin setuptools version, I'll prepare a PR today. We have an open PR to migrate from pkg_resources here: #474 The issue is described in #432

@danielhollas
Copy link
Copy Markdown
Contributor

This is very cool @edan-bainglass! 👏

@codecov
codecov Bot commented Feb 12, 2026 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.18%. Comparing base (bc3e4b3) to head (a61fedb).
⚠️ Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #488      +/-   ##
==========================================
+ Coverage   72.15%   72.18%   +0.03%     
==========================================
  Files          18       18              
  Lines        1616     1618       +2     
==========================================
+ Hits         1166     1168       +2     
  Misses        450      450              
Flag Coverage Δ
py-3.11 72.18% <100.00%> (+0.03%) ⬆️
py-3.12 72.18% <100.00%> (+0.03%) ⬆️
py-3.9 72.18% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yakutovicha yakutovicha left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @edan-bainglass, let's merge!

@edan-bainglass
edan-bainglass merged commit c69a7e1 into aiidalab:main Feb 13, 2026
4 checks passed
@danielhollas danielhollas added the enhancement New feature or request label Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0