Skip to content

Commit 5b28247

Browse files
RhysSullivandependabot[bot]JoltCodetropicthedevmwgiannini
authored
v0.9 (#275)
* Bump node engine version * Read The Rules Consent (#64) * Refactor tRPC to build queries off zod * Refactor use deps creates inline dependencies * Working discord bot read the rules consent * Update helpers.ts * Convert to using discord account in ctx for auth * Add type hints to all env variables * Convert legacy tests to use new helper funcitons * Check if read the rules consent is enabled before marking a user as consenting * Fix @me fetch errors * Fix lint issues * Ignored Discord Account Support (#65) * Ignored accounts router * Mark discord accounts as ignored when they are deleted * Bump postcss from 8.4.20 to 8.4.21 (#68) Bumps [postcss](https://github.com/postcss/postcss) from 8.4.20 to 8.4.21. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](postcss/postcss@8.4.20...8.4.21) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-jest from 27.2.0 to 27.2.1 (#66) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.2.0 to 27.2.1. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v27.2.0...v27.2.1) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Message Indexing (#71) * Refactor test files to make the scenarios less complex * Tests for most of indexing file * Set workspace to ignore gitignored files in search * Add Discord ID to GH Actions & Add unit test to indexing loop * Bump prettier from 2.8.1 to 2.8.2 (#67) * Bump prettier from 2.8.1 to 2.8.2 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.8.1...2.8.2) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix lint issues Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Message Component (#85) * Working message component * Update tsconfig with lin fixes * Api Permissions Rework (#88) * Bump eslint-plugin-react from 7.31.11 to 7.32.0 (#86) * Remove once from read the rules consent (#92) * Bump @typescript-eslint/parser from 5.48.1 to 5.48.2 (#93) * Bump eslint-plugin-react from 7.32.0 to 7.32.1 (#94) * Bump eslint-config-next from 13.1.2 to 13.1.4 (#95) * Bump vitest from 0.27.1 to 0.27.3 (#97) * Bump @typescript-eslint/eslint-plugin from 5.48.1 to 5.48.2 (#96) * Message Result Page (#99) * Clean up, add pricing page, extend footer and header * CORS for dev only signed in calls from storybook * Add signed in / signed out button to storybook ui * Add router for message pages * Add code highlighting to discord messages * Make message page load from message ids * Add being able to view messages of users you share a server with * Use icons for light/dark mode * Add example env file and update dev container * Add tests for adding discord accounts * Update tests to use utility functions * Refactor z schema objects into database package, support server invites * Bump eslint-plugin-react from 7.32.1 to 7.32.2 (#105) Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.32.1 to 7.32.2. - [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases) - [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](jsx-eslint/eslint-plugin-react@v7.32.1...v7.32.2) --- updated-dependencies: - dependency-name: eslint-plugin-react dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump tslib from 2.4.1 to 2.5.0 (#109) Bumps [tslib](https://github.com/Microsoft/tslib) from 2.4.1 to 2.5.0. - [Release notes](https://github.com/Microsoft/tslib/releases) - [Commits](microsoft/tslib@2.4.1...2.5.0) --- updated-dependencies: - dependency-name: tslib dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Bump eslint-config-next from 13.1.4 to 13.1.6 (#107) Bumps [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) from 13.1.4 to 13.1.6. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/commits/v13.1.6/packages/eslint-config-next) --- updated-dependencies: - dependency-name: eslint-config-next dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Bump eslint-plugin-tailwindcss from 3.8.0 to 3.8.2 (#108) Bumps [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) from 3.8.0 to 3.8.2. - [Release notes](https://github.com/francoismassart/eslint-plugin-tailwindcss/releases) - [Commits](francoismassart/eslint-plugin-tailwindcss@v3.8.0...v3.8.2) --- updated-dependencies: - dependency-name: eslint-plugin-tailwindcss dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Finish Navbar & Footer (#110) - Refactor avatar into it's own component - Refactor Discord Account & Server Icon to use avatar components - Add menu dropdown to navbar - Add sign in / sign out to navbar - Make custom button take in all button props * Update github-actions.yml * Add vercel config files for ui package (#117) * Create vercel.json * Update package.json * Update vercel.json * Delete vercel.json * Migrate storybook to v7 * Analytics components (#113) Add line graph, bar graph, table, stats --------- Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Accessibility tests (#118) Automated accessibly tests for light and dark theme --------- Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Create labeler.yml * Move labler location * Create labeler.yml * Update labeler.yml * Update labeler.yml * Mark Solution Context Menu Command (#121) -Add mark solution context command -Add reaction mark solution (only for reactiflux) WIP: -Add Enable Forum Post Guidelines Consent button to channel settings menu -Fix channel settings in thread fetching the thread settings instead of parent * Refactor mock & utils into discordjs-[mock/utils] packages (#123) Refactor DiscordJS Mocks into their own package Refactor DiscordJS Utils into their own package Refactor driver logic of domain features into its own folder * Packages Refactor & All Tests Running In Parallel (#126) - Create db-mock, prisma-types, elastic-types, utils packages - Remove coverage reports from watch tests - Remove clear database from all tests - * Update jest ignored workspaces * Forum Post Guidelines Consent (#128) * Clean & regenerate database when running tests * Address flakey tests by improving random id usage * Bump delay time, make message parity use test api router caller * Update github-actions.yml * Improve Onboarding Documentation (#135) Create contributing guidelines Update README (refenced tRPC for inspiration) * Remove sudo commands from post dev container create * Remove duplicated db generate calls from db package * Fix tpyo in README * Bump vite from 4.0.4 to 4.1.1 (#140) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.0.4 to 4.1.1. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v4.1.1/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/eslint-plugin from 5.48.2 to 5.50.0 (#142) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.48.2 to 5.50.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-import from 2.27.4 to 2.27.5 (#141) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.27.4 to 2.27.5. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.27.4...v2.27.5) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump turbo from 1.7.0 to 1.7.3 (#144) Bumps [turbo](https://github.com/vercel/turbo) from 1.7.0 to 1.7.3. - [Release notes](https://github.com/vercel/turbo/releases) - [Changelog](https://github.com/vercel/turbo/blob/main/release.md) - [Commits](vercel/turborepo@v1.7.0...v1.7.3) --- updated-dependencies: - dependency-name: turbo dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 5.48.2 to 5.50.0 (#143) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.48.2 to 5.50.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update github-actions.yml * Run CI on playwright docker image * fix incorrect runs on * Update github-actions.yml * Update github-actions.yml * Update README.md * Add public token to Codecov embed * Separate Answer Overflow bot DB calls from the api (#136) Move DB operations into db package Update tests to match new call style * Remote development instructions (#148) * Add codespaces and gitpod badge to README * Add remote dev instructions to contributing.md * Split kibana into its own docker compose --------- Co-authored-by: Jordan McKoy <jordan.bmp.mckoy@gmail.com> * Fix invalid gitpod link * Fix clean src typo * Merge Channel Settings and Server Settings Into Parent Tables (#151) Combine channel settings and channel into one table Combine server settings and server into one table 90% of the time when we're reading this data, we need to access the settings in some form, it just makes sense to have these tables combined for simplicity * enFORCE consistent Naming_conventions (#152) * Rename all variables to camelCase * Setup ESLint to enforce naming conventions * Issue templates (#153) Create issue templates for specific regions of code * Update documentation.yml * Update website_page.yml * Bump GH actions delay * Create pull_request_template.md (#165) * Bump @typescript-eslint/eslint-plugin from 5.50.0 to 5.51.0 (#169) * Bump tailwindcss from 3.2.4 to 3.2.6 (#172) * Bump prettier from 2.8.3 to 2.8.4 (#171) * Bump @typescript-eslint/parser from 5.50.0 to 5.51.0 (#173) * Bump turbo from 1.7.3 to 1.7.4 (#170) Bumps [turbo](https://github.com/vercel/turbo) from 1.7.3 to 1.7.4. - [Release notes](https://github.com/vercel/turbo/releases) - [Changelog](https://github.com/vercel/turbo/blob/main/release.md) - [Commits](vercel/turborepo@v1.7.3...v1.7.4) --- updated-dependencies: - dependency-name: turbo dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Bump undici from 5.15.0 to 5.19.1 (#176) Bumps [undici](https://github.com/nodejs/undici) from 5.15.0 to 5.19.1. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.15.0...v5.19.1) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Create pull_request_template.md * Update documentation.yml * Update pull_request_template.md * Delete pull_request_template.md * Update pull_request_template.md * Rename .github/PULL_REQUEST_TEMPLATE/pull_request_template.md to .github/pull_request_template.md * Improve Readme (#181) * init * Update README.md * Update pull_request_template.md * feat: manage account menu (#166) * Increase test coverage of DB and API Package * Add manage account menu and open manage account menu slash command * [feat]: sync message replies (#187) * Rename [message_id] to [messageId] * Support replies in indexing * Move message z object to elastic db package * Bump vitest from 0.27.3 to 0.28.5 (#188) * Bump eslint from 8.32.0 to 8.34.0 (#189) * Bump typescript from 4.9.4 to 4.9.5 (#192) * Bump eslint-plugin-tailwindcss from 3.8.2 to 3.8.3 (#190) * feat(ui): new homepage, navbar and button (#146) * add(ui): homepage, new button component Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Design guidelines (#167) * Link README images to hosted on site * (chore): upgrade storybook (#201) * swap to main ts * add linting to .storybook folder * make preview a typescript file * Typescript - Use meta in a story * Switch to new format for stories * Migrate to story fn * Update and rename website_page.yml to website.yml * Update website.yml * (feat): create manage server card component * Create ManageServerCard component --------- Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * (feat): add ui dev container file * (feat): search results api Add tRPC procedure for search results * (chore): add update .env.example to pr template * tweak(readme): subtitle (#211) * Component-issue-template (#212) * (feat): cache discord api responses (#209) - Remove VITE_ environment variables - Add wakatime to dev container - Create cache package - Create cache parity events for users & user servers - Add Redis to docker-compose - Move discord operations into cache package * [feat]: docs site (#214) * Add a nextra docs site * Change package.json to remove apps/**/* due to issues with having multiple next projects in the same repo * [chore]: update readme roadmap to include GH sponsors * (chore): remove wakatime from dev container * (chore): remove wakatime from ui dev container * (feat): server settings menu (#221) * Bump @sapphire/plugin-api from 5.0.0 to 5.0.1 (#224) * Bump eslint-config-next from 13.0.6 to 13.2.1 (#223) * Bump @storybook/jest from 0.0.11-next.0 to 0.0.11--canary.22.2783ae7.0 (#222) * (chore): Bump dotenv-cli from 6.0.0 to 7.0.0 (#225) Bumps [dotenv-cli](https://github.com/entropitor/dotenv-cli) from 6.0.0 to 7.0.0. - [Release notes](https://github.com/entropitor/dotenv-cli/releases) - [Commits](entropitor/dotenv-cli@v6.0.0...v7.0.0) --- updated-dependencies: - dependency-name: dotenv-cli dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 18.14.1 to 18.14.2 (#226) * feat(bot): sync guild description (#228) * (feat): enable language server for mdx files * docs: add note about docker compose for containers on linux (#230) * feat(bot): auto thread (#227) * tweak(docs): design guidelines (#232) * tweak(config/tailwind): colors (#235) * fix(design_guidelines): error in white hex code (#233) * feat(bot): channel settings menu (#237) * add ping endpoint, remove old endpoints (#239) * feat(bot): create docker file * fix(dev-env): generate prisma types post install * fix(dev-env): generate prisma types for bot docker file * fix(dev-env): add openssl to bot docker file * fix(dev-env): support ssl in bot docker file * fix(elastic): add update tests * feat(dev-env): add railway/cli to dev container * feat(elastic): support creating index from node script * feat(bot): log info on login * fix(docker): run bot in production node env * Bump next-auth from 4.19.2 to 4.20.1 (#245) * Bump @storybook/addons from 7.0.0-beta.54 to 7.0.0-beta.61 (#246) * Bump @storybook/test-runner (#247) * Bump @headlessui/react from 1.7.12 to 1.7.13 (#243) * docs(contributing): advice on env's when using a cloud dev enviroment (#236) --------- Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * Bump @storybook/nextjs from 7.0.0-beta.54 to 7.0.0-beta.62 (#248) * (feat): transition from reacord -> discordjs-react (#253) * fix(bot): remove random id from server settings message * chore(dev env): split prettier from eslint (#255) * feat(bot): automatically send mark solution instructions (#256) * feat(bot): consent buttons (#257) * fix(bot): fix lint error * build(deps-dev): bump prisma from 4.10.1 to 4.11.0 (#263) * build(deps): bump @sapphire/framework from 4.0.0 to 4.2.1 (#262) * build(deps-dev): bump @storybook/test-runner (#261) * build(deps): bump @trpc/next from 10.12.0 to 10.15.0 (#260) * build(deps-dev): bump @vitest/coverage-c8 from 0.25.8 to 0.28.5 (#259) * feat (bot): sync embeds, reactions, components & more! (#267) * feat(bot): add unstable status to bot * feat(ui/pages): search page (#242) * fix(bot): improve consent/unconsent slash command responses * fix(bot): disable docs link in support until site is live * feat(web/search): integrate search results to api (#268) * feat(docs): noindex on staging deployment (#266) * build(deps-dev): bump webpack from 5.75.0 to 5.76.0 (#270) Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](webpack/webpack@v5.75.0...v5.76.0) --- updated-dependencies: - dependency-name: webpack dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(web): add initial props back to _document * fix(web): remove no-index from header causing failing builds * fix(scripts): remove local env script * fix(web/m/id): don't duplicate root messages in forum threads * fix(web/m/id): duplicate root messages * fix(web): allow building in CI * feat(ui): new buttons (#273) --------- Co-authored-by: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> * feat(bot) pre release polish (#272) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JoltCode <46378904+JoltCode@users.noreply.github.com> Co-authored-by: Jordan McKoy <jordan.bmp.mckoy@gmail.com> Co-authored-by: JoltCode <joe@joecc.dev> Co-authored-by: mwgiannini <89871491+mwgiannini@users.noreply.github.com> Co-authored-by: Dominic Ruggiero <dominic@userexe.me>
1 parent 8f2ac64 commit 5b28247

File tree

506 files changed

+33538
-13817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

506 files changed

+33538
-13817
lines changed

.codecov.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
informational: true
6+
patch:
7+
default:
8+
informational: true

.devcontainer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ ENV CHOKIDAR_USEPOLLING=true
1414
# [Optional] Uncomment if you want to install more global node packages
1515
# RUN su node -c "npm install -g <your-package-list -here>"
1616
RUN su node -c "npm install @sapphire/cli -g"
17-
RUN su node -c "npm install -g eslint"
17+
RUN su node -c "npm install -g eslint"
18+
RUN su node -c "npm i -g @railway/cli"

.devcontainer/devcontainer.json

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,13 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/typescript-node
1+
// ! If you make changes to this devcontainer make sure to update all other devcontainers as well
32
{
4-
"name": "Node.js & TypeScript",
5-
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
3+
"name": "Full Environment (MySQL, Elastic, Redis)",
64
"dockerComposeFile": [
75
"docker-compose-workspace.yml",
86
"../docker-compose.yml"
97
],
10-
// The 'service' property is the name of the service for the container that VS Code should
11-
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
128
"service": "workspace",
13-
"workspaceFolder": "/workspace",
14-
// Configure tool-specific properties.
15-
"customizations": {
16-
// Configure properties specific to VS Code.
17-
"vscode": {
18-
// Add the IDs of extensions you want installed when the container is created.
19-
"extensions": [
20-
"dbaeumer.vscode-eslint",
21-
"GitHub.copilot",
22-
"eamodio.gitlens",
23-
"Prisma.prisma",
24-
"ZixuanChen.vitest-explorer",
25-
"EditorConfig.EditorConfig",
26-
"bradlc.vscode-tailwindcss",
27-
"DavidAnson.vscode-markdownlint",
28-
"Orta.vscode-jest"
29-
]
30-
}
31-
},
32-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
33-
// "forwardPorts": [],
34-
// Use 'postCreateCommand' to run commands after the container is created.
35-
"postCreateCommand": "yarn install; npx playwright install-deps; npx playwright install",
36-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
9+
"workspaceFolder": "/AnswerOverflow",
10+
"postCreateCommand": "yarn install && npx playwright install && npx playwright install-deps",
3711
"remoteUser": "node",
3812
"mounts": [
3913
"source=${localEnv:HOME}/repos,target=/home/node/repos,type=bind,consistency=cached"

.devcontainer/docker-compose-workspace.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,10 @@ services:
99
VARIANT: "16"
1010

1111
volumes:
12-
- ..:/workspace:cached
12+
- ..:/AnswerOverflow:cached
1313

1414
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
1515
# - /var/run/docker.sock:/var/run/docker.sock
1616

1717
# Overrides default command so things don't shut down after the process ends.
1818
command: /bin/sh -c "while sleep 1000; do :; done"
19-
20-
kibana:
21-
container_name: ao-db-kibana
22-
image: docker.elastic.co/kibana/kibana:8.0.0
23-
environment:
24-
- ELASTICSEARCH_HOSTS=http://ao-db-elastic:9200
25-
depends_on:
26-
- db-elastic
27-
expose:
28-
- 5601
29-
ports:
30-
- 5601:5601

.devcontainer/ui/devcontainer.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/typescript-node
3+
{
4+
"name": "UI Dev Only",
5+
"dockerComposeFile": [
6+
"../docker-compose-workspace.yml"
7+
],
8+
"service": "workspace",
9+
"workspaceFolder": "/AnswerOverflow",
10+
"postCreateCommand": "yarn install && npx playwright install && npx playwright install-deps",
11+
"remoteUser": "node",
12+
"mounts": [
13+
"source=${localEnv:HOME}/repos,target=/home/node/repos,type=bind,consistency=cached"
14+
]
15+
}

.env.example

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Get these values from here
2+
# https://discord.com/developers/applications
3+
# If you are using github codespaces, we recommend using encrypted secrets for these env's!
4+
DISCORD_TOKEN = ""
5+
DISCORD_CLIENT_ID = ""
6+
DISCORD_CLIENT_SECRET = ""
7+
8+
OWNERS = []
9+
10+
DATABASE_URL = mysql://root:mysql@ao-db-sql:3306/api_dev
11+
ELASTICSEARCH_URL = http://ao-db-elastic:9200
12+
13+
# ! USE THESE VALUES IF YOU ARE NOT RUNNING IN THE DEV CONTAINER AND INSTEAD ARE USING DOCKER COMPOSE
14+
# DATABASE_URL = mysql://root:mysql@localhost:33306/api_dev # Change to localhost if not running in a container
15+
# ELASTICSEARCH_URL = http://localhost:9200 # Change to localhost if not running in a container
16+
17+
ELASTICSEARCH_PASSWORD = changeme
18+
ELASTICSEARCH_USERNAME = elastic
19+
ELASTICSEARCH_MESSAGE_INDEX = messages
20+
21+
# Use this if connecting to a production Elastic Cloud instance
22+
# ELASTICSEARCH_CLOUD_ID = ""
23+
24+
REDIS_URL = redis://:redis@ao-cache-redis:6379
25+
NEXTAUTH_SECRET = 123
26+
27+
# Options are "local", "staging", "production" - used for controlling whether Google indexing is enabled, etc
28+
NEXT_PUBLIC_DEPLOYMENT_ENV = "local"
29+
30+
# Optional for reporting errors to sentry
31+
# SENTRY_DSN = ""
32+
33+
# Optional for remote caching
34+
# TURBO_TOKEN = ""
35+
# TURBO_TEAM = ""
36+
37+
# Uncomment this if you are running a slow machine
38+
# It gives more time for untracked async tasks to succeed
39+
# DEFAULT_DELAY_IN_MS = 5000

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Bug report
2+
description: Report incorrect or unexpected behavior
3+
labels: [🐞 bug]
4+
body:
5+
- type: dropdown
6+
id: package
7+
attributes:
8+
label: What is this bug report for?
9+
multiple: true
10+
options:
11+
- discord bot
12+
- website
13+
- api
14+
- auth
15+
- database
16+
- ui
17+
- discordjs-mock
18+
- discordjs-utils
19+
- elastic-types
20+
- prisma-types
21+
- eslint-config
22+
- tailwind-config
23+
- tsconfig
24+
- dev env
25+
- other
26+
validations:
27+
required: true
28+
- type: textarea
29+
id: description
30+
attributes:
31+
label: Issue description
32+
description: Describe the issue in as much detail as possible.
33+
placeholder: Steps to reproduce with below code sample
34+
validations:
35+
required: true
36+
- type: textarea
37+
id: codesample
38+
attributes:
39+
label: Code sample
40+
description: Include a reproducible, minimal code sample. This will be automatically formatted into code, so no need for backticks.
41+
render: typescript
42+
placeholder: |
43+
Your code sample should be...
44+
... Minimal - Use as little code as possible that still produces the same problem (and is understandable)
45+
... Complete - Provide all parts someone else needs to reproduce your problem
46+
... Reproducible - Test the code you're about to provide to make sure it reproduces the problem
47+
- type: input
48+
id: os
49+
attributes:
50+
label: Operating system
51+
description: What OS are you on?
52+
- type: dropdown
53+
id: priority
54+
attributes:
55+
label: Priority this issue should have
56+
description: Please be realistic. If you need to elaborate on your reasoning, please use the Issue description field above.
57+
options:
58+
- Low (slightly annoying)
59+
- Medium (should be fixed soon)
60+
- High (immediate attention needed)
61+
validations:
62+
required: true
63+
- type: textarea
64+
id: extra
65+
attributes:
66+
label: Extra
67+
description: Attach logs, screenshots, anything extra to help narrow down the bug.
68+
placeholder: Here are my logs and a screenshot...
69+
validations:
70+
required: false

.github/ISSUE_TEMPLATE/component.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Component
2+
description: Feature / Update request for a new / existing component
3+
title: "[Component]: "
4+
labels: ["⚛ component", "🎨 Design"]
5+
body:
6+
- type: textarea
7+
id: idea
8+
attributes:
9+
label: Purpose?
10+
description: What purpose does this component serve? / What should be changed?
11+
placeholder: It should allow users to... / This should improve...
12+
validations:
13+
required: true
14+
- type: textarea
15+
id: concepts
16+
attributes:
17+
label: Concepts
18+
description: Upload images for the concepts of this component. Feel free to just create a basic wireframe in paint to get the concept across
19+
validations:
20+
required: true
21+
- type: textarea
22+
id: description
23+
attributes:
24+
label: Description
25+
description: Describe how the component interacts / What should be updated
26+
placeholder: When I click the button it should...
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: extra
31+
attributes:
32+
label: Extra Information
33+
description: Post any extra links, screenshots, or references that might be helpful here
34+
placeholder: This component looks like a good refrence https://www.youtube.com/watch?v=dQw4w9WgXcQ
35+
validations:
36+
required: false

0 commit comments

Comments
 (0)