Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pierre setup #367

Closed
wants to merge 91 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
c65902f
Remove Github workflow specific code and config to allow tests to be …
FlorentTorregrosa Sep 20, 2022
ffd5bc6
Issue #3310657 by Grimreaper: Fix hardcoded module path in tests.
Sep 21, 2022
0aae8d8
Issue #3310657 by Grimreaper, GoZ: Config structure change after upgr…
Sep 21, 2022
f1bd143
Issue #3310657 by Grimreaper: Handle subdirectory for links in tests.
Sep 21, 2022
a37ba1d
Issue #3290197 by Project Update Bot, Grimreaper: Automated Drupal 10…
Sep 21, 2022
fb97637
Issue #3290197 by Grimreaper: Mark modules as D10 compatible. Fix qua…
Sep 21, 2022
9615d77
Issue #3314293 by DuaelFr, Grimreaper: Replace "app.root" service for…
Oct 11, 2022
64ad889
Issue #3313689 by DuaelFr, Grimreaper, Sharique: \Drupal\ui_patterns\…
Oct 11, 2022
df91310
Issue #3311088 by DuaelFr, Grimreaper, yannickoo: Add extra field sup…
Oct 12, 2022
685ec74
Issue #3311088 by DuaelFr, Grimreaper, yannickoo: Add extra field sup…
Oct 12, 2022
2e0ac04
Issue #3311088 by DuaelFr, Grimreaper, yannickoo: Add extra field sup…
Oct 12, 2022
d92f574
Issue #3316487 by DuaelFr: Add pattern ID in preview wrapper in ui_pa…
Oct 22, 2022
c780a26
Issue #3315533 by G4MBINI, Grimreaper: Move documentation from Github…
Nov 21, 2022
75def67
Issue #3314463 by pvbergen: Add support for additional fields on Patt…
Nov 21, 2022
c501690
Issue #3315660 by G4MBINI, Grimreaper, ademarco, jigarius: Link to th…
Nov 21, 2022
b91e618
Issue #3311464 by Grimreaper, G4MBINI, DuaelFr, barig, ademarco, drcl…
Dec 13, 2022
4bbd13f
Issue #3311471 by DuaelFr, herved, G4MBINI, Grimreaper, donquixote, m…
Jan 16, 2023
7d9b5b4
Issue #3311471 by herved, DuaelFr: fix pattern overriding in sub-themes.
Jan 16, 2023
06a4f47
Issue #3333738 by Grimreaper, DuaelFr: UI Patterns DS no more compati…
Jan 17, 2023
af379f1
Issue #3328272 by Grimreaper, DuaelFr: Group patterns in /patterns an…
Jan 13, 2023
8e38f1d
Issue #3347891 by pdureau, Grimreaper: UI Patterns Library: print tag…
May 16, 2023
99e98c7
Issue #3311480 by pdureau, Grimreaper, DuaelFr: Reduce preprocess hoo…
May 29, 2023
d09dea1
Issue #3311340 by Grimreaper, pdureau: UI Patterns Library: support U…
Jun 1, 2023
90fba88
Issue #3353287 by DuaelFr, Grimreaper: Mark PatternPreview::getPrevie…
Jun 1, 2023
22c3663
Merge branch '8.x-1.x' of https://git.drupalcode.org/project/ui_patte…
christianwiedemann Jun 18, 2023
33ac834
Initial sdc work
christianwiedemann Jun 19, 2023
f210547
Add Component discovery
christianwiedemann Jun 19, 2023
60e63ce
chore: Remove UI Patterns definitions
christianwiedemann Jun 20, 2023
d2b3a1a
chore: Add UI Pattern Selection for pattern function
christianwiedemann Jun 20, 2023
a70b178
feat: Add ui patterns legacy module
christianwiedemann Jun 20, 2023
0231f98
Add initial prop widget configuration
christianwiedemann Jun 22, 2023
b2a687d
feat: Add initial tests
christianwiedemann Jun 29, 2023
c0e1d59
Init test module
pdureau Oct 4, 2023
7e76252
Add components in ui_patterns_test
pdureau Oct 4, 2023
0fd72cd
Add component Twig function
pdureau Oct 4, 2023
f4913fb
Merge pull request #5 from christianwiedemann/pierre_setup
christianwiedemann Oct 4, 2023
7140050
Add UI Patterns Legacy Test module
pdureau Oct 4, 2023
85aa0c7
Add Pattern & PatternPreview in ui_patterns_legacy
pdureau Oct 4, 2023
005999b
Remove unused stuff
pdureau Oct 4, 2023
17fe99c
Init ui_patterns_library
pdureau Oct 4, 2023
3ccf111
Update README.md
pdureau Oct 4, 2023
ad05a9b
composer.json update
pdureau Oct 4, 2023
7ee5ac3
First ui_patterns_library results; new TemporaryHelper & ComponentEle…
pdureau Oct 5, 2023
3cd89c5
Rename variant label to variant title
pdureau Oct 5, 2023
608f007
Add a component to test replace mechanism
pdureau Oct 5, 2023
fe8e991
Render stories slot in ui_patterns_library
pdureau Oct 5, 2023
4fc8f00
ui_patterns_library: small tweaks
pdureau Oct 5, 2023
7f4bb7d
Working PatterPreview render element
pdureau Oct 5, 2023
e715735
Merge pull request #6 from christianwiedemann/pierre_setup
christianwiedemann Oct 5, 2023
52f7476
Add decorators for SdcComponent Plugin manager
christianwiedemann Oct 5, 2023
706f029
Add template discovery
christianwiedemann Oct 5, 2023
157c265
Add template discovery
christianwiedemann Oct 5, 2023
74fd090
Merge pull request #7 from christianwiedemann/christian_setup
christianwiedemann Oct 5, 2023
dffbc09
Init prop_type plugin type
pdureau Oct 5, 2023
8a8c2af
Remove everything related to Soruce plugins; and PatternDisplayFormTrait
pdureau Oct 5, 2023
22c06c7
Merge pull request #8 from christianwiedemann/pierre_setup
christianwiedemann Oct 5, 2023
ce0ac78
Add initial PropType definitions
christianwiedemann Oct 5, 2023
887d3f4
Apply PHPCS
pdureau Oct 6, 2023
0a23d80
Plugin managers fixes
pdureau Oct 6, 2023
e8d0a6e
Move TemporaryHelper methods to plugin manager
pdureau Oct 6, 2023
15549af
Disable ui_patterns_legacy.plugin.manager.sdc.decorator because not w…
pdureau Oct 6, 2023
33447a7
uii_patterns_library templates improvments
pdureau Oct 6, 2023
532b92b
Add SchemaCompatibilityChecker, update tests components
pdureau Oct 6, 2023
e95f5e2
Merge pull request #10 from christianwiedemann/pierre_setup
christianwiedemann Oct 6, 2023
b37133a
Add initial tests
christianwiedemann Oct 7, 2023
c9d59f2
Readd implementation
christianwiedemann Oct 7, 2023
87e31cd
Merge pull request #11 from christianwiedemann/christian_setup
christianwiedemann Oct 7, 2023
e30349d
Add initial source plugin tests
christianwiedemann Oct 7, 2023
b17f3c7
Merge pull request #13 from christianwiedemann/christian_setup
christianwiedemann Oct 7, 2023
3585522
PropTypes & SchemaCompatibilityChecker: WIP
pdureau Oct 7, 2023
9dcf7b8
Add SchemaCompatibilityCheckerTest
pdureau Oct 7, 2023
e4ece64
Merge pull request #12 from christianwiedemann/pierre_setup
christianwiedemann Oct 7, 2023
2a4f752
Add initial component form§
christianwiedemann Oct 7, 2023
3902399
Merge pull request #14 from christianwiedemann/christian_setup
christianwiedemann Oct 7, 2023
723740b
Add EnumPropType
pdureau Oct 8, 2023
4e297ba
Init ui_patterns_views
pdureau Oct 8, 2023
0901a33
Run PHPCS
pdureau Oct 8, 2023
fcc986e
Add administrative label to layouts
pdureau Oct 8, 2023
5780266
Add reverse regexp geenrator for SchemaCompatibilityChecker
pdureau Oct 8, 2023
fb9e32b
Tiny tweaks on sources
pdureau Oct 8, 2023
cef87d1
Add source & prop types plugins
pdureau Oct 8, 2023
18eb497
Change modules descriptions, and run prettier on *.info.yml
pdureau Oct 8, 2023
27add87
update *.info.yml
pdureau Oct 8, 2023
4893a53
Reorganize UiPatternsFormBuilderTrait
pdureau Oct 8, 2023
d1b79fc
From category to SDC group
pdureau Oct 8, 2023
8db5a73
Add variants to Form/UiPatternsFormBuilderTrait
pdureau Oct 8, 2023
0dce472
Init ui_patterns_field_formatters
pdureau Oct 8, 2023
4e61c5f
PHPCS on ui_patterns_field_formatters
pdureau Oct 8, 2023
55d8ff1
Some work on ComponentOneForAllFormatter
pdureau Oct 8, 2023
7058995
Clean ui_patterns_layouts
pdureau Oct 8, 2023
7957ebb
Remove ilario-pierbattista/reverse-regex
pdureau Oct 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .env

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/ci.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github_changelog_generator

This file was deleted.

10 changes: 0 additions & 10 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,4 @@



\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
339 changes: 0 additions & 339 deletions LICENSE.txt

This file was deleted.

79 changes: 18 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,72 +1,29 @@
# UI Patterns
# UI Patterns 2.x

[![Join the chat at https://gitter.im/nuvoleweb/ui_patterns](https://badges.gitter.im/nuvoleweb/ui_patterns.svg)](https://gitter.im/nuvoleweb/ui_patterns?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/nuvoleweb/ui_patterns.svg?branch=8.x-1.x)](https://travis-ci.org/nuvoleweb/ui_patterns)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nuvoleweb/ui_patterns/badges/quality-score.png?b=8.x-1.x)](https://scrutinizer-ci.com/g/nuvoleweb/ui_patterns/?branch=8.x-1.x)
[![Documentation Status](https://readthedocs.org/projects/ui-patterns/badge/?version=8.x-1.x)](http://ui-patterns.readthedocs.io/en/8.x-1.x/?badge=8.x-1.x)
Define and expose self-contained UI Components as Drupal plugins and use them seamlessly in Drupal development and site-building.

Define and expose self-contained UI patterns as Drupal plugins and use them seamlessly as drop-in templates for
[panels](https://www.drupal.org/project/panels), [field groups](https://www.drupal.org/project/field_group), views,
[Display Suite](https://www.drupal.org/project/ds) view modes and field templates.
Also called "components", UI patterns are reusable, nestable, guided by clear standards, and can be assembled together to build any number of applications. Examples: card, button, slider, pager, menu, toast...

The UI Patterns module also integrates with with tools like [PatternLab](http://patternlab.io/) or modules like
[Component Libraries](https://www.drupal.org/project/components) thanks to
[definition overrides](http://ui-patterns.readthedocs.io/en/8.x-1.x/content/patterns-definition.html#override-patterns-behavior).

![Overview](https://raw.githubusercontent.com/nuvoleweb/ui_patterns/8.x-1.x/docs/images/patterns-overview.png)
The UI Patterns module also integrates with with tools like [PatternLab](http://patternlab.io/)
or modules like [Component Libraries](https://www.drupal.org/project/components)
thanks to [definition overrides](https://www.drupal.org/docs/contributed-modules/ui-patterns/define-your-patterns#s-override-patterns-behavior).

## Project overview

The UI Patterns project provides 6 modules:
The UI Patterns project provides 5 modules:

- **UI Patterns**: the main module, it exposes the UI Patterns system APIs and it does not do much more than that.
- **UI Patterns Library**: allows to define patterns via YAML and generates a pattern library page available at `/patterns`
- **UI Patterns**: the main module, based on Drupal Core SDC API, with additional powerful API and quality-of-life improvments
- **UI Patterns Library**: generates a pattern library page available at `/patterns`
to be used as documentation for content editors or as a showcase for business. Use this module if you don't plan to
use more advanced component library systems such as PatternLab or Fractal.
[Learn more](http://ui-patterns.readthedocs.io/en/8.x-1.x/content/patterns-definition.html)
- **UI Patterns Field Group**: allows to use patterns to format field groups provided by the
[Field group](https://www.drupal.org/project/field_group) module.
[Learn more](http://ui-patterns.readthedocs.io/en/8.x-1.x/content/field-group.html)
- **UI Patterns Layouts**: allows to use patterns as layouts. This allows patterns to be used on
[Display Suite](https://www.drupal.org/project/ds) view modes or on [panels](https://www.drupal.org/project/panels)
out of the box. [Learn more](http://ui-patterns.readthedocs.io/en/8.x-1.x/content/layout-plugin.html)
- **UI Patterns Display Suite**: allows to use patterns to format [Display Suite](https://www.drupal.org/project/ds)
field templates. [Learn more](http://ui-patterns.readthedocs.io/en/8.x-1.x/content/field-templates.html)
- **UI Patterns Views**: allows to use patterns as Views row templates.
[Learn more](http://ui-patterns.readthedocs.io/en/8.x-1.x/content/views.html)

## Try it out!

Download and install the [Bootstrap Patterns](https://github.com/nuvoleweb/bootstrap_patterns) theme on a vanilla Drupal
8 installation to quickly try out the UI Patterns module.

use more advanced component library systems such as Storybook, PatternLab or Fractal.
[Learn more](https://www.drupal.org/docs/contributed-modules/ui-patterns/define-your-patterns)
- **UI Patterns Layouts**: allows to use patterns as layouts. This allows patterns to be used with Layout Builder,
[Display Suite](https://www.drupal.org/project/ds) or [Panels](https://www.drupal.org/project/panels)
out of the box. [Learn more](https://www.drupal.org/docs/contributed-modules/ui-patterns/use-patterns-as-layouts)
- **UI Patterns Views**: allows to use patterns as Views styles or Views rows.
[Learn more](https://www.drupal.org/docs/contributed-modules/ui-patterns/use-patterns-with-views)
- **UI Patterns Legacy**: Load your UI Patterns 1.x components inside UI Patterns 2.x

## Documentation

Documentation is hosted on [Read the Docs](https://readthedocs.org/) and available [here](http://ui-patterns.readthedocs.io/en/8.x-1.x).

To build the documentation make sure you setup your environment by following
[these instructions](http://read-the-docs.readthedocs.io/en/latest/) first.

After setting up your environment run:

```
$ cd docs
$ make html
```

The documentation is then available at ``./docs/_build/html/index.html``.

If you want to contribute documentation you can setup and auto-compile that will watch for documentation changes by running:

```
$ make livehtml
```

You can then preview the compiled documentation at ``http://127.0.0.1:8000``.

To build the documentation using Docker run:

```
$ docker run -it -v $(pwd)/docs:/docs xeizmendi/docker-sphinx make --directory=/docs html
```
Documentation is available [here](https://www.drupal.org/docs/contributed-modules/ui-patterns).
76 changes: 4 additions & 72 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,77 +1,9 @@
{
"name": "drupal/ui_patterns",
"description": "Define and expose self-contained UI components and use them seamlessly in development and site-building.",
"license": "GPL-2.0-or-later",
"type": "drupal-module",
"description": "UI Patterns.",
"keywords": ["drupal", "web", "ui"],
"license": "GPL-2.0+",
"minimum-stability": "dev",
"prefer-stable": true,
"authors": [
{
"name": "Nuvole Web",
"email": "info@nuvole.org"
}
],
"require-dev": {
"composer/installers": "^1 || ^2",
"cweagans/composer-patches": "~1.4",
"drupal/core-composer-scaffold": "^8.8 || ^9",
"drupal/core-dev": "^8.8 || ^9",
"drupal/core-recommended": "^8.8 || ^9",
"drupal/ds": "~3",
"drupal/field_group": "~3",
"drupal/page_manager": "*",
"drupal/panels": "~4",
"drupal/paragraphs": "~1",
"drupal/token": "~1",
"drush/drush": "~10",
"openeuropa/task-runner-drupal-project-symlink": "^1.0-beta5",
"phpro/grumphp": "^1.5",
"phpspec/prophecy-phpunit": "^2"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"autoload": {
"psr-4": {
"Drupal\\ui_patterns\\": "./src"
}
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\ui_patterns\\": "./tests/src"
}
},
"scripts": {
"post-install-cmd": "./vendor/bin/run drupal:site-setup",
"post-update-cmd": "./vendor/bin/run drupal:site-setup"
},
"extra": {
"composer-exit-on-patch-failure": true,
"enable-patching": true,
"drupal-scaffold": {
"locations": {
"web-root": "build/"
}
},
"installer-paths": {
"build/core": ["type:drupal-core"],
"build/modules/contrib/{$name}": ["type:drupal-module"],
"build/profiles/contrib/{$name}": ["type:drupal-profile"],
"build/themes/contrib/{$name}": ["type:drupal-theme"]
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true,
"phpro/grumphp": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
"require": {
"drupal/token": "^1.0"
}
}
70 changes: 0 additions & 70 deletions docker-compose.yml

This file was deleted.

Loading
Loading