135 Commits

Author SHA1 Message Date
Ben Lambert dbeb7aab3e feat(scaffolder): add BUI theme for scaffolder forms (#33053)
* feat(scaffolder): add BUI theme for scaffolder forms

Add a Backstage UI (BUI) form theme as an alternative to the Material
UI theme. Toggled via formProps.theme or enableBackstageUi page config.

Includes BUI widgets, templates, field extension variants, and a ported
React Aria Autocomplete component.

Signed-off-by: benjdlambert <ben@blam.sh>

* refactor(scaffolder): use BUI Combobox and CheckboxGroup for form widgets

Signed-off-by: benjdlambert <ben@blam.sh>

* chore(scaffolder): enable BUI form flag and add kitchen sink demo template

Signed-off-by: benjdlambert <ben@blam.sh>

* fix(scaffolder): use outlined input style for BUI form widgets

Signed-off-by: benjdlambert <ben@blam.sh>

* fix(scaffolder): address BUI form PR feedback

Signed-off-by: benjdlambert <ben@blam.sh>

* fix(scaffolder): format CSS and regen API reports

Signed-off-by: benjdlambert <ben@blam.sh>

---------

Signed-off-by: benjdlambert <ben@blam.sh>
2026-05-12 10:35:21 +02:00
Dmitry Gusev 3ef6078b70 scaffolder: Support conditional if on output links and text (#33332)
* Add sample template for conditional output demo

Add a scaffolder template that exercises conditional `if` on output
links and text items, for testing issue #24805.

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Support conditional `if` on scaffolder output links and text

Add `if` property to output link and text items in scaffolder templates,
allowing template authors to conditionally show/hide output items based
on parameters or step results. Items with a falsy `if` condition are
filtered out before being sent to the frontend.

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Add changesets for conditional output feature

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Document conditional if on output links and text

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Guard against non-object items in output arrays

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Skip array items in output if-filtering destructuring

Add Array.isArray guard to prevent corrupting array items
into plain objects during the rest-destructuring step.

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Extract filterConditionalItems helper to deduplicate logic

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Align output if schema descriptions with step if semantics

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Fix docs quality check: replace 'falsy' wording

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

* Refactor filterConditionalItems to use flatMap and generics

Replace .filter().map() with a single flatMap call and make the function
generic to eliminate JsonArray casts at call sites.

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>

---------

Signed-off-by: Dmitry Gusev <gusevda90@gmail.com>
2026-04-14 14:29:04 +02:00
aramissennyeydd efbf232bfa fix: update more /docs/references links
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
2026-02-04 10:11:36 -06:00
Jake Smith 58b6b933fe Restore original yaml formatting
Signed-off-by: Jake Smith <jakemgsmith@gmail.com>
2025-12-16 10:20:57 +01:00
Jake Smith 864d969252 Add OAuth support for bitbucket pull-request action and update bitbucket sample template
Signed-off-by: Jake Smith <jakemgsmith@gmail.com>
2025-12-16 10:20:57 +01:00
Fredrik Adelöw 8c51c70020 fix a non-working example template
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2025-09-11 13:16:16 +02:00
Billy Stalnaker 5676296812 wip; DRAFT for visibility into changes
Signed-off-by: Billy Stalnaker <bstalnaker@roadie.com>
2025-03-25 08:12:10 -04:00
liad.shachoach 231acf448f updating branch restriction code to use the bitubcket package instead of rest APIs, tests adjusted as well
Signed-off-by: liad.shachoach <liad.shachoach@controlup.com>
2025-02-28 18:12:56 +02:00
Heikki Hellgren 97ba58fa17 feat: add user specific notification settings
The settings can be customized for each origin and each processor
individually. The default Web indicates notifications shown in the
Backstage UI. By default, if there are no settings saved in the
database, all notifications are enabled for all processors.

The origins will populate by time for each user as they receive the
first notification from that origin. Processors are shown as their own
columns.

Later, if it makes sense, allow users to also disable/enable
notifications based on notification topic.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-10-18 10:38:36 +03:00
Johan Haals 1592bb7a4d Merge pull request #15063 from rikez/feat/enhance-owner-picker
feat(scaffolder): add EntityFilterQuery support on Entity and Owner Picker components
2022-12-22 16:44:32 +01:00
Enrico Alvarenga 15b3c2b153 chore: update sample templates to use catalogFilter instead of allowedKinds
Signed-off-by: Enrico Alvarenga <enrico.alvarenga@segment.com>
2022-12-21 13:01:44 -08:00
Andrew Kundrock afda8319d9 Update test coverage and export docs
Signed-off-by: Andrew Kundrock <akundrock@somalogic.com>
2022-12-13 15:03:11 +01:00
Andrew Kundrock 300256392c Add field selection rendering of allowedProjects for BitbucketRepoPicker
Signed-off-by: Andrew Kundrock <akundrock@somalogic.com>
2022-12-13 15:00:48 +01:00
Brian Fletcher c0097db1c8 more fixes and changesets
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-12-07 13:22:10 +00:00
Brian Fletcher 626a71fa06 fix review comments
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-12-07 13:03:45 +00:00
Brian Fletcher e5f61559d5 use nunjucks "square bracket syntax" for steps in docs
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-12-07 08:09:05 +00:00
Patrik Oldsberg 45ddab44ed scaffolder-backend: switch bitbucket-demo example template to use fetch:template
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-04-04 11:47:23 +02:00
blam 55999e8268 chore: reworking entityLinks
Signed-off-by: blam <ben@blam.sh>
2022-03-08 15:03:50 +01:00
blam 592ac178ec chore: updating documentation and removing the last of v1beta2
Signed-off-by: blam <ben@blam.sh>
2022-03-08 14:26:03 +01:00
Brian Fletcher 50eba2374b revert prettier change to scaffolder examples
Signed-off-by: Brian Fletcher <brian@roadie.io>
2021-10-27 09:16:48 +01:00
Brian Fletcher d781df1843 hide workflow runners behind createWorker
Also renames legacy and default workflow runners.

Signed-off-by: Brian Fletcher <brian@roadie.io>
2021-10-26 11:34:57 +01:00
Fredrik Adelöw 8791ea3fb8 remove the cookiecutter-golang template for now
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-09-21 10:24:42 +02:00
Ben Lambert 00ede8218d Merge pull request #6781 from backstage/orkohunter/remove-legacy-sample-templates
scaffolder-backend: remove legacy sample-templates based on cookiecutter
2021-09-10 14:28:38 +02:00
Mustansar Anwar ul Samad 56ce4e1a84 Remove local-templates.yaml as it is not in master anymore
Signed-off-by: Mustansar Anwar ul Samad <mustansar.samad@gmail.com>
2021-08-11 07:59:11 +12:00
Mustansar Anwar ul Samad 0f101a87d9 Fix RepoUrlPicker to use integration api directly
Signed-off-by: Mustansar Anwar ul Samad <mustansar.samad@gmail.com>
2021-08-11 07:59:10 +12:00
Mustansar Anwar ul Samad b0a6224904 Use default RepoUrlPicker for bitbucket fields
Also updated the default bitbucket publisher to handle workspace
and project fields

Signed-off-by: Mustansar Anwar ul Samad <mustansar.samad@gmail.com>
2021-08-11 07:59:10 +12:00
Mustansar Anwar ul Samad 9b41ea27b6 Add repourlpicker and publisher for bitbucket cloud
The bitbucket cloud api needs project key to create repo under
a project.

Signed-off-by: Mustansar Anwar ul Samad <mustansar.samad@gmail.com>
2021-08-11 07:59:10 +12:00
Himanshu Mishra f9efb38a96 scaffolder-backend: remove sample-templates
Closes https://github.com/backstage/backstage/issues/6415

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-08-10 21:13:17 +02:00
Eric Peterson 602b1e5c97 Update scaffolder templates to use the new, recommended annotation value.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-07-28 18:43:49 +02:00
Himanshu Mishra 529fd3285b add an example of working with a local template
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-07-16 11:35:14 +02:00
Himanshu Mishra 8b135fa79b update remote urls to use main branch
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-07-16 11:35:14 +02:00
Himanshu Mishra 1165398a9f Revert "Point to specific commit for sample templates"
Hashes don't work with Scaffolder.

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-07-16 11:35:03 +02:00
Joe Porpeglia 1a8cde9099 Point to specific commit for sample templates
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
2021-07-16 11:34:24 +02:00
Joe Porpeglia eb740ee24c Use new location for sample software templates
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
2021-07-16 11:34:23 +02:00
Rogerio Angeliski 944640535a update with PR comments
Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com>
2021-07-07 08:58:41 -03:00
Rogerio Angeliski 7a3ad92b52 feat: added rails templater to scaffolder-backend
Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com>
2021-07-07 08:55:57 -03:00
Hammar Johan 13bf0f3867 Remove autofocus for the description field
Signed-off-by: Hammar Johan <johan.hammar@volvofinans.se>
2021-06-30 11:56:39 +02:00
Eric Peterson e03eaeec3e Fix TechDocs annotation on remaining scaffolder templates.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-14 19:19:47 +02:00
Eric Peterson aeed120114 Fix Scaffolder Docs Template
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-14 19:19:11 +02:00
Fredrik Adelöw 28fc26ddf4 Merge pull request #5849 from SDA-SE/feat/scaffolder-conditional
Conditional scaffolder steps
2021-06-08 14:25:49 +02:00
Oliver Sand fff062301c Rename publish:log to debug:log
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-06-08 09:57:50 +02:00
Fredrik Adelöw b1033b7bf8 Merge pull request #5752 from backstage/blam/migrate-templates-to-v2
Migrating old `backstage.io/v1alpha1` templates to `backstage.io/v1beta2`
2021-06-07 14:41:00 +02:00
blam d0e4a9feb9 chore: reworking excluding of templates
Signed-off-by: blam <ben@blam.sh>
2021-06-07 13:54:10 +02:00
blam 0a94d60a6c chore: make the yarn lock checker happy
Signed-off-by: blam <ben@blam.sh>
2021-06-07 13:49:22 +02:00
blam 00b16a4aea chore: don't autocompute java_package_name
Signed-off-by: blam <ben@blam.sh>
2021-06-07 13:38:02 +02:00
blam 50484e720d chore: migrate the cra template fully and remove it from create-app
Signed-off-by: blam <ben@blam.sh>
2021-06-07 10:55:07 +02:00
blam 55df98c5b3 chore: adding cookiecutter version of create-react-app
Signed-off-by: blam <ben@blam.sh>
2021-06-07 10:55:07 +02:00
blam 7c4c41fb6a chore: think that's all the templates
Signed-off-by: blam <ben@blam.sh>
2021-06-07 10:55:07 +02:00
blam 6c410d16bc chore: remove create-react-app template
Signed-off-by: blam <ben@blam.sh>
2021-06-07 10:55:07 +02:00
blam e2832d055c chore: remove create-react-app- template and fix up the docs template
Signed-off-by: blam <ben@blam.sh>
2021-06-07 10:55:07 +02:00