Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 26, 2025

Syncs JS codebase with main branch changes (ESSE types, context provider hierarchy) and updates Python implementation to match.

JavaScript Changes

  • Context Provider Hierarchy: Added JinjaContextProviderJSONSchemaDataProviderJSONSchemaFormDataProvider inheritance chain
  • ESSE Types: Migrated from local ContextProviderName enum to @mat3ra/esse types (ContextProviderSchema, Name)
  • Exports: Updated index.ts to export all mixins, ApplicationRegistry, and context providers; added types.ts
  • Dependencies: Bumped @mat3ra/esse to 2025.11.26-0

Python Changes

  • Extended ContextProvider: Added domain, entity_name, data, extra_data, is_edited, context fields with computed properties (extra_data_key, is_edited_key, is_unit_context_provider, is_subworkflow_context_provider)
  • Context Provider Hierarchy: Added JinjaContextProvider, JSONSchemaDataProvider, JSONSchemaFormDataProvider classes
  • Enum: Added ContextProviderName enum matching ESSE schema (25 provider names)

Usage

from mat3ra.ade import (
    ContextProvider,
    JinjaContextProvider,
    JSONSchemaFormDataProvider,
    ContextProviderName,
)

provider = JinjaContextProvider(
    name=ContextProviderName.KGridFormDataManager,
    domain="custom",
    is_using_jinja_variables=True,
)
assert provider.is_unit_context_provider  # True by default

Tests: 127 JS, 51 Python passing

Original prompt

Let's merge main into this branch (changes to JS codebase) and update Python codebase to have up to date logic.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Merge main and update Python codebase logic Merge main into JS branch and sync Python codebase Nov 26, 2025
Copilot AI requested a review from VsevolodX November 26, 2025 22:46
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