Skip to content

DOC: revised installation guide with clearer separation between pre-built desktop app installation #11

Merged
QG-phy merged 22 commits intoDeePTB-Lab:masterfrom
QG-phy:doc
Jan 2, 2026
Merged

DOC: revised installation guide with clearer separation between pre-built desktop app installation #11
QG-phy merged 22 commits intoDeePTB-Lab:masterfrom
QG-phy:doc

Conversation

@QG-phy
Copy link
Copy Markdown
Collaborator

@QG-phy QG-phy commented Jan 2, 2026

Summary by CodeRabbit

  • Documentation
    • Revised installation guide with clearer separation between pre-built desktop app installation (Windows and macOS) and developer-focused source installation paths
    • Enhanced setup instructions including prerequisites, multiple installation methods, and local development guidance

✏️ Tip: You can customize this high-level summary in your review settings.

QG-phy and others added 22 commits January 2, 2026 02:57
Changed the git clone URL in README.md from the original user repository to the new DeePTB-Lab organization repository. This reflects the migration/ownership change of the project.
The GitHub Actions workflow now triggers on pushes and pull
- Add new 'Export HR' button in ParameterEditor component
- Implement handleSaveHR function to send form data to /api/save-hr endpoint
- Create /save-hr API endpoint in server to process HR export requests
- Add save_hr_file method to DataManager for HR file generation and saving
Implement directory picker functionality in App component header with current path display and folder selection button. Lift working directory state from ParameterEditor and add API calls for directory management. Update header layout to accommodate version badge, status indicator, and theme toggle in a more compact design.
Update theme toggle button with text labels and icons for better visibility and user experience. Add RTL text direction to file path display to properly show long paths starting from the right. Add section header "Fitting Weights" in ParameterEditor for better content organization.
- Reduce parameter editor width from 400px to 200px for better space utilization
- Update field labels to use scientific notation (E_Fermi, Weight σ, λ)
- Reorganize button layout with improved styling and clearer text
- Enhance button appearance with consistent padding, border radius, and cursor styles
Configured the desktop application window dimensions to provide a consistent viewing experience. This change ensures the TBSOC Desktop window opens with a predefined width of 1000px and height of 600px, improving the initial user interface layout.
Removed the addLambda and removeLambda functions along with their associated UI elements from the ParameterEditor component. The "Add λ" button and individual lambda remove buttons have been removed, effectively disabling dynamic lambda parameter management. This simplifies the interface and enforces a fixed number of lambda parameters.
Reduced the top margin from 30px to 15px in the ParameterEditor component to create a more compact layout and improve visual density.
Added logo.png to frontend/public and displayed it in the App.jsx header component. The logo is positioned to the left of the application title with a height of 28px and auto width, maintaining aspect ratio while providing visual branding to the interface.
- Add /api/version endpoint to return app version from backend
- Fetch version on app initialization instead of using hardcoded value
- Display dynamic version or loading state in version badge
- Update window title to remove "Desktop" suffix for consistency
- Use package __version__ for centralized version management</think>
## Key Changes Made:
1. Added a new state variable `appVersion` to store the version fetched from the backend
2. Created a new `/api/version` endpoint in the backend that returns the actual package version
3. Modified the frontend to fetch the version on app initialization
4. Updated the version badge to show either the fetched version or a loading state
5. Standardized naming by removing "Desktop" from the window title
6. Implemented centralized version management using the package's `__version__`

This commit follows conventional commit format with type "feat" as it adds a new feature (dynamic version display), has a clear title under 72 characters, and provides comprehensive information about what was changed and why.

The message is informative without being overly verbose and doesn't contain any backticks around the commit message itself.</think>
feat: implement dynamic version display

- Add /api/version endpoint to return app version from backend
- Fetch version on app initialization instead of using hardcoded value
- Display dynamic version or loading state in version badge
- Update window title to remove "Desktop" suffix for consistency
- Use package __version__ for centralized version management
Increased logo height from 28px to 48px for better visibility and removed the "Desktop" suffix from the TBSOC title to simplify the header layout.
feat(api): add output_dir support for HR file saving

The save_hr_file method in DataManager now accepts an optional output_dir parameter to control where the HR file is saved. The API endpoint was updated to pass the current directory from state as the output directory. This improves flexibility by allowing explicit specification of the output location while maintaining backward compatibility with the default behavior.
Updated the parameter label in the fitting weights section from "E_Fermi (eV)" to "E_Center (eV)" to better reflect the actual parameter being adjusted. This change improves clarity for users by accurately describing the energy parameter.
- Refactor lambda parsing in addsoc.py to handle both dict and list inputs
- Add robust error handling and default values for missing lambda values
- Introduce automatic directory creation in plot_tools.py band_plot function
- Maintain consistency between addsoc and fitsoc lambda handling logic
Refactor TaAs input configuration to use structured lambda mapping and update energy ranges. Modify KPOINTS format and enhance integration tests to support new configuration structure and improve test reliability.
Test now checks if frontend static files are mounted before attempting to verify root path serving. Skips test with descriptive message when frontend build is not available, preventing test failures in environments without built frontend assets.
Replace deprecated uv dev-dependencies section with the new dependency-groups format in pyproject.toml. Add pytest-cov to enable test coverage reporting and update lock file accordingly.
Integration tests were failing because they used a hardcoded 'python' command and didn't set the proper PYTHONPATH for subprocess execution. This commit modifies the test suite to:
1. Use sys.executable to ensure the correct Python interpreter
2. Set PYTHONPATH environment variable to include project root
3. Pass the modified environment to subprocess.run()

This ensures tests run reliably in different environments and use the correct Python installation and module path.
- Fix typo in pull_request trigger (branchds -> branches)
- Increase sidebar flex basis from 200px to 300px for better layout
Add a new section for installing the pre-built desktop application, providing step-by-step instructions for Windows and macOS users. Reorganized the source installation section under a developer-focused heading. Also updated the GUI screenshot to reflect the latest interface changes.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 2, 2026

📝 Walkthrough

Walkthrough

README.md documentation updated to enhance installation guidance. Replaced old prerequisites section with new pre-built desktop app installation instructions for Windows and macOS, and added developer-focused source installation section with uv and pip setup steps.

Changes

Cohort / File(s) Summary
Installation Documentation
README.md
Replaced Prerequisites section with dual installation paths: pre-built desktop app installer (Windows/macOS) and source installation for developers (Python 3.9+, uv dependency management, uv sync/pip install). Added macOS security note and expanded setup guidance.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Hop along, dear reader, to a simpler way,
Desktop apps and source code, installed in a day!
With uv and pip, we've paved the path so clear,
Setup guides for all—let installation bring good cheer! 🎉

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title directly and clearly reflects the main change: revising the installation guide with clearer separation between pre-built desktop app and source installation paths, which matches the documented changes.
✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@QG-phy QG-phy changed the title Doc DOC: revised installation guide with clearer separation between pre-built desktop app installation Jan 2, 2026
@QG-phy QG-phy merged commit 7a32787 into DeePTB-Lab:master Jan 2, 2026
13 checks passed
Sign up for free to 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