Skip to content

Feature/add revision structure to analyze between current and previous versions issue 334#344

Merged
oguzhanbukcuoglu merged 17 commits intofeature/add-cms-modulefrom
feature/add-revision-structure-to-analyze-between-current-and-previous-versions-issue-334
Apr 2, 2026
Merged

Feature/add revision structure to analyze between current and previous versions issue 334#344
oguzhanbukcuoglu merged 17 commits intofeature/add-cms-modulefrom
feature/add-revision-structure-to-analyze-between-current-and-previous-versions-issue-334

Conversation

@celikerde
Copy link
Copy Markdown
Collaborator

@celikerde celikerde commented Mar 28, 2026

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Types of changes

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to our CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit

Description

Related Issue

…nsive tests for Revision and HasRevisions traits
- Included 'revisions', 'restoreUrl', and 'previewUrl' in the form data response for enhanced revision handling capabilities.
…views

- Introduced `createPreviewComponent` function to generate Vue components for module previews based on field definitions.
- Added `FaqPreview.vue` as a specific implementation of the preview component for FAQs.
…ew functionality

- Added support for displaying and restoring revisions through new dialog components.
- Integrated `RevisionsList` for managing revisions within the form.
… methods for revision management

- Changed `getRevisionModel` method from protected to public for broader access.
- Introduced `getFormFieldsRevisionsTrait` method to manipulate form fields based on the object and schema.
- Added `getRevisions` method to retrieve revisions for a specific model instance.
… revision functionalities

- Implemented methods for showing views, listing revisions, and restoring revisions.
- Integrated logic for handling active languages and preview views based on module names.
- Enhanced response structure for restoring revisions with success messages and form fields.
…solete restoreRevision method

- Added ManagePreview trait to enhance preview functionalities.
- Removed the restoreRevision method to streamline the controller's responsibilities.
…ling

- Created the RevisionHydrate class to manage input hydration for revision-related functionalities.
- Defined default requirements and implemented the hydrate method to manipulate input schema structure.
- Added endpoints for restoring revisions, showing views, and listing revisions based on the route name.
…ement

- Introduced 'restoreRevision', 'showView', and 'listRevisions' to the Module class.
- Updated RouteServiceProvider to handle new routes for 'showView' and 'listRevisions', enhancing revision management capabilities.
…evisions

- Added a new Revision component to encapsulate the display logic for each revision, including author initials, date formatting, and a restore button.
- Updated RevisionsList component to utilize the new Revision component, improving code organization and readability.
@oguzhanbukcuoglu oguzhanbukcuoglu changed the base branch from dev to feature/add-cms-module April 2, 2026 16:54
…ture-to-analyze-between-current-and-previous-versions-issue-334
@oguzhanbukcuoglu oguzhanbukcuoglu merged commit 6fd007a into feature/add-cms-module Apr 2, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 [FEATURE]: add Revision structure to analyze between current and previous versions

2 participants