Repository navigation
Setup wizard: a new array from the mounted disks, or the config you have - #32
Merged
Merged
Conversation
Without a configuration file, the dashboard offers both ways: add an existing snapraid.conf, or set up a new array. The wizard lists the mounted filesystems (df, without system and virtual ones), the user picks data and parity disks, it checks names, paths and parity sizes, shows the snapraid.conf it writes (content files on different disks, one more copy than parity levels), creates it in the data folder and starts the first sync. The first start's placeholder entry is replaced. With unit and end-to-end tests and documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JuXnquCPdbG5sBbDyin7yF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first
snapraid.confis the biggest hurdle for new users. Without a configuration file, the dashboard now offers both ways:snapraid.confcopied into the data folder still works without any further step./setup.The wizard
df./etc/hostsin Docker).d1,d2, … (editable).snapraid.conf, then writes it into the data folder. Run the first sync right away is on by default.The generator lives in
shared/array-setup.ts, so the preview is exactly what the backend writes. It produces:parity/2-parity/… files at the top of each parity disk;First start
snapraid.conf. The welcome now also appears while that file doesn't exist, not only when there are no entries at all. Before, a fresh install showed a dashboard full of errors.API
GET /api/setup/mountsPOST /api/setup/createwith{name, fileName, setup}: 400 withproblemsif the setup is incomplete or a path is not a directory, 201 with the stored path.Tests
dffiltering on a typical container's mounts (spaces in paths, duplicates,/etc/hosts,/app);disks.md(Set up a new array),installation.md(First start),architecture.md(API),development.md, README.mkdocs build --strictpasses.This PR and #31 both add translation keys, a row in the E2E table of
development.md, and a route torouteTree.gen.ts. Whichever is merged second needs a rebase; I'll do it.🤖 Generated with Claude Code
https://claude.ai/code/session_01JuXnquCPdbG5sBbDyin7yF
Generated by Claude Code