decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.66k stars 3.02k forks source link

wip: Implementing New UI #7101

Open Daniel-Mendes opened 4 months ago

Daniel-Mendes commented 4 months ago

Summary

To continue the efforts from #2557 (Improve The Overall UX), this pull request aims is to merge the work done in the v3-ui-redesign branch with the current master branch.

Features

Not implemented (but should be done)

Could be improved by migrating components to radix-ui or react-aria

Out of scope

Roadmap

I want to make the minimum breaking changes to the config.yml file.

Phase 1

The goals within this step is to migrate all the components and stories.

Progress

Pages
Components
Inputs

Phase 2

Migrating the decap-cms-core code gradually to use the new components.

Progress

Breaking Changes

Propositions to allow customization to the UI.

To implement custom icons for collections:

  collections: 
  - name: 'posts'
    label: 'Posts'
    icon: 'edit-3' # Value from packages/decap-cms-ui-next/src/Icon/icons

To implement nav item position:

  collections: 
  - name: 'settings'
    label: 'Settings'
    file: "_data/meta.json"
    position: 'end' # Default value 'start'

To implement external links for other tools like, git repo, analytics, deploy service:

  collections: 
  - name: 'Analytics'
    label: 'analytics'
    url: 'https://plausible.io/plausible.io'

All changes example:

  collections: 
  - name: 'Netlify'
    label: 'netlify'
    url: 'https://app.netlify.com/sites/decap-www'
    icon: 'server'
    position: 'end'
martinjagodic commented 4 months ago

@Daniel-Mendes this is a huge job done, thanks! 🙏 This will take some time to review, so I ask for some patience 😅

We will not merge this to master but create a next environment like you proposed. There we can start porting other components and doing work that could go into the next release.

Is this ready for review or still draft like it's tagged?

Daniel-Mendes commented 4 months ago

@Daniel-Mendes this is a huge job done, thanks! 🙏 This will take some time to review, so I ask for some patience 😅

We will not merge this to master but create a next environment like you proposed. There we can start porting other components and doing work that could go into the next release.

Is this ready for review or still draft like it's tagged?

I couldn't make a PR to the 'next' branch as it doesn't exist for now.

This is still in draft status (to keep track)

Daniel-Mendes commented 4 months ago

In the next branch, we should implement a storybook.decapcms.org (same as storybook.netlifycms.org) and next.decapcms.org (same as demo.decapcms.org), so everyone can follow the current progress.

Daniel-Mendes commented 4 months ago

What's new:

https://github.com/decaporg/decap-cms/assets/28825568/43509bd2-95bb-4371-afb8-4ed7f372441b