Skip to content

feat(UI): Restructure application header#2974

Merged
PiTrem merged 30 commits intov3.xfrom
Restructure-application-header
Mar 3, 2026
Merged

feat(UI): Restructure application header#2974
PiTrem merged 30 commits intov3.xfrom
Restructure-application-header

Conversation

@JoachimTillessen
Copy link
Collaborator

  • rather 1-story 1-commit than sub-atomic commits

  • commit title is meaningful => git history search

  • commit description is helpful => helps the reviewer to understand the changes

  • code is up-to-date with the latest developments of the target branch (rebased to it or whatever) => ⏩-merge for linear history is favoured

  • added code is linted

  • tests are passing (at least locally): we still have some random test failure on CI. thinking of asking spec/examples.txt to be commited

  • in case the changes are visible to the end-user,  video or screenshots should be added to the PR => helps with user testing

  • testing coverage improvement is improved.

  • CHANGELOG :  add a bullet point on top (optional: reference to github issue/PR )

  • parallele PR for documentation  on docusaurus  if the feature/fix is tagged for a release

device_description: Entities::DeviceDescriptionEntity.represent(
device_description,
detail_levels: ElementDetailLevelCalculator.new(user: current_user, element: device_description)
.detail_levels,

Choose a reason for hiding this comment

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

Layout/MultilineMethodCallIndentation: Align .detail_levels with ElementDetailLevelCalculator.new(user: current_user, element: device_description) on line 130.

detail_levels: ElementDetailLevelCalculator.new(user: current_user, element: device_description)
.detail_levels,
policy: @element_policy,
)

Choose a reason for hiding this comment

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

Style/TrailingCommaInHashLiteral: Put a comma after the last item of a multiline hash.

Entities::DeviceDescriptionEntity.represent(
device_description,
displayed_in_list: true,
detail_levels: ElementDetailLevelCalculator.new(user: current_user, element: device_description).detail_levels,

Choose a reason for hiding this comment

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

Layout/LineLength: Line is too long. [125/120]

element_policy = ElementPolicy.new(current_user, sample)
sample_list.push(
Entities::SampleEntity.represent(sample, detail_levels: detail_levels, displayed_in_list: true),
Entities::SampleEntity.represent(sample, detail_levels: detail_levels, displayed_in_list: true, policy: element_policy),

Choose a reason for hiding this comment

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

Layout/LineLength: Line is too long. [136/120]

element_policy = ElementPolicy.new(current_user, sample)
sample_list.push(
Entities::SampleEntity.represent(sample, detail_levels: detail_levels, displayed_in_list: true),
Entities::SampleEntity.represent(sample, detail_levels: detail_levels, displayed_in_list: true, policy: element_policy),

Choose a reason for hiding this comment

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

Layout/LineLength: Line is too long. [134/120]

…copying

Fix can_copy permission inconsistency between list and detail views

- Add ElementPolicy to API list endpoints (DeviceDescription, SequenceBasedMacromolecule, CellLine)
  to provide proper permission context for can_copy evaluation
- Remove `unless: :displayed_in_list` conditions from entity can_copy exposure
  to ensure field availability in list serialization
- Implement complete can_copy functionality for CellLines by adding ElementPolicy
  to all CellLineAPI endpoints and updating frontend model extraction
@JoachimTillessen JoachimTillessen force-pushed the Restructure-application-header branch from 5c1f7b3 to c0766dd Compare February 27, 2026 08:31
@github-actions
Copy link

LCOV of commit c0766dd during CI - Ruby Lint, RSpec, and code coverage #951

Summary coverage rate:
  lines......: 66.8% (18221 of 27261 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@PiTrem PiTrem changed the title Restructure application header feat(UI): Restructure application header Feb 27, 2026
PiTrem added a commit that referenced this pull request Feb 27, 2026
PiTrem added a commit that referenced this pull request Feb 27, 2026
PiTrem added a commit that referenced this pull request Feb 27, 2026
PiTrem added a commit that referenced this pull request Feb 27, 2026
@adambasha0
Copy link
Contributor

it seems that some refactoring in this PR makes MessagesFetcher.configuration() is bombarding the server with requests, can you check?

PiTrem added a commit that referenced this pull request Mar 3, 2026
@PiTrem PiTrem changed the base branch from main to v3.x March 3, 2026 10:03
PiTrem added a commit that referenced this pull request Mar 3, 2026
PiTrem added a commit that referenced this pull request Mar 3, 2026
PiTrem added a commit that referenced this pull request Mar 3, 2026
PiTrem added a commit that referenced this pull request Mar 3, 2026
@github-actions
Copy link

github-actions bot commented Mar 3, 2026

LCOV of commit 61fbbea during CI - Ruby Lint, RSpec, and code coverage #1000

Summary coverage rate:
  lines......: 66.9% (18260 of 27304 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

LCOV of commit 39cc9ff during CI - Ruby Lint, RSpec, and code coverage #1002

Summary coverage rate:
  lines......: 66.9% (18261 of 27303 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@PiTrem PiTrem merged commit 6e2b5fd into v3.x Mar 3, 2026
4 checks passed
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.

3 participants