Files
metabuilder/packages/quick_guide/seed/scripts/steps.lua
JohnDoe6345789 9d27207fbc Refactor package validation and quick guide modules
- Simplified structure validation by re-exporting functions from structure_config and validate_structure modules for better maintainability.
- Consolidated validation logic in validate.lua, delegating to validate_package module for clearer orchestration.
- Introduced new quick guide functionalities including step management (add, remove, update, reset ordering) and media handling (thumbnail and video URL validation).
- Added utility functions for URL validation and step creation, enhancing the quick guide's usability.
- Established type definitions for steps and media states to improve code clarity and type safety.
- Enhanced schema editor with new field and relation definitions, providing a more robust structure for database schema management.
2025-12-30 11:17:40 +00:00

27 lines
783 B
Lua

--- Steps editor logic facade for quick guides
--- Re-exports step functions for backward compatibility
---@module steps
local generate_step_id = require("generate_step_id")
local create_step = require("create_step")
local update_step = require("update_step")
local remove_step = require("remove_step")
local add_step = require("add_step")
local reset_ordering = require("reset_ordering")
local validate_step = require("validate_step")
local validate_all_steps = require("validate_all_steps")
---@class StepsModule
local M = {}
M.generateStepId = generate_step_id
M.createStep = create_step
M.updateStep = update_step
M.removeStep = remove_step
M.addStep = add_step
M.resetOrdering = reset_ordering
M.validateStep = validate_step
M.validateAllSteps = validate_all_steps
return M