Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

search contexts: table view in management page#45001

Merged
limitedmage merged 14 commits into
jp/contextsstarreddefaultfrom
jp/searchcontextstable
Dec 5, 2022
Merged

search contexts: table view in management page#45001
limitedmage merged 14 commits into
jp/contextsstarreddefaultfrom
jp/searchcontextstable

Conversation

@limitedmage

@limitedmage limitedmage commented Dec 1, 2022

Copy link
Copy Markdown
Contributor

Part of #44903

Stacked on #44966

Implement the new table view in the contexts management page.
Menu only has the option to edit; starred and default are not implemented yet. This is still using the "show more" pagination; paged-based pagination will be implemented in a future PR.
Mobile view is also not implemented yet. I will try to send a stacked PR on this to add the mobile view before merging this.

image

image

image

Test plan

Verify with visual tests

@sg-e2e-regression-test-bob

sg-e2e-regression-test-bob commented Dec 1, 2022

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
-0.02% (-0.65 kb) 0.02% (+2.87 kb) 0.03% (+3.52 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits ba98770 and 1b52d29 or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@limitedmage limitedmage requested review from a team, novoselrok and quinnkeast December 1, 2022 22:48
@limitedmage limitedmage marked this pull request as ready for review December 1, 2022 22:53
@sourcegraph-bot

sourcegraph-bot commented Dec 1, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 0f3cdcc...ba98770.

Notify File(s)
@fkling client/search-ui/src/input/SearchContextMenu.story.tsx
client/search-ui/src/input/SearchContextMenu.test.tsx
client/search/src/backend.ts

Base automatically changed from jp/searchcontextsheader to jp/contextsstarreddefault December 5, 2022 18:24
* search contexts: card view for mobile

* fix build failure

* give up on sr-only mixin
@limitedmage limitedmage merged commit d69cf06 into jp/contextsstarreddefault Dec 5, 2022
@limitedmage limitedmage deleted the jp/searchcontextstable branch December 5, 2022 19:04
limitedmage added a commit that referenced this pull request Dec 5, 2022
* db schema and graphql schema updates

* default contexts backend

* query for stars

* backend for settings stars and defaults

* sg generate

* fixes?

* add foreign keys

* idempotent constraints

* again

* search contexts: remove autodefined contexts from frontend, add to normal query (#44875)

* search contexts: remove autodefined contexts from frontend, add to normal query

* generate

* remove real global context, use union with dummy row instead

* fix some tests

* fix CountSearchContexts

* add test for CountSearchContexts

* search contexts: order contexts list by default first, then starred, then others (#44876)

* search contexts: order contexts list by default first, then starred, then others

* generate mocks

* Add test for new order

* explicit select and remove unused scan var

* simplify getting authenticated user

* fix go lint

* unit test for default contexts

* tests for starred contexts

* change graphql api to take user as param, add tests for this

* update db schema to make contraints prettier

* clean up db keys

* search contexts: update header in list page (#44966)

* search contexts: update header

* add back tab

* fix spacing

* fix action button width

* search contexts: table view in management page (#45001)

* search contexts: update header

* search contexts: table view in management page

* add menu

* fix build failure

* add back tab

* fix spacing

* fix action button width

* address minor issues from figma

* search contexts: card view for mobile (#45040)

* search contexts: card view for mobile

* fix build failure

* give up on sr-only mixin
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants