fossasia / eventyay-talk

eventyay speakers and talks component
Apache License 2.0
1.48k stars 47 forks source link

Show "do not record" icon on schedule calendar view #149

Closed lcduong closed 1 month ago

lcduong commented 1 month ago

This PR closes/references issue #141 . It does so by add svg icon in schedule view do-not-record for session

PR related: https://github.com/fossasia/eventyay-talk-schedule/pull/1

image

How has this been tested?

Checklist

Summary by Sourcery

This pull request introduces a new feature that displays a 'do not record' icon on the schedule calendar view for sessions that are marked as do-not-record. This helps users easily identify sessions that should not be recorded.

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request adds a 'do_not_record' icon to the schedule calendar view by introducing a new field in the schedule data model. The 'do_not_record' field is added to the dictionary in the 'build_data' method of the 'schedule.py' file. This change allows the front-end to display an icon for sessions that should not be recorded.

File-Level Changes

Files Changes
src/pretalx/schedule/models/schedule.py Added a new field 'do_not_record' to the schedule data model to indicate sessions that should not be recorded.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.