Skip to content
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

Release 2.13.0 #90

Merged
merged 34 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
61890fd
fix(AdvancedSearch): stop immediate call for action onclick
GaroGabrielyan Feb 8, 2024
31bed35
feat(AdvancedSearch): add tooltip for actions
GaroGabrielyan Feb 9, 2024
b54a6e1
feat(AdvancedSearch): add onOutsideClick prop
GaroGabrielyan Feb 9, 2024
abcebde
feat(AdvancedSearch): add isOpen control possibility
GaroGabrielyan Feb 9, 2024
22fce2a
fix(Storybook): fix introduction and gettingStarted page styles
GaroGabrielyan Feb 9, 2024
802ba2c
docs(AdvancedSearch): handle onIconClick for story to control isOpen
GaroGabrielyan Feb 9, 2024
076d368
fix(Profile): data update properly
GaroGabrielyan Feb 14, 2024
955eaa4
chore(Storybook): update storybook version from v7.6.5 to v7.6.15
GaroGabrielyan Feb 14, 2024
6abd758
fix(Storybook): change logic for version selector
hamikhambardzumyan Feb 19, 2024
1f4e9e5
fix(Portal): add watcher for gene ui provider ref
hamikhambardzumyan Feb 19, 2024
7397bd9
feat(GitHub): add CODEOWNERS function for the repo
hamikhambardzumyan Feb 19, 2024
d70b128
feat(GitHub): add review request notification for maintainers interna…
hamikhambardzumyan Feb 19, 2024
cfa64f6
Merge pull request #80 from softconstruct/feature/add-codeowners
hamikhambardzumyan Feb 19, 2024
237c939
fix(AdvancedSearch): add id for primaryFilterData and secondaryFilter…
GaroGabrielyan Feb 20, 2024
2ebdb52
fix(GitHub): change webhook request body field from message to text
hamikhambardzumyan Feb 21, 2024
93e3206
chore(AdvancedSearch): add an uncontrolled story
GaroGabrielyan Feb 21, 2024
394cecd
feat(Publish): add canary publish functional for `release/*.0` branch…
hamikhambardzumyan Feb 21, 2024
5afffec
feat(GitHub): add send notification task in canry version publish wor…
hamikhambardzumyan Feb 21, 2024
ecd653b
feat(GitHub): add workflow to notify when opened new issue
hamikhambardzumyan Feb 21, 2024
9b2c538
Merge pull request #83 from softconstruct/feature/add-canary-version-…
hamikhambardzumyan Feb 21, 2024
cc282c5
fix(GitHub): remove install command from message
hamikhambardzumyan Feb 21, 2024
b9115c1
Merge pull request #78 from softconstruct/fix/portal-parent-container…
hamikhambardzumyan Feb 21, 2024
c4f6d8c
feat(useEllipsisDetection): add detect multiline ellipsis functionality
GaroGabrielyan Feb 22, 2024
1e53927
Merge pull request #76 from softconstruct/fix/profile-component-update
hamikhambardzumyan Feb 22, 2024
9901e22
docs(AdvancedSearch): rename stories
GaroGabrielyan Feb 22, 2024
d6d5801
fix(AdvancedSearch): add logic for show tooltip on action focus
GaroGabrielyan Feb 22, 2024
f3ebfe2
fix(AdvancedSearch): conversations resolve
GaroGabrielyan Feb 22, 2024
01811df
Merge pull request #67 from softconstruct/fix/immediate-call-for-acti…
hamikhambardzumyan Feb 23, 2024
f12ec28
fix(Profile): remove absolute style and change extendTargetWidth valu…
NarekArshakyan Feb 23, 2024
4919ead
feat(Copy): add new component
GaroGabrielyan Feb 23, 2024
724be16
fix(Dropdown): opened dropdown must be closed in case open another one
NairaMisakyan Feb 23, 2024
b3c2ff3
fix(DatePickerInput): disabled state of years in case if they is limit
AregSoft Feb 23, 2024
ae9f4c8
fix(Copy): stop click event propogation
GaroGabrielyan Feb 26, 2024
fe9664c
fix(Profile): change extend target with value
NarekArshakyan Feb 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is define code owners of the repository, more details about the GitHub feature here https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

* @hamikhambardzumyan @GaroGabrielyan @AregSoft @NairaMisakyan @NarekArshakyan
21 changes: 21 additions & 0 deletions .github/workflows/notify-new-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Notify New Issue Opened
on:
issues:
types:
- opened
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- name: 🔔 Send Notification
env:
INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT: ${{ secrets.INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT }}
run: |
ISSUE_TITLE=${{ github.event.issue.title }}
ISSUE_LINK=${{ github.event.issue.url }}
ISSUE_AUTHOR=${{ github.event.issue.user.author }}
ISSUE_CREATED_DATE="${{ github.event.issue.createdAt }}"

MESSAGE="@channel\n**New Issue Opened**\nAuthor: $ISSUE_AUTHOR\nTitle: $ISSUE_TITLE\nCreated: $ISSUE_CREATED_DATE\nLink: $ISSUE_LINK"

curl -X POST -H "Content-Type: application/json" -d "{\"text\": \"$MESSAGE\", \"username\": \"GitHub\", \"icon_url\": \"https://github.githubassets.com/favicons/favicon.png\"}" $INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT
21 changes: 21 additions & 0 deletions .github/workflows/notify-reviewers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Notify Reviewers
on:
pull_request:
branches: ["release/*"]
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- name: Send Notification
env:
INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT: ${{ secrets.INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT }}
run: |
PR_ID=${{ github.event.pull_request.number }}
PR_URL=${{ github.event.pull_request.html_url }}
PR_AUTHOR=${{ github.event.pull_request.user.login }}
REVIEWERS="${{ join(github.event.pull_request.requested_reviewers.*.login, ', ') }}"

MESSAGE="@channel\nPull Request: [#$PR_ID]($PR_URL) by @$PR_AUTHOR\nRequested Reviewers: $REVIEWERS"

curl -X POST -H "Content-Type: application/json" -d "{\"text\": \"$MESSAGE\", \"username\": \"GitHub\", \"icon_url\": \"https://github.githubassets.com/favicons/favicon.png\"}" $INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT

38 changes: 38 additions & 0 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish canary version to NPM
on:
push:
branches:
- 'release/*.0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: 📥 Install dependencies
run: npm ci
- name: 🔧 Build
run: |
BRANCH_NAME=${{ github.ref }}
COMMIT_SHA=$(git rev-parse --short HEAD)

npm run build -- --pure --canary $BRANCH_NAME --commitSHA $COMMIT_SHA
- name: 📦 Publish package on NPM
run: cd dist && npm publish --access public --tag canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_ACCESS_TOKEN }}
- name: 🔔 Send Notification
env:
INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT: ${{ secrets.INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT }}
run: |
VERSION=$(jq -r '.version' dist/package.json)
VERSION_URL="https://www.npmjs.com/package/@geneui/components/v/$VERSION"

MESSAGE="@channel\nNew canary version [$VERSION]($VERSION_URL) is published on NPM"

curl -X POST -H "Content-Type: application/json" -d "{\"text\": \"$MESSAGE\", \"username\": \"NPM\", \"icon_url\": \"https://static-production.npmjs.com/b0f1a8318363185cc2ea6a40ac23eeb2.png\"}" $INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: 📥 Install dependencies
run: npm install
run: npm ci
- name: 🔧 Build
run: npm run build
- name: 📦 Publish package on NPM
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: 📥 Install dependencies
run: npm install
- name: 🔧 Pure build
run: npm ci
- name: 🔧 Pure build
run: npm run build -- --pure
- name: 🧪 Run tests
run: npm run test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const cmpStages = {
};

const { versions } = libVersions;
const [lastVersion] = [...versions].reverse();

const getVersionDropdown = (currentVersion) =>
`<div class="versions">
Expand Down Expand Up @@ -44,16 +45,19 @@ const SidebarLabelWrapper = ({ item }) => {
if (renderOnce || !document.querySelector('#versions__select')) {
renderOnce = false;
const sidebar = document.querySelector('.css-194spiq');
const currentVersionRegex = /v\d\.\d\.\d/;
const currentVersion =
window.location.href.match(currentVersionRegex) && window.location.href.match(currentVersionRegex)[0];
const currentVersionRegex = /v\d+\.\d+\.\d+/;
const [versionInURL] = window.location.href.match(currentVersionRegex) || [];
const currentVersion = versionInURL || lastVersion;
const versions__select = getVersionDropdown(currentVersion);
sidebar.insertAdjacentHTML('beforeend', versions__select);
const select = document.querySelector('#versions__select');

select.addEventListener('change', () => {
if (currentVersion) {
window.location.href = window.location.href.replace(currentVersion, select.value);
}
const modifiedURL = versionInURL
? window.location.href.replace(currentVersion, select.value)
: window.location.href.replace(/(\.com\/)(\?path=)/, `$1${currentVersion}$2`);

window.location.href = modifiedURL;
});
}
}, []);
Expand Down
2 changes: 1 addition & 1 deletion .storybook/lib-versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "versions": ["v2.9.0", "v2.8.0", "v2.7.0", "v2.6.0", "v2.5.0", "v2.4.0", "v2.3.0", "v2.2.0", "v2.1.0"] }
{ "versions": ["v2.11.1", "v2.11.2", "v2.12.1", "v2.12.2", "v2.12.3"] }
2 changes: 1 addition & 1 deletion configs/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getDirectories, getFiles } from '../scripts/utils';

const packageJson = require('../package.json');

const TSComponentsList = ['Avatar', 'LinkButton'];
const TSComponentsList = ['Avatar', 'LinkButton', 'Copy'];

const getInputs = (name, dir) => {
const inputs = getDirectories(dir).reduce((obj, item) => {
Expand Down
Loading
Loading