-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add an ability to mark contributors as hidden gf-346 #400
Merged
liza-veis
merged 36 commits into
main
from
346-feat-add-an-ability-to-mark-contributors-as-hidden
Sep 25, 2024
Merged
Changes from 25 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
f419a30
feat: add new icons gf-346
kolibri753 ead4874
feat: add is_hidden column to contributors table gf-346
kolibri753 fd50a2d
feat: add is_hidden to the table and adjust backend gf-346
kolibri753 e1aa127
feat: exclude hidden contributors from project contributors page gf-346
kolibri753 29b1145
refactor: add isHiddenHeader component gf-346
kolibri753 2007813
refactor: rename visibleContributors into visibleProjectContributors …
kolibri753 e16be20
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 59ea2c7
feat: add checkbox to the edit modal gf-346
kolibri753 e0df714
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 9bc81dd
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 8d35b9a
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 09d059f
feat: filter logs on analytics page based on hidden contributors gf-346
kolibri753 999e8f0
feat: simplify isHidden header by changing to Do Not Track gf-346
kolibri753 cbae90c
feat: remove circle-question icon gf-346
kolibri753 06c1af3
refactor: update findAllByProjectId to handle filtering hidden contri…
kolibri753 85804d2
refactor: update findAll in activity-log service to handle hidden con…
kolibri753 13b4cb6
refactor: wrap return in curly brakets gf-346
kolibri753 2fb866c
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 c7ee254
refactor: group contributor-related fields under contributor gf-346
kolibri753 a3f55f9
refactor: add isHidden to findAll in repository gf-346
kolibri753 2dd50cc
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 495e46b
refactor: remove JSX.Element in cell for consistency gf-346
kolibri753 8738c5c
refactor: simplify isHidden contributors check gf-346
kolibri753 ce1581b
refactor: remove check and use hasHidden instead gf-346
kolibri753 0f6754b
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 8b9c75d
refactor: make hasHidden true by default and update findAllByProjectI…
kolibri753 e43e642
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 170e8c5
Merge branch 'main' into 346-feat-add-an-ability-to-mark-contributors…
kolibri753 f95fb50
refactor: use hiddenAt instead of isHidden gf-346
kolibri753 c27f689
fix: add useFormWatch to be able to see value from checkbox gf-346
kolibri753 f3f1474
fix: use dateTime instead of timestamp gf-346
kolibri753 7152a81
refactor: improve code readability and fix small typos gf-346
kolibri753 851eab1
refactor: update patch types by changing hiddenAt to isHidden gf-346
kolibri753 c851970
feat: add hidden_at column to contributors table in database schema g…
kolibri753 02651c2
refactor: simplify handleSubmit in handleFormSubmit gf-346
kolibri753 70a4679
fix: change isHidden ot hiddenAt in ContributorPatchResponseDto gf-346
kolibri753 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
apps/backend/src/db/migrations/20240918171311_add_is_hidden_to_contributors_table.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { type Knex } from "knex"; | ||
|
||
const TABLE_NAME = "contributors"; | ||
|
||
const ColumnName = { | ||
IS_HIDDEN: "is_hidden", | ||
} as const; | ||
|
||
function up(knex: Knex): Promise<void> { | ||
return knex.schema.alterTable(TABLE_NAME, (table) => { | ||
table.boolean(ColumnName.IS_HIDDEN).defaultTo(false).notNullable(); | ||
}); | ||
} | ||
|
||
function down(knex: Knex): Promise<void> { | ||
return knex.schema.alterTable(TABLE_NAME, (table) => { | ||
table.dropColumn(ColumnName.IS_HIDDEN); | ||
}); | ||
} | ||
|
||
export { down, up }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GvoFor marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's rename this column to hidden_at and record datetime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I'm changing it everywhere, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes