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
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.
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?…
다시 한번 반영해 주셔서 감사합니다. 관리자 기본 보기 설정은 UX 측면에서 큰 개선입니다
이 기능이 이제 존재하므로, 작은 후속 기능을 고려해 볼 가치가 있을 것 같습니다. 사이트 기본값을 유지하면서 사용자가 개인 설정으로 선택적으로 덮어쓸 수 있게 하는 것입니다.
이렇게 하면 사이트에는 강력한 기본 정체성(주 단위 vs 월 단위)이 부여되지만, 개인은 자신에게 가장 적합한 방식을 선택할 수 있습니다. 대부분의 캘린더 앱이 작동하는 방식과 유사합니다. 다음과 같은 간단한 우선순위를 두면 동작이 예측 가능하고 하위 호환성을 유지할 수 있습니다.
명시적 URL → 사용자 설정 → 사이트 기본값
현재 설정을 대체하자는 제안은 아닙니다. 다만 더 넓은 UX 방향성에 부합한다고 생각하신다면 다음 단계로 고려해 볼 수 있는 방법입니다.