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

Fix application modal and routing #790

Merged
merged 22 commits into from
Aug 27, 2024

Conversation

vinit717
Copy link
Member

@vinit717 vinit717 commented Aug 21, 2024

Issue Ticket Number

closes #784, #788, #792

Description

  • Automatic Modal Display: When a superuser navigates to /application?id=, the modal will automatically be displayed.

  • Button State Management: If the application has already been accepted or rejected, the corresponding action button will be disabled.

  • Dynamic URL Updates: The URL will update dynamically based on the filters applied, reflecting the selected filter parameters.

  • API Limit Adjustment: The API has been updated to fetch 6 applications at a time, ensuring that all available space in the application cards is utilized effectively.

  • Enable applications button on dashboard page

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

790-full-demo.mp4

Screenshot from 2024-08-27 23-33-25

Copy link

cloudflare-workers-and-pages bot commented Aug 21, 2024

Deploying dashboard-rds with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5d8c5ad
Status: ✅  Deploy successful!
Preview URL: https://d3ed2527.dashboard-rds.pages.dev
Branch Preview URL: https://fix-modal-for-particular-app.dashboard-rds.pages.dev

View logs

@vinit717 vinit717 changed the title Fix accept/reject btn and application modal for particular application Fix application modal and routing Aug 21, 2024
@vinit717
Copy link
Member Author

For test fix and enhancement here is the issue ticket
#791

__tests__/home/home.test.js Outdated Show resolved Hide resolved
applications/script.js Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
vinit717 and others added 5 commits August 25, 2024 23:34
* fix: Application by id page

- Add id in query params when view details btn is clicked
- When url with id query param is opened, apps should load applications in background

* fix: Status filter on applications page

- Check the selected filter value when page with applied filter is reloaded
- Remove status query param from url when status filter is cleared

* fix: Overflowing text in application cards

* Hidden elements should not be rendered on applications page

* fix: Add necessary spacing on applications page

* Add/update tests for applications page

* Replace history state instead of push state on applications page
joyguptaa
joyguptaa previously approved these changes Aug 27, 2024
Copy link
Member

@Achintya-Chatterjee Achintya-Chatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samarpan1738 please add test cases screen shots, it's mandatory in every PR

applications/script.js Outdated Show resolved Hide resolved
applications/script.js Show resolved Hide resolved
@iamitprakash iamitprakash merged commit 888965d into develop Aug 27, 2024
5 checks passed
@iamitprakash iamitprakash deleted the fix/modal-for-particular-application branch August 27, 2024 20:19
@vinit717 vinit717 mentioned this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

change url once filter is applied on /applications
6 participants