Skip to content

Conversation

@Mohamed-Khaled308
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Oct 29, 2025

Pull request status dashboard

@Mohamed-Khaled308 Mohamed-Khaled308 changed the title [IMP] awesome_owl: added counter, card and todo_list components [IMP] awesome_owl: added counter, card and todo_list components - MOALN Oct 29, 2025
Copy link

@alan-odoo alan-odoo left a comment

Choose a reason for hiding this comment

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

Hi @Mohamed-Khaled308 👋,

Here is a quick review of your PR. My comments are about details. For the git stuff we can check it together tomorrow.

The title of your PR is good, you should just remove your pentagram at the end of it.

Cheers!

@@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">

Choose a reason for hiding this comment

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

Can you squash the commit "[REM] tutorials: removed .idea files" inside the commit "[IMP] awesome_owl: added counter and todolist components" ? This will remove all .idea files from your commits, making your PR cleaner.



export class Card extends Component {
static template = "awesome_owl.card";

Choose a reason for hiding this comment

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

Suggested change
static template = "awesome_owl.card";
static template = "awesome_owl.Card";

import { Component, useState } from "@odoo/owl";

export class Counter extends Component {
static template = "awesome_owl.counter";

Choose a reason for hiding this comment

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

Same here. You should use PascalCase for the name after the dot.



export class TodoItem extends Component {
static template = "awesome_owl.todo.item";

Choose a reason for hiding this comment

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

Suggested change
static template = "awesome_owl.todo.item";
static template = "awesome_owl.TodoItem";



export class TodoList extends Component {
static template = "awesome_owl.todo.list";

Choose a reason for hiding this comment

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

Suggested change
static template = "awesome_owl.todo.list";
static template = "awesome_owl.TodoList";

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="awesome_owl.todo.list">

Choose a reason for hiding this comment

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

Same here.

import { mountComponent } from "@web/env";
import { Playground } from "./playground";


Choose a reason for hiding this comment

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

That diff is not necessary 😃. We try to do as little change as possible as It can generate a big PR and it can make it complicate to read and understand.

import { Component } from "@odoo/owl";

export class Playground extends Component {
static template = "awesome_owl.playground";

Choose a reason for hiding this comment

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

They should have used PascalCase 😢. No need to change that.

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.

3 participants