-
Notifications
You must be signed in to change notification settings - Fork 22
[O2B-1536] Add lastEditiedBy name to EOR reason section of the run-details page #2090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
graduta
merged 14 commits into
main
from
improv/O2B-1536/Add-lastEditiedBy-to-EOR-reason-on-run-details
Mar 5, 2026
Merged
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5578d92
[O2B-1536] Show lastEditedName for EOR reasons
isaachilly f522ff6
[O2B-1536] Update tests to expect 'Anonymous' author
isaachilly dc99497
[O2B-1536] Drop lastEditedName in addNewEorReason
isaachilly eaa4918
[O2B-1532] Extract eorReasonComponent and revert formatter
isaachilly cfb984b
[O2B-1536] Keep EOR lastEditedName out of patch; preserve for UI
isaachilly 0afb0e0
[O2B-1536] Pass EOR lastEditedName through RunPatch
isaachilly 44eb4c2
Merge branch 'main' into improv/O2B-1536/Add-lastEditiedBy-to-EOR-rea…
isaachilly d2c3029
[O2B-1536] Tidy and refactor
isaachilly 6463548
[O2B-1536] Add test for lastEditedName tooltip
isaachilly 5870d38
Merge branch 'main' into improv/O2B-1536/Add-lastEditiedBy-to-EOR-rea…
isaachilly 89314ad
[O2B-1536] Fix typo in JSDoc
isaachilly 331f206
Merge branch 'main' into improv/O2B-1536/Add-lastEditiedBy-to-EOR-rea…
isaachilly 45a4ae1
Merge branch 'improv/O2B-1536/Add-lastEditiedBy-to-EOR-reason-on-run-…
isaachilly e62dbd2
Merge branch 'main' into improv/O2B-1536/Add-lastEditiedBy-to-EOR-rea…
graduta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /** | ||
| * @license | ||
| * Copyright CERN and copyright holders of ALICE O2. This software is | ||
| * distributed under the terms of the GNU General Public License v3 (GPL | ||
| * Version 3), copied verbatim in the file "COPYING". | ||
| * | ||
| * See http://alice-o2.web.cern.ch/license for full licensing information. | ||
| * | ||
| * In applying this license CERN does not waive the privileges and immunities | ||
| * granted to it by virtue of its status as an Intergovernmental Organization | ||
| * or submit itself to any jurisdiction. | ||
| */ | ||
|
|
||
| import { h } from '/js/src/index.js'; | ||
| import { tooltip } from '../../../../components/common/popover/tooltip.js'; | ||
| import { formatEorReason } from './formatEorReason.mjs'; | ||
|
|
||
| /** | ||
| * Display the given EoR reason as a vdom component with lastEditedName tooltip | ||
| * | ||
| * @param {Partial<{ | ||
| * category: string, | ||
| * title: string, | ||
| * description: string, | ||
| * lastEditedName: string, | ||
| * }>} eorReason the EoR reason to display | ||
| * @return {Component} the vdom component | ||
| */ | ||
| export const formatRunEorReason = (eorReason) => { | ||
| const { lastEditedName } = eorReason; | ||
| const reasonText = formatEorReason(eorReason); | ||
| return h('.w-100.flex-row.justify-between', [ | ||
| h('', reasonText), | ||
| lastEditedName ? tooltip(h('.w-wrapped', lastEditedName), 'Last edited by') : null, | ||
| ]); | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am guessing you meant
vnodeinstead ofvdom?