Commit Graph

71 Commits

Author SHA1 Message Date
Anbarasu
7e750a92be feat: groupby bulk apis (#9040)
* feat: bulk groupby api

* feat: bulk dataList api

* feat: bulk dataList api

* feat: bulk data load

* feat: bulk data load

* fix: load Data

* feat: custom pagination limit

* feat: public bulkapis(wip)

* fix: bug fixes

* fix: ui bug fixes

* fix: issues with strings

* fix: case when alias is empty string

* fix: cleanup

* fix: datetime

* fix: mysql group apis failing

* fix: sqlite3 groupby fixes

* fix: grouoby tests

* fix: grouoby tests

* fix: invalid page size fix: issue with bulkAggregation fix: aggregation duplicate query

* fix: duplicate api call

* fix: duplicate aggregation api call

* fix: large data-api calls on reload

* fix: tests

* fix: update bulkapis to use post

* fix: page size not updating
2024-07-25 15:45:14 +05:30
Mert E.
1605e09d06 feat: allow preview for media types (#9052)
* feat: allow preview for media types

* feat: attachment download endpoint

* fix: render attachment modal only on expand

* feat: attachment download front-end

* fix: add download attachment endpoint to secure controller

* fix: use api instead of direct access

* fix: bulk download attachments

* feat: public attachment download api

* fix: add swagger to support shared base

* fix: apply latest signed url change

Signed-off-by: mertmit <mertmit99@gmail.com>

---------

Signed-off-by: mertmit <mertmit99@gmail.com>
2024-07-24 19:36:07 +05:30
Ramesh Mane
7577fddcb3 Nc fix: prevent commentor/viewer from enabling hidden columns (#8971)
* fix(nc-gui): show proper error msg instead of harcoded text

* fix(nc-gui): disable show field switch is user don't have permission

* fix(nc-gui): hide hidden field for commenter/viewer role

* fix(nc-gui): hide groupby option in local mode

* fix(nc-gui): groupby issue in shared view if grouping field is hidden

* fix(nc-gui): show pagination even if total no pages is 1

* fix(nc-gui): show hidden grouping field in shared view

* chore(nc-gui): type mistake

* fix(nc-gui): show/hide all columns in local mode issue

* fix(nc-gui): pw test fail issue

* fix(nc-gui): hide/show field local mode save issue
2024-07-11 17:06:10 +05:30
Anbarasu
bd00e8e243 feat: groupby aggregation (#8838)
* feat: groupby aggregation

* fix: reload data

* fix(nc-gui): fix: better aggregate update condition

* fix(nc-gui): limit api aggregation calls

* fix(nocodb): aggregation api refactor feat(nocodb): bulk aggregate apis

* feat(nocodb): update swagger.json fix(nocodb): parse aggregation json feat(nocodb): public endpoint

* fix: get first res

* fix: swagger bugs

* fix: integrate bulk aggregation

* fix(nc-gui): bulk agg not triggering in shared view

* fix(nc-gui): avoid agg load inside table in groupby

* fix(nc-gui): issue when key is decimal

* fix(nc-gui): trigger aggregate before ui update

* fix(nc-gui): update triggering bulk api calls

* fix(nc-gui): custom label in pagination

* test: unit tests

* chore: move to ee

* fix: gui separation

* fix: pagination gui

* fix: summary flicker

* fix: pr review

* fix: groupby pagination

* fix: aggregation alias handling

* fix:  agg not updating

* fix: expanded-form broken

* fix: unit tests

* fix: playwright tests

* fix: playwright tests

* fix: user select, groupby tests

* fix: groupby inner pagination alignment

* fix: stddev sqlite value

* fix: review changes

* fix: ui flicker
2024-07-01 17:02:41 +05:30
Anbarasu
b7acf202e8 feat: Field aggregation (#8786)
* feat: basic ui for aggregation

* feat: update aggregation in ui

* feat: aggregation api implementation

* feat: attachment aggregation.ts

* fix: some changes

* fix: rebase

* feat: aggregation for links, rollup, ltar, formula, lookup

* fix: type errors

* fix: move from data-alias controller, service to data-table service, controller

* chore: inline docs for aggregations

* fix: handle edge cases

* fix: ui bugs

* feat: working ui aggregation

* fix: minor issue

* fix: rollup and links fix count

* fix: handle ID Column

* fix: minor fixes

* fix: update aggregation on data change

* fix: round to 2 decimal places

* fix: stddev computation error replace with stddev_pop

* fix: use pg age function

* feat: new record layout

* fix: shared view aggregations

* feat: aggregations based on formula result

* fix: temp pagination

* feat: ncpagination v2

* feat: ncpagination v2

* fix: playwright tests

* fix: pending changes

* fix: failing tests

* feat: mysql2 aggregations

* fix: build

* fix: record count

* fix: cleanup

* fix: disable count aggregation

* feat: expiremental sqlite3 aggregation

* fix: mysql2 median

* fix:minor issues

* refactor: rename column to column_query fix: remove default aggregations fix: disable aggregation for specific dbtype and Foreign Key

* fix: remove unwanted else case

* fix: aggregation not loading

* fix: rebase

* fix: rebase

* fix: pagination fixed height

* fix: respect locked mode for aggregations

* fix: pagination component

* fix: pagination component

* fix: replace Math.random
2024-06-24 11:55:54 +05:30
Raju Udava
c747a63971 Nc fix/shared view opt query (#8833)
* fix: use opt-query for shared view

* fix: avoid duplicate api call if page size different from default

---------

Co-authored-by: Pranav C <pranavxc@gmail.com>
2024-06-23 17:51:10 +05:30
Ramesh Mane
575ff920ef Nc fix/shared view UI changes (#8615)
* fix(nc-gui): update shared grid view

* fix(nc-gui): shared gallery view padding issue

* fix(nc-gui): Shared kanban view padding issue

* fix(nc-gui): reduce calender shared view padding

* fix(nc-gui): reduce shared form view padding

* fix(nc-gui): update shared view password modal

* fix(nc-gui): shared view password input error handling

* fix(nc-gui): reduce expanded form modal width if comment section is not present

* fix(nc-gui): small changes

* fix(nc-gui): add export download view in topbar of shared view

* fix(nc-gui): small changes

* fix(nc-gui): add blur bg image for shared view password modal

* fix(nc-gui): download shared view dropdown ui changes

* fix(nc-gui): expanded form scroll issue

* fix(nc-gui): click anywhere in card should open expanded form

* fix(nc-gui): hide action icon on gallery/kanban card hover

* fix(nc-gui): expanded form cell hover effect

* fix(nc-gui): add sign up for free btn in shared view

* test: update shared view test cases

* test: update calendar test cases

* fix(nc-gui): remove readonly prefix from attachment modal

* fix(nc-gui): remove focus border effect if field is readonly

* fix(nc-gui): shared view groupby pagination size should be 10

* fix(nc-gui): remove field modal input shadow if field is disabled

* fix(nc-gui): add shadow on expanded form fields

* fix(nc-gui): calendar shared view background color update

* fix(nc-gui): shared view download btn text color

* fix(nc-gui): update url, link, email grid text color if cell is active and remove hover effect

* fix(nc-gui): pr review changes
2024-06-04 10:04:31 +05:30
Raju Udava
2e46dcb476 fix: include the range fields as columns in sharedView Meta (#8599)
* fix: include the range fields as columns in sharedView Meta

* fix: coderabbit comments

---------

Co-authored-by: DarkPhoenix2704 <anbarasun123@gmail.com>
2024-05-30 11:26:26 +05:30
Pranav C
5e1dd6231d fix: shared form pagination related issues (#8451) 2024-05-10 16:37:09 +05:30
Mert E
89f0895de3 fix: experimental frontend optimizations (#8427)
* fix: get rid of barrel files

* chore: get rid of explicit imports

* fix: use explicit import for classes and enums

* fix: use explicit import for enum & class & aliases

* fix: build issues
2024-05-08 15:55:09 +05:30
DarkPhoenix2704
f0a2f4a660 fix(nc-gui): pagination 2024-02-29 10:15:28 +00:00
DarkPhoenix2704
79a5de198e fix(nc-gui): wire new apis 2024-02-29 10:15:27 +00:00
DarkPhoenix2704
d7d179a7e7 fix(cal): some more fixes 2024-02-20 07:16:19 +00:00
DarkPhoenix2704
f50a2b8b7e fix(nc-gui): failing test 2024-02-20 07:16:18 +00:00
DarkPhoenix2704
8c10d795ff fix(nocodb): ignore pagination with headers 2024-02-20 07:16:18 +00:00
DarkPhoenix2704
8cc4f7e5e3 fix(nocodb): update api 2024-02-20 07:16:17 +00:00
DarkPhoenix2704
93274edaf3 feat(nc-gui): shared view + bases fixes 2024-02-20 07:16:07 +00:00
mertmit
c88c23b1ad fix: shared view for user field 2023-12-21 13:21:07 +03:00
Pranav C
e790abdbaf refactor: rename project and base
- Rename `Project`  => `Base`
- Rename `Base` => `Source`
- Remove `db` from data/meta api endpoints
- Add backward compatibility for old apis
- Migrations for renaming table and columns

Signed-off-by: Pranav C <pranavxc@gmail.com>
2023-10-02 23:52:18 +05:30
mertmit
8ab47b1109 fix: various stuff
Signed-off-by: mertmit <mertmit99@gmail.com>
2023-09-06 09:51:17 +03:00
Pranav C
33ee9bfa62 feat: Improved UI (#6222)
* feat: Improved ui (#6156)

* refactor: revert

Signed-off-by: Pranav C <pranavxc@gmail.com>

feat: shared base

Signed-off-by: Pranav C <pranavxc@gmail.com>

fix: remove duplicate import statement

Signed-off-by: Pranav C <pranavxc@gmail.com>

fix: disable starred & license menu

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: fix airtable wait issue

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: enable mysql in ci

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: fix checkbox order for sqlite

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: disable quick tests

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: fix dbType env variable for CI

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: workspace API access error fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: enable SQLite CI CD

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: use DB_TYPE env variable

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: enable SQLite UT

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: isHub cleanup

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: add check for EE Timezone spec

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

chore: cleanup

Signed-off-by: Pranav C <pranavxc@gmail.com>

chore: cleanup

Signed-off-by: Pranav C <pranavxc@gmail.com>

test: EE check fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

chore: test correction

Signed-off-by: Pranav C <pranavxc@gmail.com>

chore: sync latest changes

Signed-off-by: Pranav C <pranavxc@gmail.com>

test: set EE=false

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: set NC Edition to community in workflow file

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

chore: update sdk build command

Signed-off-by: Pranav C <pranavxc@gmail.com>

refactor: i18n and other changes

Signed-off-by: Pranav C <pranavxc@gmail.com>

feat: new ui

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: sync tests

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: lint

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: shared view/base related bugs

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: checkbox verification sort order fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: fix sqlite reset

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: enable selfhosted runners

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: table ops (draft)

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* Docs: screenshots for table-operations.md

* refactor: introduce missing buttons

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: get all fields

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: UT fix- new data API response

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: EE is false

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: webhook lookup as string in CE

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* fix: include created_at and updated_at

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: fix UT newDataAPI response for PG

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* fix: separate api for webhook related plugins

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: msyql filter corrections

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: mysql group by test corrections

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: fix datatype for rating field in groupby spec for pg

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: kanban datatype correction

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: column edit for mysql- rating field

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: misc fixes

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: enable 4 workers

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: enable 2 workers per shard only

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: table CRUD

* Rename table-operations.md to table-crud.md

* Create column-crud.md

* docs: row CRUD

* Rename row.md to row-crud.md

* docs: project crud

* docs: toolbar (skeleton)

* refactor: single page UI and bug fixes

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: sync tests playwright

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: add missing dependency

Signed-off-by: Pranav C <pranavxc@gmail.com>

* feat: single page ui, test corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: tests

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: project rename test correction

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: remove only

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: remove wrong import statement

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: delete option not visible in project context menu

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: move ws access within isEE()

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: fix groupby

* test: groupby fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: signup & landing page

* docs: project crud

* docs: project-crud misc

* docs: toolbar fields

* docs: toolbar / filters

* docs: toolbar / group by

* docs: toolbar / sort

* docs: toolbar / row height

* docs: filters additional options

* docs: file re-order

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: add links to column types

* docs: code snippets

* docs: links

* docs: lookup

* docs: rollup

* docs: formula

* docs: primary key

* docs: display value

* docs: development setup

* docs: swagger

* fix(nc-gui): encodeURIComponent for row id

- closes: #6202

* docs: language

* docs: expanded record

* docs: import airtable

* docs: airtable

* docs: webhook

* docs: revert file rename

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: account settings

* docs: audit

* docs: meta management

* docs: project settings

* docs: shared base

* docs: shared view

* docs: meta sync

* docs: team-auth

* docs: views

* docs: fix URL

* docs: URL corrections

* fix:  shared base, view related bugs

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: EE check for WSaccess

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: exclude EE tests

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* fix: missing project delete

closes #6215

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: merge existing project meta  if found

closes #6216

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: merge existing project meta  if found

closes #6216

Signed-off-by: Pranav C <pranavxc@gmail.com>

---------

Signed-off-by: Pranav C <pranavxc@gmail.com>
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Co-authored-by: DarkPhoenix2704 <anbarasun123@gmail.com>
Co-authored-by: Wing-Kam Wong <wingkwong.code@gmail.com>

* refactor: docs and other bug fixes

Signed-off-by: Pranav C <pranavxc@gmail.com>

* feat: populate default project on super admin signup

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: include created project details in signup response if avail, missing Dockerfile

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: use custom function for resolving ts path aliases

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: add missing generate script

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: webpack build correction - ts path resolve

Signed-off-by: Pranav C <pranavxc@gmail.com>

---------

Signed-off-by: Pranav C <pranavxc@gmail.com>
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Co-authored-by: mertmit <mertmit99@gmail.com>
Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Co-authored-by: DarkPhoenix2704 <anbarasun123@gmail.com>
Co-authored-by: Wing-Kam Wong <wingkwong.code@gmail.com>
2023-08-24 02:58:19 +05:30
Wing-Kam Wong
e69aadee66 chore(nc-gui): add missing imports 2023-03-16 12:05:28 +08:00
Wing-Kam Wong
62288268a7 Merge branch 'develop' into fix/project-errors 2023-03-16 12:01:54 +08:00
Wing-Kam Wong
0f321b984d chore(nc-gui): lint 2023-03-16 12:00:45 +08:00
Wing-Kam Wong
6dbcc0acc8 refactor(nc-gui): switch to parseProp 2023-03-15 20:31:11 +08:00
Daniel Spaude
2c40e2ad58 code cleanup 2023-03-14 19:29:01 +01:00
Daniel Spaude
727647830d Merge branch 'develop' into geodata-follow-up-fixes 2023-03-14 18:38:11 +01:00
Wing-Kam Wong
06df79b3af Merge branch 'develop' into refactor/backend 2023-03-14 15:29:02 +08:00
Wing-Kam Wong
1ac5e8dd20 fix(nc-gui): incorrect load more kanban data logic 2023-03-14 11:53:09 +08:00
Daniel Spaude
bf3872e362 fix shared map view issue - fetch up to 1000 map markers also on shared map views 2023-03-13 16:25:27 +01:00
Daniel Spaude
b732fcc227 fix shared map view issue - WIP - fix type issue 2023-03-13 14:36:34 +01:00
Wing-Kam Wong
1bf1610bf1 refactor(nc-gui): return empty list response 2023-03-10 16:53:22 +08:00
Wing-Kam Wong
cb561ab2c8 refactor(nocodb): return dataList response directly 2023-03-10 16:15:05 +08:00
Pranav C
d62b3d9419 refactor: include storeToRefs in imports alias
Signed-off-by: Pranav C <pranavxc@gmail.com>
2023-03-10 12:04:34 +05:30
Wing-Kam Wong
616f46db31 refactor(nc-gui): sharedView type 2023-03-10 12:27:48 +08:00
Pranav C
dbce6f0952 chore: lint
Signed-off-by: Pranav C <pranavxc@gmail.com>
2023-03-10 00:30:19 +05:30
Pranav C
500979d135 refactor: migrate simple composable usage syntax to pinia store usage syntax
Signed-off-by: Pranav C <pranavxc@gmail.com>
2023-03-10 00:29:20 +05:30
Pranav C
90bfa2dec2 feat(gui): improve row navigation option in expanded form
- Add tooltip
- Show warning if out of bound
- Hide option from nested
- Implement it in Gallery view

Signed-off-by: Pranav C <pranavxc@gmail.com>
2023-01-19 12:05:04 +05:30
Wing-Kam Wong
5e5be6adc7 fix(nc-gui): revise filterArrJson and sortArrJson in fetchSharedViewGroupedData 2023-01-18 17:17:54 +08:00
Wing-Kam Wong
8b84a76bcb fix(nc-gui): include offset in fetchSharedViewData 2023-01-16 17:22:00 +08:00
Wing-Kam Wong
b9935d14cb fix(nc-gui): exclude kanban fk_grp_col_id from meta.value.columns 2023-01-16 14:48:31 +08:00
Wing-Kam Wong
10633df624 fix(nc-gui): include kanban grouping field 2023-01-16 12:24:05 +08:00
Pranav C
77fea98c1a Merge pull request #4696 from nocodb/fix/misc
Miscellaneous bug fixes and enhancements
2022-12-27 17:32:21 +05:30
flisowna
9fa675ace7 Merge branch 'develop' into barcode 2022-12-26 20:43:41 +01:00
Pranav C
4986a5892f fix(gui): replace api call which requires auth token in public page
re #4694

Signed-off-by: Pranav C <pranavxc@gmail.com>
2022-12-26 18:00:37 +05:30
Pranav C
a757da6838 fix(gui):shared view creation bug and show icon in shared view
Signed-off-by: Pranav C <pranavxc@gmail.com>
2022-12-23 14:49:15 +05:30
flisowna
2391bed7aa Merge branch 'develop' into barcode 2022-12-06 19:37:25 +03:00
mertmit
879dcee082 fix: shared view sqlUis
Signed-off-by: mertmit <mertmit99@gmail.com>
2022-12-03 11:21:59 +03:00
Wing-Kam Wong
b1b362366e fix(nc-gui): type issues 2022-12-02 14:55:02 +08:00
flisowna
e7a15b77ec Barcode column type - WIP (mainly FE related code) 2022-12-01 20:14:58 +03:00