Skip to content

Version bumped to 3.1.1#12

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

Version bumped to 3.1.1#12
QG-phy merged 25 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

  • Chores
    • Version bumped to 3.1.1

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

QG-phy and others added 25 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.
Update version number from 3.1.0 to 3.1.1 in both pyproject.toml and tbsoc/version.py files to prepare for new release.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 2, 2026

📝 Walkthrough

Walkthrough

Version number incremented from 3.1.0 to 3.1.1 across project configuration and version module files. MICRO constant updated from 0 to 1, with no changes to dependencies, build configuration, or control flow logic.

Changes

Cohort / File(s) Summary
Version Bump
pyproject.toml, tbsoc/version.py
Version field and MICRO constant updated from 3.1.0 to 3.1.1 (patch version increment)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A tiny hop, a patch release so neat,
From one-oh to one-one, the version's complete!
No logic was broken, no features were tossed,
Just a number update—our version bug's crossed! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Doc' is vague and does not clearly describe the actual changes, which are version bumps in pyproject.toml and tbsoc/version.py from 3.1.0 to 3.1.1. Use a more descriptive title that reflects the actual changes, such as 'Bump version to 3.1.1' or 'Release version 3.1.1'.
✅ Passed checks (2 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.
✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7a32787 and 6f10c74.

📒 Files selected for processing (2)
  • pyproject.toml
  • tbsoc/version.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: test (macos-latest, 3.9)
  • GitHub Check: test (windows-latest, 3.9)
🔇 Additional comments (2)
pyproject.toml (1)

3-3: LGTM! Version bump is consistent.

The version increment from 3.1.0 to 3.1.1 aligns correctly with the MICRO constant change in tbsoc/version.py.

tbsoc/version.py (1)

6-6: LGTM! MICRO increment is correct.

The change from 0 to 1 correctly updates the VERSION string to "3.1.1", maintaining consistency with pyproject.toml.


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 Version bumped to 3.1.1 Jan 2, 2026
@QG-phy QG-phy merged commit 0f5c0ac into DeePTB-Lab:master Jan 2, 2026
13 checks passed
@QG-phy QG-phy deleted the doc branch January 2, 2026 17:02
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