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

[FIX] web: show event date/duration on popover #160907

Conversation

kawkb
Copy link
Contributor

@kawkb kawkb commented Apr 8, 2024

Issue:

  • when you open a calendar event popover, you can't see its time and duration

Steps To Reproduce:

  • In mobile view, go to calendar and create an event.
  • Click on the event and notice you can't see it's time and duration.

Solution:

  • We want to display the time in the popover for all modes. Therefore, I removed the scale === "month" condition from showTime. The showTime variable is used to set the isTimeHidden attribute, which is then checked in the computeDateTimeAndDuration function of the calendar popover.

opw-3829004


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo
Copy link
Contributor

robodoo commented Apr 8, 2024

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Apr 8, 2024
Copy link
Contributor

@nle-odoo nle-odoo left a comment

Choose a reason for hiding this comment

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

there is the same issue on desktop, but maybe it's less of an issue since you can kind of see it in the view below:

2024-04-10-132121_535x376_scrot

when in mobile, the time is also in the view but the popup recover everything.

In my opinion (but this may have other repercussion), we should probably show it in all case if it's what we want, so remove the line:

https://github.com/odoo/odoo/blob/saas-16.3/addons/web/static/src/views/calendar/calendar_model.js#L518

Or if we only want it in modal, I think you could do your change in that line instead.

Because it seems to me that if we show the time it would make sense to have "isTimeHidden" set to false, this boolean seems to be intended for that as far as I can tell.

edit: side note, in the ticket it is said that we don't see the hours in the calendar view (which validates well to show them on mobile), but when I test I see them so I'm not sure what's different:

2024-04-10-134059_330x671_scrot

@kawkb
Copy link
Contributor Author

kawkb commented Apr 10, 2024

Hello @nle-odoo,

Thank you for your review.

For the desktop version, the event hours and duration have been intentionally removed, as they can be directly viewed on the calendar event itself.

Regarding the mobile version, the event hours and duration are not visible in version 17.0. However, I have decided to implement the fix in version 16.3, since their visibility on the event is quite limited and they appear very small. Therefore, it is preferable to view them on the popup.

@kawkb kawkb marked this pull request as ready for review April 14, 2024 22:37
@C3POdoo C3POdoo requested review from a team, Iucapad and BastienFafchamps and removed request for a team April 14, 2024 22:39
@kawkb kawkb marked this pull request as draft April 15, 2024 09:28
@kawkb kawkb marked this pull request as ready for review April 17, 2024 07:30
@C3POdoo C3POdoo requested a review from a team April 17, 2024 07:32
@kawkb kawkb force-pushed the saas-16.3-OPW-3829004-web_add_event_date_duration_on_mobile-kdeb branch from ccec527 to e1761e7 Compare April 26, 2024 01:50
@kawkb kawkb force-pushed the saas-16.3-OPW-3829004-web_add_event_date_duration_on_mobile-kdeb branch 2 times, most recently from 1f4c134 to 3e75fcf Compare May 6, 2024 14:11
@C3POdoo C3POdoo requested a review from a team May 6, 2024 14:11
@kawkb kawkb force-pushed the saas-16.3-OPW-3829004-web_add_event_date_duration_on_mobile-kdeb branch from 3e75fcf to f6a95fa Compare May 6, 2024 14:12
@kawkb kawkb changed the title [FIX] web: show event date/duration on mobile [FIX] web: show event date/duration on popover May 6, 2024
@kawkb kawkb force-pushed the saas-16.3-OPW-3829004-web_add_event_date_duration_on_mobile-kdeb branch 4 times, most recently from ebbad69 to 366ff51 Compare May 12, 2024 20:35
Issue:
    - when you open a calendar event popover ,
    you can't see its time and duration

Steps To Reproduce:
    - Go to calendar and create an event.
    - Click on the event and notice you can't
    see it's time and duration in popover.

Solution:
    - We want to display the time in the popover for all
     modes. Therefore, I removed the scale === "month"
     condition from showTime. The showTime variable is used
     to set the isTimeHidden attribute, which is then checked
     in the computeDateTimeAndDuration function of the calendar
     popover.

opw-3829004
@kawkb kawkb force-pushed the saas-16.3-OPW-3829004-web_add_event_date_duration_on_mobile-kdeb branch from 366ff51 to e978583 Compare May 15, 2024 11:26
Copy link
Contributor

@mcm-odoo mcm-odoo left a comment

Choose a reason for hiding this comment

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

robodoo pushed a commit that referenced this pull request May 16, 2024
Issue:
    - when you open a calendar event popover ,
    you can't see its time and duration

Steps To Reproduce:
    - Go to calendar and create an event.
    - Click on the event and notice you can't
    see it's time and duration in popover.

Solution:
    - We want to display the time in the popover for all
     modes. Therefore, I removed the scale === "month"
     condition from showTime. The showTime variable is used
     to set the isTimeHidden attribute, which is then checked
     in the computeDateTimeAndDuration function of the calendar
     popover.

opw-3829004

closes #160907

Signed-off-by: Michaël Mattiello (mcm) <mcm@odoo.com>
@robodoo robodoo closed this May 16, 2024
@fw-bot
Copy link
Contributor

fw-bot commented May 20, 2024

@kawkb @mcm-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

1 similar comment
@fw-bot
Copy link
Contributor

fw-bot commented May 21, 2024

@kawkb @mcm-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented May 22, 2024

@kawkb @mcm-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented May 23, 2024

@kawkb @mcm-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

2 similar comments
@fw-bot
Copy link
Contributor

fw-bot commented May 24, 2024

@kawkb @mcm-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented May 25, 2024

@kawkb @mcm-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants