Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix]: Overlapping panelboard schedule excel export & changelog formatting. #83

Merged
merged 221 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from 137 commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
9aba723
✨ Update import path for page store in add-load-dialog component
isipisii Dec 30, 2024
96cf0a7
✨ Adjust layout and styling for improved responsiveness and visual co…
isipisii Dec 30, 2024
455a435
✨ Update import path for page store in generic phase main load form c…
isipisii Dec 30, 2024
83ddb09
Merge pull request #80 from pitzzahh/feat/vd-table
isipisii Dec 30, 2024
f13d907
✨ Enhance project deletion logic to remove associated projects from t…
isipisii Dec 30, 2024
c9250b1
✨ Add error handling for insufficient conductor size in one-phase mai…
isipisii Dec 30, 2024
a656aca
✨ Add error handling for insufficient information in conduit size footer
isipisii Dec 30, 2024
2759738
Merge pull request #81 from pitzzahh/feat/vd-table
isipisii Dec 30, 2024
ed972d8
📝 Update changelog to fix markdown rendering issue
pitzzahh Dec 31, 2024
6d669cc
🔧 Add support for Markdown files in Svelte configuration
pitzzahh Jan 1, 2025
d9be6a2
➕ Add msdx package for enhanced Markdown support
pitzzahh Jan 1, 2025
fc740f0
🔧 Add mdsx configuration for Markdown file support
pitzzahh Jan 1, 2025
a79708e
♻️ Update connection check to use raw GitHub URL for improved reliabi…
pitzzahh Jan 1, 2025
7b4fead
📝 Add initial MDSX markdown file for documentation
pitzzahh Jan 1, 2025
800c314
🔧Remove mdsx configurations
pitzzahh Jan 1, 2025
2967cba
➖ Remove mdsx and marked dependencies
pitzzahh Jan 1, 2025
4ac129b
🔧 Add tailwindcss typography
pitzzahh Jan 1, 2025
05a32b8
🔥Remove unused markdown file
pitzzahh Jan 1, 2025
54e2e27
🍱 Add CloudAlert icon asset
pitzzahh Jan 1, 2025
663a15d
🐛 Fix changelog markdown rendering issue
pitzzahh Jan 1, 2025
2f627dd
💄 Improve error handling and adjust layout in changelog component
pitzzahh Jan 1, 2025
f919251
♻️ Refactor connection handling and adjust layout in view-changelog c…
pitzzahh Jan 1, 2025
8e675d0
♻️ Simplify connection handling in view-changelog component
pitzzahh Jan 1, 2025
bc70896
♻️ Enhance toast notifications with consistent positioning and improv…
pitzzahh Jan 1, 2025
5378bd3
♻️ Refactor layout and improve user experience in changelog component
pitzzahh Jan 1, 2025
aa3c846
♻️ Update createDatabase function to support memory storage option
pitzzahh Jan 1, 2025
873cbab
🐛Fix bug where panel board schedules are overlapping when heirarchy i…
pitzzahh Jan 1, 2025
fbef6ae
📝 Update changelog to include fix for overlapping panelboard schedule…
pitzzahh Jan 1, 2025
bc0170d
🔖 Bump version to 0.3.28 in package.json and tauri.conf.json
pitzzahh Jan 1, 2025
7517f72
🔧 Add contributors section to package.json
pitzzahh Jan 1, 2025
d9c0cf7
✨ Integrate UndoRedoProvider into workspace layout for enhanced state…
isipisii Jan 1, 2025
1b47ce6
✨ Initialize undo/redo state in layout component
isipisii Jan 1, 2025
db14d4c
✨ Extend State type to include SettingsState and UndoRedoState
isipisii Jan 1, 2025
d207af5
✨ Add UNDO_REDO_STATE_CTX constant for undo/redo state
isipisii Jan 1, 2025
2a15c6d
✨ Implement UndoRedoState class for managing undo/redo actions in the…
isipisii Jan 1, 2025
9bc8723
✨ Allow specifying existing node ID when adding a node in the database
isipisii Jan 1, 2025
9567126
✨ Integrate undo/redo functionality in generic phase main load form
isipisii Jan 1, 2025
1ba1158
✨ Integrate undo/redo state management for node addition in generic p…
isipisii Jan 1, 2025
5ff87ff
✨ Add undo/redo keyboard shortcuts in undo-redo provider component
isipisii Jan 1, 2025
7fe5d01
✨ Add undo/redo buttons component with tooltips
isipisii Jan 1, 2025
fea43bf
✨ Add UndoRedoButtons component to sidebar header
isipisii Jan 1, 2025
d3e742f
🐛 Fix extra shidted load data row
pitzzahh Jan 1, 2025
cd4db24
📝 Update changelog for version 0.3.29 to include fix for extra shifte…
pitzzahh Jan 1, 2025
f474ecd
✨ Add undo and redo for delete actions
isipisii Jan 1, 2025
0d7096a
✨ Integrate undo/redo functionality for node deletion in sidebar tree…
isipisii Jan 1, 2025
46aca9c
✨ Refactor node addition logic in undo/redo to dry it up
isipisii Jan 2, 2025
92822d4
✨ Enhance undo/redo functionality to handle child nodes during node c…
isipisii Jan 2, 2025
2884037
✨ Integrate undo/redo for node copying
isipisii Jan 2, 2025
f3c36bd
✨ Disable undo/redo buttons when no actions are available
isipisii Jan 2, 2025
13f48a3
✨ Integrate undo/redo functionality for node deletion in column dropd…
isipisii Jan 2, 2025
05dba1b
✨ Enhance removeNode function to return removed node and its children…
isipisii Jan 2, 2025
fc9d1c6
✨ Enhance updateNode function to support updating with whole data obj…
isipisii Jan 2, 2025
6c0328a
♻️ Reuse processOnePhaseExcelPanelBoardSchedule to external file
pitzzahh Jan 2, 2025
9e0e5a3
🐛 Fix toast warning handling in sidebar-header component
pitzzahh Jan 2, 2025
738e6c3
♻️ Refactor sidebar-tree component to dropdown menu action on panels
pitzzahh Jan 2, 2025
0164871
✨ Add support for field overrides in undo/redo functionality
isipisii Jan 2, 2025
7869db6
✨ Refactor getComputedLoads function to simplify child node data extr…
isipisii Jan 2, 2025
360530b
✨ Refactor updateNode and related functions to streamline update quer…
isipisii Jan 2, 2025
da1bb03
✨ Refactor onePhaseMainOrWyeCols to use node objects instead of node …
isipisii Jan 2, 2025
cab7f73
✨ Implement undo/redo functionality in pole-dropdown component
isipisii Jan 2, 2025
178a7e5
✨ Enhance load-description-cell component to integrate undo/redo func…
isipisii Jan 2, 2025
6977859
✨ Integrate undo/redo functionality in insulations-dropdown component…
isipisii Jan 2, 2025
84f421e
✨ Integrate undo/redo functionality in conductor-sets-cell component …
isipisii Jan 2, 2025
584752a
✨ Add undo/redo functionality for node copying in column-dropdown com…
isipisii Jan 2, 2025
cf4ff84
✨ Update base-columns component to pass entire node object instead of…
isipisii Jan 2, 2025
99a009f
♻️ Update sidebar-tree component layout and improve class handling
pitzzahh Jan 2, 2025
8cda605
✨ Integrate undo/redo functionality for node updates in generic-phase…
isipisii Jan 2, 2025
e28715b
✨ Integrate undo/redo functionality for node updates in generic-phase…
isipisii Jan 2, 2025
45f0996
✨ Integrate undo/redo functionality for field overrides in override-s…
isipisii Jan 2, 2025
b20b982
Merge branch 'feat/exports' of https://github.com/pitzzahh/heda into …
isipisii Jan 2, 2025
5471642
Merge pull request #87 from pitzzahh/feat/undo-redo
isipisii Jan 2, 2025
74211e1
♻️ Enhance sidebar-tree component with context menu and dropdown acti…
pitzzahh Jan 2, 2025
71fad20
🔀 Merge branch 'feat/exports' of https://github.com/pitzzahh/heda int…
pitzzahh Jan 2, 2025
0c0a0aa
♻️ Refactor sidebar-tree component to integrate context menu for load…
pitzzahh Jan 2, 2025
21b7cfc
✨ Add setModeAndColor function to manage theme settings and mode swit…
pitzzahh Jan 2, 2025
8f366c2
🍱 Add SunMoon icon to the icon library
pitzzahh Jan 2, 2025
69c4ccb
🔥 Remove theme toggle functionality and associated imports from sideb…
pitzzahh Jan 2, 2025
da74bba
✨ Add theme selection with light, dark, and system options to setting…
pitzzahh Jan 2, 2025
03845d6
♻️ Refactor updateNode function to streamline update logic and improv…
isipisii Jan 3, 2025
227eda0
✨ Update sidebar dimensions: increase max width to 900px, default wid…
isipisii Jan 3, 2025
3248d52
✨ Update sidebar actions: add text-muted class for icons and improve …
isipisii Jan 3, 2025
8127113
🔥 Remove unused settings state import from sidebar-header component
isipisii Jan 3, 2025
e3e1de6
♻️ Remove unnecessary padding from add-load-dialog component
isipisii Jan 3, 2025
be441e1
♻️ Refactor getEgcSize and getConduitSize functions to return -1 for …
isipisii Jan 3, 2025
40e67b1
✨ Enhance error handling in table columns: render ErrorCell for inval…
isipisii Jan 3, 2025
1d7b90a
Merge pull request #88 from pitzzahh/feat/undo-redo
isipisii Jan 3, 2025
e2db450
♻️ Update mode setting logic to handle undefined values in settings d…
pitzzahh Jan 3, 2025
91479de
✨ Refactor exportToExcel function to improve parameter handling and s…
pitzzahh Jan 3, 2025
c388935
✨ Add export functionality to sidebar tree for exporting panel data t…
pitzzahh Jan 3, 2025
775fbfa
🏷️ Add ButtonState type to improve state management in components
pitzzahh Jan 3, 2025
16c164c
✨ Implement exportToExcel function for panelboard schedule with enhan…
pitzzahh Jan 3, 2025
05f7be7
🔀 Merge branch 'feat/exports' of https://github.com/pitzzahh/heda int…
pitzzahh Jan 3, 2025
9cce0f5
🔥 Update sidebar tree component to enhance dropdown menu styling and …
pitzzahh Jan 3, 2025
2bfd1f8
⬆️ Upgrade dependencies to latest version
pitzzahh Jan 3, 2025
3a46a5f
✨ Refactor sidebar tree component to integrate Portal for dropdown me…
pitzzahh Jan 3, 2025
6c80b67
🐛 Fix heirarchy actions not visible when too deep
pitzzahh Jan 3, 2025
6d611e1
🐛 Update warning message to include loads in export process validation
pitzzahh Jan 3, 2025
c3b65c8
🐛 Fix potential null reference in getNodeById call and remove unused …
pitzzahh Jan 3, 2025
a9204b9
🎨 Fix formatting in getCurrentProject query for improved readability
pitzzahh Jan 3, 2025
dbf8326
🐛 Fix parent node reference in Excel export processing to prevent pot…
pitzzahh Jan 3, 2025
2e0300b
🐛 Fix exportToExcel call by removing undefined parameter and improve …
pitzzahh Jan 3, 2025
8d33a8b
🦺 Integrate wrappedValidateAjvStorage for Dexie storage in database c…
pitzzahh Jan 3, 2025
c4217cd
⬇️ Downgrade rxdb to ^15.39.0
pitzzahh Jan 3, 2025
0d086d1
✨ Add validate_storage option to createDatabase for conditional stora…
pitzzahh Jan 3, 2025
63af0ab
✨ Add Collapsibles class for managing collapsible node states in loca…
isipisii Jan 3, 2025
6e286c5
✨ Integrate Collapsibles for managing collapsible node states in side…
isipisii Jan 3, 2025
c22d11a
✨ Integrate Collapsibles for managing node IDs in generic phase main …
isipisii Jan 3, 2025
48e5e4a
✨ Integrate Collapsibles for managing node IDs in generic phase main …
isipisii Jan 3, 2025
ccc3ef9
Merge branch 'feat/exports' of https://github.com/pitzzahh/heda into …
isipisii Jan 3, 2025
d5c5ab9
Merge pull request #89 from pitzzahh/feat/undo-redo
isipisii Jan 3, 2025
c0a7c17
🐛 Fix bug when exporting to a specific starting child panel
pitzzahh Jan 3, 2025
7865191
✨ Add function to calculate node depth in the database queries
pitzzahh Jan 3, 2025
b6b8c85
♻️ Refactor getNodeDepth function to simplify depth calculation logic
pitzzahh Jan 3, 2025
008525c
🐛 Fix exporting to excel on specific heirarchy
pitzzahh Jan 3, 2025
508779e
📝 Add dropdown menu for hierarchy actions and export options; improve…
pitzzahh Jan 3, 2025
8637128
🗃️ Add 'show_loads_on_unit_hierarchy' boolean field to project schema
pitzzahh Jan 3, 2025
a7060b0
♻️ Update project settings function to accept partial settings object
pitzzahh Jan 3, 2025
8e92294
✨ Add support for 'show_loads_on_unit_hierarchy' setting in settings …
pitzzahh Jan 3, 2025
428ee0d
⚡️Optmize settings dialog state handling
pitzzahh Jan 3, 2025
b01124b
♻️ Refactor update state handling to use component state object
pitzzahh Jan 3, 2025
f400354
✨ Add 'show_loads_on_unit_hierarchy' setting to project creation and …
pitzzahh Jan 3, 2025
32dae8a
♻️ Update database creation to enable initialization flag
pitzzahh Jan 3, 2025
1f4c67f
✨ Update database creation function to accept customizable parameters
pitzzahh Jan 3, 2025
f523095
✨ Implement show loads in Unit Hierarchy setting in settings dialog
pitzzahh Jan 3, 2025
448d6ce
💄 Update label and description for 'Show loads in Unit Hierarchy' set…
pitzzahh Jan 3, 2025
9971df1
♻️ Refactor project settings update logic to include project existenc…
pitzzahh Jan 3, 2025
f7f5ea5
🔥 Remove unused import for processOnePhaseExcelPanelBoardSchedule in …
pitzzahh Jan 3, 2025
f0ad693
🗃️ Change default value of show_loads_on_unit_hierarchy to false in p…
pitzzahh Jan 3, 2025
f25299f
♻️ Refactor savePreference function to handle project settings update…
pitzzahh Jan 3, 2025
7fec112
✨ Add show_loads_on_unit_hierarchy state and setter method in Setting…
pitzzahh Jan 3, 2025
e506c83
🏷️ Add show_loads_on_unit_hierarchy property to Settings type
pitzzahh Jan 3, 2025
27ecc30
✨ Update settings dialog to set show_loads_on_unit_hierarchy state af…
pitzzahh Jan 3, 2025
1b8ce5f
✨ Show loads on unit hierarchy based on settings state in sidebar tre…
pitzzahh Jan 3, 2025
0b30b42
📝 Update changelog for version 0.4.29 release
pitzzahh Jan 3, 2025
f310e19
🔖 Bump version to 0.4.29 in package.json and tauri.conf.json
pitzzahh Jan 3, 2025
60ef0dc
🚀 Change default memory storage option to false in database functions
pitzzahh Jan 3, 2025
516912b
🔖 Downgrade svelte-sonner version to 0.3.28 and update application ti…
pitzzahh Jan 3, 2025
331bd47
🏷️ Add NodeByIdResult type to enhance database schema with additional…
pitzzahh Jan 4, 2025
073f0e5
🏷️ Add ComputeCommonProperties type to define common electrical prope…
pitzzahh Jan 4, 2025
b41ccfc
🏷️ Update getNodeById function to return NodeByIdResult and use Compu…
pitzzahh Jan 4, 2025
9533803
♻️ Refactor load-schedule page to use NodeByIdResult type and improve…
pitzzahh Jan 4, 2025
a4f3eb9
🐛 Fix incorrect distribution unit value
pitzzahh Jan 4, 2025
ddc30df
♻️ Update sidebar-tree component to use new icon imports and adjust d…
pitzzahh Jan 4, 2025
21d2df5
♻️ Refactor sidebar-tree component to consolidate state management an…
pitzzahh Jan 4, 2025
55ba21e
🗃️ Add has_copy_count field to project schema for enhanced data tracking
pitzzahh Jan 4, 2025
cedfaac
✨ Add voltage drop computation to load schedule page
isipisii Jan 4, 2025
7c5ba11
✨ Add voltage drop data handling to load schedule page
isipisii Jan 4, 2025
2ddfb46
✨ Add VoltageDrop type definition for voltage drop calculations
isipisii Jan 4, 2025
ed1a252
✨ Implement computed voltage drop calculations for nodes in the datab…
isipisii Jan 4, 2025
03c9393
✨ Add alternating current reactance constants for electrical calculat…
isipisii Jan 4, 2025
598c0c8
✨ Update voltage drop column definitions to use conductor properties …
isipisii Jan 4, 2025
c035081
✨ Update DataTableProps to rename is_root_node to is_footer_shown and…
isipisii Jan 4, 2025
9b03704
🏷️ Update Settings type to include partial Project settings for impro…
pitzzahh Jan 4, 2025
95d9574
♻️ Add has_panel_copy_count and has_load_copy_count states for enhanc…
pitzzahh Jan 4, 2025
b70e6cf
♻️ Integrate settings state management into app-sidebar for improved …
pitzzahh Jan 4, 2025
469d1a5
♻️ Implement copy dialog functionality in sidebar-tree component for …
pitzzahh Jan 4, 2025
8bdc285
♻️ Rename "Unit Hierarchy" to "System Hierarchy" in app-sidebar for i…
pitzzahh Jan 4, 2025
b74b6f1
♻️ Enhance copy dialog in sidebar-tree component with dynamic node na…
pitzzahh Jan 4, 2025
c76c345
♻️ Add settings component with navigation and dialog integration for …
pitzzahh Jan 4, 2025
5915c86
♻️ Integrate settings toggle in sidebar-header for improved user acce…
pitzzahh Jan 4, 2025
c5737c5
♻️ Update tooltip content in sidebar-header to clarify settings access
pitzzahh Jan 4, 2025
ea86d91
♻️ Add slide transition effect and update breadcrumb to display activ…
pitzzahh Jan 4, 2025
6476bc5
💄 Update Sidebar.Provider styles for improved layout consistency in s…
pitzzahh Jan 4, 2025
2997691
♻️ Refactor settings navigation and state management for improved cla…
pitzzahh Jan 4, 2025
1357ae9
♻️ Enhance settings component with new state management and dynamic a…
pitzzahh Jan 4, 2025
31ad1b9
♻️ Pass project prop to Settings component in sidebar-header for enha…
pitzzahh Jan 4, 2025
b968360
✨ Refactor load schemas to improve validation messages and structure
isipisii Jan 4, 2025
27297e9
✨ Update SettingsState to initialize show_loads_on_unit_hierarchy fro…
isipisii Jan 4, 2025
377c41a
✨ Remove show_loads_on_unit_hierarchy from project schema and add len…
isipisii Jan 4, 2025
a1609a7
✨ Update getComputedVoltageDrops to use node length and current prope…
isipisii Jan 4, 2025
dddf899
✨ Update project and node creation logic to include length and is_at_…
isipisii Jan 4, 2025
38190e3
✨ Enhance voltage drop column to render current cell with additional …
isipisii Jan 4, 2025
2e9efd3
✨ Add vd-current-cell component to handle current value changes with …
isipisii Jan 4, 2025
6dbcc52
✨ Add length field to load and panel forms for improved data input
isipisii Jan 4, 2025
e8ea071
✨ Refactor settings dialog to remove show loads on unit hierarchy sta…
isipisii Jan 4, 2025
d6d3015
Merge branch 'feat/exports' into feat/vd-computations
pitzzahh Jan 4, 2025
d720835
Merge pull request #91 from pitzzahh/feat/vd-computations
pitzzahh Jan 4, 2025
89491e4
🔥 Remove unused project state logic from app-sidebar component
pitzzahh Jan 4, 2025
e972e38
✨ Refactor Collapsibles class to use PersistedState for improved stat…
pitzzahh Jan 5, 2025
8482ba0
✨ Refactor ProjectState to use PersistedState for enhanced state mana…
pitzzahh Jan 5, 2025
c052826
✨ Refactor SidebarState to use PersistedState for improved state mana…
pitzzahh Jan 5, 2025
eb95bb3
♻️ Refactor SettingsState to use PersistedState for improved state ma…
pitzzahh Jan 5, 2025
52c94b5
🏷️ Update Settings type to include new boolean properties for enhance…
pitzzahh Jan 5, 2025
224ca00
♻️ Update settings handling to use settingsState for show_loads_on_un…
pitzzahh Jan 5, 2025
af175d3
♻️ Refactor SettingsState to rename localStorage to persisted_state f…
pitzzahh Jan 5, 2025
f8482cf
🔥 Remove duplicate declaration of loads in load-schedule page
pitzzahh Jan 5, 2025
fda6b69
💄 Update border-radius variable in app.css for improved design consis…
pitzzahh Jan 5, 2025
1914347
🍱 Add new icons: WandSparkles, MonitorCog, Rss, and Sliders to the ic…
pitzzahh Jan 5, 2025
711d4e6
♻️ Update settings component to use new icons and enhance theme custo…
pitzzahh Jan 5, 2025
918b773
♻️ Bind settings_open to Settings component in sidebar header for imp…
pitzzahh Jan 5, 2025
770e1cc
♻️ Refactor settings component to bind settings_open from props for i…
pitzzahh Jan 5, 2025
0f2ba27
💄 Update border-radius in theme colors for improved design consistency
pitzzahh Jan 5, 2025
1bbf939
♻️ Refactor SettingsState to improve state management and restore the…
pitzzahh Jan 5, 2025
357dbe9
♻️ Refactor SettingsState to improve state management and enhance the…
pitzzahh Jan 5, 2025
2fe1552
♻️ Refactor settings component to improve state management and dynami…
pitzzahh Jan 5, 2025
6d53d4f
♻️ Refactor SettingsState to streamline theme color and font handling…
pitzzahh Jan 5, 2025
9f49ef6
♻️ Refactor SettingsState to improve theme color initialization from …
pitzzahh Jan 5, 2025
b1779d6
♻️ Refactor settings component to add update checking functionality a…
pitzzahh Jan 5, 2025
410e020
♻️ Refactor sidebar-header component to remove unnecessary state mana…
pitzzahh Jan 5, 2025
fc44902
♻️ Refactor settings component to manage settings visibility state an…
pitzzahh Jan 5, 2025
9d50900
♻️ Refactor settings dialog and theme handling to support 'system' mo…
pitzzahh Jan 5, 2025
caf539d
🔥 Remove settings dialog component to streamline settings management …
pitzzahh Jan 5, 2025
96107e4
🔥 Remove SettingsDialog component from sidebar-header to streamline U…
pitzzahh Jan 5, 2025
483b084
♻️ Update tooltip content for settings button to improve clarity
pitzzahh Jan 5, 2025
c8bbb0c
🔥 Remove SettingsDialog export to streamline component management
pitzzahh Jan 5, 2025
2cbf3af
🔥 Remove SettingsDialog import from sidebar-header to streamline comp…
pitzzahh Jan 5, 2025
e501fe5
♻️ Fix method name casing for setIsLoadMultiCopy to ensure consistenc…
pitzzahh Jan 5, 2025
fc0b24b
✨ Add options for enabling panel and load multi copy in settings
pitzzahh Jan 5, 2025
3f4a458
♻️ Improve multi-copy functionality by validating input and enhancing…
pitzzahh Jan 5, 2025
69bbdca
♻️ Enhance multi-copy functionality by adding processing state and im…
pitzzahh Jan 5, 2025
3677227
♻️ Add might_take_long property to processing state for improved hand…
pitzzahh Jan 5, 2025
1ecd6a1
✨ Add getNumberOfChildren function to count child nodes recursively
pitzzahh Jan 5, 2025
1333dde
♻️ Add loading indicator and might_take_long property for multi-copy …
pitzzahh Jan 5, 2025
eb5c7d6
📝 Update changelog for version 0.4.30
pitzzahh Jan 5, 2025
b9de60e
🔖 Bump version to 0.4.30 in package.json and tauri.conf.json
pitzzahh Jan 5, 2025
ec3adb5
👷 Update GitHub Actions workflow to enable builds for macOS Arm and I…
pitzzahh Jan 5, 2025
0edf33a
🍱 Add exports for dark and light logo assets
pitzzahh Jan 6, 2025
9649de0
✨ Add custom error page component with return button and dynamic mess…
pitzzahh Jan 6, 2025
c2f7597
➕ Add @thisux/sveltednd dependency to package.json
pitzzahh Jan 6, 2025
ca0f05a
✨ Add draggable tree
pitzzahh Jan 6, 2025
b80cc23
✨ Enhance sidebar tree with draggable functionality
pitzzahh Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
20 changes: 20 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://"0.0.9"keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.29] - 2025-01-04

### Add

- Dropdown menu for selecting heirarchy actions
- Ability to export specific panelboard schedule.
- Add preference to show or hide loads in Unit Heirarchy.

### Fix

- Fix extra shifted load data row, add one more row spacing.
- Unit Heirarchy tree re-rendering behavior when modifying load schedule, now updates only affected nodes.

## [0.3.28] - 2025-01-01

### Fix

- Changelog history markdown rendering.
- Overlapping panelboard schedule excel export when heirarchy is too complex.

## [0.3.27] - 2024-12-30

### Add
Expand Down
23 changes: 16 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{
"name": "heda",
"version": "0.3.27",
"version": "0.4.29",
"type": "module",
"private": true,
"author": {
"name": "Peter John Arao"
},
"contributors": [
{
"name": "Alessandro Benig",
"url": "https://github.com/isipisii"
},
{
"name": "Peter John Arao",
"url": "https://github.com/pitzzahh"
}
],
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand All @@ -25,7 +35,7 @@
"@sveltejs/kit": "^2.15.1",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tailwindcss/typography": "^0.5.15",
"@tauri-apps/cli": "^2.1.0",
"@tauri-apps/cli": "^2.2.0",
"@types/eslint": "^9.6.1",
"autoprefixer": "^10.4.20",
"bits-ui": "^1.0.0-next.74",
Expand All @@ -39,7 +49,7 @@
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"svelte": "^5.16.0",
"svelte": "^5.16.1",
"svelte-check": "^4.1.1",
"svelte-radix": "^2.0.1",
"svelte-sonner": "^0.3.28",
Expand All @@ -48,14 +58,14 @@
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2",
"typescript-eslint": "^8.19.0",
"vaul-svelte": "^1.0.0-next.3",
"vite": "^6.0.6"
"vite": "^6.0.7"
},
"dependencies": {
"@paralleldrive/cuid2": "^2.2.2",
"@tanstack/table-core": "^8.20.5",
"@tauri-apps/api": "^2.1.1",
"@tauri-apps/api": "^2.2.0",
"@tauri-apps/plugin-dialog": "^2.2.0",
"@tauri-apps/plugin-fs": "^2.2.0",
"@tauri-apps/plugin-log": "~2",
Expand All @@ -64,7 +74,6 @@
"dompurify": "^3.2.3",
"exceljs": "^4.4.0",
"formsnap": "^2.0.0",
"marked": "^15.0.4",
"mode-watcher": "^0.5.0",
"runed": "^0.22.0",
"rxdb": "^15.39.0",
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "Hierarchical Electrical Design Analyzer",
"version": "0.3.27",
"version": "0.4.29",
"identifier": "me.araopj.heda",
"build": {
"frontendDist": "../build",
Expand All @@ -13,7 +13,7 @@
"windows": [
{
"center": true,
"title": "Hierarchical Electrical Design Analyzer v0.3.27",
"title": "Hierarchical Electrical Design Analyzer v0.4.29",
"width": 950,
"height": 650,
"minWidth": 950,
Expand Down
4 changes: 3 additions & 1 deletion src/lib/assets/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ export { default as ChevronDown } from 'lucide-svelte/icons/chevron-down';
export { default as FileClock } from 'lucide-svelte/icons/file-clock';
export { default as History } from 'lucide-svelte/icons/history';
export { default as PackageCheck } from 'lucide-svelte/icons/package-check';
export { default as FileUp } from 'lucide-svelte/icons/file-up';
export { default as FileUp } from 'lucide-svelte/icons/file-up';
export { default as CloudAlert } from 'lucide-svelte/icons/cloud-alert';
export { default as SunMoon } from 'lucide-svelte/icons/sun-moon';
6 changes: 3 additions & 3 deletions src/lib/components/custom/load/add-load-dialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { cn } from '@/utils';
import Separator from '@/components/ui/separator/separator.svelte';
import { getNodeById } from '@/db/queries';
import { page } from '$app/stores';
import { page } from '$app/state';

interface Props {
phase_main_load_form: SuperValidated<GenericPhaseMainLoadSchema>;
Expand All @@ -31,7 +31,7 @@
}: Props = $props();
</script>

<div class="flex flex-col gap-2 p-1">
<div class="flex flex-col gap-2">
{#if !remove_trigger}
CRKT NO.
{/if}
Expand All @@ -57,7 +57,7 @@
<div>
<div class="flex gap-1">
<h4 class="font-semibold">Supply From:</h4>
{#await getNodeById(panel_id_from_tree || $page.params.id
{#await getNodeById(panel_id_from_tree || page.params.id
.split('_')
.at(-1) || '') then parent_node}
<p>
Expand Down
24 changes: 20 additions & 4 deletions src/lib/components/custom/load/generic-phase-main-load-form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
load_type_to_quantity_label
} from '@/constants';
import { generic_phase_main_load_schema, type GenericPhaseMainLoadSchema } from '@/schema/load';
import { page } from '$app/stores';
import { page } from '$app/state';
import { addNode, updateNode } from '@/db/mutations';
import { checkNodeExists } from '@/db/queries';
import { invalidate, invalidateAll } from '$app/navigation';
Expand All @@ -36,6 +36,9 @@
import type { LoadType, QuantityLabel, TerminalTemperature, VariesLabel } from '@/types/load';
import { dev } from '$app/environment';
import { formatFraction } from '@/utils/format';
import { getUndoRedoState } from '@/hooks/undo-redo.svelte';
import type { PhaseLoadSchedule } from '@/types/load/one_phase';
import { Collapsibles } from '@/hooks/node-collapsibles.svelte';

interface Props {
phase_main_load_form: T;
Expand All @@ -59,6 +62,9 @@
panel_id_from_tree
}: Props = $props();

let undo_redo_state = getUndoRedoState();
let collapsibles = new Collapsibles();

const form = superForm(phase_main_load_form, {
SPA: true,
validators: zodClient(generic_phase_main_load_schema),
Expand Down Expand Up @@ -125,19 +131,29 @@
} as GenericPhaseMainLoadSchema & { config_preference: 'CUSTOM' | 'DEFAULT' };
switch (action) {
case 'add':
await addNode({
const added_node = await addNode({
load_data,
parent_id: panel_id_from_tree || panel_id_from_params || ''
});
toast.success(`${load_description} added successfully`);
undo_redo_state.setActionToUndo({
data: added_node as unknown as PhaseLoadSchedule,
action: 'create_node'
});
collapsibles.addNodeId(panel_id_from_tree || panel_id_from_params);
break;
case 'edit':
if (node_to_edit && selected_parent_id) {
await updateNode({
const updated_node = await updateNode({
load_data,
id: node_to_edit.id,
parent_id: selected_parent_id
});
undo_redo_state.setActionToUndo({
action: 'update_node',
data: updated_node as unknown as PhaseLoadSchedule,
previous_data: node_to_edit as PhaseLoadSchedule
});
toast.success('Load updated successfully');
}
break;
Expand All @@ -150,7 +166,7 @@
});
const { form: formData, enhance } = form;

const panel_id_from_params = $page.params.id.split('_').at(-1); //gets the id of the parent node (panel) of the loads
const panel_id_from_params = page.params?.id?.split('_')?.at(-1) || ''; //gets the id of the parent node (panel) of the loads

const variesLabel: VariesLabel | 'Varies' = $derived(
$formData.load_type ? load_type_to_varies_label[$formData.load_type] : 'Varies'
Expand Down
44 changes: 38 additions & 6 deletions src/lib/components/custom/override-selectors.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import { toast } from 'svelte-sonner';
import * as Select from '$lib/components/ui/select/index.js';
import Input from '@/components/ui/input/input.svelte';
import { getUndoRedoState } from '@/hooks/undo-redo.svelte';
import type { PhaseLoadSchedule } from '@/types/load/one_phase';

let {
node_id,
Expand All @@ -25,7 +27,7 @@
current_ampere_frames
}: {
node_id: string;
closeDialog: () => void;
closeDialog: () => void;
current_at: number;
current_ampere_frames: number;
current_conductor_size: number;
Expand All @@ -40,6 +42,8 @@
};
} = $props();

let undo_redo_state = getUndoRedoState();

// AT
const at_default_index = standard_ampere_ratings.findIndex((rating) => current_at === rating);
let at_current_index = $state(at_default_index);
Expand Down Expand Up @@ -91,40 +95,68 @@

if (selected_ampere_rating) {
if (selected_ampere_rating !== current_at) {
await overrideField({ node_id, field_data: selected_ampere_rating, field_type: 'at' });
const updated_node = await overrideField({
node_id,
field_data: selected_ampere_rating,
field_type: 'at'
});
overridden_fields.push('AT');
undo_redo_state.setActionToUndo({
data: updated_node as unknown as PhaseLoadSchedule,
action: 'override_at'
});
}

if (selected_conductor_size !== current_conductor_size) {
await overrideField({
const updated_node = await overrideField({
node_id,
field_data: selected_conductor_size,
field_type: 'conductor_size'
});
overridden_fields.push('Conductor Size');
undo_redo_state.setActionToUndo({
data: updated_node as unknown as PhaseLoadSchedule,
action: 'override_conductor_size'
});
}

if (selected_egc_size !== current_egc_size) {
await overrideField({ node_id, field_data: selected_egc_size, field_type: 'egc_size' });
const updated_node = await overrideField({
node_id,
field_data: selected_egc_size,
field_type: 'egc_size'
});
overridden_fields.push('EGC Size');
undo_redo_state.setActionToUndo({
data: updated_node as unknown as PhaseLoadSchedule,
action: 'override_egc_size'
});
}

if (selected_conduit_size !== current_conduit_size) {
await overrideField({
const updated_node = await overrideField({
node_id,
field_data: selected_conduit_size,
field_type: 'conduit_size'
});
overridden_fields.push('Conduit Size');
undo_redo_state.setActionToUndo({
data: updated_node as unknown as PhaseLoadSchedule,
action: 'override_conduit_size'
});
}

if (ampere_frames !== current_ampere_frames.toString()) {
await overrideField({
const updated_node = await overrideField({
node_id,
field_data: Number(ampere_frames),
field_type: 'ampere_frames'
});
overridden_fields.push('Ampere Frames (AT)');
undo_redo_state.setActionToUndo({
data: updated_node as unknown as PhaseLoadSchedule,
action: 'override_af'
});
}

if (overridden_fields.length > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@
import { convertToNormalText } from '@/utils/text';
import { addNode, updateNode } from '@/db/mutations';
import { checkNodeExists } from '@/db/queries';
import { invalidate, invalidateAll } from '$app/navigation';
import { invalidate } from '$app/navigation';
import type { Node } from '@/db/schema';
import type { TerminalTemperature } from '@/types/load';
import ScrollArea from '@/components/ui/scroll-area/scroll-area.svelte';
import { getUndoRedoState } from '@/hooks/undo-redo.svelte';
import type { PhaseLoadSchedule } from '@/types/load/one_phase';
import { Collapsibles } from '@/hooks/node-collapsibles.svelte';

interface Props {
generic_phase_panel_form: T;
Expand All @@ -49,6 +52,9 @@
selected_parent_id
}: Props = $props();

let undo_redo_state = getUndoRedoState();
let collapsibles = new Collapsibles();

const form = superForm(generic_phase_panel_form, {
SPA: true,
validators: zodClient(generic_phase_panel_schema),
Expand Down Expand Up @@ -76,16 +82,27 @@

switch (action) {
case 'add':
await addNode({ parent_id, panel_data: form.data });
const added_node = await addNode({ parent_id, panel_data: form.data });
toast.success(`${form.data.name} added successfully`);
undo_redo_state.setActionToUndo({
data: added_node as unknown as PhaseLoadSchedule,
action: 'create_node'
});
collapsibles.addNodeId(parent_id);
break;
case 'edit':
if (node_to_edit && selected_parent_id) {
await updateNode({
const updated_node = await updateNode({
panel_data: form.data,
id: node_to_edit.id,
parent_id: selected_parent_id
});
toast.success('Panel updated successfully');
undo_redo_state.setActionToUndo({
data: updated_node as unknown as PhaseLoadSchedule,
previous_data: node_to_edit as PhaseLoadSchedule,
action: 'update_node'
});
}
break;
}
Expand Down
Loading
Loading