cds-snc / cds-snc/platform-forms-client

Ability to undo changes or revert to a previous version (Versions V2)

Open
#7,404 0 comments 0 reactions 0 assignees View on GitHub
app development enhancement needs design
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 9h
Merged PRs (30d)
91

Description

## Context

https://cds-snc.freshdesk.com/a/tickets/28813

> Revert a form (while in draft) based on a previously saved copy (instead of uploading an old version as a new form)

https://cds-snc.freshdesk.com/a/tickets/29571

> After publishing a form, and creating a draft v2, how do I delete draft v2? We have no intention of publishing it.

## Current state

There's no way to rollback a form version, can only:
- Revert the changes manually and publish
- Delete the form
- Download the version they wish to keep, delete the current form, recreate the form using the downloaded version
- Currently archive does archive the published form not the draft.

## Form builder needs

- [ ] Undo the latest changes
- [ ] Go back to previous version
- [ ] Delete newly made draft version on a published form
- [ ] Rollback to a specific previous version to replace the current

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by clarifying which versioning behaviors are required and how drafts, published versions, deletion, undo, and rollback should interact; define acceptance criteria for each requested capability before locating the relevant form-builder code and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.