Commit Graph

67 Commits

Author SHA1 Message Date
f1b55db6d1 feat(infra): standalone Postgres 18 infra compose (shared greenNetwork); remove redundant postgres from app compose; add DataCopy to solution 2026-10-15 15:12:45 +03:30
7a8e371195 feat(datacopy): read environment variables (ConnectionStrings__* on server) 2026-10-15 14:51:42 +03:30
e5207d53b7 fix(postgres): run Postgres type-mapping block at END of OnModelCreating 2026-10-10 01:15:10 +03:30
a69862fe73 fix(datacopy): COUNT(*) is Int32 on SQL Server — use Convert.ToInt64 2026-10-10 01:15:08 +03:30
9b51c866c3 fix(postgres): varchar byte-vs-char mismatch — scale string lengths x4 for Postgres 2026-10-10 01:08:42 +03:30
2a786acfb6 fix(datacopy): use pg_get_serial_sequence(text, text) overload — verified against local PG 18 2026-10-10 01:05:14 +03:30
40516e8f23 fix(datacopy): cast format('%I') result to regclass for pg_get_serial_sequence 2026-10-10 01:01:30 +03:30
f58c14511b fix(datacopy): pg_get_serial_sequence takes 1 arg (regclass), not table+column 2026-10-10 00:58:27 +03:30
5cd80dbf34 fix(datacopy): quote identifiers in pg_get_serial_sequence via format('%I.%I') 2026-10-10 00:56:04 +03:30
923b6b325b fix(postgres): map DateTime to timestamp without time zone (Npgsql rejects Kind=Unspecified on timestamptz) 2026-10-10 00:51:59 +03:30
559a6e589c chore(docker): bump postgres image to 18-alpine (volume not yet initialized) 2026-10-10 00:09:59 +03:30
9f86b215f9 feat(datacopy): add SQL Server -> Postgres data copy tool (batched, resumable, self-checking) 2026-10-09 23:59:40 +03:30
446423d1a6 feat(api): Postgres provider uses EnsureCreated (idempotent schema bootstrap, no migration history) 2026-10-09 23:34:30 +03:30
6bbc831ae0 feat(infra): add PostgreSQL provider switch (soft migration, default SqlServer) + local postgres:17 service 2026-10-09 23:31:26 +03:30
34f820b3ca feat: Add Ai Profiles 2026-09-26 20:26:39 +03:30
4e8b14906f ♻️ refactor(admin): restructure admin layout
- move sidebar below full-width sticky header
- wrap sidebar and content in flex row for desktop
- keep header visible above content at all breakpoints
2026-09-25 19:15:29 +03:30
b557590303 ✨ feat(admin): improve search and owner selection
- debounce admin searches to reduce API calls while typing
- apply 300ms debounce to alerts, audit, devices, posts
- allow clearing selected owner in device creation form

🐛 fix(admin): correct admin data and filters

- use invariant culture for CSV numeric report values
- align default report end date with UTC day boundary
- prevent duplicate owner row in device member list
- make user growth date filtering EF translatable
- clear report preset when user picks a custom date range
- send zero-valued admin filter parameters in API client
2026-09-25 19:04:57 +03:30
69c0381530 ✨ feat(admin): add admin device, post, and report features
- add admin endpoints to create devices and update device settings
- expose device members and post detail for admin management
- add post filters by device, author, type, and date range
- add user growth, device uptime, and usage reports with CSV export
- improve admin layout with sticky header, user info, and logout
- add device and author search filters across admin pages
2026-09-25 18:39:52 +03:30
6abb5aae15 admin page phaze2 2026-09-25 16:34:36 +03:30
9d4ad26dcc initialize admin panel and necessry pages 2026-09-25 15:01:33 +03:30
598abe604b fix: add member to group bug 2026-09-23 22:13:19 +03:30
f614da943f fix: optimize view of group bottom bar in mobile mode 2026-09-23 20:02:10 +03:30
a48deb95da fix conditions logic 2026-09-11 23:52:11 +03:30
8eb465c0e7 add chat and users 2026-09-10 19:09:36 +03:30
91ad61bdee add relay charts and optimize relay settings 2026-09-10 01:13:42 +03:30
ece4b17edf fix building frontend 2026-09-03 09:23:50 +03:30
2aca48738f fix dockerfile build error 2026-09-03 09:09:36 +03:30
dcdb7f3f12 Added build tools (python3, make, g++) needed to compile native modules like Tailwind CSS oxide 2026-09-03 09:00:31 +03:30
559690e1c5 install frontend dependencies before the dotnet build 2026-09-03 08:54:39 +03:30
355ba46592 fix build 2026-09-03 08:42:09 +03:30
e360fa6890 remove devneeds source 2026-09-03 07:57:38 +03:30
fe68650b4a fix Dockerfile 2026-09-03 07:52:45 +03:30
e7a1f79806 fix: improve auth flow and verification 2026-09-03 07:49:30 +03:30
6297df7dfd feat: add device relay and telemetry support 2026-09-03 07:49:10 +03:30
9eaa5b70d1 feat: add GreenHome web frontend and weather dashboard 2026-09-03 07:48:56 +03:30
434f1dcba3 fix alert conditions check 2026-08-28 17:10:13 +03:30
motahhari
b6862aba02 fix deploy config 2026-06-05 15:00:26 +03:30
04a3381730 feat: add static file serving for APK downloads and new files folder
- Add MIME type mapping for .apk files to allow proper download
- Configure static file serving for new "files" directory at /files endpoint
- Enable serving APK and other downloadable files from dedicated folder
2026-06-05 11:08:15 +03:30
3f7815874a fix PowerOutageSummary and optimize ALertService structure 2026-06-01 19:26:59 +03:30
40fe6e897a chore: update development connection string to localhost 2026-06-01 18:16:54 +03:30
4df537816f refactor: restructure Program.cs and enhance Telemetry response format 2026-06-01 18:16:30 +03:30
97a946ebea feat: add PowerOutageLog entity, service, migration and API endpoints 2026-06-01 18:16:13 +03:30
9fe575ae07 refactor: reorganize Infrastructure layer into folder structure with DI 2026-06-01 18:15:58 +03:30
775ae0d9b4 refactor: reorganize Application layer into folder structure 2026-06-01 18:15:17 +03:30
dca3fc62ca add RelayConditions endpoint and RelayCount to DeviceSettings and bugfix 2026-04-28 09:36:29 +03:30
777b66ddca add device name to power status message 2026-02-19 06:14:02 +03:30
cda8f0fb50 fix sending alert sms 2026-02-18 23:58:30 +03:30
b6ff393d0d add batteryVoltage and percent 2026-01-13 06:59:45 +03:30
3e62c8bf96 add smsRecievers field and send alert messages to user device 2026-01-07 18:18:50 +03:30
9334e3e4c2 add Voltage and Power fields 2026-01-06 18:43:23 +03:30