Skip to content

Commit 92a0f39

Browse files
Move ViewComponent to separate GitHub organization (#1496)
* Move ViewComponent to separate GitHub organization. Closes #1424 * fix typo * merge conflict * fix lint * Update docs/CONTRIBUTING.md Co-authored-by: Richard Macklin <[email protected]> * Update docs/CHANGELOG.md Co-authored-by: Richard Macklin <[email protected]> Co-authored-by: Richard Macklin <[email protected]>
1 parent 978e1dc commit 92a0f39

File tree

12 files changed

+23
-21
lines changed

12 files changed

+23
-21
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/github/view_component/discussions
4+
url: https://github.com/viewcomponent/view_component/discussions
55
about: Ask questions and discuss with other community members

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nav_order: 5
1010

1111
## main
1212

13+
**ViewComponent has moved to a new organization: [https://github.com/viewcomponent/view_component](https://github.com/viewcomponent/view_component). See [https://github.com/viewcomponent/view_component/issues/1424](https://github.com/viewcomponent/view_component/issues/1424) for more details.**
14+
1315
## 2.70.0
1416

1517
* `render_preview` can pass parameters to preview.

docs/CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ _ViewComponent is intended to be a safe, welcoming space for collaboration. By p
1010

1111
Hi there! We're thrilled that you'd like to contribute to ViewComponent. Your help is essential for keeping it great.
1212

13-
If you have any substantial changes that you would like to make, please [open an issue](http://github.com/github/view_component/issues/new) first to discuss them with us.
13+
If you have any substantial changes that you would like to make, please [open an issue](http://github.com/viewcomponent/view_component/issues/new) first to discuss them with us.
1414

1515
Maintainers tend to focus on areas of the project that are useful to them and their employers, but we're happy to pair with members of the community to enable work on other parts.
1616

17-
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [MIT license](https://github.com/github/view_component/blob/main/LICENSE.txt).
17+
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [MIT license](https://github.com/viewcomponent/view_component/blob/main/LICENSE.txt).
1818

1919
## Reporting bugs
2020

@@ -41,14 +41,14 @@ The codespace environment includes a minimal Rails app with ViewComponent instal
4141

4242
## Submitting a pull request
4343

44-
1. [Fork](https://github.com/github/view_component/fork) and clone the repository.
44+
1. [Fork](https://github.com/viewcomponent/view_component/fork) and clone the repository.
4545
1. Configure and install the dependencies: `bundle exec appraisal install`.
4646
2. Make sure the tests pass: `bundle exec appraisal rake` (see below for specific cases).
4747
3. Create a new branch: `git checkout -b my-branch-name`.
4848
4. Add tests, make the change, and make sure the tests still pass.
4949
5. Add an entry to the top of `docs/CHANGELOG.md` for the changes, no matter how small.
5050
6. If it's your first time contributing, add yourself to `docs/index.md`.
51-
7. Push to the fork and [submit a pull request](https://github.com/github/view_component/compare).
51+
7. Push to the fork and [submit a pull request](https://github.com/viewcomponent/view_component/compare).
5252
8. Wait for the pull request to be reviewed and merged.
5353

5454
### Running a subset of tests
@@ -61,7 +61,7 @@ bundle exec m test/view_component/YOUR_COMPONENT_test.rb:line_number
6161

6262
### Running tests for a specific version of Rails
6363

64-
Specify one of the supported versions listed in [Appraisals](https://github.com/github/view_component/blob/main/Appraisals):
64+
Specify one of the supported versions listed in [Appraisals](https://github.com/viewcomponent/view_component/blob/main/Appraisals):
6565

6666
```command
6767
bundle exec appraisal rails-5.2 rake

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ color_scheme: custom
3030
logo: "/logo/viewcomponent-color-logo.svg"
3131
aux_links:
3232
"ViewComponent on GitHub":
33-
- "https://github.com/github/view_component"
33+
- "https://github.com/viewcomponent/view_component"
3434
aux_links_new_tab: true
3535

3636
# Exclude from processing.
@@ -56,7 +56,7 @@ aux_links_new_tab: true
5656
# Footer "Edit this page on GitHub" link text
5757
gh_edit_link: true # show or hide edit this page link
5858
gh_edit_link_text: "Edit this page on GitHub"
59-
gh_edit_repository: "https://github.com/github/view_component" # the github URL for your repo
59+
gh_edit_repository: "https://github.com/viewcomponent/view_component" # the github URL for your repo
6060
gh_edit_branch: "main" # the branch that your docs is served from
6161
gh_edit_source: docs # the source that your files originate from
6262
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately

docs/adrs/0004-slots-separate-getter-setter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
c = MyComponent.new
4545

4646
# c.header returns nil because the getter path is being executed due to having
47-
# no arguments and no block passed: https://github.com/github/view_component/blob/main/lib/view_component/slotable_v2.rb#L70-L74
47+
# no arguments and no block passed: https://github.com/viewcomponent/view_component/blob/main/lib/view_component/slotable_v2.rb#L70-L74
4848
#
4949
c.header.with_content("Hello world!") # undefined method `with_content' for nil:NilClass (NoMethodError)
5050
```

docs/compatibility.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ nav_order: 6
88

99
## Ruby & Rails
1010

11-
ViewComponent is [supported natively](https://edgeguides.rubyonrails.org/layouts_and_rendering.html#rendering-objects) in Rails 6.1, and compatible with Rails 5.0+ via an included [monkey patch](https://github.com/github/view_component/blob/main/lib/view_component/render_monkey_patch.rb).
11+
ViewComponent is [supported natively](https://edgeguides.rubyonrails.org/layouts_and_rendering.html#rendering-objects) in Rails 6.1, and compatible with Rails 5.0+ via an included [monkey patch](https://github.com/viewcomponent/view_component/blob/main/lib/view_component/render_monkey_patch.rb).
1212

13-
ViewComponent is tested for compatibility [with combinations of](https://github.com/github/view_component/blob/22e3d4ccce70d8f32c7375e5a5ccc3f70b22a703/.github/workflows/ruby_on_rails.yml#L10-L11) Ruby v2.5+ and Rails v5+. Ruby 2.4 is likely compatible, but is no longer tested.
13+
ViewComponent is tested for compatibility [with combinations of](https://github.com/viewcomponent/view_component/blob/22e3d4ccce70d8f32c7375e5a5ccc3f70b22a703/.github/workflows/ruby_on_rails.yml#L10-L11) Ruby v2.5+ and Rails v5+. Ruby 2.4 is likely compatible, but is no longer tested.
1414

1515
## Template languages
1616

@@ -21,7 +21,7 @@ ViewComponent is tested against ERB, Haml, and Slim, but it should support most
2121
Since 2.13.0
2222
{: .label }
2323

24-
To [avoid conflicts](https://github.com/github/view_component/issues/288) between ViewComponent and other gems that also monkey patch the `render` method, it's possible to configure ViewComponent to not include the render monkey patch:
24+
To [avoid conflicts](https://github.com/viewcomponent/view_component/issues/288) between ViewComponent and other gems that also monkey patch the `render` method, it's possible to configure ViewComponent to not include the render monkey patch:
2525

2626
`config.view_component.render_monkey_patch_enabled = false # defaults to true`
2727

docs/guide/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ProductComponent < ViewComponent::Base
2525
end
2626
```
2727

28-
[By default](https://github.com/github/view_component/blob/89f8fab4609c1ef2467cf434d283864b3c754473/lib/view_component/base.rb#L249), the component name is used to define the parameter passed into the component from the collection.
28+
[By default](https://github.com/viewcomponent/view_component/blob/89f8fab4609c1ef2467cf434d283864b3c754473/lib/view_component/base.rb#L249), the component name is used to define the parameter passed into the component from the collection.
2929

3030
## `with_collection_parameter`
3131

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ViewComponents use a standard Ruby initializer that clearly defines what's neede
8181

8282
### Performance
8383

84-
Based on several [benchmarks](https://github.com/github/view_component/blob/main/performance/benchmark.rb), ViewComponents are ~10x faster than partials in real-world use-cases.
84+
Based on several [benchmarks](https://github.com/viewcomponent/view_component/blob/main/performance/benchmark.rb), ViewComponents are ~10x faster than partials in real-world use-cases.
8585

8686
The primary optimization is pre-compiling all ViewComponent templates at application boot, instead of at runtime like traditional Rails views.
8787

@@ -229,8 +229,8 @@ ViewComponent is built by over a hundred members of the community, including:
229229
* [Within3](https://www.within3.com/)
230230
* [Wrapbook](https://wrapbook.com/)
231231

232-
Using ViewComponent? [Send a pull request](https://github.com/github/view_component/edit/main/docs/index.md) to update this list!
233-
You can also check out [how various projects use ViewComponent](https://github.com/github/view_component/network/dependents?package_id=UGFja2FnZS0xMDEwNjQxMzYx).
232+
Using ViewComponent? [Send a pull request](https://github.com/viewcomponent/view_component/edit/main/docs/index.md) to update this list!
233+
You can also check out [how various projects use ViewComponent](https://github.com/viewcomponent/view_component/network/dependents?package_id=UGFja2FnZS0xMDEwNjQxMzYx).
234234

235235
<hr />
236236

docs/known_issues.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ nav_order: 9
88

99
## form_for compatibility
1010

11-
ViewComponent [isn't compatible](https://github.com/github/view_component/issues/241) with `form_for` helpers by default.
11+
ViewComponent [isn't compatible](https://github.com/viewcomponent/view_component/issues/241) with `form_for` helpers by default.
1212

1313
## Inconsistent controller rendering behavior between Rails versions
1414

1515
In versions of Rails < 6.1, rendering a ViewComponent from a controller doesn't include the layout.
1616

1717
## Forms don't use the default form builder
1818

19-
Calls to form helpers such as `form_with` in ViewComponents [don't use the default form builder](https://github.com/github/view_component/pull/1090#issue-753331927). This is by design, as it allows global state to change the rendered output of a component. Instead, consider passing a form builder into form helpers via the `builder` argument:
19+
Calls to form helpers such as `form_with` in ViewComponents [don't use the default form builder](https://github.com/viewcomponent/view_component/pull/1090#issue-753331927). This is by design, as it allows global state to change the rendered output of a component. Instead, consider passing a form builder into form helpers via the `builder` argument:
2020

2121
```html.erb
2222
<%= form_for(record, builder: CustomFormBuilder) do |f| %>

docs/slots_v1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ By default, slots can be rendered once per component. They provide an accessor w
1212

1313
Slots declared with `collection: true` can be rendered multiple times. They provide an accessor with the pluralized name of the slot (`#rows`), which is an Array of `ViewComponent::Slot` instances.
1414

15-
To learn more about the design of the Slots API, see [#348](https://github.com/github/view_component/pull/348) and [#325](https://github.com/github/view_component/discussions/325).
15+
To learn more about the design of the Slots API, see [#348](https://github.com/viewcomponent/view_component/pull/348) and [#325](https://github.com/viewcomponent/view_component/discussions/325).
1616

1717
## Defining Slots
1818

0 commit comments

Comments
 (0)