Skip to content

ENH: Post to Elog from snapshot details#93

Open
YektaY wants to merge 1 commit intomainfrom
yektay/elog-plugin
Open

ENH: Post to Elog from snapshot details#93
YektaY wants to merge 1 commit intomainfrom
yektay/elog-plugin

Conversation

@YektaY
Copy link
Copy Markdown
Collaborator

@YektaY YektaY commented Apr 23, 2026

Description

  • Adds a "Post to Elog" button on the snapshot details page, gated on the
    backend's /v1/elog/config feature flag (hidden when no adapter is
    configured).
  • Opens a dialog with logbook and tag pickers (fetched from the backend),
    an editable title, and a markdown body prefilled with the snapshot
    metadata plus a table of selected PVs. Edit/Preview tabs via
    react-markdown.
  • Backend-stamped author — the UI just posts the markdown; attribution
    comes from the API key on the backend.

Depends on backend PR

Motivation

Had a request from NLCTA to be able to make posts to the e-log containing snapshot data.

Note: this current pass only partially addresses NLCTA's request, they want to be able to follow up an entry as well as create a new entry from Squirrel. Will need to look at the E-log API and change how the dialog form works to accommodate that functionality

Closes #89.

Where Has This Been Documented?

Note: documentation still needed

Screenshots

Note: need to add screenshots

Pre-merge checklist

  • Code works interactively
  • Code follows the style guide
  • Code contains descriptive docstrings
  • New/changed functions and methods are covered in the test suite where possible
  • Test suite passes locally
  • Test suite passes on GitHub Actions

@YektaY YektaY force-pushed the yektay/elog-plugin branch 2 times, most recently from 2be46bd to b4f6d3f Compare May 1, 2026 22:57
@YektaY YektaY marked this pull request as ready for review May 1, 2026 22:57
@YektaY YektaY force-pushed the yektay/elog-plugin branch from 1e96f59 to 3a2fb59 Compare May 1, 2026 23:10
@YektaY YektaY self-assigned this May 1, 2026
@YektaY YektaY requested a review from a team May 1, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: Post to Elog

1 participant