Skip to content

feat: remove calendar buttons, add month, fix burger menu and update design#158

Open
carolinedplm wants to merge 26 commits intodevfrom
fix/calendar
Open

feat: remove calendar buttons, add month, fix burger menu and update design#158
carolinedplm wants to merge 26 commits intodevfrom
fix/calendar

Conversation

@carolinedplm
Copy link
Copy Markdown
Contributor

No description provided.

@carolinedplm carolinedplm changed the title feat: remove calendar buttons and update design DRAFT: feat: remove calendar buttons and update design May 12, 2025
@carolinedplm carolinedplm marked this pull request as draft May 12, 2025 07:25
@carolinedplm carolinedplm changed the title DRAFT: feat: remove calendar buttons and update design feat: remove calendar buttons and update design Jan 26, 2026
Comment thread src/layouts/Layout.astro
<a class="navbar-item" href="mailto:contact@lyontechhub.org" title="Mail de contact">
<span class="icon is-medium"><i class="fa fa-envelope fa-lg"></i></span>
</a>
<a class="navbar-item" href="https://groups.google.com/forum/#!forum/lyontechhub" title="Liste de discussion">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

lien plus bon

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

enlever X et github

@carolinedplm carolinedplm marked this pull request as ready for review January 26, 2026 15:27
@carolinedplm carolinedplm changed the title feat: remove calendar buttons and update design feat: remove calendar buttons, add month, fix burger menu and update design Jan 26, 2026
Comment thread src/pages/about.astro

<h2>Référencer une communauté</h2>
<p>
Pour inscrire votre communauté, envoyez une <b>pull request sur GitHub</b> pour mettre en ligne les
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

toujours valable ?

@carolinedplm
Copy link
Copy Markdown
Contributor Author

bug sur le calendrier avec la popup décalée

@carolinedplm
Copy link
Copy Markdown
Contributor Author

carolinedplm commented Mar 31, 2026

assurance evenementielle : changer le lien en contactez nous pour en savoir plus

@carolinedplm
Copy link
Copy Markdown
Contributor Author

mettre plus en avant la cotisation : soutenez nous avec le lien par ex sur l'accueil dans "membre"

fpellet added 13 commits April 28, 2026 19:33
…lists

ICS feed URLs and descriptions are interpolated into popup HTML and the
mobile/community event template. A javascript: URL or HTML in the
description was executed as-is. Validate URLs via the URL constructor
(http/https only) and HTML-escape every interpolated value.
The desktop calendar, the mobile list and the community pages each
re-fetched and re-parsed the same ICS file. Cache the parsed event
array in a module-scoped promise so repeated calls (prev/next clicks,
both views on the same page) share one network request.
Rapid prev/next clicks on a slow connection could let an earlier fetch
resolve after a newer one and overwrite the visible list with the wrong
window. Snapshot windowStart per click into a fresh Date and use a
render token so out-of-order resolves are dropped. Also switch the nav
handlers from .onclick assignments to addEventListener.
Observing the whole #calendar subtree fired the position-fix callback
on every Toast UI internal style write (drag highlights, day-cell
hovers, layout reflows). Scope the observer to the floating-layer node
where the popup is actually portalled; poll for it after init so it
binds once the layer is in the DOM.
Events now pass state: '' which makes Toast UI skip the entire detail
row (the lib's render is gated on the state being truthy). The CSS
override that hid only the icon was carried over from when state was
'link' and is no longer needed.
The previous containment filter (start >= min && end <= max) dropped
multi-day events that started inside the window but ended after it,
e.g. a workshop spanning a weekend into the next two-week mobile slice.
Switch to overlap semantics so any event intersecting the window shows
up.
Intl.DateTimeFormat defaults to the visitor's local timezone, so a
viewer in New York saw the popup time shifted by 6h. Force Europe/Paris
on both formatters so the meetup time is always shown in Paris time.
fpellet added 8 commits April 29, 2026 09:24
popupDetailDate only formatted the start day so a 2-day workshop or an
event ending past midnight appeared with just the start date and a
time range that didn't make sense. When start and end fall on
different days, render both as 'StartDate, HH:MM → EndDate, HH:MM'.
…uation

slice(0, max) counts UTF-16 code units, so cutting on a 4-byte emoji
boundary left a lone surrogate before the ellipsis. Spread the string
into code points instead. Also strip trailing dots/spaces/ellipses
before appending the ellipsis so a description ending in '...' no
longer becomes '......'.
Aligns with the mobile nav handlers (already addEventListener-based)
and avoids accidentally clobbering any future handler attached to the
same element.
The matched ICS prefix kept whatever casing the source used (e.g.
[afup] vs [AFUP]), which is inconsistent across events of the same
community. Once we've matched a pattern, prepend the canonical pattern
from communities.json instead of the captured one.
target="_blank" links to meetup.com etc. were leaking the referrer
header. Add rel="noopener noreferrer" on the popup link and on the
event-list anchor.
The chevron-only Previous/Next buttons had no accessible name; screen
readers announced them as bare 'button'. Add aria-label on all four,
mark the decorative FA icons aria-hidden, and translate the desktop
'Today' to 'Aujourd'hui' for lang=fr consistency. Wrap the date and
range labels with aria-live=polite so updates are announced.
The brand red #eb0f0f on white was 4.07:1, just under AA's 4.5:1
threshold for normal text. Darken to #c00d0d (5.4:1) only on the popup
link; the brand red stays as-is for non-text accents.
20px from .calendar-header was crowding the 4 buttons + range label on
narrow viewports. Drop to 16px inside the mobile media query.
@fpellet
Copy link
Copy Markdown
Member

fpellet commented Apr 29, 2026

  • Position de la popup des events corrigée (hack)
  • Vue liste sur mobile
  • Corrigé le lien des events
  • Truncate la description des events pour que cela ne prenne pas toute la hauteur
  • Corrections mineures diverses

Dans une autre MR, il faudrait revoir le build JS/CSS pour ne plus avoir les dépendances en dur, notamment. J'ai espoir que la mise à jour corrige des bugs.

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.

2 participants