Skip to content

feat(online-interactive): add table queries and form#18

Merged
shreeyash07 merged 1 commit into
developfrom
feat/online-interactives
Jul 9, 2026
Merged

feat(online-interactive): add table queries and form#18
shreeyash07 merged 1 commit into
developfrom
feat/online-interactives

Conversation

@AmritBhusal

Copy link
Copy Markdown
Contributor

Changes

  • add online interactives tables and table actions
  • add table filters and search
  • add new route

This PR doesn't introduce any

  • temporary files, auto-generated files or secret keys
  • build works
  • eslint issues
  • typescript issues
  • codegen errors
  • console.log meant for debugging
  • typos
  • unwanted comments
  • conflict markers

@AmritBhusal AmritBhusal requested review from crsstha, shreeyash07 and subinasr and removed request for shreeyash07 and subinasr July 3, 2026 08:30
@AmritBhusal AmritBhusal requested a review from subinasr July 3, 2026 08:30
Comment thread app/views/OnlineInteractive/index.tsx Outdated
const tableData: OnlineInteractiveListItem[] = useMemo(() => (
(data?.reports?.results ?? []).map((report, index) => ({
...report,
no: String((page - 1) * limit + index + 1),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's just make this 'number' type. I don't see any reason this should be a string.

@AmritBhusal AmritBhusal force-pushed the feat/online-interactives branch from c9a4edd to 312c27b Compare July 8, 2026 08:35
@AmritBhusal AmritBhusal requested a review from subinasr July 8, 2026 08:35
import { TextInput } from '@ifrc-go/ui';
import { type EntriesAsList } from '@togglecorp/toggle-form';

import type { OnlineInteractiveFilterType } from '../index';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
import type { OnlineInteractiveFilterType } from '../index';
import { type OnlineInteractiveFilterType } from '../index';

Comment on lines +275 to +279
{isDefined(error?.file) && (
<InputError>
{getErrorString(error.file)}
</InputError>
)}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use NonFieldError here

@AmritBhusal AmritBhusal requested a review from shreeyash07 July 8, 2026 08:50
@shreeyash07 shreeyash07 force-pushed the feat/online-interactives branch from c2dca46 to da6ecad Compare July 9, 2026 04:48
@shreeyash07 shreeyash07 merged commit 63ec489 into develop Jul 9, 2026
3 checks passed
@shreeyash07 shreeyash07 deleted the feat/online-interactives branch July 9, 2026 06:15
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.

4 participants