0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/plugins/discourse-workflows/admin/assets/javascripts
Renato Atilio 010ce4d136
DEV: Clean up workflow expression reference internals (#41545)
Follow-up cleanup to #41442. No behavior change.

- `NODE_REF_RE` and `parseNodeReferenceName` were duplicated verbatim in
`expression-context.js` and `reference-label.js`, so the two parsers had
to be kept in sync by hand. They are now exported from
`expression-context.js` and imported by `reference-label.js`, and the
two identical single-quote unescapers in `expression-context.js` are
folded into one helper.
- Drops four `register_svg_icon` calls (`diagram-project`,
`right-to-bracket`, `user`, `gear`) that are already in core's
always-bundled base sprite (`SvgSprite::SVG_ICONS`), so re-registering
them was a no-op. Only `dollar-sign` still needs registering.

The other bracket/quote scanners (`splitLastAccessor`,
`resolveBracketSuffix`) are deliberately left separate: they serve
different purposes (runtime value resolution vs. picker-current
matching) with different escaping semantics, so merging them would
change behavior rather than clean it up.
2026-07-09 16:11:02 -03:00
..
admin DEV: Clean up workflow expression reference internals (#41545) 2026-07-09 16:11:02 -03:00
discourse FEATURE: lists all workflow versions (#40982) 2026-06-17 14:11:18 +02:00