Skip to content

Conversation

@rachel-yos
Copy link
Member

@rachel-yos rachel-yos commented Feb 25, 2025

The task contains a few components:

  1. The page of all the discussion are related to a specific selected topic.
  2. The discussion component, will apear as number of the existing discussions.
  3. The create a new discussion button will apear twice, and this opens a dialog box to enter the new discussion details.
  4. The dialog box to create the new discussion
    Create Page to Display Discussions on a Specific Subject with New Discussion Option #41
    צילום מסך 2025-03-27 103947

Copy link
Member

@DvoraShechter1 DvoraShechter1 left a comment

Choose a reason for hiding this comment

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

LOTM!
please wait for @RutiRozenberg approve

@RutiRozenberg
Copy link
Member

Link the PR to the appropriate Issue, and attach a screenshot of the final result.

@rachel-yos rachel-yos changed the title Create the discussion board and the option to add a new discussion Create the discussion board and the option to add a new discussion #41 Mar 27, 2025
@rachel-yos rachel-yos changed the title Create the discussion board and the option to add a new discussion #41 Create the discussion board and the option to add a new discussion Mar 27, 2025
Copy link
Member

@RutiRozenberg RutiRozenberg left a comment

Choose a reason for hiding this comment

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

Overall, your code is excellent and works flawlessly. The comments provided are meant to enhance clarity and maintainability. I appreciate the effort you've put in, and with a few adjustments, it will be even better. Great job!

borderRadius: '182.5px',
paddingTop:0.2,
paddingBottom:0.2,
color:'white',
Copy link
Member

Choose a reason for hiding this comment

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

Use the ThemeColor Object.

paddingBottom:0.2,
color:'white',
paddingRight:2.4,
paddingLeft:2.4
Copy link
Member

Choose a reason for hiding this comment

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

It seems that you've defined the padding properties in multiple lines. To improve readability and make the code more concise, combine them into a single line.
For example: padding: '0.2 2.4 0.2 2.4'
This way, it will be cleaner and more professional.

export const Discussion = ({ props }) => {

const theme = useTheme();

Copy link
Member

Choose a reason for hiding this comment

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

Please remove unnecessary line.

fontWeight: 700,
letterSpacing: 1.3,
fontSize: '1.42em',

Copy link
Member

Choose a reason for hiding this comment

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

Please remove unnecessary line.

import { Button, Typography, useTheme } from '@mui/material';
import { useNavigate } from 'react-router';

const typographyStyle = {
Copy link
Member

Choose a reason for hiding this comment

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

Great job using global reusable code! This aligns with the DRY principle and enhances code readability and maintainability. Keep it up!


<ActiveControl props={{ title: 'יצירת דיון חדש' }} onOpen={Open} sx={{
// position: 'absolute', top: '10%'
}}></ActiveControl>
Copy link
Member

Choose a reason for hiding this comment

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

Each property should be written on a separate line for better readability.

</Typography>
<Typography
sx={{
...typhographyStyle, ml: '36.4vw'
Copy link
Member

Choose a reason for hiding this comment

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

Each property should be written on a separate line for better readability.

/>
<Typography
sx={{
...typhographyStyle, ml: '32vw'
Copy link
Member

Choose a reason for hiding this comment

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

Each property should be written on a separate line for better readability.

rows={7}
className="css-16wblaj-MuiInputBase-input-MuiOutlinedInput"
sx={{
...textFieldStyle, mb: 3
Copy link
Member

Choose a reason for hiding this comment

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

Each property should be written on a separate line for better readability.

0 0 200px #49ACEF,
0 0 300px #49ACEF`,
}}
>
Copy link
Member

Choose a reason for hiding this comment

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

Please update the textShadow property to ensure proper indentation and readability

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