Skip to content

Allow ordering categories and projects - #121

Merged
dsandstrom merged 19 commits into
masterfrom
js-sorting-projects
Aug 31, 2026
Merged

Allow ordering categories and projects#121
dsandstrom merged 19 commits into
masterfrom
js-sorting-projects

Conversation

@dsandstrom

Copy link
Copy Markdown
Owner

Add position to categories and projects, use it to set order
Add RepositionCategoriesController and RepositionProjectsController and views and specs
Add new_position attrs and reposition methods that use the new position
Use sortablejs and drag and drop to allow manual sorting

Fixes Task#75

Add internal tag
Use for category in move forms
RepositionCategoriesController and spec
Add index views and spec
Update helper and styles
Add validations to check new_position - only allow reasonable integers
Change reposition so only works with integers
Use new validation
Allow json format
Use params.expect
Add examples for json requests
Ignore when not moved
Validate new_position
Add #reposition
Add RepositionProjectsController and spec
Update sortables.js
Update view
layout and css
Fixes Task#75
@dsandstrom
dsandstrom merged commit 29a5ef3 into masterAug 31, 2026
5 checks passed
Sign up for freeto 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.

1 participant

@dsandstrom