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

Alias controlpanel #3323

Merged
merged 54 commits into from
Sep 17, 2022
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
5bdc858
Url management route & layout
andreiggr May 4, 2022
4cea63e
Aliases in store & listing
andreiggr May 5, 2022
5707212
Add new alias
andreiggr May 5, 2022
0b2d42d
Delete batch of aliases & check if alias already exists
andreiggr May 5, 2022
9b69cb5
Redirection panel init
andreiggr May 5, 2022
0957bb7
Redirector control panel layout
andreiggr May 6, 2022
f3867d4
CP redirect listing & remove (WIP-api changes)
andreiggr May 6, 2022
bab9719
Merge branch 'master' into alias_controlpanel
avoinea May 9, 2022
3133355
Unify aliases related components, actions, reducers
avoinea May 9, 2022
7080a99
Update More toolbar tests
avoinea May 9, 2022
0c90145
Handle duplicate aliases error message
avoinea May 9, 2022
f178375
aliases: i18n
avoinea May 9, 2022
0fe5fce
Aliases: use i18n messages
avoinea May 9, 2022
a31c92e
Aliases controlpanel: Add alias
avoinea May 10, 2022
1b0d8b8
ControlPanel alias add/remove & error handles
andreiggr May 13, 2022
ffc3ae5
Filter aliases & table view of aliases
andreiggr May 16, 2022
30dd692
Aliases pagination & improvements
andreiggr May 17, 2022
c7ffa41
Aliases pagination update
andreiggr May 19, 2022
fc99299
Merge branch 'master' into alias_controlpanel
avoinea May 19, 2022
9384e29
Aliases.test WIP
andreiggr May 19, 2022
13ee60c
Merge branch 'alias_controlpanel' of github.com:plone/volto into alia…
andreiggr May 19, 2022
7f06d74
Aliases control panel test
andreiggr May 20, 2022
6b76dd8
Aliases in Changelog
andreiggr May 20, 2022
7251d6c
Aliases object test
andreiggr May 20, 2022
a381d5d
Merge branch 'master' into alias_controlpanel
andreiggr May 20, 2022
8b792d0
Batching pagination WIP
andreiggr May 24, 2022
182a71d
Batching pagination update
andreiggr May 24, 2022
46007d3
aliases updates
andreiggr May 25, 2022
634b1dd
Alias add toast message
andreiggr May 25, 2022
b38f56f
Merge branch 'master' into alias_controlpanel
andreiggr May 25, 2022
aa3afef
Original buildout.cfg
andreiggr May 25, 2022
dac5718
clear unused var
andreiggr May 25, 2022
0ae1519
i18n
andreiggr May 25, 2022
ceca7a3
snapshots update
andreiggr May 25, 2022
3f90ee6
Aliases batching pagination
andreiggr May 26, 2022
9b15e45
Merge branch 'master' into alias_controlpanel
andreiggr May 26, 2022
04e4403
fresh packs
andreiggr May 26, 2022
02d2d6b
reset yarn.lock with master version
andreiggr May 26, 2022
dab5109
cleanup, cosmetics, consistency
andreiggr May 26, 2022
a46408b
Aliases tests for action & reducer
andreiggr May 27, 2022
59d02cf
Aliases tests switch to configureMockStore
andreiggr May 27, 2022
27f18c6
Merge branch 'master' into alias_controlpanel
avoinea Jun 2, 2022
192c4b4
Tests aliases context update
andreiggr Jul 5, 2022
485ccc6
AliasesContext update
andreiggr Jul 5, 2022
14e7423
Aliases tests
andreiggr Jul 6, 2022
17cbb35
Merge branch 'master' into alias_controlpanel
andreiggr Jul 6, 2022
4986078
Merge branch 'alias_controlpanel' of github.com:plone/volto into alia…
andreiggr Jul 6, 2022
521b871
Update snaps
andreiggr Jul 6, 2022
0a3d475
Merge branch 'master' into alias_controlpanel
avoinea Jul 19, 2022
34ce9ea
Merge branch 'master' into alias_controlpanel
avoinea Sep 14, 2022
2dcc4a9
i18n
avoinea Sep 14, 2022
fa523bc
Merge branch 'master' into alias_controlpanel
avoinea Sep 14, 2022
215c421
Merge branch 'master' into alias_controlpanel
avoinea Sep 16, 2022
a8c7d37
i18n
avoinea Sep 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
- Fix indentation in nginx configuration in simple.md @stevepiercy

## 16.0.0-alpha.3 (2022-05-16)
### Feature

- Added new components `Aliases` for aliases control in Volto. Alias management in both controlpanel and object view.

### Breaking

Expand Down
21 changes: 21 additions & 0 deletions cypress/tests/core/basic/aliasesContext.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
describe('Add new alias for object test', () => {
beforeEach(() => {
cy.autologin();
cy.createContent({
contentType: 'Document',
contentId: 'my-page',
contentTitle: 'My Page',
});
cy.visit('/my-page');
cy.waitForResourceToLoad('@navigation');
cy.waitForResourceToLoad('@breadcrumbs');
cy.waitForResourceToLoad('@actions');
cy.waitForResourceToLoad('@types');
cy.waitForResourceToLoad('my-page');
});
it('adds a new alias', () => {
cy.visit('/my-page/aliases');
cy.get('#alternative-url-input').type('/alturl');
cy.get('#submit-alias').click();
});
});
22 changes: 22 additions & 0 deletions cypress/tests/core/basic/aliasesControlPanel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
describe('Add a new alias from control panel interface', () => {
beforeEach(() => {
cy.autologin();
cy.createContent({
contentType: 'Document',
contentId: 'my-page',
contentTitle: 'My Page',
});
cy.visit('/my-page');
cy.waitForResourceToLoad('@navigation');
cy.waitForResourceToLoad('@breadcrumbs');
cy.waitForResourceToLoad('@actions');
cy.waitForResourceToLoad('@types');
cy.waitForResourceToLoad('my-page');
});
it('adds a new alias', () => {
cy.visit('/controlpanel/aliases');
cy.get('#alternative-url-input').type('/alturl');
cy.get('#target-url-input').type('/my-page');
cy.get('#submit-alias').click();
});
});
129 changes: 129 additions & 0 deletions locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ msgstr "Accions"
msgid "Activate and deactivate"
msgstr "Activar i desactivar"

#: components/manage/Aliases/Aliases
#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/ContentTypes
#: components/manage/Toolbar/Toolbar
#: components/manage/Widgets/SchemaWidget
Expand Down Expand Up @@ -97,6 +99,11 @@ msgstr "Afegeix usuari"
msgid "Add a description…"
msgstr "Afegeix una descripció"

#: components/manage/Aliases/Aliases
# defaultMessage: Add a new alternative url
msgid "Add a new alternative url"
msgstr ""

#: components/manage/BlockChooser/BlockChooserButton
# defaultMessage: Add block
msgid "Add block"
Expand Down Expand Up @@ -192,6 +199,17 @@ msgstr "Configuració de complements"
msgid "Additional date"
msgstr "Data addicional"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Alias
msgid "Alias"
msgstr ""

#: components/manage/Aliases/Aliases
#: components/manage/Controlpanels/Aliases
# defaultMessage: Alias has been added
msgid "Alias has been added"
msgstr ""

#: components/manage/Blocks/Block/StylesSchema
#: components/manage/Blocks/Image/schema
#: components/manage/Blocks/LeadImage/LeadImageSidebar
Expand All @@ -206,6 +224,11 @@ msgstr "Posicionament"
msgid "All"
msgstr "Tots"

#: components/manage/Controlpanels/Aliases
# defaultMessage: All existing alternative urls for this site
msgid "All existing alternative urls for this site"
msgstr ""

#: components/theme/Search/Search
# defaultMessage: Alphabetically
msgid "Alphabetically"
Expand All @@ -228,6 +251,22 @@ msgstr "Deixeu el camp buit si la imatge és purament decorativa"
msgid "Alt text hint link text"
msgstr "Descriu el propòsit de la imatge"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Alternative url path (Required)
msgid "Alternative url path (Required)"
msgstr ""

#: components/manage/Aliases/Aliases
#: components/manage/Controlpanels/Aliases
# defaultMessage: Alternative url path must start with a slash.
msgid "Alternative url path must start with a slash."
msgstr ""

#: components/manage/Controlpanels/Aliases
# defaultMessage: Alternative url path → target url path (date and time of creation, manually created yes/no)
msgid "Alternative url path → target url path (date and time of creation, manually created yes/no)"
msgstr ""

#: components/manage/Toolbar/More
# defaultMessage: Apply working copy
msgid "Apply working copy"
Expand All @@ -254,8 +293,10 @@ msgstr "Ascendent"
msgid "Available"
msgstr "Disponible"

#: components/manage/Aliases/Aliases
#: components/manage/Contents/Contents
#: components/manage/Controlpanels/AddonsControlpanel
#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/ContentType
#: components/manage/Controlpanels/ContentTypeLayout
#: components/manage/Controlpanels/ContentTypes
Expand Down Expand Up @@ -658,6 +699,7 @@ msgstr "Mida de la base de dades"
msgid "Database main"
msgstr "Base de dades principal"

#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/ModerateComments
#: components/manage/Widgets/DatetimeWidget
# defaultMessage: Date
Expand Down Expand Up @@ -941,6 +983,17 @@ msgstr "Introduïu el nom complet, per exemple John Smith."
msgid "Enter map Embed Code"
msgstr "Introduïu el codi d'inserció del mapa"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Enter the absolute path of the target. The path must start with '/'. Target must exist or be an existing alternative url path to the target.
msgid "Enter the absolute path of the target. The path must start with '/'. Target must exist or be an existing alternative url path to the target."
msgstr ""

#: components/manage/Aliases/Aliases
#: components/manage/Controlpanels/Aliases
# defaultMessage: Enter the absolute path where the alternative url should exist. The path must start with '/'. Only urls that result in a 404 not found page will result in a redirect occurring.
msgid "Enter the absolute path where the alternative url should exist. The path must start with '/'. Only urls that result in a 404 not found page will result in a redirect occurring."
msgstr ""

#: components/manage/Preferences/ChangePassword
# defaultMessage: Enter your current password.
msgid "Enter your current password."
Expand Down Expand Up @@ -974,6 +1027,11 @@ msgstr ""
msgid "Error"
msgstr "Error"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Error
msgid "ErrorHeader"
msgstr ""

#: components/manage/Contents/ContentsPropertiesModal
# defaultMessage: Exclude from navigation
msgid "Exclude from navigation"
Expand All @@ -989,6 +1047,11 @@ msgstr "Exclou aquesta ocurrència"
msgid "Excluded from navigation"
msgstr "Exclòs de la navegació"

#: components/manage/Aliases/Aliases
# defaultMessage: Existing alternative urls for this item
msgid "Existing alternative urls for this item"
msgstr ""

#: components/manage/Sidebar/Sidebar
# defaultMessage: Expand sidebar
msgid "Expand sidebar"
Expand Down Expand Up @@ -1064,6 +1127,11 @@ msgstr "Mida de l'arxiu"
msgid "Filename"
msgstr "Nom de l'arxiu"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Filter by prefix
msgid "Filter by prefix"
msgstr ""

#: helpers/MessageLabels/MessageLabels
# defaultMessage: Filter users by groups
msgid "Filter users by groups"
Expand Down Expand Up @@ -1575,6 +1643,16 @@ msgstr "Gestionar les traduccions"
msgid "Manage translations for {title}"
msgstr "Gestiona les traduccions per a {title}"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Manual
msgid "Manual"
msgstr ""

#: components/manage/Controlpanels/Aliases
# defaultMessage: Manually or automatically added?
msgid "Manually or automatically added?"
msgstr ""

#: components/manage/Blocks/Maps/MapsSidebar
#: components/manage/Blocks/Maps/schema
# defaultMessage: Maps
Expand Down Expand Up @@ -2094,6 +2172,11 @@ msgstr "Formulari d'inscripció"
msgid "Relevance"
msgstr "Pertinència"

#: components/manage/Aliases/Aliases
# defaultMessage: Remove
msgid "Remove"
msgstr ""

#: components/manage/Widgets/ObjectListWidget
# defaultMessage: Remove item
msgid "Remove item"
Expand All @@ -2104,6 +2187,11 @@ msgstr "Elimina l'element"
msgid "Remove recurrence"
msgstr "Elimina"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Remove selected
msgid "Remove selected"
msgstr ""

#: components/manage/Widgets/VocabularyTermsWidget
# defaultMessage: Remove term
msgid "Remove term"
Expand Down Expand Up @@ -2344,6 +2432,7 @@ msgstr "Segon"
msgid "Section title"
msgstr "Títol de la secció"

#: components/manage/Controlpanels/Aliases
#: components/manage/Sidebar/ObjectBrowserNav
# defaultMessage: Select
msgid "Select"
Expand Down Expand Up @@ -2436,6 +2525,7 @@ msgstr "Nom curt"
msgid "Short name"
msgstr "Nom curt"

#: components/manage/Controlpanels/Aliases
#: components/theme/Pagination/Pagination
# defaultMessage: Show
msgid "Show"
Expand Down Expand Up @@ -2620,7 +2710,9 @@ msgid "Subject"
msgstr "Assumpte"

#: components/manage/Actions/Actions
#: components/manage/Aliases/Aliases
#: components/manage/Contents/Contents
#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/ContentTypes
#: components/manage/Controlpanels/ContentTypeSchema
#: components/manage/Multilingual/ManageTranslations
Expand Down Expand Up @@ -2670,6 +2762,16 @@ msgstr "Etiquetes per afegir"
msgid "Tags to remove"
msgstr "Etiquetes per eliminar"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Target
msgid "Target"
msgstr ""

#: components/manage/Controlpanels/Aliases
# defaultMessage: Target Path (Required)
msgid "Target Path (Required)"
msgstr ""

#: components/manage/Controlpanels/DatabaseInformation
# defaultMessage: Target memory size per cache in bytes
msgid "Target memory size per cache in bytes"
Expand All @@ -2680,6 +2782,11 @@ msgstr "Mida de memòria objectiu per memòria cau en bytes"
msgid "Target number of objects in memory per cache"
msgstr "Nombre objectiu d'objectes a la memòria per memòria cau"

#: components/manage/Controlpanels/Aliases
# defaultMessage: Target url path must start with a slash.
msgid "Target url path must start with a slash."
msgstr ""

#: components/manage/Widgets/SchemaWidget
# defaultMessage: Text
msgid "Text"
Expand Down Expand Up @@ -2739,6 +2846,11 @@ msgstr "No s'ha pogut suprimir l'element."
msgid "The link address is:"
msgstr "L'adreça de l'enllaç és:"

#: components/manage/Aliases/Aliases
# defaultMessage: The provided alternative url already exists!
msgid "The provided alternative url already exists!"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down Expand Up @@ -2901,6 +3013,18 @@ msgstr "Escriu el títol…"
msgid "UID"
msgstr "UID"

#: components/manage/Aliases/Aliases
#: components/manage/Controlpanels/Aliases
#: components/manage/Toolbar/More
# defaultMessage: URL Management
msgid "URL Management"
msgstr ""

#: components/manage/Aliases/Aliases
# defaultMessage: URL Management for {title}
msgid "URL Management for {title}"
msgstr ""

#: components/theme/Unauthorized/Unauthorized
# defaultMessage: Unauthorized
msgid "Unauthorized"
Expand Down Expand Up @@ -3047,6 +3171,11 @@ msgstr "usuaris"
msgid "Users and Groups"
msgstr "Usuaris i Grups"

#: components/manage/Aliases/Aliases
# defaultMessage: Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs.
msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs."
msgstr ""

#: helpers/Extensions/withBlockSchemaEnhancer
# defaultMessage: Variation
msgid "Variation"
Expand Down
Loading