Skip to content

TOOL-700: Add native attachments#2496

Open
the-nick-fischer wants to merge 8 commits intoesrlabs:native-uifrom
the-nick-fischer:native_attachments
Open

TOOL-700: Add native attachments#2496
the-nick-fischer wants to merge 8 commits intoesrlabs:native-uifrom
the-nick-fischer:native_attachments

Conversation

@the-nick-fischer
Copy link
Copy Markdown

@the-nick-fischer the-nick-fischer commented Mar 17, 2026

TOOL-700: This PR adds a basic implementation of the attachments panel to the native UI:

  • General layou with header, list and preview sections
  • Functional attachments list
  • Selection and saving of attachments
  • Display of attachments symbol in logs table

What is missing:

  • Attachments preview
  • Quick filters for attachments
  • Go to / select related row(s)

@the-nick-fischer the-nick-fischer changed the title Native attachments TOOL-700: Add native attachments Mar 17, 2026
@the-nick-fischer the-nick-fischer force-pushed the native_attachments branch 3 times, most recently from b1750c0 to 3831bbf Compare March 19, 2026 10:09
@the-nick-fischer the-nick-fischer marked this pull request as ready for review March 27, 2026 15:02
let attachment = self
.shared
.attachments
.attachment_by_log_position(cell.row_nr as usize);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@AmmarAbouZor
Using the row number is not correct here. We need to fetch the position in the logs table instead. Could you help here?
Also how do I deal with the type conversion here? Do we support 32-bit?

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.

We can get the grabbed element via self.get_log_item(cell) which contains the position of the log.

We already get this info here at line 186:

let bookmark_pos = self.get_log_item(cell).map(|item| item.element.pos as u64);

You can set the log item to a variable here and use it for both bookmarks and attachments

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.

2 participants