기본 달력 보기(월/주/년)를 변경할 수 있는 관리자 설정 추가

안녕하세요 :waving_hand:

Upcoming Events 페이지에 크게 의존하는 사이트의 경우, 많은 커뮤니티 멤버들이 기본적으로 주간 뷰를 선호합니다. 현재 /upcoming-events는 사용자가 주간(또는 일간, 연간) 뷰를 선호하더라도 항상 월간 뷰가 먼저 로드됩니다.


기능 요청 사항

/upcoming-events가 기본적으로 로드할 뷰를 설정할 수 있는 간단한 관리자 사이트 설정을 추가해 주세요:

upcoming events default view:
  - /upcoming-events/month   (현재 기본값)
  - /upcoming-events/week
  - /upcoming-events/year

왜 중요한가

  • 주간 뷰는 수업 시간표, 근무 스케줄, 이벤트가 많은 커뮤니티에 더 실용적입니다.
  • 사용자가 페이지를 방문할 때마다 반복적으로 뷰를 전환해야 하는 문제를 줄여줍니다.
  • 기본적으로 주간 뷰를 사용하는 모바일 캘린더 앱과의 UX 일관성을 향상시킵니다.

현재 우회 방법

관리자는 Theme Component를 사용하여 /upcoming-events/week(upcoming-events/week/2025/10/27 이전)로 강제 리다이렉트할 수 있지만, 이는:

  • 해킹적인 방법입니다.
  • 전역적으로 적용되어 범위 지정이 어렵습니다.
  • 진정한 관리자 UX 제어를 제공하지 않습니다.

감사합니다! 이는 이벤트 중심의 커뮤니티에게 작은 변경이지만 사용성 측면에서 큰 향상이 될 것입니다 :raising_hands:

2개의 좋아요

this is to hard code the default to Week, rather than Month. It’s simple, but not yet a site-setting - it lays the foundation for the more acceptable improvement

https://github.com/discourse/discourse/pull/35861

Why not just an app.yml var?

Ember code doesn’t read arbitrary env vars. Discourse only exposes declared site settings (config/settings.yml, client: true) to the client. That’s why you either:

  • add the setting in core (then set via app.yml), or
  • avoid settings and use a theme component redirect.

How about rather resolving generic urls, so you could use a custom link on the sidebar?

Right now these wouldn’t work:

/upcoming-events/day 
/upcoming-events/week 
/upcoming-events/month
/upcoming-events/year
1개의 좋아요

i’m “used to” upcoming events button that can’t be configured on the sidebar.

Furthermore, an admin setting could set the default of a user preference. Rather than all users being forced to set-up their own sidebar button/section, or accept a global section.

I hope i have changed the correct code in my PR, that we simply need to toggle what i changed based on a setting?…

@yuriy can you add a site setting for this please? Should be easy.

4개의 좋아요

@Ethsim2, you actually did :smiley:

The new setting Calendar upcoming events default view is available now. The changes were implemented in:

https://github.com/discourse/discourse/pull/36014

5개의 좋아요

다시 한번 반영해 주셔서 감사합니다. 관리자 기본 보기 설정은 UX 측면에서 큰 개선입니다 :+1:

이 기능이 이제 존재하므로, 작은 후속 기능을 고려해 볼 가치가 있을 것 같습니다. 사이트 기본값을 유지하면서 사용자가 개인 설정으로 선택적으로 덮어쓸 수 있게 하는 것입니다.

이렇게 하면 사이트에는 강력한 기본 정체성(주 단위 vs 월 단위)이 부여되지만, 개인은 자신에게 가장 적합한 방식을 선택할 수 있습니다. 대부분의 캘린더 앱이 작동하는 방식과 유사합니다. 다음과 같은 간단한 우선순위를 두면 동작이 예측 가능하고 하위 호환성을 유지할 수 있습니다.

명시적 URL → 사용자 설정 → 사이트 기본값

현재 설정을 대체하자는 제안은 아닙니다. 다만 더 넓은 UX 방향성에 부합한다고 생각하신다면 다음 단계로 고려해 볼 수 있는 방법입니다.

1개의 좋아요

원래 요청이 완료되었으므로 이 주제를 닫겠습니다.

@Ethsim2 후속 요청에 대해 계속 살펴보고 싶으시다면, 해당 내용을 새로운 Contribute > Feature 주제로 이동해 드릴 수 있습니다 — 말씀해 주세요!

1개의 좋아요

이 주제는 2일 후 자동으로 닫혔습니다. 더 이상 새 답변을 남길 수 없습니다.