Skip to content

Commit d08dea7

Browse files
committed
Saumya Shahi: GSoC progress report week 02
1 parent 4b553dc commit d08dea7

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
3+
title: "GSoC '25 Week 02 Update by Saumya Shahi"
4+
excerpt: "This week focused on documenting the brick tree structure, refining SVG path generation, and learning testing tools like Storybook."
5+
category: "DEVELOPER NEWS"
6+
date: "2025-06-14"
7+
slug: "2025-06-14-gsoc-25-saumya-week02"
8+
author: "@/constants/MarkdownFiles/authors/saumya.md"
9+
tags: "gsoc25,sugarlabs,week02,saumya"
10+
image: "assets/Images/GSOC.png"
11+
-------------------------------
12+
13+
<!-- markdownlint-disable -->
14+
15+
# Week 02 Progress Report by Saumya Shahi
16+
17+
**Project:** [Masonry Module - Music Blocks v4](https://github.com/sugarlabs/musicblocks-v4)
18+
**Mentors:** [Anindya Kundu](https://github.com/meganindya/)
19+
**Assisting Mentors:** [Walter Bender](https://github.com/walterbender/), [Devin Ulibarri](https://github.com/pikurasa/)
20+
**Reporting Period:** 2025-06-07 - 2025-06-14
21+
22+
---
23+
24+
## Goals for This Week
25+
26+
* Understand and define the structure for a tree of bricks (not AST).
27+
* Document how brick configurations and connections should be modeled.
28+
* Fix SVG path issues (left edge generation).
29+
* Learn about testing infrastructure, especially Storybook.
30+
31+
---
32+
33+
## This Week's Achievements
34+
35+
1. **Brick Tree Structure Research & Documentation**
36+
37+
* Studied how a tree of bricks could be represented, which visually models program constructs.
38+
* Created a detailed document explaining configuration schema and nested brick data structures.
39+
* Resource: [Masonry MBv4 Docs](https://docs.google.com/document/d/1UJXh3734S138BoTsGulzeTlZXstyvWd6syJK2eclMKI/edit?usp=sharing).
40+
41+
2. **Bug Fix: Left SVG Path Issue**
42+
43+
* Fixed a critical error in path rendering for bricks — the left edge generation wasn’t calculating offsets correctly.
44+
* Cleaned up related path logic to improve readability and scalability for future nested structures.
45+
46+
3. **Storybook & Testing Familiarization**
47+
48+
* Understood how Storybook is used for visual component testing.
49+
* Learnt how to set up unit tests and component test files.
50+
* Setup groundwork for adding future test cases.
51+
52+
---
53+
54+
## Challenges & How I Overcame Them
55+
56+
* **Challenge:** Mapping the brick tree vs AST was initially confusing.
57+
**Solution:** Spent focused time breaking down what each structure is supposed to represent and clarified use cases.
58+
59+
* **Challenge:** SVG left path errors were hard to trace visually.
60+
**Solution:** Used visual diffing and debugger to narrow down bounding box and stroke-width miscalculations.
61+
62+
---
63+
64+
## Key Learnings
65+
66+
* Improved understanding of **SVG rendering logic** and path construction.
67+
* Got hands-on exposure to **Storybook**, and how visual tests can improve modular development.
68+
* Understood the **difference between data representations** for view (brick tree) and logic (AST).
69+
70+
---
71+
72+
## Next Week's Roadmap
73+
74+
* Start implementation of the brick tree rendering using the documented configuration.
75+
* Add test cases for individual brick render states.
76+
77+
---
78+
79+
## Resources & References
80+
81+
* **Brick Tree Docs:** [Link](https://docs.google.com/document/d/1UJXh3734S138BoTsGulzeTlZXstyvWd6syJK2eclMKI/edit?usp=sharing)
82+
* **Music Blocks Repo:** [github.com/sugarlabs/musicblocks-v4](https://github.com/sugarlabs/musicblocks-v4)
83+
* **Storybook Docs:** [storybook.js.org](https://storybook.js.org/)
84+
85+
---
86+
87+
## Acknowledgments
88+
89+
Thank you to my mentors and the Sugar Labs community for continued guidance and thoughtful feedback!

0 commit comments

Comments
 (0)