diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md new file mode 100644 index 0000000000..665a150bc1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -0,0 +1,18 @@ +--- +name: Bug report +about: Report a bug so we can fix and improve +labels: bug +--- + +#### Describe the bug +A clear and concise description of what the bug is. + +#### How to Reproduce +Steps to reproduce the issue. Attach all resources that can help us understand the issue: + +- Screenshots +- Link to GitHub repository with project that has issues +- Files that can help reproduce the issue, like your AsyncAPI file, either paste inside the issue in a code block or in a sharable [gist](https://gist.github.com/) + +#### Expected behavior +A clear and concise description of what you expected to happen. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000000..8d679eae38 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,11 @@ +blank_issues_enabled: true +contact_links: + - name: Project Communication + url: https://github.com/asyncapi/asyncapi/issues/115 + about: Check out all the options to communicate with AsyncAPI community. + - name: Slack + url: https://www.asyncapi.com/slack-invite/ + about: Don't open issues for questions or support, better talk to us on Slack first. + - name: AsyncAPI Website + url: https://www.asyncapi.com/ + about: For more information about AsyncAPI visit our website. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/enhancement.md b/.github/ISSUE_TEMPLATE/enhancement.md new file mode 100644 index 0000000000..92cbf241d7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/enhancement.md @@ -0,0 +1,18 @@ +--- +name: Feature request +about: Suggest how we can improve +labels: enhancement +--- + +#### Reason/Context +Please try answering few of those questions +- Why we need this improvement? +- How will this change help? +- What is the motivation? + + +#### Description +Please try answering few of those questions +- What changes have to be introduced? +- Will this be a breaking change? +- How could it be implemented/designed? diff --git a/.github/ISSUE_TEMPLATE/pitch.yml b/.github/ISSUE_TEMPLATE/pitch.yml index c58c9af176..efbcfc271a 100644 --- a/.github/ISSUE_TEMPLATE/pitch.yml +++ b/.github/ISSUE_TEMPLATE/pitch.yml @@ -1,7 +1,7 @@ name: Pitch description: 'Do you have an idea and a product enhancement? Time to pitch!' title: '[PITCH]:' -labels: ['Pitch'] +labels: ['pitch'] body: - type: markdown attributes: diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000000..5d37508607 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,15 @@ + + +**Description** + +- ... +- ... +- ... + +**Related issue(s)** + \ No newline at end of file diff --git a/.github/workflows/issues-metrics.yml b/.github/workflows/issues-metrics.yml index 4c2500064a..f0ad4d02d1 100644 --- a/.github/workflows/issues-metrics.yml +++ b/.github/workflows/issues-metrics.yml @@ -32,7 +32,7 @@ jobs: uses: github/issue-metrics@v2 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SEARCH_QUERY: 'repo:shapeitapp/shapeitapp created:${{ env.last_month }}' + SEARCH_QUERY: 'repo:asyncapi/studio created:${{ env.last_month }}' - name: Create issue uses: peter-evans/create-issue-from-file@v4 diff --git a/apps/studio/package.json b/apps/studio/package.json index 3a1867f88b..8a8b857b22 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -24,7 +24,7 @@ ], "dependencies": { "@asyncapi/avro-schema-parser": "^3.0.2", - "@asyncapi/converter": "^1.3.1", + "@asyncapi/converter": "^1.4.1", "@asyncapi/openapi-schema-parser": "^3.0.4", "@asyncapi/parser": "^3.0.0-next-major-spec.3", "@asyncapi/react-component": "^1.0.2", @@ -75,7 +75,7 @@ }, "devDependencies": { "@asyncapi/dotnet-nats-template": "^0.12.1", - "@asyncapi/go-watermill-template": "^0.2.43", + "@asyncapi/go-watermill-template": "^0.2.44", "@asyncapi/html-template": "^0.28.4", "@asyncapi/java-spring-cloud-stream-template": "^0.13.4", "@asyncapi/java-spring-template": "^1.4.0", diff --git a/apps/studio/src/components/Content.tsx b/apps/studio/src/components/Content.tsx index cea67ccc66..1c147165fc 100644 --- a/apps/studio/src/components/Content.tsx +++ b/apps/studio/src/components/Content.tsx @@ -6,7 +6,7 @@ import { Template } from './Template'; import { VisualiserTemplate } from './Visualiser'; import { debounce } from '../helpers'; -import { usePanelsState, useDocumentsState, useSettingsState } from '../state'; +import { usePanelsState, useDocumentsState } from '../state'; import type { FunctionComponent } from 'react'; @@ -15,8 +15,7 @@ interface ContentProps {} export const Content: FunctionComponent = () => { // eslint-disable-line sonarjs/cognitive-complexity const { show, secondaryPanelType } = usePanelsState(); const document = useDocumentsState(state => state.documents['asyncapi']?.document) || null; - const v3Enabled = useSettingsState(state => state.editor.v3support) || false; - const isV3 = document?.version() === '3.0.0' && v3Enabled; + const isV3 = document?.version() === '3.0.0'; const navigationEnabled = show.primarySidebar; const editorEnabled = show.primaryPanel; const viewEnabled = show.secondaryPanel; diff --git a/apps/studio/src/components/Modals/Settings/SettingsModal.tsx b/apps/studio/src/components/Modals/Settings/SettingsModal.tsx index 085fdc45ec..8df9bd0292 100644 --- a/apps/studio/src/components/Modals/Settings/SettingsModal.tsx +++ b/apps/studio/src/components/Modals/Settings/SettingsModal.tsx @@ -62,14 +62,12 @@ export const SettingsModal = create(({ activeTab = 'editor' const [governanceHints, setGovernanceHints] = useState(settings.governance.show.hints); const [autoRendering, setAutoRendering] = useState(settings.templates.autoRendering); const [confirmDisabled, setConfirmDisabled] = useState(true); - const [v3support, setV3support] = useState(settings.editor.v3support); const createNewState = (): SettingsState => { return { editor: { autoSaving, savingDelay, - v3support }, governance: { show: { @@ -88,7 +86,7 @@ export const SettingsModal = create(({ activeTab = 'editor' const newState = createNewState(); const isThisSameObjects = settingsSvc.isEqual(newState); setConfirmDisabled(isThisSameObjects); - }, [autoSaving, savingDelay, autoRendering, governanceWarnings, governanceInformations, governanceHints, v3support]); + }, [autoSaving, savingDelay, autoRendering, governanceWarnings, governanceInformations, governanceHints]); const onCancel = useCallback(() => { modal.hide(); @@ -131,20 +129,6 @@ export const SettingsModal = create(({ activeTab = 'editor' Save automatically after each change in the document or manually. -
-
- - setV3support(v)} - /> -
-