Skip to content

Commit

Permalink
minor UI improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Nov 18, 2023
1 parent b4e96f2 commit 479e623
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 107 deletions.
2 changes: 1 addition & 1 deletion packages/admin/src/templates/CRUD/mosaic.html.twig
Expand Up @@ -64,7 +64,7 @@
type="text"
name="{{ form[filter.formName].children['value'].vars.full_name }}"
class=" form-control"
style="margin:8px"
style="margin:8px;width:95%"
placeholder="Search..."
>
{% endif %}
Expand Down
5 changes: 5 additions & 0 deletions packages/admin/src/templates/layout.html.twig
Expand Up @@ -10,3 +10,8 @@
<script src="/bundles/pushwordadmin/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="{{ asset('/bundles/pushwordadmin/admin.min.js?v170015705371370012541315769831255803469831238276769831209411469563359499269563288889469563278966269563207176069417541561469410707126866032095395166032055145563586688750663586687884323') }}"></script>
{% endblock %}


{% block sonata_top_nav_menu_add_block %}

{% endblock %}
147 changes: 41 additions & 106 deletions packages/docs/content/roadmap.md
Expand Up @@ -7,140 +7,75 @@ parent: contribute

## BugFix && To finish

- switch code editor to https://microsoft.github.io/monaco-editor/
- [Core] https://github.com/jolicode/JoliTypo

- Conversation form controller
- manage multiHost


- Yaml editor in Autres paramêtres

- Switch image block to use media.id moroever image.uri
- event listener on load to update json


- Implement ESlint
- https://github.com/jolicode/JoliTypo
- [Admin] Brouillon
- [Admin] Page : Code Editor for Autres paramêtres (yaml highlighting)
- [Admin] Implements htmx ?!
- [Admin] Better Parent UX : Title + Slug
- [Admin] switch code editor to https://microsoft.github.io/monaco-editor/
- [Admin] ctrl+s -> save (without reloading)

- [AdminBlockEditor] Add media.id if media.url not found
- [AdminBlockEditor] Media Stretch bug
- [AdminBlockEditor] Add Layout https://github.com/hata6502/editorjs-layout#readme
- [AdminBlockEditor] Link suggester
- [AdminBlockEditor] Image > Add link + Alt and redesign Legend
- [AdminBlockEditor] document Pages Block on UI
- [AdminBlockEditor] édition avancée (template notamment dans pages, prose/unprise)
- rewrite the fullscreen, wide, and max width from prose - [see](https://github.com/tailwindlabs/tailwindcss-typography/pull/204)
- [AdminBlockEditor] sanitize with https://github.com/editor-js/editorjs-php (see AdminFormEventSuscriber.php)

- [StaticGenerator] Very long CopierGenerator, MediaGenerator -> set a warning in docs

- [MultiSiteEditor] : Make admin with better isolation

- parent page
- menu when editing a page
- admin page list with only 1 domain listing + default correct selected domain on click add new
- preview : manage page link to be OK when it's not the fist domain
- [DX] Implement ESlint

- // TODO check a new blank installation

- [AdminBlockEditor] Image > Add link + Alt and redesign Legend
- [AdminBlockEditor] document block and add Help link when advanced knowledge is needed
- [AdminBlockEditor] édition avancée (template notamment dans pages, prose/unprise)
- rewrite the fullscreen, wide, and max width from prose - [see](https://github.com/tailwindlabs/tailwindcss-typography/pull/204)
- [Core] : ImageManager - make optimizer bin path configurable
- [Core] **pagination** : tester & documenter

- {Core] **pagination** : tester & documenter
- Bug quand une page a le même URI qu'une page de la pagination OU sur l'ID (attrapé avant la pagination)
=> En fait, c'est paginer la page d'accueil qui fait le max de bordel

- [StaticGenerator] Make ErrorPageGenerator consistent with htaccess (on htaccess, filter by beginning url to return the correct one ?!)

- [AdminBlockEditor] sanitize with https://github.com/editor-js/editorjs-php (see AdminFormEventSuscriber.php)
- [AdminBlockEditor] prepare translating and transalte
- [All] prepare translating and transalte

## Feature

- **Page scanner** : test current page anchor link
- Toward wiki !
- [Version] Advanced Diff Checker raw /editorjs

- **Change requester**
- **Public Historic** (or make accessible historic from page object)
- Youtube Importer (from a youtube hash, create a page with video and text is imported from subtitle)
- **Multi-upload** (see https://packagist.org/packages/silasjoisten/sonata-multiupload-bundle)
- Intégrer **LinksImprover** (+ UX)
- **Page-Scanner** :
- scanner une page en direct + scanner plus de choses
- texte alternatif manquant
- Check there is no translation with the same language than current page
- add <!-- page-scanner-ignore: what to ignore --> ou plutôt dans othersParameters
- page scanner --alter :)
- **eCommerce** bridge with sylius ?!
- **Advanced main image** : associé un champ vidéo à l'image d'en-tête
- **Admin** : extend parameters and events to _filters_ and _lister_ will permit extension)
- **Static**: copy only used media in public
- **FacebookManager** : post from facebook
- **Flat**:
- Transform markdown link to page link (useful for navigate in docs from editor)
- Throw error when the content is more up to date in database

## Others

- **Core** : implement **SonataUserBlundle** (see user_block.html.twig), wait for https://github.com/sonata-project/SonataUserBundle/pull/1256
- manage date i18n a better way than randomly (document the process)
- Simplify request to external service with one pipe (toward Guzzle and 1 configuration for all extension)
- API ?!
- **Complex Right System** : Multi-user editor Multi-site but not everybody can edit everything (see draft.md) (extension or core ?)
- **Core** : Rewrite filter componenent to use the power of symfony service

## One day (maybe)

- Auto-update npm package (js-helper and editorjs-tool) via Github Actions (or at least git hooks)
- **Best testing** Fluidifier le process de test et deploiement (tester avec les vrais données)
- Move global app_base_url, name and color to à better spot (like évent suscriber)
- Move weird entity trait constructor to lificycle callback
- Move notify to messenger bus ? : https://symfony.com/doc/current/the-fast-track/fr/18-async.html

* **Admin** : Automatic save without flooding version
* **Version** : Rewrite to load in an entity versionned version and used sonata filters
* **Admin** (and admin extensions): Manage SonataAdminMenuOrder a better way than randomly
* **Wordpress** to Pushword/Core (and vice versa)
* **Flat** (spatie/yaml-front-matter, vérif à chaque requête pour une sync constante admin <-> flat files)

### Smart image optimizer (global - piedweb package)

Using all otpimizer avalaible, generating optimized image version and choosing the smallest file or keeping the default one)

### Switch to commonMark

Need to add [markdown=1](https://spec.commonmark.org/0.29/#example-158:~:text=markdown%3D1) feature in league/commonmark

### Settings Manager <smal>Extension</smal>

Rewrite the template editor by loading existing files and bundle files (view only and override action) in an file entity. CRUD via SONATA, listener to update file.
- [Admin] **Multi-upload** (see https://packagist.org/packages/silasjoisten/sonata-multiupload-bundle) + Multi Select

How to manage yaml/xml/php config files ?!

### Dynamic URL <smal>Extension</smal>

C'est un gros morceau pour garder la compatibilité avec le static generator et le router actuel

Le but: une page est crée avec un slug classique `/blog/example-tag/`

Une propriété `dynamic` lui est attributé qui permettra de créer une nouvelle route

Une autre proprité `dynamicPage` permettra d'assigner automatiquement un paramètre à ces pages enfants
(par exemple la `parentPage` ou encore la `metaRobots`)
- Intégrer **LinksImprover** (+ UX)

Ex: dynamic: `/blog/{tag<[a-z-]+>?1`} (cf https://symfony.com/doc/current/routing.html#optional-parameters:~:text=inlined%20requirements)
- [PageScanner] texte alternatif manquant
- [PageScanner] Check there is no translation with the same language than current page
- [PageScanner] add <!-- page-scanner-ignore: what to ignore --> ou plutôt dans othersParameters
-> donner un code unique aux erreurs

_Une bonne pratique serait de définir toutes les variantes possible ou une contrainte pour éviter de se retrouver avec un nombre de page infini._
- **eCommerce** bridge with sylius ?!

callback ?! sans ça, impossible de maintenir la compatibilité avec le static generator
- [Core] MediaCleaner command : find unused media and removed them (page scanner ?!

Quand l'utilisateur cherchera à atteindre /blog/anotherexample/
- [Flat] Transform markdown link to page link (useful for navigate in docs from editor)
- [Flat] Throw error when the content is more up to date in database

Si la page n'a pas été créée (elle peut d'ailleur l'être en utilisant _extend_).
- [Core] implement **SonataUserBlundle** (see user_block.html.twig), wait for https://github.com/sonata-project/SonataUserBundle/pull/1256
- manage date i18n a better way than randomly (document the process)

Alors la page chargé sera `/blog/example-tag/` (entity créée à la volée sans sauvegarde dans la BDD)
avec l'argument accessible getDynamicArg et les propriétés écrasés par **dynamicPage**.
- **Complex Right System** : Multi-user editor Multi-site but not everybody can edit everything (see draft.md) (extension or core ?)
- [Core] Rewrite filter componenent to use the power of symfony service

Drawback : le sitemap actuelle ne permettra pas de générer ces pages. Switch to a sitemap render after a crawl ?
* [Admin] : Automatic save without flooding version

* **Flat** (spatie/yaml-front-matter, vérif à chaque requête pour une sync constante admin <-> flat files)

-------------
- [New] Batch Action


## Drop My Weird Config Prepender
-- [All] Drop Weird Config Prepender

Imply to rewrite for example :

Expand Down Expand Up @@ -172,5 +107,5 @@ return [

Why :

* Less custom code
* Stan ?
- Less custom code
- Stan ?

0 comments on commit 479e623

Please sign in to comment.