Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tml 11 #77

Merged
merged 7 commits into from
May 10, 2024
Merged

Tml 11 #77

merged 7 commits into from
May 10, 2024

Conversation

harrytran998
Copy link
Member

@harrytran998 harrytran998 commented May 10, 2024

Summary by CodeRabbit

  • New Features

    • Introduced a new script for Git post-checkout operations.
    • Added new commands in Makefile.toml for various operations including linting, building, testing, and Docker.
    • Updated project setup instructions to include React Typescript + Flutter.
    • Added a new task in docker.toml for running Docker containers in detached mode.
  • Bug Fixes

    • Corrected a command typo in docker-compose.yml for setting MinIO policy.
  • Documentation

    • Updated README.md with simplified project setup and running instructions.
    • Added detailed deployment and technical decision documentation in techmely.md.
  • Refactor

    • Updated scripts in .moon/hooks to reference new script paths for Git operations.
  • Chores

    • Updated dependency versions in package.json files across multiple apps and packages.
  • Style

    • No visible style changes to end-users.
  • Tests

    • No direct changes affecting end-user testing functionalities.
  • Revert

    • No reverts affecting end-user functionalities.

Copy link

linear bot commented May 10, 2024

Copy link
Contributor

coderabbitai bot commented May 10, 2024

Walkthrough

The recent updates focus on refining Git hooks, enhancing Docker configurations, and modifying project dependencies across various packages. Key changes include transitioning from Typescript + Vue to React Typescript + Flutter, updating dependency versions, and restructuring commands and scripts for better project management and development workflows.

Changes

File Path Change Summary
.moon/hooks/... Updated scripts in hooks to reference external scripts for Git operations.
Makefile.toml Modified commands and paths, introducing Docker operations and removing some extend paths.
README.md Transitioned project setup from Vue to React and Flutter; streamlined setup instructions.
apps/api/package.json, apps/web/package.json, packages/.../package.json Updated dependency versions across various packages.
docker/docker-compose.yml Updated PostgreSQL image version and corrected command typo.
scripts/docker.toml Introduced a new Docker task for local database setup.

🐰✨📝
In the moonlight, codes shift and dance,
Hooks and scripts in a meticulous prance.
Docker sails on a sea of blue,
As dependencies renew, a project anew.
Hop, hop, hurray! For the changes we embrace,
In the burrow of tech, we find our place. 🌟🚀


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@harrytran998 harrytran998 merged commit 8e43fa8 into dev May 10, 2024
3 of 4 checks passed
@harrytran998 harrytran998 deleted the TML-11 branch May 10, 2024 03:53
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between ea5d548 and 0214ca2.
Files ignored due to path filters (1)
  • bun.lockb is excluded by !bun.lockb
Files selected for processing (15)
  • .moon/hooks/commit-msg.sh (1 hunks)
  • .moon/hooks/post-checkout.sh (1 hunks)
  • .moon/hooks/pre-commit.sh (1 hunks)
  • .moon/hooks/pre-push.sh (1 hunks)
  • .moon/hooks/prepare-commit-msg.sh (1 hunks)
  • .moon/tasks/typescript.yml (1 hunks)
  • Makefile.toml (2 hunks)
  • README.md (1 hunks)
  • apps/api/package.json (1 hunks)
  • apps/handbook/3.products/1.techmely.md (1 hunks)
  • apps/web/package.json (4 hunks)
  • docker/docker-compose.yml (2 hunks)
  • packages/design-system/package.json (1 hunks)
  • packages/hono/package.json (1 hunks)
  • scripts/docker.toml (1 hunks)
Files skipped from review due to trivial changes (11)
  • .moon/hooks/commit-msg.sh
  • .moon/hooks/post-checkout.sh
  • .moon/hooks/pre-commit.sh
  • .moon/hooks/pre-push.sh
  • .moon/hooks/prepare-commit-msg.sh
  • .moon/tasks/typescript.yml
  • apps/api/package.json
  • apps/web/package.json
  • packages/design-system/package.json
  • packages/hono/package.json
  • scripts/docker.toml
Additional Context Used
LanguageTool (18)
README.md (9)

Near line 46: There seems to be a noun/verb agreement error. Did you mean “builds” or “built”?
Context: ...w ### Tech docs overview This project build with all my loves + the supportive frie...


Near line 67: Unpaired symbol: ‘[’ seems to be missing
Context: ...ever you want! - Kibana Search Engine smart se...


Near line 88: The adverb ‘always’ is usually put before the verb ‘project’.
Context: ...omeJs...) + Checklist Guideline to help project always in high quality - Production deployment...


Near line 88: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...ist Guideline to help project always in high quality - Production deployments—zero-setup pus...


Near line 95: The pronoun ‘we’ must be used with a non-third-person form of a verb.
Context: ...te in RUST to automate all the tasks we needs in this project - Use [Consul](http...


Near line 97: When ‘Framework-Agnostic’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...edible features like Auto Import and Framework Agnostic - Use Git Workflow + **Semantic co...


Near line 99: Did you mean “be notified”?
Context: ...+ review code! - Spell checker will notified once there had typos - Have a lot of **...


Near line 101: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...g/transforming data - Testing - All feature have Unit + UI + e2e testing(mocking DB...


Near line 105: Possible subject-verb agreement error.
Context: ... their permissions This project mainly write with React Typescript + Flutter + Rust,...

apps/handbook/3.products/1.techmely.md (9)

Near line 3: You might be missing the article “a” here.
Context: # Techmely ## How to run project 1. Install deps bun install 1. Run w...


Near line 6: Nowadays, it’s more common to write this as one word.
Context: ...t 1. Install deps bun install 1. Run web site + api with command bun run dev 1. Hav...


Near line 6: Possible missing comma found.
Context: ...bun install1. Run web site + api with commandbun run dev` 1. Have fun with that. #...


Near line 11: Possible missing preposition found.
Context: ...cones.js.org/collection/all` and search what you needs. 2. Copy the symbol of icons ...


Near line 11: The pronoun ‘you’ must be used with a non-third-person form of a verb.
Context: ...org/collection/all` and search what you needs. 2. Copy the symbol of icons 3. If your...


Near line 13: Did you mean “list of icons”?
Context: ...just specific for one page --> Create a list icons for that page in /public/svg folder -...


Near line 14: You might be missing the article “the” here.
Context: ...n is a common icon, can use anywhere in app --> add to the last item on `public/svg...


Near line 17: The phrase ‘The decided of’ is not correct. Use a noun, not an adjective, between ‘The’ and ‘of’.
Context: ...nent to expose the icon on view ## The decided of technical to fit with the business ...


Near line 21: A verb (‘be’ or ‘have’) is missing before the past participle.
Context: ...log post - With the research --> We chosen the width is around 70~80 characters de...

Additional comments not posted (3)
docker/docker-compose.yml (2)

5-5: Updated PostgreSQL image to 16.3.0. This is a good practice to keep dependencies up-to-date.


33-33: Corrected command typo in MinIO configuration to properly set bucket policies.

Makefile.toml (1)

5-14: Commented out several script paths and added scripts/docker.toml. Ensure that the disabled scripts are not required for current build operations.

Verification successful

Commented-out scripts in Makefile.toml are only referenced within the same file and do not appear to be required for current build operations. This supports the decision to comment them out.

  • api.toml
  • generate.toml
  • migration.toml
  • mobile.toml
  • protobuf.toml
  • env.toml
  • tests.toml
  • tool.toml
  • web.toml
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the commented-out scripts are not required for the build.

# Test: Check if there are any build failures or missing functionalities due to the commented-out scripts.
echo "Check build logs and functionalities for any issues related to the scripts commented out in Makefile.toml."

Length of output: 222



Script:

#!/bin/bash
# Search for references to the commented-out scripts in the codebase

# List of scripts that were commented out
scripts=("api.toml" "generate.toml" "migration.toml" "mobile.toml" "protobuf.toml" "env.toml" "tests.toml" "tool.toml" "web.toml")

# Loop through each script and use ripgrep to search for references in the codebase
for script in "${scripts[@]}"; do
    echo "Searching for references to $script in the codebase:"
    rg --files-with-matches "$script" || echo "No references found for $script"
done

Length of output: 1980

Comment on lines +1 to +51
# Techmely

## How to run project

1. Install deps `bun install`
1. Run web site + api with command `bun run dev`
1. Have fun with that.

## How to get the icons for project?

1. Go to `https://icones.js.org/collection/all` and search what you needs.
2. Copy the symbol of icons
3. If your icon just specific for one page --> Create a list icons for that page in `/public/svg` folder --> Add page name, EX: post.svg
4. If your icon is a common icon, can use anywhere in app --> add to the last item on `public/svg/common.svg`
5. Use `SvgUse` component to expose the icon on view

## The decided of technical to fit with the business

1. The width of detail blog post

- With the research --> We chosen the width is around 70~80 characters depends on the user-device width + The main language is LATIN(Vietnamese + English).
- So the width is `34rem` to `38rem`.

Here is some research paper:

- <https://baymard.com/blog/line-length-readability>

2.

## Thirst party API

- <https://developers.google.com/youtube/v3/docs/?apix=true>

## Deployment

### Self-host Docker Deployment

1. checkout source `git clone https://github.com/techmely/techmely.git`
1. got into new source dir: `cd tech`
1. build Docker image: `docker build .`
1. create local storage directory for settings: `mkdir tml-storage`
1. adjust permissions of storage dir: `sudo chown 911:911 ./tml-storage`
1. start container: `docker-compose up -d`

```sh
git clone https://github.com/techmely/techmely.git
cd techmely
bun run docker.build # build Docker image for all app
bun run docker.storage # create local storage directory + adjust permissions of storage dir
bun run docker.up # Start container - Enjoy
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Several grammatical improvements needed:

  • Line 3: Add "a" before "project".
  • Line 6: Change "web site" to "website".
  • Line 11: Change "what you needs" to "what you need".
  • Line 13: Change "Create a list icons" to "Create a list of icons".
  • Line 14: Add "the" before "app".
  • Line 17: Change "The decided of" to "The decision of".
  • Line 21: Change "We chosen" to "We have chosen".

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
# Techmely
## How to run project
1. Install deps `bun install`
1. Run web site + api with command `bun run dev`
1. Have fun with that.
## How to get the icons for project?
1. Go to `https://icones.js.org/collection/all` and search what you needs.
2. Copy the symbol of icons
3. If your icon just specific for one page --> Create a list icons for that page in `/public/svg` folder --> Add page name, EX: post.svg
4. If your icon is a common icon, can use anywhere in app --> add to the last item on `public/svg/common.svg`
5. Use `SvgUse` component to expose the icon on view
## The decided of technical to fit with the business
1. The width of detail blog post
- With the research --> We chosen the width is around 70~80 characters depends on the user-device width + The main language is LATIN(Vietnamese + English).
- So the width is `34rem` to `38rem`.
Here is some research paper:
- <https://baymard.com/blog/line-length-readability>
2.
## Thirst party API
- <https://developers.google.com/youtube/v3/docs/?apix=true>
## Deployment
### Self-host Docker Deployment
1. checkout source `git clone https://github.com/techmely/techmely.git`
1. got into new source dir: `cd tech`
1. build Docker image: `docker build .`
1. create local storage directory for settings: `mkdir tml-storage`
1. adjust permissions of storage dir: `sudo chown 911:911 ./tml-storage`
1. start container: `docker-compose up -d`
```sh
git clone https://github.com/techmely/techmely.git
cd techmely
bun run docker.build # build Docker image for all app
bun run docker.storage # create local storage directory + adjust permissions of storage dir
bun run docker.up # Start container - Enjoy
```
# Techmely
## How to run a project
1. Install deps `bun install`
1. Run website + api with command `bun run dev`
1. Have fun with that.
## How to get the icons for project?
1. Go to `https://icones.js.org/collection/all` and search what you need.
2. Copy the symbol of icons
3. If your icon just specific for one page --> Create a list of icons for that page in `/public/svg` folder --> Add page name, EX: post.svg
4. If your icon is a common icon, can use anywhere in the app --> add to the last item on `public/svg/common.svg`
5. Use `SvgUse` component to expose the icon on view
## The decision of technical to fit with the business
1. The width of detail blog post
- With the research --> We have chosen the width is around 70~80 characters depends on the user-device width + The main language is LATIN(Vietnamese + English).
- So the width is `34rem` to `38rem`.
Here is some research paper:
- <https://baymard.com/blog/line-length-readability>
2.
## Thirst party API
- <https://developers.google.com/youtube/v3/docs/?apix=true>
## Deployment
### Self-host Docker Deployment
1. checkout source `git clone https://github.com/techmely/techmely.git`
1. got into new source dir: `cd tech`
1. build Docker image: `docker build .`
1. create local storage directory for settings: `mkdir tml-storage`
1. adjust permissions of storage dir: `sudo chown 911:911 ./tml-storage`
1. start container: `docker-compose up -d`
```sh
git clone https://github.com/techmely/techmely.git
cd techmely
bun run docker.build # build Docker image for all app
bun run docker.storage # create local storage directory + adjust permissions of storage dir
bun run docker.up # Start container - Enjoy

</details>
<!-- suggestion_end -->

<!-- This is an auto-generated comment by CodeRabbit -->

Comment on lines +105 to +109
This project mainly write with React Typescript + Flutter + Rust, so you should learn it to contribute easier 🌷

## How to run project
### Setup + Run projects

1. Install deps `bun install`
1. Run web site + api with command `bun run dev`
1. Have fun with that.

## How to get the icons for project?

1. Go to `https://icones.js.org/collection/all` and search what you needs.
2. Copy the symbol of icons
3. If your icon just specific for one page --> Create a list icons for that page in `/public/svg` folder --> Add page name, EX: post.svg
4. If your icon is a common icon, can use anywhere in app --> add to the last item on `public/svg/common.svg`
5. Use `SvgUse` component to expose the icon on view

## The decided of technical to fit with the business

1. The width of detail blog post

- With the research --> We chosen the width is around 70~80 characters depends on the user-device width + The main language is LATIN(Vietnamese + English).
- So the width is `34rem` to `38rem`.

Here is some research paper:

- <https://baymard.com/blog/line-length-readability>

2.

## Thirst party API

- <https://developers.google.com/youtube/v3/docs/?apix=true>

## Deployment

### Self-host Docker Deployment

1. checkout source `git clone https://github.com/techmely/techmely.git`
1. got into new source dir: `cd tech`
1. build Docker image: `docker build .`
1. create local storage directory for settings: `mkdir tml-storage`
1. adjust permissions of storage dir: `sudo chown 911:911 ./tml-storage`
1. start container: `docker-compose up -d`

```sh
git clone https://github.com/techmely/techmely.git
cd techmely
bun run docker.build # build Docker image for all app
bun run docker.storage # create local storage directory + adjust permissions of storage dir
bun run docker.up # Start container - Enjoy
```
Go to document "apps/handbook/3.products/1.techmely.md" or `https://www.teams.techmely.com/products/techmely`
Copy link
Contributor

Choose a reason for hiding this comment

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

Updated technology stack and setup instructions. Consider the following grammatical corrections for clarity:

  • Line 105: Change "write" to "written".
  • Line 109: Add "the" before "document".

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
This project mainly write with React Typescript + Flutter + Rust, so you should learn it to contribute easier 🌷
## How to run project
### Setup + Run projects
1. Install deps `bun install`
1. Run web site + api with command `bun run dev`
1. Have fun with that.
## How to get the icons for project?
1. Go to `https://icones.js.org/collection/all` and search what you needs.
2. Copy the symbol of icons
3. If your icon just specific for one page --> Create a list icons for that page in `/public/svg` folder --> Add page name, EX: post.svg
4. If your icon is a common icon, can use anywhere in app --> add to the last item on `public/svg/common.svg`
5. Use `SvgUse` component to expose the icon on view
## The decided of technical to fit with the business
1. The width of detail blog post
- With the research --> We chosen the width is around 70~80 characters depends on the user-device width + The main language is LATIN(Vietnamese + English).
- So the width is `34rem` to `38rem`.
Here is some research paper:
- <https://baymard.com/blog/line-length-readability>
2.
## Thirst party API
- <https://developers.google.com/youtube/v3/docs/?apix=true>
## Deployment
### Self-host Docker Deployment
1. checkout source `git clone https://github.com/techmely/techmely.git`
1. got into new source dir: `cd tech`
1. build Docker image: `docker build .`
1. create local storage directory for settings: `mkdir tml-storage`
1. adjust permissions of storage dir: `sudo chown 911:911 ./tml-storage`
1. start container: `docker-compose up -d`
```sh
git clone https://github.com/techmely/techmely.git
cd techmely
bun run docker.build # build Docker image for all app
bun run docker.storage # create local storage directory + adjust permissions of storage dir
bun run docker.up # Start container - Enjoy
```
Go to document "apps/handbook/3.products/1.techmely.md" or `https://www.teams.techmely.com/products/techmely`
This project is mainly written with React Typescript + Flutter + Rust, so you should learn it to contribute easier 🌷
### Setup + Run projects
Go to the document "apps/handbook/3.products/1.techmely.md" or `https://www.teams.techmely.com/products/techmely`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant