Skip to content

chore: Centralized Annotation Utilities#1720

Merged
camielvs merged 1 commit intomasterfrom
01-28-chore_centralized_annotation_interface
Feb 5, 2026
Merged

chore: Centralized Annotation Utilities#1720
camielvs merged 1 commit intomasterfrom
01-28-chore_centralized_annotation_interface

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Jan 29, 2026

Description

bringing together some annotation-related methods into one annotations utility file for easier sharing or logic and types.

Also moves editor.position annotation into a constant for better dev consistency.

Related Issue and Pull requests

Type of Change

  • Cleanup/Refactor

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

no change to UI

Test Instructions

confirm all annotations still work as expected (particularly position annotations)

Additional Comments

This was referenced Jan 29, 2026
Copy link
Collaborator Author

camielvs commented Jan 29, 2026

@camielvs camielvs marked this pull request as ready for review January 29, 2026 00:46
@camielvs camielvs requested a review from a team as a code owner January 29, 2026 00:46
@camielvs camielvs changed the title chore: Centralized Annotation Interface chore: Centralized Annotation Utilities Jan 29, 2026
@camielvs camielvs force-pushed the 01-28-chore_generalize_setrunnametemplate branch from 9a3d3da to ec6245c Compare February 3, 2026 20:30
@camielvs camielvs force-pushed the 01-28-chore_centralized_annotation_interface branch from 4c1acbb to 0601281 Compare February 3, 2026 20:30
export const EDITOR_POSITION_ANNOTATION = "editor.position";

type Annotations = {
[k: string]: unknown;
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: thinking outlouad - in most cases it is a scalar value string | number | boolean maybe we can improve typing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could, though that may limit us in the future. Maybe a typeguard can get us through most of our common cases

Copy link
Collaborator

@maxy-shpfy maxy-shpfy left a comment

Choose a reason for hiding this comment

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

LGTM

);
if (!layoutAnnotation) return defaultPosition;

const decodedPosition = JSON.parse(layoutAnnotation);
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: think about generalizing "object annotation" to transparent work with content of annotation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure I understand what you mean?

@camielvs camielvs force-pushed the 01-28-chore_generalize_setrunnametemplate branch from ec6245c to 9813113 Compare February 5, 2026 21:25
@camielvs camielvs force-pushed the 01-28-chore_centralized_annotation_interface branch from 0601281 to 6ddc473 Compare February 5, 2026 21:25
@camielvs camielvs force-pushed the 01-28-chore_generalize_setrunnametemplate branch from 9813113 to 23e9fd1 Compare February 5, 2026 21:46
@camielvs camielvs force-pushed the 01-28-chore_centralized_annotation_interface branch from 6ddc473 to e56f31d Compare February 5, 2026 21:46
@camielvs camielvs force-pushed the 01-28-chore_generalize_setrunnametemplate branch 2 times, most recently from 0131cf2 to 03699dc Compare February 5, 2026 21:49
@camielvs camielvs force-pushed the 01-28-chore_centralized_annotation_interface branch from e56f31d to aea018f Compare February 5, 2026 21:49
@camielvs camielvs changed the base branch from 01-28-chore_generalize_setrunnametemplate to graphite-base/1720 February 5, 2026 21:57
@camielvs camielvs force-pushed the 01-28-chore_centralized_annotation_interface branch from aea018f to b19c264 Compare February 5, 2026 21:57
@graphite-app graphite-app bot changed the base branch from graphite-base/1720 to master February 5, 2026 21:58
@camielvs camielvs force-pushed the 01-28-chore_centralized_annotation_interface branch 3 times, most recently from 9949627 to 806249c Compare February 5, 2026 22:05
@camielvs camielvs force-pushed the 01-28-chore_centralized_annotation_interface branch from 806249c to 46b07d8 Compare February 5, 2026 22:10
Copy link
Collaborator Author

camielvs commented Feb 5, 2026

Merge activity

  • Feb 5, 10:16 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 5, 10:16 PM UTC: @camielvs merged this pull request with Graphite.

@camielvs camielvs merged commit 3520bf6 into master Feb 5, 2026
8 checks passed
@camielvs camielvs deleted the 01-28-chore_centralized_annotation_interface branch February 5, 2026 22:16
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