1
0
Fork 0
Commit graph

113108 commits

Author SHA1 Message Date
joostdecock
44e04a4cef feat: Upgrade to TailwindCSS 4 & DaisyUI 5 (#263)
Also fixes #251

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/263
Co-authored-by: joostdecock <joost@joost.at>
Co-committed-by: joostdecock <joost@joost.at>
2025-04-18 08:07:13 +00:00
Jonathan Haas
a2863e5158 [org] fix: include strings from pluginI18n package in Legend MDX component (#262)
Fixes #125

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/262
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:36:44 +00:00
Jonathan Haas
5ba6d4d0b0 [react] fix: deselecting included parts (#259)
Running `updateHandler(part, undefined)` will set the setting to null instead of removing/resetting it, which causes problems.

Fixes #239

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/259
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:24:34 +00:00
Jonathan Haas
0364e9c463 [react] fix: Pattern reset button (#258)
Fixes #252

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/258
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:23:42 +00:00
Jonathan Haas
7bb1f8cf3d [core] chore: Minor improvements for the bezier reduce function (#257)
- Give up early if the curve is empty (or otherwise malformed, i.e. if it contains NaN points), instead of iterating endlessly
- Limit the iterations to 20 as the comment says
- Don't go above 1 for the t values

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/257
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:23:03 +00:00
Jonathan Haas
647205661b [react] fix: the inspect view popup when clicking on a path or point, fix missing translations in the xray path and point components (#256)
This fixes some react wiring in the inspect view.

The drillProps argument contains the info function which displays the popup. Also `strings` should be passed for translation, instead of the t function.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/256
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:22:16 +00:00
Jonathan Haas
bc1d873b19 [org] fix: Restore public view of measurement sets (#247)
Also by default view imperial measurement sets as imperial and metric ones as metric (this is questionable, and should probably be discussed, alternatively we could default displayAsMetric to the account setting?)

Fixes #230

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/247
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:20:50 +00:00
Jonathan Haas
915e52b7d4 [react] fix: Fix weird slider behaviour when entering default value (#246)
Fixes #212

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/246
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-13 09:00:08 +00:00
Jonathan Haas
a9f5ba5392 Fix string translations in multiple views and SVG export and theming in SVG draft view (#244)
Fixes #227
Fixes #78

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/244
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-13 08:59:27 +00:00
Jonathan Haas
04a0b4b099 [plugin-path-utils] feat: Add path-utils plug-in (#236)
This plug-in helps with creating seam allowance and hem paths.

Rebased v4 version for #99, see the linked issue for screenshots/details.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/236
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-13 08:58:45 +00:00
Jonathan Haas
36da79afb6 [react] fix: Various fixes for the measurement view and editor (#233)
Various fixes for the measurement view and editor:

- Translate measurements in the measurement set view and align the measurements table properly
- Display a question mark next to the measurements that links to the corresponding docs page

This fixes a part of #226

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/233
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-13 08:57:54 +00:00
joostdecock
c5b0daf390 fix: Various website and repo fixes (#243)
- Fixes things in Oath flow, yet needs testing before we close #235
- Updates security notice, closes #240
- Fixes broken links to user profiles, closes #238

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/243
Co-authored-by: joostdecock <joost@joost.at>
Co-committed-by: joostdecock <joost@joost.at>
2025-04-12 10:42:35 +00:00
Jonathan Haas
7f5258d42d Fix some minor issues (dead links, typos) in the contribution guide. (#237)
Fixes #191

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/237
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-12 08:01:44 +00:00
Jonathan Haas
658555efb6 [react] fix: Improve handling default values of the pattern settings. (#234)
Fixes #229

unsure if expand is intended to be enabled or disabled by default, I opted for saving paper by default, but this can be easily changed.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/234
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-12 08:01:16 +00:00
Jonathan Haas
aa9267b3c9 [tests] feat: when sampling options, also test different settings for sa, paperless and complete (#225)
This ensures that we catch crashes that only occur with certain options set and/or only with sa and/or complete enabled.

Closes #189
Closes #85

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/225
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-12 07:51:23 +00:00
Jonathan Haas
5672638bf9 [core] feat: Hotfix the reduce function in the bezier library (#224)
Fixes #117

Co-authored-by: joostdecock <joost@joost.at>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/224
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-12 07:48:39 +00:00
joostdecock
bd44ca1cd2 [org] fix: Add links to design options and instructions
Also closes #206
2025-04-07 05:46:36 +00:00
joostdecock
0360339ed3 [org] fix: Edit link should go to codeberg. Closes #213 2025-04-07 05:46:36 +00:00
joostdecock
96bce2ef7c [react] fix: Do not apply null layout. Closes #219 2025-04-07 05:46:36 +00:00
joostdecock
25664d9b22 [org] chore: Updates to bee index file 2025-04-07 05:46:36 +00:00
joostdecock
be36868819 chore: Newsletter script updates 2025-04-07 05:46:36 +00:00
joostdecock
e1785dab5c [org] chore: Keep prebuild files out of repo 2025-04-07 05:46:36 +00:00
joostdecock
48cdfef5f6 [react] fix: Use replaceState in hash. See #216 2025-04-07 05:46:36 +00:00
Jonathan Haas
dbf49fd8ff [react] fix: copy-paste error introduced in #205, causing the InspectView to crash (#221)
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/221
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-07 05:22:55 +00:00
joostdecock
7a554ef819 chore: Cleanup v3 files. Closes #217 2025-04-06 16:51:38 +02:00
Jonathan Haas
c34bf694e1 [react] fix: pattern export issues (#218)
Fix the export functionality in the pattern editor:

* Fix the export button in the header bar
* Fix the copy to clipboard buttons displaying no text and having a weird styling.

Before:
![before](/attachments/b2c542a8-06ee-46fa-9058-36b738e285cc)
After:
![after](/attachments/754993a9-04ee-44e9-ae78-7529a1298a54)

Fixes #215

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/218
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-06 14:47:22 +00:00
Josh Munic
fcbb8ecc0b [org] chore: Remove Simon Sew Along (#214)
The link to the video in the simon sew-along is broken. Remove the sew along from the Simon shirt sewing instructions.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/214
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Josh Munic <jpmunic@gmail.com>
Co-committed-by: Josh Munic <jpmunic@gmail.com>
2025-04-06 14:46:22 +00:00
SeaZeeZee
797f1f70b4 [react] feat: add jane linedrawings (#211)
Adds linedrawings to Jane's design page.

Co-authored-by: SeaZeeZee <86711383+SeaZeeZee@users.noreply.github.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/211
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: SeaZeeZee <seazeezee@noreply.codeberg.org>
Co-committed-by: SeaZeeZee <seazeezee@noreply.codeberg.org>
2025-04-06 14:45:49 +00:00
Jonathan Haas
a110d222c9 [react] fix: seam allowance slider (#210)
Fixes #208

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/210
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-06 14:44:22 +00:00
Jonathan Haas
b4a5393290 [react] feat: Improved error handling when pattern drafting fails (#205)
If drafting a part fails, the logs store contains an array [message, stacktrace] instead of a simple string. Handle this in the LogView.

Also display an error message in the DraftView when there were errors during drafting.

![image](/attachments/62cdebe3-7825-4382-88fd-395337cda58b)

after clicking the button:

![image](/attachments/f909887b-b9bd-467e-9e13-f850c38d76b3)

(could also display the stack traces, but they're quite unhelpful and you can find them in the browser console anyway, the code for that is commented out)

Closes #163

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/205
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-06 14:42:42 +00:00
bobgeorgethe3rd
40eb75ce43 [org] chore: add(showcase) Author claims (#203)
Closes #165
Closes #166
Closes #195

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/203
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: bobgeorgethe3rd <bobgeorgethe3rd@googlemail.com>
Co-committed-by: bobgeorgethe3rd <bobgeorgethe3rd@googlemail.com>
2025-04-06 14:41:14 +00:00
bobgeorgethe3rd
d5d1e2cdce [plugin-annotations] fix: Logo position tweaked (#202)
Closes #140
The shared path causes the logo to be offset differently so to fix this making a slight tweak to the translate.
Before
![389739047-89fac76a-a197-47ca-a4e2-32b5235a4ecb](/attachments/07f82d21-fd50-45ca-bf46-7833e719fc10)
After
![389739085-2c98ff55-ec79-494a-bc52-f3a56b4fa802](/attachments/0f6c09e4-c8b6-42c6-a622-2779e4595c7d)

Designs after Oct 2023 will have used the incorrect one so may need tweaking down the line.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/202
Co-authored-by: bobgeorgethe3rd <bobgeorgethe3rd@googlemail.com>
Co-committed-by: bobgeorgethe3rd <bobgeorgethe3rd@googlemail.com>
2025-04-06 14:40:37 +00:00
joostdecock
b6ab7517c1 [org] fix: Set view to measurements when they are missing
Closes #209
2025-04-04 14:20:57 +02:00
joostdecock
f30b67080b [dev] fix: Ensure path._curve is included in docs. Closes #193 (#204)
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/204
Co-authored-by: joostdecock <joost@joost.at>
Co-committed-by: joostdecock <joost@joost.at>
2025-04-03 16:38:48 +00:00
bobgeorgethe3rd
d973cb4248 [bee]: Refactor code & fixes (#200)
Closes #105
Closes #76
Closes #148

This is a major clean up and overhaul of Bee's code.

Changes

-     Reinstating the ability to toggle the colours of neck and band tie independently
-     Reinstating the ability to toggle pointed edge of neck and band tie independently
-     Simplify snap options
-     Simplfication of the code
-     Simplify Cutting Instructions
-     Cutlist re-work
-     Hidden tie flag message also now appears when !options.ties
-     Neck tie is no longer hidden when options.pointedNeckTieEnds == true
-     Band tie is no longer hidden when options.crossBackTies == true
-     Band tie is no longer hidden when options.pointedBandTieEnds == true && !options.crossBackTies
-     options.reversible now acts as an override for options.duoNeckTieColours & options.duoBandTieColours
-     options.reversible markdown updated to reflect this
-     Updated neckTieLength when crossBackTies == true this was an error from the original code.
-     Designer note links updated for new options.
-     i18n en.json file updated to reflect change in options

Fixes

-     Neck ties no longer cut on fold (This was an error from when originally coded)
-     Band tie locks in duo colours when options.crossBackTies == true (this is why there were incorrect notch placements)
-     options.bandLength move to neck.mjs
-     Locking Bella options that were added post Bee.

Additions

-     options.duoNeckTieColours
-     options.duoBandTieColours
-     options.pointedNeckTieEnds
-     options.pointedBandTieEnds
-     New option markdown
-     Added snap info to neckTieWidth & bandTieWidth markdown

Removed

-     options.duoTieColors
-     options.pointedTieEnds
-     removed option markdown
-     Hidden tie flag message has had expand flags removed

Things to Note

-     The cut list is not using the mirrored preset to hopefully lessen confusion.

Moving forward, as the original coder of this design, in an effort to maintain the design as intended by the original designer in the future, it would streamline the process and be helpful if any requests for maintenance were sent directly to me.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/200
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: bobgeorgethe3rd <bobgeorgethe3rd@googlemail.com>
Co-committed-by: bobgeorgethe3rd <bobgeorgethe3rd@googlemail.com>
2025-04-03 16:13:24 +00:00
Jonathan Haas
3cba9e4020 [org] fix: fix/new-measurement-set (#201)
Fixes #197

Not tested in detail since that needs an account without measurement sets, which I don't have.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/201
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-03 16:08:13 +00:00
joostdecock
285d8d356d chore: clean up debug code 2025-04-03 17:59:32 +02:00
joostdecock
7f39f319c6 [org] fix: Missing new measurements set link 2025-04-03 17:58:15 +02:00
Joost De Cock
880f738973 [org] feat: Add curated measurments sets to site (#198)
Also includes fixes for darkmode.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/198
2025-04-03 14:41:18 +00:00
Jonathan Haas
77e75fa940
[org] fix: Fix various links 2025-04-03 15:28:13 +02:00
joostdecock
c5720c1163 [org] fix: Fix 'update pattern' link 2025-04-02 17:31:23 +02:00
joostdecock
b5d5c4f15d [org] fix: Newsletter unsubscribe handling 2025-04-02 17:05:54 +02:00
Joost De Cock
74a9276e9e
feat: v4 newsletter and blog posts (#7387) 2025-04-01 19:27:11 +02:00
Joost De Cock
51dc1d9732
[breaking]: FreeSewing v4 (#7297)
Refer to the CHANGELOG for all info.

---------

Co-authored-by: Wouter van Wageningen <wouter.vdub@yahoo.com>
Co-authored-by: Josh Munic <jpmunic@gmail.com>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
2025-04-01 16:15:20 +02:00
Josh Munic
d22fbe78d9
Fix the cutting instructions for the Simon Yoke (#7378)
- Previously it said to cut 1 on the fold, which is wrong
- Now it says to cut 2 mirrored from main fabric
2025-03-22 09:45:50 +01:00
bobgeorgethe3rd
56cb3fc9e9
Add GursMan123 Author (#7301) 2025-01-02 17:00:57 +01:00
Joost De Cock
7b824b5cf4
feat[dev]: Clarify that mm options is (sometimes) ok (#7263) 2024-11-25 10:02:41 +01:00
Joost De Cock
469eb43c95
feat: Add various content types to docusaurus (#7231)
This brings blog posts, showcase posts, and newsletter editions into the Docusaurus site.

It also adds support for using TailwindCSS inside a container. So this will probably end up being the new freesewing.org site in v4.
2024-11-18 11:05:16 +01:00
BenJamesBen
ef8f68bcaf
fix(scripts): Remove references to lab development environment (#7232)
Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
2024-11-16 15:43:10 +01:00
BenJamesBen
788ea77ffa
fix(docs) Add missing cutlist store methods and improve cutlist docs (#7052)
* fix(docs): cutlist.removeCut() can remove all cutting instructions

* fix(docs): Add cutlist.setcut doc

* fix(docs): cutlist.addcut() signature and other improvements

* fix(docs): cutlist store methods improvements

* fix(docs) Add missing cutlist store methods

* fix(docs): Remove cutlist store methods docs from old docs location

* fix(docs): Add missing cutlist store methods

---------

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
2024-11-16 15:39:49 +01:00