django-jdm-editor 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- django_jdm_editor-0.1.0/.gitignore +19 -0
- django_jdm_editor-0.1.0/CHANGELOG.md +40 -0
- django_jdm_editor-0.1.0/LICENSE +674 -0
- django_jdm_editor-0.1.0/PKG-INFO +858 -0
- django_jdm_editor-0.1.0/README.md +146 -0
- django_jdm_editor-0.1.0/frontend/package-lock.json +6682 -0
- django_jdm_editor-0.1.0/frontend/package.json +21 -0
- django_jdm_editor-0.1.0/frontend/src/index.tsx +371 -0
- django_jdm_editor-0.1.0/frontend/src/styles.css +122 -0
- django_jdm_editor-0.1.0/frontend/tsconfig.json +20 -0
- django_jdm_editor-0.1.0/frontend/vite.config.ts +57 -0
- django_jdm_editor-0.1.0/hatch_build.py +54 -0
- django_jdm_editor-0.1.0/pyproject.toml +75 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/__init__.py +5 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/apps.py +6 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/fields.py +43 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/static/django_jdm_editor/.gitignore +6 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/static/django_jdm_editor/jdm-editor.css +1 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/static/django_jdm_editor/jdm-editor.js +6447 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/templates/django_jdm_editor/widget.html +12 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/validators.py +40 -0
- django_jdm_editor-0.1.0/src/django_jdm_editor/widgets.py +57 -0
- django_jdm_editor-0.1.0/tests/__init__.py +0 -0
- django_jdm_editor-0.1.0/tests/settings.py +47 -0
- django_jdm_editor-0.1.0/tests/test_bundle_present.py +41 -0
- django_jdm_editor-0.1.0/tests/test_field.py +52 -0
- django_jdm_editor-0.1.0/tests/test_widget_render.py +44 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format is based on
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/).
|
|
5
|
+
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- Editor popups (the upload/download menus, node-type selects, hit-policy
|
|
10
|
+
dropdowns, tooltips, context menus) opened *behind* the fullscreen overlay and
|
|
11
|
+
looked broken/unclickable: the overlay's high `z-index` covered Ant Design
|
|
12
|
+
popups rendered into `<body>`. The editor is now wrapped in an Ant Design
|
|
13
|
+
`ConfigProvider` with `getPopupContainer` pointing inside the overlay, so popups
|
|
14
|
+
stack above the editor and are usable.
|
|
15
|
+
|
|
16
|
+
- `collectstatic` under `ManifestStaticFilesStorage` (e.g. WhiteNoise's
|
|
17
|
+
`CompressedManifestStaticFilesStorage`) no longer fails: the build now strips
|
|
18
|
+
stray `//# sourceMappingURL=*.d.ts.map` comment lines (embedded by bundled
|
|
19
|
+
monaco / TypeScript lib declarations) that Django tried to resolve as real
|
|
20
|
+
assets. Added a regression test.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Redesigned the collapsed preview into a card: a "N checks" badge + a list of the
|
|
24
|
+
decision nodes with a color-coded marker per node type (decision table /
|
|
25
|
+
expression / function / switch / sub-decision). Graph I/O nodes (Request /
|
|
26
|
+
Response) are excluded from the list and the count.
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
- Optional in-editor **Simulator** panel via `JDMWidget(simulate_url=...)`: on run
|
|
30
|
+
the editor POSTs `{graph, context}` (with CSRF) to the given endpoint and renders
|
|
31
|
+
the `{performance, result, trace}` response (or `{error}`). No simulation UI is
|
|
32
|
+
shown when `simulate_url` is unset.
|
|
33
|
+
- Initial MVP: `JDMField` model field, `JDMFormField` / `JDMWidget` form widgets
|
|
34
|
+
mounting the GoRules `@gorules/jdm-editor` `DecisionGraph` in the Django admin.
|
|
35
|
+
- Self-contained IIFE JS bundle (React inlined) built with Vite; no Node required
|
|
36
|
+
for end users.
|
|
37
|
+
- Lightweight structural `validate_jdm` validator.
|
|
38
|
+
- Packaging via hatchling with a build hook that builds/verifies the bundle.
|
|
39
|
+
- CI (test matrix + wheel/bundle check) and release (PyPI trusted publishing)
|
|
40
|
+
workflows.
|