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

[7762] re-design phase info component #5358

Closed
wants to merge 89 commits into from
Closed

Conversation

hom3mad3
Copy link
Contributor

@hom3mad3 hom3mad3 commented Dec 6, 2023

Redesign of Phase Info Panel Component

Test Page

projekte/module/module-title (e.g., Participatory Budgeting Phase 3)

Changes

  • Implemented redesign for the Phase Info Panel component. Uses Servicepanel and Modul Bühne
  • Enhanced for both desktop and mobile views with Swiper integration.

Observations

  • currently importing Swiper from CDN as provisory solution (webpack chunk errors), as don't want to further delay review of component. Not sure it should be solved in a different PR?

Previews

  • Desktop: PhaseInfo-Desktop
  • Mobile:

Tasks

  • PR name contains story or task reference
  • Documentation (docs and inline)
  • Tests (including n+1 and django_assert_num_queries where applicable)
  • Changelog

philli-m and others added 30 commits November 29, 2023 14:18
…older on make install to ensure site can be loaded on make watch
…e the cass loaded in base templates is not overwritten
@hom3mad3 hom3mad3 force-pushed the mr-2023-11-phase-info-update branch 2 times, most recently from 05873e3 to b962d17 Compare December 18, 2023 14:59
@hom3mad3 hom3mad3 force-pushed the mr-2023-11-phase-info-update branch from b962d17 to a5c1132 Compare December 18, 2023 15:00
@hom3mad3 hom3mad3 requested review from philli-m and removed request for philli-m December 18, 2023 15:04
@hom3mad3 hom3mad3 changed the title [7762] re-design phase title and description to participation panel WIP [7762] re-design phase title and description to participation panel Dec 18, 2023
@hom3mad3 hom3mad3 force-pushed the mr-2023-11-phase-info-update branch 3 times, most recently from 375b013 to 03c15d2 Compare December 18, 2023 19:04
@hom3mad3 hom3mad3 changed the title WIP [7762] re-design phase title and description to participation panel [7762] re-design phase title and description to participation panel Dec 18, 2023
@hom3mad3 hom3mad3 requested review from philli-m and goapunk December 18, 2023 19:20
@hom3mad3 hom3mad3 force-pushed the mr-2023-11-phase-info-update branch from d71efa5 to 09584aa Compare December 19, 2023 11:01
@hom3mad3 hom3mad3 requested a review from m4ra December 20, 2023 08:38
@philli-m philli-m self-assigned this Dec 20, 2023
Copy link
Contributor

@philli-m philli-m left a comment

Choose a reason for hiding this comment

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

sorry not huge help with the js issue but the non swiper stuff is great, jsut need to add it to the other template, maybe the sample PR gives you another idea on how to deal with swiper?!


<section id="layout-grid__area--maincontent">
<div class="modul-servicepanel fullwidth panel--heavy phase-info">
<div class="servicepanel__main">
Copy link
Contributor

Choose a reason for hiding this comment

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

module_detail_phase.html is also included in project_detail.html so the modul-* class names should also be added there, also the buttons need wrapping (see other comment)

@@ -9,9 +9,9 @@
{% block project_action %}
{% has_or_would_have_perm 'meinberlin_ideas.add_idea' request.user module as propose_allowed %}
{% if propose_allowed %}
<a href="{% url 'meinberlin_ideas:idea-create' module_slug=module.slug %}" class="btn btn--primary btn--full u-spacer-bottom btn--huge">
<a href="{% url 'meinberlin_ideas:idea-create' module_slug=module.slug %}" class="button">
Copy link
Contributor

Choose a reason for hiding this comment

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

see comment on mapidea_list, will also need to be added to
budgeting/proposal_list
kiezkasse/proposal_list
also maptopic_list but I just checked that template and it doesn't have the {% action %} block which is where the button should be?! you can copy it over from another template or just leave it for now, I think i may have fucked up there when doing teh react list and clean up

</div>
<!-- End Swiper Template -->

{% block extra_js %}
<script src="{% static 'swiper_phases.js' %}"></script>
<!-- Swiper JS -->
Copy link
Contributor

Choose a reason for hiding this comment

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

We do need to figure this out, I tried removing our version of swiper in package.json and commenting out both these script tags and the swiper is initialized but only if we add their js via the URL they provide, I have added an example here, maybe you and Julian can look into why that works and why webpack fucks it?! or maybe we start using their js script tag as that is what we are meant to do anyway, perhaps we can cache it so we always have a copy?! not sure link here #5377

@hom3mad3 hom3mad3 changed the title [7762] re-design phase title and description to participation panel [7762] re-design phase info component Dec 21, 2023
@hom3mad3 hom3mad3 mentioned this pull request Dec 21, 2023
2 tasks
@philli-m philli-m removed their assignment Dec 28, 2023
@hom3mad3 hom3mad3 closed this Jan 3, 2024
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.

5 participants