Skip to content

Commit

Permalink
Replace Slack links with Discord (#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch committed Mar 31, 2023
1 parent b155b22 commit 6954268
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ about: Suggest an idea for React Cosmos

It keeps this issue list clean, which makes it easier for maintainers to prioritize questions and bugs.

Also join the `#ideas` channel on Slack to bounce around ideas https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw
Also join Discord to bounce around ideas https://discord.gg/3X95VgfnW5

Thank you!
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ When creating a module:

---

_Have a question or idea to share? See you on [Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw)._
_Have a question or idea to share? See you on [Discord](https://discord.gg/3X95VgfnW5)._
12 changes: 5 additions & 7 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The `hello` fixture will show up in your React Cosmos UI and will render when yo

You've taken the first step towards designing reusable components. You can now prototype, test and interate on components in isolation. Use this to your advantage!

_Something wrong?_ Don't hesitate to [create a GitHub issue](https://github.com/react-cosmos/react-cosmos/issues/new/choose) (be helpful and include details) and to [join us on Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw).
_Something wrong?_ Don't hesitate to [create a GitHub issue](https://github.com/react-cosmos/react-cosmos/issues/new/choose) (be helpful and include details) and to [join us on Discord](https://discord.gg/3X95VgfnW5).

## Requirements

Expand All @@ -91,7 +91,7 @@ The React Cosmos config is a **JSON** file, so it can only host serializable val

By default, Cosmos reads `cosmos.config.json` from your root directory. You can pass a `--config` CLI arg for a custom config path.

> Most Cosmos Classic config options are still supported in the new JSON format. [Let me know](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw) if you need old config options that no longer work.
> Most Cosmos Classic config options are still supported in the new JSON format. [Let me know](https://discord.gg/3X95VgfnW5) if you need old config options that no longer work.
### Available options

Expand Down Expand Up @@ -281,8 +281,6 @@ export default ({ children }) => <Provider store={store}>{children}</Provider>;
### Migrating _proxies_

Migrating Cosmos Classic proxies to React Cosmos 5 is not intuitive. _Sorry for that!_ Check out the [nested decorators example](../examples/webpack/src/NestedDecorators) and join the `#proxies-upgrade` [Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw) channel to learn more about this and to get help with your migration.

### Redux state mock

Check out [react-cosmos-redux](https://github.com/skidding/react-cosmos-redux) to see what an advanced React Cosmos decorator looks like.
Expand Down Expand Up @@ -547,7 +545,7 @@ module.exports = webpackConfig;

> **Currently Cosmos doesn't work with Next.js v10.0.6 or above. Downgrade to `next@10.0.5` until the issue is resolved. Read [#1289](https://github.com/react-cosmos/react-cosmos/issues/1289) for more context.**
> The following steps are required for running Cosmos in **Next.js v10**. [This repo](https://github.com/react-cosmos/react-cosmos-nextjs) is a working example. [Ask for help](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw) if you're having issues integrating Cosmos with an older version of Next.js.
> The following steps are required for running Cosmos in **Next.js v10**. [This repo](https://github.com/react-cosmos/react-cosmos-nextjs) is a working example. [Ask for help](https://discord.gg/3X95VgfnW5) if you're having issues integrating Cosmos with an older version of Next.js.
- Install `html-webpack-plugin@4` as a dev dependency.
- Configure Babel to use the `next/babel` preset.
Expand Down Expand Up @@ -610,8 +608,8 @@ This is a `.babelrc` example for Next.js:

Cosmos Classic packages have been moved to [a dedicated repo](https://github.com/react-cosmos/react-cosmos-classic), which means we can continue to maintain Cosmos Classic or even run it alongside React Cosmos 5 in the same project (during the migration period).

That said, it's ideal for all Cosmos users to use the latest version. Please [let me know](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw) if you need help upgrading.
That said, it's ideal for all Cosmos users to use the latest version. Please [let me know](https://discord.gg/3X95VgfnW5) if you need help upgrading.

---

[Join us on Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw) for feedback and questions.
[Join us on Discord](https://discord.gg/3X95VgfnW5) for feedback and questions.
2 changes: 1 addition & 1 deletion docs/roadmap/archived/roadmap-2018-2021.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ For some, managing bugs is the hard part of being an open source maintainer. Ove

The RFCs repo allows feature ideas to be proposed and addressed properly, while keeping the issues list nice and clean. It will allow me and other maintainers to process issues with priority, without neglecting novel ideas from the community, which on the long run are invaluable.

Finally, we have an `#ideas` channel on [Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw) for bouncing around ideas without formality.
Finally, we have [Discord](https://discord.gg/3X95VgfnW5) for bouncing around ideas without formality.

- [x] Create react-cosmos/rfcs repo
- [x] Research templates and practices from other repos like reactjs/rfcs
Expand Down
10 changes: 5 additions & 5 deletions docs/uiPlugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ If the plugin was detected you should see this message in your terminal:
[Cosmos] Found 1 plugin: Boolean input
```

> If you don't see this message or see errors instead please let us know on [Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw).
> If you don't see this message or see errors instead please let us know on [Discord](https://discord.gg/3X95VgfnW5).
Now open the Cosmos UI. If the plugin was loaded successfully you should see this message in the browser console:

```
[Cosmos] Loading plugin script at path/to/booleanInputPlugin/ui.js
```

> If you don't see this message or see errors instead please let us know on [Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw).
> If you don't see this message or see errors instead please let us know on [Discord](https://discord.gg/3X95VgfnW5).
OK, now the plugin should be in action. Maybe at this point I should tell you what the plugin does! The plugin changes the input for boolean values in the control panel, from a true/false button to a proper checkbox.

Expand All @@ -89,19 +89,19 @@ And voilà. This is what boolean inputs look like, before and after the plugin i

<img src="pluginListToggle.gif" alt="Boolean input plugin" height="463"/>

> If you don't get the same experience please let us know on [Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw). Hell, even if it _does_ work let us know!
> If you don't get the same experience please let us know on [Discord](https://discord.gg/3X95VgfnW5). Hell, even if it _does_ work let us know!
## Create your own plugin

This part is WIP 🙀

I'm working on this and will post updates on Slack. If you're really eager to write your own Cosmos plugin, you can check out the [source code for the booleanInput plugin](https://github.com/react-cosmos/react-cosmos/tree/ecd4fae5732134292c978fda86832da24ea055c1/example/booleanInputPlugin). Here's the absolute minimum you need to know:
I'm working on this and will post updates on Discord. If you're really eager to write your own Cosmos plugin, you can check out the [source code for the booleanInput plugin](https://github.com/react-cosmos/react-cosmos/tree/ecd4fae5732134292c978fda86832da24ea055c1/example/booleanInputPlugin). Here's the absolute minimum you need to know:

- Your plugin needs a `cosmos.plugin.json` file to be automatically detected by Cosmos.
- In the plugin config, the `ui` attribute points to the relative path of the JS file.
- The plugin should be precompiled, as is the Cosmos UI. This is why plugins can be installed without having to build anything locally.
- If you choose to bundle your plugin with webpack (recommended for now), use [this config](https://github.com/react-cosmos/react-cosmos/blob/ecd4fae5732134292c978fda86832da24ea055c1/example/booleanInputPlugin/webpack.config.js) as your boilerplate. The [externals part](https://github.com/react-cosmos/react-cosmos/blob/ecd4fae5732134292c978fda86832da24ea055c1/example/booleanInputPlugin/webpack.config.js#L21-L25) is the most important, because it ensures your plugin reuses the React version already bundled in the Cosmos UI.
- There are two things called **slots** and **plugs**. The Cosmos UI has dozens of slots throughout its components. Plugins can _plug_ into these slots to decorate or replace pieces of UI. This really needs to be explained properly, but you can see how the boolean input plugin replaces just boolean input types [here](https://github.com/react-cosmos/react-cosmos/blob/ecd4fae5732134292c978fda86832da24ea055c1/example/booleanInputPlugin/src/ui.tsx#L14-L29).
- Let us know what you made on the `#plugins` [Slack](https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw) channel 🙏
- Let us know what you made on [Discord](https://discord.gg/3X95VgfnW5) 🙏

Thank you for being part of this journey.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function RendererNotResponding() {
</List>
<Paragraph>
<ActionLink
href="https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw"
href="https://discord.gg/3X95VgfnW5"
rel="noopener noreferrer"
target="_blank"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export function WelcomeCosmos({ onDismissWelcome }: Props) {
<br />
Chat with us on{' '}
<Link
href="https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw"
href="https://discord.gg/3X95VgfnW5"
rel="noopener noreferrer"
target="_blank"
>
Slack
Discord
</Link>
. Report detailed issues on{' '}
<Link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,5 @@ it('renders "help" link', () => {
const { getByText } = loadTestPlugins();

const helpLink = getByText(/ask for help/i) as HTMLAnchorElement;
expect(helpLink.href).toMatch(
'https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw'
);
expect(helpLink.href).toMatch('https://discord.gg/3X95VgfnW5');
});
4 changes: 2 additions & 2 deletions website/src/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export function Footer() {
<ExternalLink href="https://github.com/react-cosmos/react-cosmos">
<ExternalLabel>GitHub</ExternalLabel>
</ExternalLink>
<ExternalLink href="https://react-cosmos.slack.com/join/shared_invite/zt-g9rsalqq-clCoV7DWttVvzO5FAAmVAw">
<ExternalLabel>Slack</ExternalLabel>
<ExternalLink href="https://discord.gg/3X95VgfnW5">
<ExternalLabel>Discord</ExternalLabel>
</ExternalLink>
<ExternalLink href="https://twitter.com/ReactCosmos">
<ExternalLabel>Twitter</ExternalLabel>
Expand Down

0 comments on commit 6954268

Please sign in to comment.