Skip to content

Conversation

@metalmatze
Copy link
Contributor

When opening this repository in my editor, I run goimports automatically. This is what it found.

@tboerger
Copy link
Member

tboerger commented Nov 3, 2016

LGTM

1 similar comment
@lunny
Copy link
Member

lunny commented Nov 3, 2016

LGTM

@strk
Copy link
Member

strk commented Nov 3, 2016

Could you please rebase and fix conflicts ?

@xinity xinity added the type/enhancement An improvement of existing functionality label Nov 3, 2016
@xinity xinity added this to the 1.0.0 milestone Nov 3, 2016
@tboerger
Copy link
Member

tboerger commented Nov 3, 2016

Please rebase as @strk mentioned.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be changed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this

@codecov-io
Copy link

codecov-io commented Nov 4, 2016

Current coverage is 2.18% (diff: 100%)

Merging #34 into master will not change coverage

@@            master       #34   diff @@
========================================
  Files           31        31          
  Lines         7508      7508          
  Methods          0         0          
  Messages         0         0          
  Branches         0         0          
========================================
  Hits           164       164          
  Misses        7327      7327          
  Partials        17        17          

Powered by Codecov. Last update fc55182...f19e9a9

@metalmatze
Copy link
Contributor Author

Recreated the commit with the current master.
Wrong import paths are gone too. Sorry @bkcsoft.

@andreynering andreynering merged commit a4fa889 into go-gitea:master Nov 4, 2016
@metalmatze metalmatze deleted the feature/goimports branch November 4, 2016 23:56
@tboerger tboerger added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Nov 29, 2016
lunny added a commit to lunny/gitea that referenced this pull request Feb 7, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
pieer referenced this pull request in ikigau/gitea Oct 27, 2025
…raph

Replace all unexplained 'magic numbers' with well-documented constants for better
code maintainability and readability.

Changes in FishboneGraph.vue:
- Added comprehensive constant definitions organized by category:
  * Demo data generation (RANDOM_MIN, RANDOM_MAX)
  * Bubble sizing (R_MIN, R_MAX, MAX_DEPTH)
  * Vertical layout (LEVEL_GAP, stem lengths)
  * Layout defaults (spacing, offsets, radii)
  * Collision clearances
  * Zoom/pan constraints
  * View reset parameters
  * Responsive breakpoints and factors
  * API parameters
  * Animation durations
  * SVG layout dimensions
  * ID generation parameters
- Replaced all hardcoded numeric values with named constants
- Added inline comments explaining responsive calculation logic
- Calculated RADIUS_HEIGHT_RANGE_FACTOR from min/max for clarity

Changes in BubbleNode.vue:
- Added label layout constants section with documentation:
  * Font sizing (min/max, scale factors)
  * Label spacing (padding, gaps)
  * Text width estimation ratios
  * Button sizing and positioning
- Replaced all magic numbers in label fit calculations
- Fixed TypeScript issue with onView accepting both Mouse and Keyboard events

Benefits:
- All numeric values now have clear, searchable names
- Calculations are more readable and self-documenting
- Easier to adjust layout behavior by changing constants
- Reduces cognitive load when maintaining the code
- Makes responsive behavior formulas more transparent
pieer referenced this pull request in ikigau/gitea Oct 27, 2025
…raph

Replace all unexplained 'magic numbers' with well-documented constants for better
code maintainability and readability.

Changes in FishboneGraph.vue:
- Added comprehensive constant definitions organized by category:
  * Demo data generation (RANDOM_MIN, RANDOM_MAX)
  * Bubble sizing (R_MIN, R_MAX, MAX_DEPTH)
  * Vertical layout (LEVEL_GAP, stem lengths)
  * Layout defaults (spacing, offsets, radii)
  * Collision clearances
  * Zoom/pan constraints
  * View reset parameters
  * Responsive breakpoints and factors
  * API parameters
  * Animation durations
  * SVG layout dimensions
  * ID generation parameters
- Replaced all hardcoded numeric values with named constants
- Added inline comments explaining responsive calculation logic
- Calculated RADIUS_HEIGHT_RANGE_FACTOR from min/max for clarity

Changes in BubbleNode.vue:
- Added label layout constants section with documentation:
  * Font sizing (min/max, scale factors)
  * Label spacing (padding, gaps)
  * Text width estimation ratios
  * Button sizing and positioning
- Replaced all magic numbers in label fit calculations
- Fixed TypeScript issue with onView accepting both Mouse and Keyboard events

Benefits:
- All numeric values now have clear, searchable names
- Calculations are more readable and self-documenting
- Easier to adjust layout behavior by changing constants
- Reduces cognitive load when maintaining the code
- Makes responsive behavior formulas more transparent
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants