@nexttylabs/echo 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @nexttylabs/echo
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fc3d8f1: support light/dark theme
8
+ - cc04d9f: Use the organization member role uniformly.
9
+ - 5cfdeb7: feat: support editing user profile
10
+
11
+ ### Patch Changes
12
+
13
+ - 76fda4d: fix organizational setting i18n
14
+ - 7dba561: remove legacy changeset files
15
+ - 158b254: show current orgnization
16
+ - 1e798f1: remove unuse tables and published files
17
+ - e3c4e1c: fix workflow errors
18
+ - daf9abb: first release
19
+
3
20
  ## 0.10.0
4
21
 
5
22
  ### Minor Changes
@@ -78,7 +78,6 @@ export function Sidebar({ user, organizations = [], currentOrgId, onClose }: Sid
78
78
  const locale = useLocale() as AppLocale;
79
79
  const [isPending, startTransition] = useTransition();
80
80
  const pendingOrgIdRef = useRef<string | null>(null);
81
- const pendingLocaleRef = useRef<AppLocale | null>(null);
82
81
 
83
82
  const navItems = [
84
83
  { href: "/dashboard", label: t("dashboard"), icon: LayoutDashboard },
@@ -118,26 +117,13 @@ export function Sidebar({ user, organizations = [], currentOrgId, onClose }: Sid
118
117
  pendingOrgIdRef.current = orgId;
119
118
  };
120
119
 
121
- // Set locale cookie when pendingLocale changes
122
- useEffect(() => {
123
- const nextLocale = pendingLocaleRef.current;
124
- if (!nextLocale) return;
125
- if (nextLocale === locale) {
126
- startTransition(() => {
127
- pendingLocaleRef.current = null;
128
- });
129
- return;
130
- }
120
+ const handleLocaleChange = (nextLocale: AppLocale) => {
121
+ if (nextLocale === locale) return;
131
122
  const secure = window.location.protocol === "https:" ? ";secure" : "";
132
123
  document.cookie = `${LOCALE_COOKIE_NAME}=${nextLocale};path=/;max-age=${60 * 60 * 24 * 365};samesite=lax${secure}`;
133
124
  startTransition(() => {
134
125
  router.refresh();
135
- pendingLocaleRef.current = null;
136
126
  });
137
- }, [locale, router]);
138
-
139
- const handleLocaleChange = (nextLocale: AppLocale) => {
140
- pendingLocaleRef.current = nextLocale;
141
127
  };
142
128
 
143
129
  const currentOrg = organizations.find((org) => org.id === currentOrgId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexttylabs/echo",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "license": "AGPL-3.0",
5
5
  "private": false,
6
6
  "publishConfig": {