Skip to content

Add archiving UI with configurable version retention - #16

Closed
Zesseth with Copilot wants to merge 3 commits into
masterfrom
copilot/create-ui-for-archiving
Closed

Add archiving UI with configurable version retention#16
Zesseth with Copilot wants to merge 3 commits into
masterfrom
copilot/create-ui-for-archiving

Conversation

Copilot AI commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Implements UI for archiving older project versions to a destination folder, keeping only N most recent versions active.

Changes

New module: archiving.lua

  • Scans parent directory for versioned folders
  • Determines archivable versions: version < (current_version - versions_to_keep)
  • Copies old versions to archive destination (preserves originals)

UI section in gui.lua

  • Integer input for versions to keep (default: 3, validates ≥1)
  • Archive destination display with path truncation
  • Browse button (uses JS extension if available, validates text input fallback)
  • Archive Now button (enabled when project loaded + destination set)

Event handlers in RASP.lua

  • Browse: folder selection with validation
  • Archive: executes archiving, displays status

Configuration in config.lua

  • Added archive_destination and versions_to_keep settings (persist via ExtState)
  • Increased default window height to 400px

Example

With current version v10 and keep=3:

  • Cutoff: v10 - 3 = v7
  • Archives: v1-v6 (all versions < v7)
  • Keeps: v7-v10 active
Original prompt

This section details on the original issue you should resolve

<issue_title>UI for archiving</issue_title>
<issue_description>Create user interface for the archiving.
This should be there below save button.

It should state "archive now".
As well there is integer field where can me added number of versions what should be kept active and not archived. All other versions (older ones) what version number is less than current version minus that set value should be arviced.

Ui should as well have destination selection. It should be file folder destination browser.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Dec 19, 2025
Copilot AI and others added 2 commits December 19, 2025 18:20
Co-authored-by: jlahtela <13746676+jlahtela@users.noreply.github.com>
…older browser

Co-authored-by: jlahtela <13746676+jlahtela@users.noreply.github.com>
Copilot AI changed the title [WIP] Add user interface for archiving functionality Add archiving UI with configurable version retention Dec 19, 2025
Copilot AI requested a review from Zesseth December 19, 2025 18:28

@Zesseth Zesseth left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be merged to V0.2_features branch, not to master.

@Zesseth
Zesseth marked this pull request as ready for review December 19, 2025 22:02
@Zesseth Zesseth closed this Dec 19, 2025
@Zesseth
Zesseth deleted the copilot/create-ui-for-archiving branch December 19, 2025 22:04
Copilot AI requested a review from Zesseth December 19, 2025 22:04
@Zesseth
Zesseth restored the copilot/create-ui-for-archiving branch December 19, 2025 22:06
@Zesseth Zesseth reopened this Dec 19, 2025
@Zesseth

Zesseth commented Dec 19, 2025

Copy link
Copy Markdown
Owner

@copilot please change branch to V0.2_features

Copilot AI commented Dec 19, 2025

Copy link
Copy Markdown
Contributor Author

@copilot please change branch to V0.2_features

I can see that the V0.2_features branch already contains all my commits (7923418, 9714c54, 2465b56). The PR base branch needs to be changed on GitHub - I cannot change it directly via git commands.

If you'd like me to create a new branch based on a different starting point for V0.2_features, please let me know what the base should be. Otherwise, you can change the PR target branch in the GitHub UI by editing the PR and selecting V0.2_features as the base branch.

@Zesseth Zesseth closed this Dec 19, 2025
@Zesseth
Zesseth deleted the copilot/create-ui-for-archiving branch March 13, 2026 15:14
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.

UI for archiving

2 participants