Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6c31a0f
Disable sync repos button when nothing selected
ipauler Dec 13, 2022
5ef4693
Merge branch 'main' into disable-sync-repos-when-nothing-selected
ipauler Dec 13, 2022
44e5d7f
activate Tauri updater (#7)
anastasiya1155 Dec 14, 2022
6679508
reset pagination when query string changes (new search was made) (#19)
anastasiya1155 Dec 14, 2022
90e0ffe
add clippy check to tauri workflow (#20)
ggordonhall Dec 14, 2022
a2a627e
capture opening links from Readme.md and replace with Tauri api to op…
anastasiya1155 Dec 14, 2022
cd6ca3a
Louis/update readme (#26)
stunningpixels Dec 14, 2022
cfa444f
Add new `profiler` profile for better performance work (#16)
rsdy Dec 14, 2022
72dfe27
Add logo and links to readme (#21)
ggordonhall Dec 14, 2022
4cef330
Quicker reporting of repo statuses (#18)
rsdy Dec 14, 2022
966c92f
Fix duplicate repo creation during re-indexing (#25)
calyptobai Dec 14, 2022
217be96
remove unused BLOOP_MODE env var (#28)
oppiliappan Dec 15, 2022
21f13ec
fix spurious cmd flashing (#24)
oppiliappan Dec 15, 2022
fd0abf5
use TextEncoder to calculate byte size of each char (#23)
anastasiya1155 Dec 15, 2022
eb8c5e2
Open file in finder (#29)
anastasiya1155 Dec 16, 2022
7448b99
implement regex-filtering at the collector level (#14)
oppiliappan Dec 16, 2022
0c7f07c
Go to Ref/Def (#31)
anastasiya1155 Dec 16, 2022
c410e6b
Fix release workflow (#32)
anastasiya1155 Dec 16, 2022
702ef53
Don't report indexing as "done" before Tantivy commit is over (#33)
rsdy Dec 16, 2022
7ad48ec
Refactor app navigation (#30)
ipauler Dec 19, 2022
8895b59
Minor fixes and improvements (#35)
anastasiya1155 Dec 20, 2022
15b8b0a
fix result modal (#36)
anastasiya1155 Dec 20, 2022
13bfa91
use new navigation api when using refs/defs goto line function (#42)
anastasiya1155 Dec 22, 2022
554b282
Fix repo sync button
ipauler Dec 22, 2022
ec8e46d
Merge branch 'main' into disable-sync-repos-when-nothing-selected
ipauler Dec 22, 2022
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
6 changes: 5 additions & 1 deletion client/src/pages/Home/Onboarding/Step2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Step2 = ({ handleNext, handleBack }: Props) => {
const [activeTab, setActiveTab] = useState(1);
const [userRepos, setUserRepos] = useState<RepoType[]>([]);
const [repos, setRepos] = useState<RepoUi[]>([]);
const [nextButtonDisabled, setNextButtonDisabled] = useState(false);
const { onBoardingState, setOnBoardingState } = useContext(UIContext);
const { trackReposSelected } = useAnalytics();
const { repositories } = useContext(RepositoriesContext);
Expand Down Expand Up @@ -115,6 +116,9 @@ const Step2 = ({ handleNext, handleBack }: Props) => {
...prevState,
[STEP_KEY]: repos.filter((r) => r.selected).map((r) => r.ref),
}));
setNextButtonDisabled(!repos.filter((r) => r.selected).length);
} else {
setNextButtonDisabled(true);
}
}, [repos]);

Expand Down Expand Up @@ -151,7 +155,7 @@ const Step2 = ({ handleNext, handleBack }: Props) => {
type="submit"
variant="primary"
onClick={handleSubmit}
disabled={!repos.length}
disabled={nextButtonDisabled}
>
Sync repositories
</Button>
Expand Down
7 changes: 6 additions & 1 deletion client/src/pages/Home/Onboarding/Step4/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const Step4 = ({ handleNext, handleBack }: Props) => {
const [activeTab, setActiveTab] = useState(1);
const [userRepos, setUserRepos] = useState<RepoType[]>([]);
const [repos, setRepos] = useState<RepoUi[]>([]);
const [nextButtonDisabled, setNextButtonDisabled] = useState(false);
const { onBoardingState, setOnBoardingState } = useContext(UIContext);
const { trackReposSelected } = useAnalytics();

Expand All @@ -37,6 +38,7 @@ const Step4 = ({ handleNext, handleBack }: Props) => {
const reposToSync = repos
.filter((r) => (activeTab === 1 ? r.selected : r))
.map((r) => r.ref);

const localRepos = userRepos
.filter(
(r) =>
Expand All @@ -62,6 +64,9 @@ const Step4 = ({ handleNext, handleBack }: Props) => {
...prev,
[STEP_KEY]: repos.filter((r) => r.selected).map((r) => r.ref),
}));
setNextButtonDisabled(!repos.filter((r) => r.selected).length);
} else {
setNextButtonDisabled(true);
}
}, [repos]);

Expand Down Expand Up @@ -127,7 +132,7 @@ const Step4 = ({ handleNext, handleBack }: Props) => {
type="submit"
variant="primary"
onClick={handleSubmit}
disabled={!repos.length}
disabled={nextButtonDisabled}
>
Sync repositories
</Button>
Expand Down